:root {
  --primary-color: #ffde00;
  --primary-light-color: #ffe769;
  --secondary-color: #ffe4ba;
  --secondary-light-color: #fff6e8;
  --post-color: #62eea8;
  --delete-color: #ff9f9f;
  --light-color: #fffefc;
  --grey-color: #747e79;
  --white-color: #fffefc;
  --dark-color: #000000;

  --primary-font: 'Cabin', sans-serif;
  --seconday-font: 'Calistoga', sans-serif;

  --border-width: 3px;
  --element-border-radius: 5px;

  --button-height: 5px;

  --small-button-height: 2px;

  --element-padding: 0.8em;

  --maximum-width: 320px;
  
}


html,
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

body {
  color: var(--dark-color);
  background-color: var(--secondary-light-color);
  font-family: var(--primary-font);
  height: 100vh;
  display: flex;
  flex-direction: column;
}


/* === Typography === */

h1,
h2,
h3,
p {
  margin: 0;
}

h2,
h3 {
  font-weight: 500;
}

.app-title {
  font-family: var(--seconday-font);
  font-size: 2.5em;
  text-align: center;
}

.logo img{
  border-radius: 50%;
  max-width: 30%;
  
}

figure:has(img) {
  text-align: center;
}

/* === Sections === */

section {
  margin: 3em 0;
}

.auth-fields-and-buttons {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1rem;
}

/* === User Section === */

.user-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
}

.user-section img {
  width: 3.75em;
  height: 3.75em;
  border-radius: 100%;
  border: var(--border-width) solid var(--dark-color);
}

.user-section h2 {
  font-size: 1.2em;
}
.update{
  display: none;
}

/* === Post Section === */

.post-section {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1rem;
}


/* == Post Section - Mood Emojis == */

.mood-emojis {
  display: flex;
  margin-top: 1rem;
}

.mood-emoji-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8em;
  gap: 0.3em;
  background-color: transparent;
  border: 0;
}

.mood-emoji-btn:hover {
  transform: scale(1.2);
}

.mood-emoji-btn img {
  width: 3.1em;
  height: 3.1em;
}

.selected-emoji {
  transform: scale(1.2);
  opacity: 1;
}

.unselected-emoji {
  transform: scale(1);
  opacity: 0.5;
}

/* == Posts Section - Filters == */

.filters-and-posts-section {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.filters-section {
  display: flex;
  gap: 0.4em;
}

.filter-btn {
  color: var(--dark-color);
  font-size: 0.9em;
  padding: 0.3em;
  background-color: transparent;
}

.selected-filter {
  color: var(--white-color);
  background-color: var(--dark-color);
}

/* == Posts Section - Posts == */

/* === Posts Section === */

.posts-section {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 1.8em;
}

.post {
  display: flex;
  flex-direction: column;
  background-color: var(--secondary-color);
  padding: 0.8em;
  border-radius: var(--element-border-radius);
  margin-top: 10px;
}

/* = Posts Section - Posts - Header = */

.post .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post .header h3 {
  font-size: 1em;
}

.post .header img {
  width: 2em;
  height: 2em;
}

/* = Posts Section - Posts - Body = */

.post p {
  font-size: 0.9em;
  line-height: 1.3em;
}
.post p > img {
  display: block;
  max-width: 50%;
  margin: 0 auto;
}

/* = Posts Section - Posts - Footer = */

.post .footer {
  display: flex;
  align-self: flex-start;
  gap: 0.4em;
  margin-top: 1rem;
}

.post .footer button {
  font-size: 0.9em;
  padding: 0.2em 0.8em;
  box-shadow: 0px var(--small-button-height) 0px 0px var(--dark-color);
  position: relative;
}

.post .footer button:hover {
  top: var(--small-button-height);
  box-shadow: none;
}

.post .footer .edit-color {
  background-color: var(--post-color);
}

.post .footer .delete-color {
  background-color: var(--delete-color);
}


/* === Nav === */

nav.user_dashboard {
  margin: 0.6em 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;

}

.ph{
 font-size: 1.4em;
}


.update_inputs input{
  margin-block: 8px;
}

.update_inputs{
  display: none;
  
}
.updateInputsShow {
  display: block;
}

/* === Structure === */

.container {
  max-width: var(--maximum-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;

   @media (min-width:500px){
    max-width: 600px;    
  }
}

#logged-out-view  {
  gap: 1em;
  flex: 1;
}

.app-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* === Common for elements === */

input,
button,
textarea {
  font-family: inherit;
  padding: var(--element-padding);
  border-radius: var(--element-border-radius);
  width: 100%;
  box-sizing: border-box;
}

input,
button {
  font-family: inherit;
  padding: var(--element-padding);
  border-radius: var(--element-border-radius);
  width: 100%;
  box-sizing: border-box;
  font-size: 1.1em;
  text-align: center;
  border: var(--border-width) solid var(--dark-color);
}

input:focus,
button:focus,
textarea:focus {
  outline: none;
}

/* === Input fields === */

textarea {
  font-size: 1em;
  border: 0;
  box-shadow: 3px 3px 3px 1px rgba(0, 0, 0, 0.25);
  resize: none;
  height: 6em;
}

textarea::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--grey-color);
  opacity: 1; /* Firefox */
}

textarea:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--grey-color);
}

textarea::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--grey-color);
}

input {
  font-weight: 300;
}

input::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--grey-color);
  opacity: 1; /* Firefox */
}

input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--grey-color);
}

input::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--grey-color);
}

/* === Buttons === */

button {
  font-weight: 600;
  width: 100%;
}

button:hover {
  cursor: pointer;
}

.primary-btn {
  background-color: var(--primary-color);
  box-shadow: 0px var(--button-height) 0px 0px var(--dark-color);
  position: relative;
}

.primary-btn:hover {
  top: var(--button-height);
  box-shadow: none;
}

.secondary-btn {
  padding: 0.4em;
  background-color: transparent;
}

.secondary-btn:hover {
  color: var(--light-color);
  background-color: var(--dark-color);
}

.provider-btn {
  color: var(--dark-color);
  background-color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  border: 0;
  box-shadow: 3px 3px 3px 1px rgba(0, 0, 0, 0.25);
}

.provider-btn:hover {
  transition: all 0.2s ease;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25);
}

.google-btn-logo {
  width: 1.375em;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 1.875em;
}

.icon-img-btn:hover {
  filter: invert(0.5);
}

/* === IDs === */

#logged-out-view {
  display: none;
}

#logged-in-view {
  display: none;
  margin: 0;
}

footer.footer{
  background-color: var(--secondary-color);
  padding: 5vh;
  text-align: center;
  
}

#warning{
  background-color: #747e79;
  position: absolute;
  top: 50%;
}


/* Sweet Alert Custom Colors */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{
  background-color: var(--post-color) !important;
  color: #000000;
}

div:where(.swal2-container).swal2-center>.swal2-popup {
  background-color: var(--secondary-color);
  box-shadow: 3px 3px 3px 1px rgba(0, 0, 0, 0.25);
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
  background-color: var(--delete-color)!important;
}