body {
  margin: 0;
  height: 100vh;
  background: #070707;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}


.deck-container {
  position: absolute;
  bottom: 250px;     
  left: 80px;          
  width: 320px;
  height: 450px;
  cursor: pointer;
 
}




.deck {
  position: relative;
  width: 100%;
  height: 100%;
}


.card {
  position: absolute;
  width: 320px;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);


  transform: 
    translateY(calc(var(--i) * 2px))
    translateX(calc(var(--i) * 6px));

  z-index: calc(100 - var(--i));

  transition: transform 0.8s ease, left 0.8s ease, top 0.8s ease;
}



.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}






@media (min-width: 1024px) {
  .deck.open .card:hover {
   transform: translateX(calc(var(--i) * 360px)) scale(1.1);
  transition: transform 0.3s ease;
}
  }



@media (max-width: 1023px) {
  .card:hover {
    transform: none;
  }
}



.deck.open .card {
  position: fixed;
  bottom: 250px;
  left: 80px;
  transform: translateX(calc(var(--i) * 360px));
  transition: transform 1s ease;
}





.deck-hint {
  position: absolute;
  bottom: 50%; 
  right: -250px; 
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.5s ease;
  animation: bounce 1.2s infinite alternate;
  z-index: 200;
    font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.deck-hint .arrow::before {
  content: "←";
}

@media (max-width: 1200px) {
  .deck-hint .arrow::before {
    content: "↑"; 
  }
}




@keyframes bounce {
  0% { transform: translateX(0); }
  50% { transform: translateX(10px); } 
  100% { transform: translateX(0); }
}






@media (max-width: 1200px) {
  .deck-hint {
    position: absolute;
    bottom: -60px; 
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column; 
    gap: 5px;
    font-size: 1rem;
    animation: bounceY 1.2s infinite alternate;
  }




  @keyframes bounceY {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
    100% { transform: translateX(-50%) translateY(0); }
  }
}


@media (max-width: 1200px) {
  
  .deck-container {
    bottom: auto;
    top: 100px;             
    left: 50%;
    transform: translateX(-50%);
    width: 350px;           
    height: 500px; 
    cursor: pointer;
    z-index: 99;
  }

  .card {
    width: 350px;
    height: 500px;           
    transform: translateY(calc(var(--i) * 2px)) translateX(0);
    z-index: calc(100 - var(--i));
  }

  
  .deck.open .card {
    position: absolute;     
    left: 50%;
    transform: translateX(-50%) translateY(calc(var(--i) * 600px)); 
    top: 50px;           
    transition: transform 0.8s ease;
  }

  
  body {
    overflow-y: auto;        
  }


}




.title {
  position: fixed;      
  left: 20px;           
  bottom: -10px;
  color: #ffffff;
  font-size: 9rem;     
  font-family: "lubaline", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 0;
  margin: 0;
  z-index: 200;        
}

@media (max-width: 1200px) {
  .title {
    font-size: 5rem;     
    
    left: 20px;
    padding: 0;
    margin: 0;
  }
}


.o1 {
  color: #f0444b;

}

.o2 {
  color: #3e74a5;

}

.o3 {
  color: #e4a737;

}


.text-2 {
  position: absolute;
  bottom: 20px;
  right: 20px;
  max-width: 320px;
  color: #ffffff;
  background-color: #070707;
  font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 1rem;
  border: solid 3px white;
  padding: 20px;
  box-sizing: border-box;
  z-index: 100;
}


@media (max-width:1200px) {
  .text-2 {
    position: fixed;       
    bottom: 100px;
    left: 20px;
    max-width: 350px;        
    font-size: 0.9rem;     
    padding: 8px;        
    box-sizing: border-box;
  }
}

@media (max-width:500px) {
.navbar {
  position: fixed;
  top: 0px;
  right: 40px;
  z-index: 100;
    font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 200;
  font-style: normal;
  background-color: #070707;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-left: 250px;
}
}



.navbar {
  position: fixed;
  top: 0px;
  right: 40px;
  z-index: 100;
    font-family: "recursive-sans-casual-static", sans-serif;
  font-weight: 200;
  font-style: normal;
  padding-top: 30px;
}

.navbar ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;

}

.navbar a {
  color: white;
  text-decoration: none;

  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  opacity: 1;
}

