@import url("https://fonts.googleapis.com/css2?family=Krona+One&family=Lobster&display=swap");

/* General styling */
body {
  font-family: "Krona One", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 20px;
  text-align: center;
}

/* Title */
h1 {
  font-size: 2.5rem;
  color: #1c1f42;
  margin-bottom: 30px;
  text-align: center;
}

/* Checkbox container */
.checkbox-container {
  background-color: #fff;
  border: 2px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  width: 450px; /* Default width for larger screens */
  margin: 60px auto; /* Centering */
}

/* Make width auto on smaller screens */
@media (max-width: 768px) {
  .checkbox-container {
    width: auto;
    max-width: 90%; /* Ensures it doesn't stretch too much */
    padding: 20px; /* Reduce padding for smaller screens */
  }
}

.checkbox-item {
  display: flex;
  align-items: left;
  margin-bottom: 2rem;
}

.checkbox-item-last {
  margin-bottom: 0.5rem; /* Apply margin-bottom to all except the last one */
}
/* Checkbox styling */
input[type="checkbox"] {
  margin-right: 2rem;
  accent-color: #1c1f42; /* Change color */
  transform: scale(1.2); /* Increase checkbox size */
}

.checkbox-container label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1c1f42; /* Darker text color */
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card Container - Scrollable */
#card-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  scrollbar-width: none; /* Hide scrollbar (Firefox) */
  -ms-overflow-style: none; /* Hide scrollbar (IE/Edge) */
}

/* Hide scrollbar (Webkit browsers like Chrome, Safari) */
#card-container::-webkit-scrollbar {
  display: none;
}

/* Card Styling */
.card {
  flex: 0 0 auto;
  width: 280px;
  height: 330px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 3em 2.2em;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  color: #1c1f42;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Card styling */
.card {
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 3em 2.2em;
  width: 280px;
  height: 330px;
  text-align: lett;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

.card h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
  text-align: start;
}

.card p {
  font-size: 0.8rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  text-align: start;
}

/* Detail button */
.button_primary {
  background-color: white;
  margin-top: 15px;
  color: #627361;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-family: "Krona One", sans-serif;
  font-size: 0.85rem;
  transition: background 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.button_primary:hover {
  background-color: #627361;
  color: white;
}

.book_secondary {
  background-color: #627361;
  margin-top: 15px;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-family: "Krona One", sans-serif;
  font-size: 0.85rem;
  transition: background 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.book_secondary:hover {
  background-color: white;
  color: #627361;
}

/* MODAL STYLING */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 40%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  color: #627361;
  font-size: 1.5rem;
}

.modal p {
  font-size: 1rem;
  color: #444;
  margin: 15px 0;
}

.modal button {
  background-color: #627361;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 10px;
}

.modal button:hover {
  background-color: #505e4c;
}

/* Close button */
.close-btn {
  background-color: red;
  color: white;
  border: none;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
}

.no-results-message {
  font-size: 1.4rem;
  color: #1c1f42;
  text-align: center;
  margin-top: 90px;
  font-weight: bold;
}
