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

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 78, 146, 0.7)),
    url("Media/4442547.gif") no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.container {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.summary,
.cards-container {
  width: 400px;
  height: 500px;
}

.summary {
  background: rgba(
    10,
    10,
    10,
    0.6
  ); /* Slightly transparent background for frosted glass effect */
  color: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  backdrop-filter: blur(10px); /* Frosted glass effect */
  transition: transform 0.4s ease;
  overflow: hidden; /* Prevent text from escaping */
}

.cards-container {
  position: relative;
  perspective: 1500px;
}

.card {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(10, 10, 10, 0.7);
  color: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-style: preserve-3d;
  opacity: 0;
  z-index: 0;
  backdrop-filter: blur(15px);
}

.active {
  opacity: 1;
  z-index: 1;
  transform: translateX(0) rotateY(0deg);
}

.inactive-left {
  opacity: 0;
  transform: translateX(-100%) rotateY(10deg);
}

.inactive-right {
  opacity: 0;
  transform: translateX(100%) rotateY(-10deg);
}

.card img {
  max-width: 80%;
  max-height: 70%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.button-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
}

.button-container button,
.jump-button,
.list-all-button,
.close-modal {
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, transform 0.2s; /* Added transform for hover animation */
}

.button-container button {
  background-color: #1e90ff; /* Keep original color */
  color: white; /* Keep text color consistent */
}

.button-container button:hover {
  background-color: #007bff; /* Hover effect */
  transform: scale(1.05); /* Scale effect on hover */
}

.jump-button {
  background-color: #17a2b8; /* Keep original color */
  color: white;
  margin-top: 10px;
}

.jump-button:hover {
  background-color: #138496; /* Hover effect */
  transform: scale(1.05); /* Scale effect on hover */
}

.list-all-button {
  margin-top: 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 150, 0.8),
    rgba(0, 0, 255, 0.8)
  ); /* Space theme gradient */
  color: white;
}

.list-all-button:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 50, 0.8),
    rgba(0, 0, 200, 0.8),
    rgba(0, 0, 255, 0.8)
  ); /* Darker gradient on hover */
  transform: scale(1.05); /* Scale effect on hover */
}

.prev-next-button {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 255, 0.8),
    rgba(0, 0, 255, 0.8)
  ); /* Space theme gradient */
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s; /* Added transform for hover animation */
}

.prev-next-button:hover {
  background: linear-gradient(
    135deg,
    rgba(200, 0, 200, 0.8),
    rgba(0, 0, 150, 0.8)
  ); /* Darker gradient on hover */
  transform: scale(1.05); /* Scale effect on hover */
}

.card-list-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.card-list-content {
  background: rgba(
    0,
    0,
    0,
    0.6
  ); /* Slightly transparent background for frosted glass effect */
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  backdrop-filter: blur(10px); /* Frosted glass effect */
}

.card-list-content ul {
  list-style-type: none;
  padding: 0;
}

.card-list-content ul li {
  cursor: pointer;
  margin: 10px 0;
  padding: 10px;
  background-color: #17a2b8; /* Keep original color */
  color: white;
  border-radius: 5px;
  transition: background-color 0.2s, transform 0.2s; /* Added transform for hover animation */
}

.card-list-content ul li:hover {
  background-color: #138496; /* Hover effect */
  transform: scale(1.05); /* Scale effect on hover */
}

.close-modal {
  margin-top: 20px;
  background-color: #dc3545; /* Keep original color */
  color: white;
}

.close-modal:hover {
  background-color: #c82333; /* Hover effect */
  transform: scale(1.05); /* Scale effect on hover */
}

/* New styles for buttons in the popup */
.popup-button-container {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping of buttons */
  justify-content: space-between; /* Space between buttons */
}

.popup-button {
  flex: 48%; /* Makes two buttons per row with space */
  margin: 5px; /* Spacing around buttons */
  padding: 10px 0; /* Padding for buttons */
  border-radius: 5px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 150, 0.8)
  ); /* Space theme gradient */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s; /* Added transform for hover animation */
}

.popup-button:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 50, 0.8),
    rgba(0, 0, 200, 0.8)
  ); /* Darker gradient on hover */
  transform: scale(1.05); /* Scale effect on hover */
}

/* Modal transitions */
.show-modal {
  display: flex;
}

/* Developed by Arji Jethin & Aluru Bala Karthikeya */
