:root {
  --black: #1f1f1f;
  --pink: #F0C8C9;
  --blue: #3F74DA;
  --red: #E6615D;
  --yellow: #FFFFB5;
  --purple: #E4CAE5;
  --green: #B1E5C3;
  --darkpurple: #9191b4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  color: var(--black);
  font-family: "Inter", sans-serif;
}

/* SCROLLBAR */
/* Width */
::-webkit-scrollbar {
  width: 20px;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(255, 250, 158);
  border-radius: 0px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 248, 125);
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.max-width-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  font-size: 30px;
  font-weight: bold;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

#navigation-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}

nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 20px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  font-size: 14px;
  font-weight: 500;
}

.nav-menu li {
  list-style-type: none;
  margin-left: 10px;
}

/* HAMBURGER BTN */
.mobile-menu-btn-container {
  display: none;
}

.menu-btn,
.close-panel-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--black);
  cursor: pointer;
}

main {
  margin: 100px 0;
  flex: 1;
}

header {
  position: relative;
  height: 98vh;
  background-image: url(../assets/wavy-slice-header.svg);
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: auto; /* keeps the wave height fixed and wave width natural */
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.random-cookie {
  max-width: 600px;
  text-align: center;
  font-size: 40px;
}

.show-cookie-btn {
  border: none;
  background-color: transparent;
}

.fortune-btn {
  width: 200px;
}

.updates-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.updates-header .heading {
  font-size: 36px;
}

.filter-container {
  display: flex;
}

.tag {
  display: flex;
  align-items: center;
  list-style-type: none;
  background-color: var(--purple);
  padding: 5px 10px;
  margin-left: 5px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: lowercase;
}

.tag.active {
  background-color: var(--green);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.load-more-btn-container {
  display: flex;
  justify-content: center;
}

#load-more-btn {
  padding: 20px 30px;
  border-radius: 60px;
  border: none;
  background-color: var(--green);
}

.post-card {
  background-color: var(--yellow);
  padding: 20px;
  cursor: pointer;
}

.post-title {
  font-size: 16px;
  font-weight: normal;
  text-transform: uppercase;
}

.post-image {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.post-date,
.post-tag {
  font-size: small;
  opacity: 0.6;
}

.post-tag {
  margin-top: 20px;
  text-transform: lowercase;
}

.side-panel-container {
  position: fixed;
  background-color: transparent;
  width: 100%;
  height: 100vh;
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition: transform 300ms ease-in-out;
  display: flex;
  justify-content: end;
  z-index: 2;
}

#side-panel {
  background-color: rgb(255, 255, 181);
  width: 92%;
  height: 100%;
  overflow-y: auto;
  padding: 30px 100px;
}

.side-panel-container.open {
  transform: translateX(0);
}

.post-content {
  max-width: 600px;
  line-height: 1.5;
}

.close-panel-btn {
  margin-bottom: 30px;
}

.slider-title {
  margin-bottom: 10px;
}

.slider-text a {
  text-decoration: underline;
}

.slider-text img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

body.no-scroll {
  overflow: hidden;
}

.about-section {
  position: relative;
}

.about-svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.about-svg-sm {
  display: none;
}

.about-squiggle {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

.about-squiggle path {
  stroke-dasharray: 10000; /* a big number */
  stroke-dashoffset: 10000; /* hide the whole line */
  visibility: hidden; /* hide path initially */

  will-change: stroke-dashoffset;
}

.about-squiggle-sm {
  display: none;
}

.therapy-description {
  font-size: 40px;
  margin-top: 60px;
}

.therapy-h {
  margin-bottom: 40px;
  font-size: 40px;
}

.portfolio-link {
  text-decoration: underline;
}

p {
  margin-bottom: 40px;
  max-width: 65ch;
  line-height: 1.2;
}

.p-mb-sm {
  margin-bottom: 20px;
}

.address-mb {
  margin-bottom: 40px;
}

.form-link-container {
  text-align: center;
  padding: 80px 0 80px;
}

.form-link {
  padding: 60px 30px;
  border-radius: 60px;
  background-color: pink;
}

/* TEMPORARY */
.shared-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 20px;
  gap: 20px;
}

.secret-image {
  max-width: 100%;
}

footer {
  display: flex;
  flex-direction: column;
  background-image: url(../assets/wavy-slice-footer.svg);
}

footer * {
  color: white;
  font-style: normal;
}

.email-container,
.address-container,
.newsletter-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

i {
  font-size: 13px;
}

.copy-icon {
  background-color: transparent;
  border: none;
  font-size: 16px;
}

.copy-icon:hover {
  cursor: pointer;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  margin: 60px 20px 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.copyright {
  text-align: center;
  opacity: 0.5;
  font-size: small;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .max-width-wrapper {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn-container {
    display: block;
  }

  .mobile-nav {
    background-color: var(--darkpurple);
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .close-menu-btn {
    color: var(--yellow);
  }

  .nav-menu a {
    color: var(--yellow);
    font-size: 26px;
  }

  #side-panel {
    width: 100%;
  }

  .mobile-nav.open,
  .side-panel-container.open {
    left: 0;
  }

  .close-menu-btn-container {
    position: absolute;
    top: 10px;
    right: 20px;
  }

  .nav-menu {
    flex-direction: column;
    text-align: center;
  }

  .nav-menu li {
    margin-left: 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .max-width-wrapper {
    padding: 0 20px;
  }

  .random-cookie {
    font-size: 24px;
  }

  #side-panel {
    padding: 30px 30px;
  }

  .email-container,
  .address-container,
  .newsletter-container {
    justify-content: center;
  }

  .about-svg,
  .about-squiggle {
    display: none;
  }

  .about-svg-sm {
    display: block;
    margin: auto;
  }

  .about-squiggle-sm {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }

  .about-squiggle path,
  .about-squiggle-sm path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    visibility: hidden;
  }

  .therapy-description {
    font-size: 24px;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    margin: 50px 20px;
    text-align: center;
    row-gap: 18px;
  }
}
