* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

.container {
  text-align: center;
}


.packs.hidden {
  display: none;
  opacity: 0;
  transform: translateX(-100%); /* Hide off-screen to the left */
}

.packs.visible {
  display: flex;
  opacity: 1;
  transform: translateX(0); /* Slide into view */
  transition: transform 0.5s ease-in; /* Smooth slide-in transition */
}

.pack {
  opacity: 0; /* Initially hidden */
  transform: translateX(-100%); /* Off-screen to the left */
}

.pack.show {
  opacity: 1;
  transform: translateX(0); /* Slide into view */
}

.packs {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
}

.pack {
  cursor: pointer;
  display: inline-block;
  width: 100%;
  max-width: 150px;
  height: 200px;
  position: relative;
  
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.pack img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 5px;
}

.pack:hover {
  transform: scale(1.05);
  box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.6);
  filter: brightness(1.1);
}

.pack:hover .box {
  transform: rotateY(20deg);
}

.pack.spinning {
  animation: spin 1s ease-in-out forwards;
}

.pack.ripping {
  animation: rip 1.5s ease-in-out forwards;
}



/* Responsive Design */
@media (max-width: 568px) {
  .packs {
    flex-direction: column;
    align-items: center;
  }

  .pack {
    max-width: 120px;
    height: 160px;
  }

  .card {
    width: 80px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    width: 100%;
  }

  .pack {
    max-width: 100px;
    height: 140px;
  }
}

@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(720deg) scale(1);
  }
}

@keyframes rip {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes flip {
  0% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}
/* Existing styles here */

#fade-in-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
  opacity: 0;
  animation: fadeIn 3s forwards; /* 3s duration for the quote */
  color: rgb(20, 79, 18);
}


header {
  width: 100%;
  max-width: 1000px;
  background-color: #f0f0f0;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  color: black;
  text-decoration: none;
}
a:link { 
  text-decoration: none; 
  color: black;
} 
a:visited { 
  text-decoration: none; 
  color: black;
} 
a:hover { 
  text-decoration: none; 
} 
a:active { 
  text-decoration: none; 
}

.header-left {
  font-size: 24px;
  font-weight: bold;
  font-family: 'Dancing Script', cursive;
}

.header-right {
  display: flex;
  gap: 20px;
}

.header-item {
  cursor: pointer;
  transition: color 0.3s;
}

.header-item:hover {
  color: rgb(11, 190, 38);
}


/* Popup Modal */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
  animation: fadeInPopup 0.5s ease-in-out; /* Fade-in effect */
}

.popup-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 800px;
  display: flex;
  align-items: center;
  position: relative; /* Ensure close button is positioned relative to this */
  animation: fadeInPopupContent 0.5s ease-in-out; /* Fade-in effect for content */
}

.popup-inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.popup-card-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  margin-right: 20px;
}

.popup-description {
  width: 60%;
}

.popup-description ul {
  padding-top: 20px; /* Indent the list items */
}
.popup-description a {
  color: #0044cc;/* Light blue color for links */
  text-decoration: none; /* Remove underline from links */
  transition: color 0.3s ease; /* Smooth transition effect */
}

.popup-description a:hover {
  color: #00aaff; /* Slightly darker blue on hover for better visibility */
  text-decoration: underline; /* Underline on hover to indicate it's clickable */
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.popup-close:hover {
  color: red;
}

@keyframes fadeInPopup {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInPopupContent {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spinCard {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.pack.spinning {
  animation: spinCard 0.5s ease-in-out;
}


/* 3D Cuboid Container */
.rectangle {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: spinRectangle 10s infinite linear;
  /* transform: rotateY(180deg); */
  perspective: 10000px;
  cursor: pointer;
  margin-top: 50px;
  margin-bottom: 500px;

}

.face {
  position: absolute;
  width: 250px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid white;
  box-sizing: border-box; /* Ensure the image covers the entire face */
  background-position: center;
}

/* Positioning faces in 3D space */
.front {
  transform: translateZ(75px); /* Half the width/height to move the face out */
  background-image: url('Front.png'); /* Replace with your image */
  background-size: contain;

}
.back {
  transform: rotateY(180deg) translateZ(75px);
  background-color: black;
  background-image: url('Back.png'); /* Replace with your image */
  background-size: contain;
}
.left {
  width: 150px;
  height: 350px;
  transform: rotateY(-90deg) translateZ(75px);
  background-color: #000000;
  background-image: url('Side.png');
  background-size: cover;
  
}
.right {
  width: 150px;
  height: 350px;
  transform: rotateY(90deg) translateZ(174px);
  background-color: #000000;
  background-image: url('Side.png');
  background-size: cover;
}
.top {
  height: 150px;
  transform: rotateX(90deg) translateZ(79px);
  background-color: #000000;
}
.bottom {
  height: 150px;
  transform: rotateX(-90deg) translateZ(275px);
  background-color: #000000;
}

/* 3D spinning animation */
@keyframes spinRectangle {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}


/* Hide the rectangle after click */
.rectangle.hidden {
  display: none;
}


