:root {
  --purple-dark: #6a4c93;
  --purple: #FBE4FC;
  --yellow-dark: #F4D497;
  --white: #F6EFFF;
  --red-dark: #7f3636;
  --button-color: #144683;
  --dark-green: #0f622f;
  --brown: #B66C3F;
  --brown-light: #ecaf71;
  --yellow: #FCFCE4;
  --brand: #F3CA00;
  --xs-font: "Open-sans", sans-serif;

  --h1-size: 48px;
}


body {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 16px;

  background-image: url(./Assets/bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

footer {
  margin-top: 40px;
  padding: 24px 20px;
  text-align: center;
  text-transform: uppercase;
  background-color: var(--dark-green);
  color: var(--yellow);
  border-top: 6px solid var(--brown);
  font-family: var(--xs-font);
  line-height: 1.5em;
  font-weight: 300;
  text-wrap: pretty;

  & .warning {
    margin-bottom: 1em;
    padding: 1em;
    border: 1px dashed var(--brand);
    text-transform: none;
  }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;

  & a {
    color: var(--brand);
    text-decoration: underline;
  }

  &>img {
    width: 60%;
  }
}

/* Shadow effects from https://getcssscan.com/css-box-shadow-examples */
.shadow-effect-green {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(74, 49, 0) 0px 0px 0px 3px;
  box-shadow: inset 0 0 10px #013110;
}

.shadow-effect-cards {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(74, 49, 0) 0px 0px 0px 3px;
  box-shadow: inset 0 0 7px #371c01;
}


.sidebar-web {
  display: none;
}

/* navigation - top - links */
.nav-mobile {
  display: flex;
  justify-content: space-between;
  padding-inline: 20px;
  margin-bottom: 20px;
  border-bottom: 6px solid var(--brown);
  background-color: var(--dark-green);
}

.nav-web {
  display: none;
}

.link-button {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 5px;
  color: var(--white);
  cursor: pointer;

  &>img {
    width: 16px;
    height: 16px;
  }
}

/* h3 and h2 */

h2 {
  margin-top: 12px;
  font-size: 32px;
  text-align: center;
}

h3 {
  font-size: 24px;
  text-align: center;
}


/* main promo - h1 */
h1 {
  font-size: var(--h1-size);
  line-height: calc(1.2* var(--h1-size));
  color: var(--brand);
  margin-bottom: 12px;
  margin-inline: 16px;
}

.guide-text {
  color: var(--yellow);
  font-size: calc(0.5* var(--h1-size));
  line-height: normal;
  margin-block: 12px;
  text-transform: uppercase;

  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: calc(0.3* var(--h1-size));
}

.h1 {
  padding-inline: 20px;
  padding-bottom: 32px;
  padding-top: 44px;
  position: relative;

  &>section {
    width: 100%;
    border-radius: 8px;
    border: 6px solid var(--brown);
    background: var(--dark-green);
    text-align: center;
    padding-block: 16px;
  }

  & #leaf-1 {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
  }

  & #leaf-2 {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
  }

  & #junimos {
    width: 60%;
  }
}

/* H3 description text */
.description {
  color: var(--yellow-dark);
  font-size: calc(0.3* var(--h1-size));
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  color: var(--yellow);
  margin-block: 20px;
  padding-inline: 20px;
}



/* dropdown */
.find-section {
  display: flex;
  width: 100%;
  justify-content: center;
  align-self: center;
}

.find-buttons {
  height: 48px;
  padding-inline: 24px;
  margin-bottom: 32px;
  text-align: center;
  align-items: center;
  width: fit-content;
  color: var(--red-dark);
  border-radius: 4px;
  border: 4px solid var(--brown);
  background: var(--yellow-dark);

  cursor: pointer;
  font-size: 18px;

  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(74, 49, 0) 0px 0px 0px 3px;
  box-shadow: inset 0 0 3px #371c01;

  &:hover {
    background-color: var(--yellow);
  }
}


/* mobile only elements */

.mobile-fixed {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  bottom: 20px;
  right: 12px;
}


/* Hide elements */
.hidden {
  display: none;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
}

.title-modal {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 4px solid var(--brown);
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: center;
  padding: 12px 20px;
  background-color: var(--yellow-dark);
  box-shadow: inset 0 0 3px #371c01;

  &>h3 {
    color: var(--red-dark);
    font-size: 24px;
    text-align: center;
  }
}

.modal-content {
  overflow-y: auto;
  position: relative;

  background-color: var(--yellow);
  border: 4px solid var(--brown);
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(74, 49, 0) 0px 0px 0px 3px;
  box-shadow: inset 0 0 7px #371c01;

  width: 90%;
  max-width: 480px;
  max-height: 90vh;

  text-align: center;
}

.close-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 6px;
  border: 2px solid var(--brown);
  background: var(--brown-light);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 2px #371c01;
  cursor: pointer;

  &>svg {
    margin: auto;
  }

  &:hover {
    background-color: var(--yellow);
  }
}

/* sticky elements */
/* Scroll button style from: https://www.w3schools.com/howto/howto_js_scroll_to_top.asp*/
#scroll-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 12px;
  z-index: 99;

  background-color: var(--yellow-dark);
  color: var(--red-dark);
  border: 4px solid var(--brown);
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 12px, rgb(74, 49, 0) 0px 0px 0px 3px;
  box-shadow: inset 0 0 2px #371c01;
  border-radius: 6px;
  text-align: center;

  width: 48px;
  height: 48px;
}

.back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  background-color: var(--yellow-dark);
  color: var(--red-dark);
  border: 4px solid var(--brown);
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 12px, rgb(74, 49, 0) 0px 0px 0px 3px;
  box-shadow: inset 0 0 2px #371c01;
  border-radius: 6px;
  text-align: center;
  height: 48px;
  padding-inline: 12px;
  width: fit-content;

  &>svg path {
    fill: var(--red-dark);
  }

  &:hover {
    background-color: var(--yellow);
  }
}