@font-face {
  font-family: "Winter Minie";
  src: url("Winter Minie.woff2") format("woff2");
}

@font-face {
  font-family: "Nature";
  src: url("Nature Regular.woff2") format("woff2");
  font-weight: normal;
}

@font-face {
  font-family: "Nature";
  src: url("Nature Bold.woff2") format("woff2");
  font-weight: bold;
}

:root {
  --header: "Winter Minie";
  --text: "Nature";
}

html, body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  background-color: #ffe7db;
  margin: 0;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: left;
  width: 100vw;
  height: 60px;
  padding: 0 20px;
  gap: 40px;
  background-color: #9b4313;
  box-sizing: border-box;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 100%;
  gap: 30px;
}

#logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--text);
  font-size: 17.5px;
  line-height: 100%;
  color: white;
  background-color: #9b4313;
  border-bottom: solid 2.75px transparent;
  text-decoration: none;
  box-sizing: border-box;
}

#timer {
  position: absolute;
  right: 195px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 65%;
  font-family: var(--text);
  font-size: 15px;
  color: #9b4313;
  background-color: white;
  border: 0;
  border-radius: 5px;
}

#preorder {
  position: absolute;
  right: 40px;
  height: 65%;
  font-family: var(--text);
  font-size: 18px;
  color: white;
  background-color: #ff8820;
  border: 0;
  border-radius: 5px;
  padding: 0 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

#preorder:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#preorder:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

#preorder:disabled {
  background-color: #d2d2d2;
  color: #707070;
  cursor: not-allowed;
}

#timer_container {
  position: fixed;
  top: 67.5px;
  left: calc(50% - 112.5px);
  display: none;
  align-items: center;
  justify-content: center;
  width: 225px;
  height: 60px;
  background-color: #9b4313;
  border-radius: 10px;
  z-index: 1000;
  box-sizing: border-box;
}

#timer_mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 65%;
  font-family: var(--text);
  font-size: 15px;
  color: #9b4313;
  background-color: white;
  border: 0;
  border-radius: 5px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  gap: 50px;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  gap: 20px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.fade_up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.5s ease-out;
}

.fade_up.show {
  opacity: 1;
  transform: translateY(0);
}

.top {
  position: relative;
  justify-content: left;
  min-height: 400px;
  height: calc(100dvh - 60px);
  background: url(Cookies2.jpg) center / cover no-repeat;
}

.top div {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  width: 700px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0));
  padding: 50px;
  gap: 30px;
  box-sizing: border-box;
}

.top p {
  text-align: start;
  font-family: "Trebuchet MS";
  font-size: 50px;
  color: white;
  margin: 0;
}

.top button {
  width: fit-content;
  height: unset;
  font-size: 25px;
  font-family: var(--text);
  color: black;
  background-color: white;
  border: 0;
  border-radius: 7.5px;
  padding: 15px 40px;
  cursor: pointer;
}

.bottom, .values {
  gap: 0;
  margin-bottom: 75px;
}

.bottom * {
  margin-top: 30px;
  margin-bottom: 25px;
}

.bottom button {
  margin-top: 0;
}

.members {
  margin-top: 60px;
  margin-bottom: 0;
  gap: 30px;
}

.members div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.members img {
  width: 250px;
  height: 250px;
}

.members img:hover {
  transform: scale(1.1);
}

.values h1 {
  margin-top: 75px;
  margin-bottom: 20px;
}

.values p {
  margin-top: 10px;
  margin-bottom: 0;
}

.values .span {
  margin-top: 50px;
  font-weight: bold
}

main img {
  border-radius: 15px;
  margin: 0;
}

main h1 {
  font-size: 70px;
  font-family: var(--text);
  font-weight: bold;
  color: #632a0b;
  margin: 0;
}

main p {
  width: 70%;
  font-size: 35px;
  font-family: var(--text);
  text-align: center;
  color: #632a0b;
}

main button {
  min-width: 200px;
  min-height: 60px;
  font-family: var(--text);
  font-size: 23px;
  color: white;
  background-color: #632a0b;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

#products {
  padding: 0 10vw;
  gap: 50px;
  margin-top: 30px;
  margin-bottom: 75px;
}

#products > div {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: space-between;
}

#products > div > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45%;
  height: 250px;
  background-color: white;
  border-radius: 10px;
  padding: 0 15px;
  gap: 5%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

#products > div > div:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#products > div > div .img {
  width: 40%;
  height: 80%;
  border-radius: 5px;
  overflow: hidden;
}

#products > div > div .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transform-origin: center; 
}

#products > div > div p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 80%;
  font-family: var(--text);
  font-size: 25px;
  border-radius: 5px;
}

#show_product {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#show_product.hidden {
  opacity: 0;
  pointer-events: none;
}

#show_product_display {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 600px;
  height: 350px;
  background-color: white;
  border-radius: 15px;
  padding: 25px 20px 25px 20px;
  gap: 20px;
  box-sizing: border-box;
}

#show_product_display .img {
  width: 42.5%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

#show_product_display .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transform-origin: center; 
}

#show_product_display div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  height: 90%;
  gap: 20px;
}

#show_product_display h1 {
  width: 75%;
  height: 10%;
  font-family: var(--text);
  font-size: 25px;
  text-align: center;
  line-height: 0.9;
  letter-spacing: unset;
  color: #632a0b;
  margin: 0;
}

#show_product_display p {
  width: 85%;
  height: 70%;
  font-family: var(--text);
  font-size: 17.5px;
  text-align: left;
  color: #632a0b;
  margin: 0;
}

#show_product_display button {
  width: 75%;
  height: 20%;
  font-family: var(--text);
  font-size: 20px;
  color: white;
  background-color: #632a0b;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

#show_product_display #back {
  position: absolute;
  top: 12.5px;
  right: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12.5%;
  height: 8%;
  font-family: var(--text);
  font-size: 15px;
  color: white;
  background-color: #9e9e9e;
  gap: 6px;
  border: 0;
  border-radius: 7.5px;
}

#show_product_display #back img {
  width: 14px;
  height: 11px;
}

footer {
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 55px;
  background-color: #9b4313;
}

footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17.5px;
  font-family: var(--text);
  color: white;
}

@media (max-width: 1050px) {
  #products {
    padding: 0 5vw;
  }

  #products > div > div {
    height: 200px;
  }

  .members div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .members img {
    width: 225px;
    height: 225px;
  }
}

@media (max-width: 800px) {
  .top div {
    width: 500px;
    padding: 30px;
  }

  .top p {
    font-size: 40px;
  }

  #products > div {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }

  #products > div > div {
    width: 80%;
    height: 250px;
  }

  #show_product_display {
    width: 450px;
    height: 275px;
  }

  #show_product_display h1 {
    font-size: 20px;
  }

  #show_product_display p {
    font-size: 15px;
  }

  #show_product_display button {
    font-size: 17.5px;
  }

  #show_product_display #back {
    font-size: 11px;
  }

  #show_product_display #back img {
    width: 10px;
    height: 7px;
  }
}

@media (max-width: 700px) {
  #timer {
    display: none;
  }

  #timer_container { 
    display: flex;
  }
}

@media (max-width: 500px) {
  header {
    padding: 0 15px;
    gap: 20px;
  }

  nav {
    gap: 20px;
  }

  nav a {
    font-size: 16px;
  }

  #preorder {
    right: 20px;
    font-size: 15px;
    padding: 0 20px;
  }

  .top div {
    width: 100vw;
    align-items: center;
    font-size: 35px;
    background: rgba(0, 0, 0, 0.6); 
    padding: 35px;
  }

  .top p {
    width: 100%;
    text-align: center;
    font-size: 42.5px;
  }

  .top button {
    font-size: 22.5px;
    padding: 12px 40px;
  }

  main button {
    min-width: 175px;
    min-height: 55px;
    width: 175px;
    height: 55px;
  }

  main h1 {
    font-size: 40px;
  }

  main p {
    font-size: 30px;
  }

  .members div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .members img {
    width: 300px;
    height: 300px;
  }

  #products > div > div {
    width: 90%;
    height: 200px;
  }

  #products > div > div img {
    width: 45%;
  }

  #products > div > div p {
    width: 47.5%;
    font-size: 20px;
  }

  #show_product_display {
    width: 330px;
    height: 220px;
  }

  #show_product_display div {
    gap: 10px;
  }

  #show_product_display h1 {
    font-size: 13px;
  }

  #show_product_display p {
    height: 65%;
    font-size: 11px;
  }

  #show_product_display button {
    font-size: 13.5px;
  }

  #show_product_display #back {
    width: 16%;
    height: 9%;
    font-size: 10px;
    border-radius: 5px;
  }

  #show_product_display #back img {
    width: 10px;
    height: 7px;
  }

  .bottom p {
    font-size: 25px;
  }
  
  footer p {
    font-size: 15px;
  }
}