/* General Variables */
:root {
    --card-width: 220px;
    --card-height: 360px;
    --glow-color: #E20612;
    --gradient-bg: linear-gradient(to bottom, white, black);
    --hover-glow: #E20612;
    --light-pattern: black;
    --back-gradient: linear-gradient(135deg, #2a1536, #190921);
  }

  body{
    font-family:  "Zilla Slab", serif;
  }
  
  .main-offer {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-bg);
    color: #fff;
    overflow: scroll;
  }

.front-t{
        position: relative;
    top: 40%;
    font-size: 37px;
    text-align: center;
    color: yellow;
}

.front-second{
        text-align: justify;
    font-size: 18px;
}

.front-first{
        background: white;
    width: 100%;
    padding: 10px;
    text-align: center;
    color: black;
    font-weight: 900;
    font-size: 20px;
    border-radius: 10px;
}
  p{
    text-align: justify;
font-size:16px;
  }
  
  .main-offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
    animation: sparkle 8s infinite;
  }
  
  @keyframes sparkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
  }
  
  /* Tarot Container */
  .tarot-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
  }
  
  /* Card Style */
  .card {
    width: var(--card-width);
    height: var(--card-height);
    border-radius: 10px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    box-shadow: none;
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 1s); 
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  
  .card:hover {
    box-shadow: 0 0 25px var(--hover-glow); 
  }
  
  .card-flipping {
    box-shadow: none !important; 
  }
  
  .card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
  }
  
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
  }
  
  /* Front Design */
  .card-front {
    background: linear-gradient(135deg, #E20612, #E20612);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .card-pattern {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1) 10px,
      rgba(0, 0, 0, 0.1) 10px,
      rgba(0, 0, 0, 0.1) 20px
    );
    mix-blend-mode: screen;
  }
  
  /* "Click to Reveal" Text */
  .click-to-reveal {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 1rem;
    font-weight: 600;
    color:black;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
  
  /* Back Design */
  .card-back {
    background: #0b0315;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px var(--glow-color); 
    position: relative;
  }
  
  .card-back::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03), 
      rgba(255, 255, 255, 0.03) 10px,
      rgba(0, 0, 0, 0.03) 10px, 
      rgba(0, 0, 0, 0.03) 20px
    );
    mix-blend-mode: screen;
    z-index: 1;
  }
  
  /* Content inside the back of the card */
  .card-content {
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
  }
  
  .fortune-text {
    font-size: 0.8rem;
    color: #f8f8f8;
    margin: 0;
    line-height: 1.5;
    text-align: center;
  }
  
  .card-content img {
    max-width: 70%;
    max-height: 70%;
    margin-bottom: -1rem;
  }
  
  /* Magical star effect */
  .particle {
    position: absolute;
    width: 15px; 
    height: 13px;
    background: none;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 2.5l2.9 8.95H24L17 15.65l2.9 8.95L12 18.6l-7.9 5.9L7 15.65.1 11.45h8.95z"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 2.5l2.9 8.95H24L17 15.65l2.9 8.95L12 18.6l-7.9 5.9L7 15.65.1 11.45h8.95z"/></svg>');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
    background-color: #ffd700; 
    pointer-events: none; 
    opacity: 1; 
    box-shadow: 0 0 10px 5px #ffd700, 0 0 20px 10px rgba(255, 215, 0, 0.6); 
    transition: transform 1.5s ease-out, opacity 1.5s ease-out; 
  }
  
  @keyframes twinkle {
    0% {
      transform: scale(0.8);
      opacity: 1;
    }
    100% {
      transform: scale(1.2);
      opacity: 0;
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    :root {
      --card-width: 180px;
      --card-height: 280px;
    
    }
       .tarot-container{

         margin-left:35%;
}
p{
  font-size: 11px;
}
.front-second{
    font-size:13px;
}

.front-first{
    font-size:13px !important;
}
.front-first{
    width: 100%;
    padding: 10px;
    text-align: center;
    color: black;
    font-weight: 900;
    font-size: 20px;
    border-radius: 10px;
    margin-top: -10%;
}
  }
   @media (max-width: 568px) {
   

    .tarot-container{
          display: grid;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    margin-top: 5%;
    margin-left: 0%;
    }

    p{
  font-size: 11px;
}
    .main-offer{
      height: auto;
    }
  }
  
  
  
  