/* Venus Tarot Custom Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important; /* Dark gradient for futuristic look */
  color: #e0e0e0;
  min-height: 100vh;
  overflow-y: scroll;
  scrollbar-width: none;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Ccircle cx="50" cy="50" r="2" fill="%23e77bc2" opacity="0.3"/%3E%3C/svg%3E') repeat;
  animation: starrySky 50s linear infinite;
  z-index: -1;
}

@keyframes starrySky {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  display: flex;
  min-height: 100vh;
  padding: 10px;
  background-color: rgba(224, 205, 226, 0.1); /* Semi-transparent lavender */
  gap: 10px;
}

.main-content {
  flex: 3;
  background-color: rgba(255, 240, 246, 0.05); /* More transparent to blend with dark background */
}

.content-box-droid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 1px solid #b57cc5;
  background-color: rgba(255, 255, 255, 0.1);
  min-height: 100%;
}

.content-box-droid-learntarot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border: 1px solid #b57cc5;
  background-color: rgba(255, 255, 255, 0.05); /* More transparent */
  min-height: 100%;
}

.animated-text {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-family: "IBM Plex Mono", monospace;
  font-size: 34px;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 7px;
  color: #e0e0e0;
}

.animated-text-learntarot {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-family: "IBM Plex Mono", monospace;
  font-size: 34px;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 7px;
  color: #e0e0e0;
}

.futuristic-heading {
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px #e77bc2, 0 0 20px #00ddeb;
}

.letter {
  display: inline-block;
  opacity: 1;
  animation: fade 8s infinite;
}

.highlight {
  color: #e77bc2; /* Mystic pink accent */
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.4s; }
.letter:nth-child(3) { animation-delay: 0.1s; }
.letter:nth-child(4) { animation-delay: 0.2s; }
.letter:nth-child(5) { animation-delay: 0.3s; }

@keyframes fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar {
  flex: 1;
  background-color: rgba(245, 230, 255, 0.1); /* Subtle pastel with transparency */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-box {
  border: 1px solid rgba(181, 124, 197, 0.5);
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}

/* Logo Box in Sidebar */
.logo-box {
  background-color: transparent; /* Ensure no background color */
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.logo-box img {
  width: 65px;
  height: 65px;
  border: 2px solid #e77bc2;
  border-radius: 50%; /* Circular logo for a modern look */
  box-shadow: 0 0 15px rgba(231, 123, 194, 0.5), 0 0 25px rgba(0, 221, 235, 0.3); /* Glow effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: transparent; /* Ensure no background on the image */
}

.logo-box img:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  box-shadow: 0 0 20px rgba(231, 123, 194, 0.8), 0 0 30px rgba(0, 221, 235, 0.5); /* Enhanced glow on hover */
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin-bottom: 10px;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #e0e0e0;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
  position: relative;
  text-transform: lowercase;
  font-family: "Orbitron", sans-serif;
}

.sidebar nav ul li a::after {
  content: '';
  width: 5px;
  height: 5px;
  background-color: #e77bc2;
  border-radius: 50%;
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  color: #00ddeb; /* Electric blue */
  text-decoration: none;
  text-shadow: 0 0 10px #00ddeb;
}

.sidebar nav ul li a.active::after,
.sidebar nav ul li a:hover::after {
  display: block;
}

.exhibit-box {
  border: 1px solid rgba(181, 124, 197, 0.5);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(231, 123, 194, 0.3);
}

.shape {
  position: absolute;
  background: #00ddeb; /* Electric blue */
  border-radius: 50%;
  opacity: 0.4;
  animation: float 10s ease-in-out infinite;
}

.shape1 { width: 15px; height: 15px; top: 20%; left: 20%; }
.shape2 { width: 10px; height: 10px; top: 50%; left: 50%; }
.shape3 { width: 20px; height: 20px; top: 70%; left: 70%; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(231, 123, 194, 0.9);
  color: #fff;
  border: 1px solid #b57cc5;
  padding: 15px;
  width: 250px;
  box-shadow: 0 0 15px rgba(231, 123, 194, 0.5);
  z-index: 1000;
  font-size: 12px;
}

.footer-links h4 {
  color: #e77bc2;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 12px;
  font-family: "Orbitron", sans-serif;
}

.footer-column a {
  font-size: 12px;
  text-decoration: none;
  color: #e0e0e0;
}

.footer-column a:hover {
  color: #00ddeb;
  text-shadow: 0 0 10px #00ddeb;
}

/* Tarot Intro and Video Intro */
.tarot-intro, .video-intro {
  text-align: center;
  padding: 20px;
  color: #e0e0e0;
}

.tarot-intro p, .video-intro p {
  font-size: 14px;
  line-height: 22px;
  max-width: 600px;
  margin: 0 auto;
  color: #d0d0d0;
}

/* Tarot Filters */
.tarot-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.tarot-filters input,
.tarot-filters select {
  padding: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  border: 1px solid #b57cc Wands5;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.tarot-filters input:focus,
.tarot-filters select:focus {
  outline: none;
  border-color: #00ddeb;
  box-shadow: 0 0 10px #00ddeb;
}

/* Tarot Gallery */
.tarot-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)); /* 5 columns for 5x5 */
  gap: 15px;
  padding: 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(253, 246, 251, 0.2), rgba(224, 205, 226, 0.2));
  animation: bgShift 15s infinite;
}

@media (max-width: 768px) {
  .tarot-gallery {
    grid-template-columns: repeat(3, minmax(100px, 1fr)); /* Adjust for mobile */
  }
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tarot-card {
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(181, 124, 197, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  perspective: 1000px;
}

.tarot-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s;
  backface-visibility: hidden;
  loading: lazy; /* Lazy loading */
}

/* Featured Image on Home Page */
.featured-image {
  margin-top: 25px;
  max-width: 40%; /* Reduced from 60% to make the image smaller */
  display: flex;
  justify-content: center;
  animation: fadeIn 2s ease-in-out;
}

.featured-image img {
  max-width: 75%; /* Reduced from 85% to make the image smaller */
  height: auto;
  border: 2px solid #e77bc2;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(231, 123, 194, 0.5), 0 0 25px rgba(0, 221, 235, 0.3); /* Glow effect with pink and blue */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-image img:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  box-shadow: 0 0 20px rgba(231, 123, 194, 0.8), 0 0 30px rgba(0, 221, 235, 0.5); /* Enhanced glow on hover */
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.tarot-card .card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.6s;
}

.tarot-card:hover .card-front {
  transform: rotateY(180deg);
}

.tarot-card:hover .card-back {
  transform: rotateY(0deg);
}

.tarot-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #e77bc2, 0 0 25px #00ddeb;
}

.tarot-card::after {
  content: attr(data-name);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #e0e0e0;
  padding: 5px;
  text-align: center;
  font-size: 12px;
  text-transform: lowercase;
}

/* Pagination Controls */
.tarot-filters button {
  padding: 5px 10px;
  background: #e77bc2;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  transition: all 0.3s ease;
}

.tarot-filters button:hover {
  background: #00ddeb;
  box-shadow: 0 0 10px #00ddeb;
}

.tarot-filters button:disabled {
  background: #b57cc5;
  cursor: not-allowed;
}

#page-info {
  margin-left: 10px;
  font-size: 12px;
  color: #d0d0d0;
}

/* Card Modal Enhancements */
.card-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.holographic {
  position: relative;
  transition: all 0.3s ease;
}

.holographic::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, #e77bc2, #00ddeb, #e77bc2);
  opacity: 0.5;
  z-index: -1;
  border-radius: 12px;
  animation: holographicGlow 3s infinite;
}

@keyframes holographicGlow {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 0.5; transform: scale(1); }
}

.card-modal.active ~ .main-content {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.card-modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px;
  border: 2px solid rgba(181, 124, 197, 0.5);
  border-radius: 12px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 20px rgba(231, 123, 194, 0.5);
  animation: modalFadeIn 0.5s ease-in-out;
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.card-modal-content img.modal-card-img {
  max-width: 100%;
  height: auto;
  border: 3px solid #e77bc2;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s;
}

.modal-divider {
  width: 50%;
  height: 1px;
  background: #e77bc2;
  margin: 15px auto;
  opacity: 0.5;
}

.card-modal-content h3 {
  font-size: 20px;
  text-transform: lowercase;
  color: #e77bc2;
  margin-bottom: 10px;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px #e77bc2;
}

.card-modal-content .modal-toggle {
  margin-bottom: 10px;
}

.card-modal-content .modal-toggle button {
  padding: 5px 10px;
  margin: 0 5px;
  background: #e77bc2;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Orbitron", sans-serif;
}

.card-modal-content .modal-toggle button:hover {
  background: #00ddeb;
  box-shadow: 0 0 10px #00ddeb;
}

.card-modal-content p {
  font-size: 16px;
  line-height: 24px;
  color: #d0d0d0;
  margin-bottom: 15px;
}

.card-modal-content a {
  display: inline-block;
  padding: 8px 15px;
  background: #e77bc2;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-right: 10px;
  font-family: "Orbitron", sans-serif;
}

.card-modal-content a:hover {
  background: #00ddeb;
  box-shadow: 0 0 10px #00ddeb;
}

.card-modal-content #share-card {
  padding: 8px 15px;
  background: #e77bc2;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-family: "Orbitron", sans-serif;
}

.card-modal-content #share-card:hover {
  background: #00ddeb;
  box-shadow: 0 0 10px #00ddeb;
}

.card-modal-content #learn-tarot-session {
  display: inline-block;
  padding: 8px 15px;
  background: #e77bc2;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-family: "Orbitron", sans-serif;
}

.card-modal-content #learn-tarot-session:hover {
  background: #00ddeb;
  box-shadow: 0 0 10px #00ddeb;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #e0e0e0;
  background: #e77bc2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: #00ddeb;
  transform: rotate(90deg);
  box-shadow: 0 0 10px #00ddeb;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .card-modal-content {
    max-width: 90%;
    padding: 15px;
  }
  .card-modal-content h3 {
    font-size: 18px;
  }
  .card-modal-content p {
    font-size: 14px;
    line-height: 20px;
  }
  .card-modal-content .modal-toggle button {
    padding: 3px 8px;
    font-size: 12px;
  }
  .card-modal-content a,
  .card-modal-content #share-card,
  .card-modal-content #learn-tarot-session {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* Video Gallery */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Default grid with at least 400px per video */
  gap: 30px;
  padding: 30px;
  justify-content: center;
}

/* Responsive Design for Video Gallery */
@media (max-width: 1024px) {
  .video-gallery {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Slightly smaller videos on tablets */
    gap: 25px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 300px per video on smaller screens */
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .video-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ensure at least 280px per video on very small screens */
    gap: 15px;
    padding: 15px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .video-card {
    width: 100%;
  }
}