/* Page 1 */
p{
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

.opening{
  text-align: center;
  width: 100vw;
  height: 100vh;
}

h2{
  font-family: 'Times New Roman', Times, serif;
  color:antiquewhite;
  font-size: 20px;
  text-align:center;
}


body{
  background: white;
  font-family: serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.scene{
  position: relative;
  width: 100vw;
  height: 50vh;
  overflow: hidden;
}

.text{
  font-family: 'Times New Roman', Times, serif;
  text-decoration: none;
  text-align: center;
  font-size: 25px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.character{
  position: absolute;
  bottom: 30px;
  width: 180px;
}

.rabbit{
  animation: runRight 6s linear infinite;
}

.alice{
  animation: runRight 6s linear infinite;
  animation-delay: 1s;
}


.next-button{
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  cursor: pointer;
}

.nav-wrapper {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
  pointer-events: none;
}

.nav-link {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
  color: black;
  font-family: 'Times New Roman', Times, serif;
  pointer-events: auto;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 1);
}



@keyframes runRight{
  0% {
    left: -150px;
  }
  100% {
    left: 110%;
  }
}


/* Page 2 */
.down-alice{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh; 

}

  
.scroll-container{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: fill;
  overflow-x: auto;
}


.scroll-item{
  display: inline-block;
  white-space: nowrap;
  box-sizing: border-box;
  animation: scroll-left 5s linear forwards;
}


.scene2{
  position: relative;
  background: url("Background\ 2.png");
  background-color: #1e1e4a;
  background-size: 100% 100%;
  background-position: center;
  height: 100vh;
  width: 100vw;
  animation: scrollBg 5s linear infinite;
  overflow: hidden;
}


@keyframes scrollBg {
  0% { background-position: center 0; }
  100% { background-position: center 100vh; }
} 

.alice2{
  position: absolute;
  top: 40%;
  left: 50%;
  width: 120px;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: tumble 4s infinite linear;
  z-index: 2;
}

@keyframes tumble{
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.text-box2{
  background-color: rgba(255, 255, 255, 0.6);
  padding: 20px;
  margin: 20px;
  width: fit-content;
  border-radius: 10px;
  position: absolute;
  left: 20px;
  top: 50px;
  color: white;
  width: 250px;
  font-size: 16px;
  line-height: 1.5;
  z-index: 2;
}

.letter{
  position: absolute;
  font-size: 80px;
  opacity: .5;
  font-weight: bold;
  animation: floatLetter 10s linear infinite;
}

@keyframes floatLetter{
  0% {top: -100px; transform: rotate(0deg);}
  100% {top: 110vh; transform: rotate(360deg);}
}

.l1 {left: 5%; animation-delay: none;}
.l2 { left: 40%; animation-delay: none;}
.l3 {left: 60%; animation-delay: none;}
.l4 {left: 70%; animation-delay: none;}
.l5 {left: 90%; animation-delay: none;}


/* Page 3 */

.body3{
  background-color: #f4cce1;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 2rem;
  overflow: hidden;
}

.scene3{
  position: relative;
  width: 100%;
  height: 100vh;
}

.text3{
  background-color: rgba(255, 255, 255, 0.6);
  padding: 20px;
  margin: 20px;
  width: fit-content;
  border-radius: 10px;
  font-family: 'Times New Roman', Times, serif;
  text-decoration: none;
  font-size: 20px;
  max-width: 300px;
  transition: font-size 1.5s ease;
}

.label{
  cursor: pointer;
  position: absolute;
  bottom: 120px;
  width: 100px;
  z-index: 2;
}

.cookie-label{
  left: 250px;
  width: 160px;
}

.bottle-label{
  left: 500px;
  width: 160px;
}

.label img{
  width: 100%;
  transition: transform 0.3s;
}

.alice3{
  position: absolute;
  bottom: 60px;
  right: 160px;
  width: 300px;
  transition: transform 1.5s ease;
}


input[type="radio"]{
  display: none;
}

#shrink:checked ~ .scene3 .alice3{
  transform: scale(1);
}

#shrink:checked ~ .scene3 .text3{
  font-size: 20px;
}

#grow:checked ~ .scene3 .alice3{
  transform: scale(5);
}

#grow:checked ~ .scene3 .text3{
  font-size: 12px;
}


/* Page 4 */
.cards{
  background-image: url(giphy-2719422389.gif);
}

.text4{
  font-family: 'Times New Roman', Times, serif;
  text-decoration: none;
  background-color: beige;
  text-align: center;
  font-size: 25px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.body4 {
  margin: 0;
  height: 500vh;
  overflow-x: hidden;
}

.scroll-container4 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background4 {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alice4 {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100px;
  transition: left 0.1s;
}

/* page 5 */

.body5 {
  margin: 0;
  height: 500vh;
  overflow-x: hidden;
}
.scene5{
position: relative;
background: url("watercolor.jpg");
background-color: white;
background-size: 100% 100%;
background-position: center;
height: 100vh;
width: 100vw;
}

.alice5 {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100px;
  transition: left 0.1s;
}

.scroll-container5 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background5 {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-box3{
  background-color: rgb(255, 255, 255);
  padding: 20px;
  margin: 20px;
  width: fit-content;
  border-radius: 10px;
  position: absolute;
  left: 20px;
  top: 50px;
  color:black;
  width: 250px;
  font-size: 16px;
  line-height: 1.5;
  z-index: 2;
}