/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barrio&family=Dancing+Script&family=Open+Sans&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-image: url('mysticmagenta.png'); /* 🌌 Full-page background */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 20px;
  color: black;
}

/* Layout container */

.container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;

  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;

  background-color: rgba(255, 255, 255, 0.85);
  background-image: url('pinkgrid.png');
  background-size: cover;
  background-repeat: repeat;
  min-height: 400px;
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}


/* 🧭 Navigation Sidebar */
.nav-sidebar {
  width: 200px;
  background-image: url('dotted.png');
  background-repeat: repeat;
  background-size: auto;
  padding: 20px;
  color: #333;
  position: relative;
  font-family: 'Open Sans', sans-serif;
}

.nav-sidebar h2 {
  text-align: center;
  font-family: 'Barrio', cursive;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.nav-sidebar ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
}

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

.nav-sidebar a {
  display: inline-block;
  text-decoration: none;
  color: black;
  font-family: 'Barrio', cursive;
  font-size: 1em;
  padding: 6px 12px;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  border: 3px solid #000;
  transition: background-color 0.3s, transform 0.2s;
}

.nav-sidebar a:hover {
  background-color: #ffe6f0;
  transform: scale(1.05);
}


/* Main Content */
.main-content {
  flex: 1;
  padding: 20px;

  background-color: rgba(255, 255, 255, 0.95);
  background-clip: padding-box;

  border-width: 15px;
  border-style: solid;
  border-image: url('p.png') 8 fill round;
  border-radius: 15px;

  max-height: 90vh;
  overflow-y: auto;
  
  box-shadow: inset 0 0 10px rgba(160, 128, 217, 0.5);

  /* Firefox only */
  scrollbar-width: thin;
  scrollbar-color: #a080d9 #f5f0ff;
}

/* ✅ Safari / Chrome / Edge */
.main-content::-webkit-scrollbar {
  width: 10px;
}

.main-content::-webkit-scrollbar-track {
  background: #f5f0ff;
  border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
  background: linear-gradient(#d9a0f5, #a080d9);
  border-radius: 10px;
  border: 2px solid #f5f0ff;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#c080f0, #9060d0);
}


/* Header Styling */
h1 {
  font-family: 'Barrio', cursive;
  font-size: 2.5em;
  color: #c00000;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
  margin-bottom: 1em;
}

h1::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 10%;
  width: 80%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0));
  border-radius: 50%;
  pointer-events: none;
}

h2 {
  font-size: 1.5em;
  color: navy;
  font-family: 'Barrio', sans-serif;
}
p {
  font-size: 1.1em;
  line-height: 1.7;
}

/* 💖 Footer */
.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 20px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
  background-image: url('pinkdotted.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-sizing: border-box;
}

.footer-box {
  width: 30%;
  padding: 10px;
  background-color: transparent;
  text-align: center;
  font-size: 0.9em;
}

/* ✨ Sparkles animation */
.sparkle {
  position: absolute;
  top: -50px;
  font-size: 1.2em;
  animation-name: sparkleFall;
  animation-timing-function: ease-in;
  pointer-events: none;
  z-index: 5;
  opacity: 0.8;
}

.sparkle1 { left: 10%; animation-duration: 4s; animation-delay: 0s; animation-iteration-count: infinite; }
.sparkle2 { left: 40%; animation-duration: 5s; animation-delay: 2s; animation-iteration-count: infinite; }
.sparkle3 { left: 70%; animation-duration: 6s; animation-delay: 1s; animation-iteration-count: infinite; }
.sparkle4 { left: 25%; animation-duration: 7s; animation-delay: 3s; animation-iteration-count: infinite; }
.sparkle5 { left: 85%; animation-duration: 5.5s; animation-delay: 1.5s; animation-iteration-count: infinite; }

@keyframes sparkleFall {
  0% {
    transform: translateY(-50px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(150px) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translateY(300px) scale(0.8);
    opacity: 0;
  }
}

/* Responsive layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .nav-sidebar {
    width: 100%;
    text-align: center;
    background-size: contain;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-box {
    width: 90%;
    margin-bottom: 10px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    border: 2px solid #000;
    padding: 10px;
    margin: 5px;
    background-color: transparent;
    flex: 1;
  }
}

.footer-box .borda-offset {
    max-width: 150px;
    margin: 10px auto;
}


/* Two Color Image Border */
.borda-offset {
    border: 3px solid #333;
    border-radius: 5px;
    box-shadow:
        5px 5px 0px 0px #E6E6FA,
        10px 10px 0px 0px #fcbda2;
    padding: 5px;
    margin: 20px auto 40px auto;
    transition: all 0.3s ease;
    display: block; /* Makes margin auto center it */
    max-width: 300px; /* Adjust size as you want */
}

.borda-offset:hover {
    box-shadow:
        -5px -5px 0px 0px #9CAF88,
        -10px -10px 0px 0px #E3C08D;
}

/* Floating Up Emojis */
.sparkle-up {
  position: absolute;
  bottom: -30px;
  font-size: 1.2em;
  animation-name: sparkleRise;
  animation-timing-function: ease-out;
  pointer-events: none;
  z-index: 5;
  opacity: 0.8;
}

.sparkle-up1 { left: 20%; animation-duration: 5s; animation-delay: 0s; animation-iteration-count: infinite; }
.sparkle-up2 { right: 50%; animation-duration: 6s; animation-delay: 1.5s; animation-iteration-count: infinite; }
.sparkle-up3 { left: 75%; animation-duration: 7s; animation-delay: 0.5s; animation-iteration-count: infinite; }
.sparkle-up4 { right: 20%; animation-duration: 5s; animation-delay: 0s; animation-iteration-count: infinite; }
.sparkle-up5 { left: 50%; animation-duration: 6s; animation-delay: 1.5s; animation-iteration-count: infinite; }
.sparkle-up6 { right: 75%; animation-duration: 7s; animation-delay: 0.5s; animation-iteration-count: infinite; }

/* Cursor Magic */
@keyframes sparkleRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-150px) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translateY(-300px) scale(0.8);
    opacity: 0;
  }
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: yellow;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleFade 700ms ease-out forwards;
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.5);
  }
}
.nav-sidebar {
  width: 200px;
  flex-shrink: 0;
}

.tarot-image {
  flex-shrink: 0;
  max-width: 250px;
}

.tarot-image img {
  width: 100%;
  height: auto;
  border: 3px solid #ffb6c1;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 182, 193, 0.5);
}

@media (max-width: 768px) {
  .tarot-image {
    max-width: 100%;
    margin-top: 1rem;
  }

  .tarot-image img {
    max-width: 100%;
  }
}

.main-content {
  flex: 1;
  min-width: 300px;
}

/* Starry Overlay */

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('stars-overlay.png');
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* =========================
   TAROT FLIP CARDS
   ========================= */
.tarot-card {
  background: transparent;
  width: 120px;             /* adjust card size */
  height: 200px;
  perspective: 1000px;
  margin: 10px;
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

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

.tarot-card-front,
.tarot-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 3px solid #333;
  border-radius: 5px;
  box-shadow:
    3px 3px 0px 0px #E6E6FA,
    6px 6px 0px 0px #fcbda2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.tarot-card-front img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.tarot-card-back {
  background: #7851A9;
  color: #333;
  transform: rotateY(180deg);
  font-weight: bold;
  font-size: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   FOOTER CONTAINER
   ========================= */
.footer-container {
  display: flex;
  justify-content: center; /* center all cards */
  flex-wrap: wrap;         /* responsive */
  padding: 20px 0;
  gap: 15px;
}

.footer-box {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
}
