/* root variables */
:root {
  --main-background: #FFF3DD;
  --dark-green-theme: #51311A;
  --main-text: #51311A;
  --white: #ffffff;

  --container-width: 500px;
  --container-aspect-ratio: 604 / 574;

  --fish-rotation: 7.52deg;
  --strip-rotation: 16.52deg;
  --bubble-rotation: -16.52deg;
}

h1 {
  color: #50301B;
  font-family: Castoro;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* body */
body {
  background-color: var(--main-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centers vertically */
  height: 100%;
  padding: 1rem 0 2rem 0;
  gap: 0;

}

/* logo */
.logo {
  position: relative;
  width: 80px;
  display: none;
}

.logo img {
  width: 100%;
  height: auto;
}

/* main container */
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 37.75rem;
  gap: 0.5rem;
  margin-top: 20vh;
  padding-top: 0;
}

.home-header {
  position: relative;
  width: 30vw;
  aspect-ratio: 614 / 51; 
  background-image: url("../Assets/home-header.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .home-header {
    width: 80vw; 
  }
}


/* background box with fixed aspect ratio */
.animation-box {
  position: relative;
  width: 15vw;
  aspect-ratio: 844 / 1042; 
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .animation-box {
    width: 40vw; /* or adjust to your preferred mobile size */
  }
}


/* Overlay image */
.overlay-image {
  position: absolute;
  bottom: 50%;
  right: -30%;
  width: 35%;
  height: 35%;
  background: url('../Assets/soundon.png') no-repeat center/contain;
  pointer-events: none; /* lets clicks go through to underlying elements */
}


/* button container */
.button-container {
  margin-top: 0;
}

/* buttons */
button {
  transition: transform 0.2s ease-in-out;
}

button:hover {
  transform: scale(1.05);
}


#select-button {
  font-family: Castoro, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--main-text);
  background-color: #FEFDF8;
  border: 1.25px solid #51311A;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.2s ease-in-out;
  padding: 0.5rem 3.5rem;
}



/* responsive */
@media screen and (max-width: 768px) {
  #select-button {
  }

  button {
    font-size: 1.5rem;
  }
}


/* leaves */ 
.leaves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  overflow: hidden;
  z-index: 100; 
}

.leaf {
  position: absolute;
  top: -10%;
  will-change: transform;
  pointer-events: none;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.8;
  }
}
