/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Responsive container */
#cards-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;          /* allow wrapping on smaller screens */
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
}

/* Responsive cards */
#cards-container .card {
  flex: 1 1 200px;          /* flexible: minimum 200px */
  max-width: 220px;         /* don’t let them grow too big */
  min-width: 150px;         /* don’t shrink too much */
  height: 200px;
  
  background-size: 600% 600%;
  animation: gradientBG 3s ease infinite;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;   /* stack title + link */
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  padding: 15px;
  text-align: center;
}
    @keyframes gradientBG { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }

    /* Card 1 */
.c1 {
   background: linear-gradient(150deg, 
    #8B0000 0%,   /* deep red */
    #A00000 10%, 
    #B22222 20%, 
    #CD3333 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );

}

/* Card 2 */
.c2 {
 background: linear-gradient(120deg, 
    #FF8C00 0%,   /* dark orange */
    #FFA500 10%, 
    #FFB732 20%, 
    #FFC933 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

/* Card 3 */
.c3 {

  background: linear-gradient(90deg, 
    #006400 0%,   /* dark green */
    #008000 10%, 
    #00A000 20%, 
    #00CC66 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

/* Card 4 */
.c4 {
 background: linear-gradient(60deg, 
    #00008B 0%,   /* dark blue */
    #0000CD 10%, 
    #3333FF 20%, 
    #6666FF 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

/* Card 5 */
.c5 {
 background: linear-gradient(30deg, 
    #4B0082 0%,   /* indigo purple */
    #800080 10%, 
    #9933CC 20%, 
    #CC66FF 30%,

    /* shared final 4 colors */
   #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

.zoom-wrapper h2 { 
    padding-top: 50px;
        font-size:3rem;
        font-family: 'Lobster', cursive; 
        margin-bottom:20px; 
        background: linear-gradient(135deg,
      #ffb700,
      #DAA520 ,
      #FFD700,
      #4b3621, 
      #000000,   
      #1a1a1a ,
      #4b3621 ,
      #FFD700,
      #DAA520 ,
      #ffb700
);

        background-clip: text;         
        -webkit-background-clip:text; 
        -webkit-text-fill-color:transparent;
         animation:gradientText 5s linear infinite; 
         background-size:300%; }

    @keyframes gradientText {0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}

/* Gradient link inside cards */
    .card { 
        width:160px; 
        height:160px; 
        border-radius:20px; 
        display:flex; 
        align-items:center; 
        justify-content:center; 
        font-weight:bold; 
        font-size:1.15rem; 
        color:white; 
        text-shadow:1px 1px 5px rgba(0,0,0,.35);
          background-size:400% 400%; animation:cardGradient 10s ease infinite;
           box-shadow:0 15px 40px rgba(0,0,0,.25);
            transform-style:preserve-3d;
             perspective:1000px; }
.card a {
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(45deg,  
  #ffffff   /* neon cyan */
     /* rich purple */
     /* bright yellow */);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s linear infinite;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

