* {
  font-family: "Port Lligat Sans", sans-serif;
  font-style: normal;
  color: black;
  text-decoration: none;
  /* Lea's drei Must-Haves */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background: #f99d90;
  font-size: 1.7rem;
}

img {
  max-width: 100%;
  display: inline-block;
  height: auto;
  background-color: transparent !important;
}

h1 {
  font-family: "Modak", system-ui;
  font-weight: 400;
  font-style: normal;
  color: #fcecdf;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black,
    1px 1px 0 black, 0px 1px 0 black, 0px -1px 0 black, 1px 0px 0 black,
    -1px 0px 0 black;
  font-size: 8rem;
}

.whole_grid {
  display: grid;
  grid-template-rows: 130px 100vh 100vh 100vh 130px; 
  min-height: 100vh;
  max-width: 100%;
}

main {
  display: contents;
}

nav,
footer {
  background-color: #eb7a6a;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  border-bottom: 2px solid #000000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6rem;
  max-width: 100%;
}

.buttonnav {
  background-color: #f8f0eb;
  border: 2px solid #9f1c2e;
  border-radius: 30px; 
  width: 17vw;
  max-width: 500px;
  height: 5vh;
  max-height: 300px;
  font-weight: bold;
  cursor: pointer;
  user-select: none; 
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease; 
}

.buttonnav:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.headerhomepage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mainlogo,
.getlucky {
  width: 80vw;
}

.mainlogo {
  padding-top: 3rem;
}

.getlucky {
  padding-bottom: 3rem;
}

/* Fortune Cookie Section*/
.FortuneCookies {
  background-color: #9f1c2e;
  padding-top: 0.5rem;
  border-top: 2px solid #f8f0eb;
  border-bottom: 2px solid #f8f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
}

.imgcookies {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.imgcookies img {
  width: 30%;
}

.imgcookies img
#leftcookie, 
#middlecookie,
#rightcookie {
  transition: transform 0.3s ease;
}

#leftcookie:hover,
#middlecookie:hover,
#rightcookie:hover {
  transform: scale(1.2);
}

.Calender {
  margin-top: 40vh;
  height: 60%;
  text-align: center;
  font-size: 3rem;
}

footer {
  border-top: 2px solid #000000;
  flex-direction: row;
  gap: 50%;
  padding: 10px;
}

footer img {
  width: 10rem;
  height: 8rem;
}


/* Animationen für JavaScript - Cookie Breaks*/
@keyframes leftToCenter {
  0% {
    transform: translate(-150%, -50%) rotate(-10deg);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes rightToCenter {
  0% {
    transform: translate(150%, -50%) rotate(10deg);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes middlePop {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes cookieSplitLeft {
  0% {
    transform: translate(-50%, -50%) rotate(0);
    opacity: 0;
  }
  100% {
    transform: translate(calc(-50% - var(--offset, 100px)), -50%) rotate(-15deg);
    opacity: 1;
  }
}

@keyframes cookieSplitRight {
  0% {
    transform: translate(-50%, -50%) rotate(0);
    opacity: 0;
  }
  100% {
    transform: translate(calc(-50% + var(--offset, 100px)), -50%) rotate(15deg);
    opacity: 1;
  }
}

.cookie-half {
  width: 15%;
  position: absolute;
  top: 50%;
  left: 50%; 
  transform: translate(-50%,-50%); 
  z-index: 9;
  pointer-events: none;
  opacity: 1;
  transition: transform 1.2s ease;
}

.cookie-half.animate-left {
  animation: cookieSplitLeft 1.2s ease forwards;
}

.cookie-half.animate-right {
  animation: cookieSplitRight 1.2s ease forwards;
}

.fortune-paper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(0);
  background: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 8;
  min-width: 150px;
  max-width: 60vw;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  animation: growPaper 1.2s ease forwards;
  animation-delay: 0.3s;
}

.fortune-text {
  font-size: 1.3rem;
  color: black;
  text-align: center;
}

@keyframes growPaper {
  0% {
    transform: translate(-50%, -50%) scaleX(0.1);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 1;
  }
}




@media (max-width: 992px) {
 
  h1 {
    font-size: 6rem;
  }
  

/*Burgermenu*/
  .burger {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    position: absolute;
    right: 4rem;
    width: 30px;
    height: 22px;
    z-index: 1100;
  }

  .line {
    width: 3rem;
    height: 5px;
    background-color: black;
    transition: all 0.4s ease;
    transform-origin: center;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #eb7a6a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1099;
  }

  .nav-links.show {
    display: flex;
  }

  .burger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.active .line:nth-child(2) {
    opacity: 0;
  }

  .burger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(8.5px, -8.5px);
  }
}

.buttonnav {
  width: 200px;
}

.buttonnav a {
  font-size: 1em;
}


/*Fortune Cookie Section*/ 
.fortune-paper {
  max-width: 50vw;
}

.fortune-text {
  font-size: 1.3rem;
}




@media (max-width: 768px) {
  p {
    font-size: 1.1rem;
  }

  h1 {
    font-size: 4rem;
    margin-bottom: 10rem;
  }
  h2 {
    font-size: 3rem;
  }

  .whole_grid {
    grid-template-rows: 130px 60vh 95vh 95vh 130px;
      }

  nav {
    padding: 4rem;
  }

  .headerhomepage img {
    width: 90vw;
    height: auto;
  }

  .Calender {
    padding: 1rem;
  }

  footer img {
    height: 7rem;
    width: 6rem;
  }

  /* Animationen für JavaScript - Cookie Breaks*/
  .imgcookies {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

    .fortune-paper {
    max-width: 40vw;
  }

  .fortune-text {
    font-size: 1rem;
  }


  @keyframes cookieSplitLeft {
    0% {
      transform: translate(-50%, -50%) rotate(0);
      opacity: 0;
    }
    100% {
      transform: translate(calc(5% - var(--offset, 100px)), -50%)
        rotate(-15deg);
      opacity: 1;
    }
  }

  @keyframes cookieSplitRight {
    0% {
      transform: translate(-50%, -50%) rotate(0);
      opacity: 0;
    }
    100% {
      transform: translate(calc(-125% + var(--offset, 100px)), -50%)
        rotate(15deg);
      opacity: 1;
    }
  }

  @keyframes leftToCenterMobile {
    0% {
      transform: translate(-50%, -150%) rotate(-15deg);
      opacity: 0;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 1;
    }
  }

  @keyframes rightToCenterMobile {
    0% {
      transform: translate(-50%, 150%) rotate(15deg);
      opacity: 0;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 1;
    }
  }
  @keyframes middlePopMobile {
    0% {
      transform: translate(-50%, -50%) scale(1);
    }
    100% {
      transform: translate(-50%, -50%) scale(1.3);
    }
  }
}
