@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rubik+Mono+One&display=swap');

:root {
    --bg-color: rgb(20, 20, 20);
    --card-color: rgb(23, 23, 23);
   --c1:#85FFBD;
   --c2:#FFFB7D;
    --blue: rgb(61, 90, 254);
    --light-blue: rgb(33, 150, 243);
  }
body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 1000ms;
    font-family: 'Bebas Neue', sans-serif;
    background-color: black;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links, .dropdown-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0; /* Remove margin to prevent cutoff */
    padding: 0; /* Remove padding to prevent cutoff */
}

.nav-links li a, .dropdown-links li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
}

.dropdown-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}



@media (max-width: 768px) {
    .overlay-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px; /* Adjust the height of the overlay */
        background: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0));
        z-index: 999;
    }
    .navbar {
        /* flex-direction: row-reverse; */
        z-index: 1100;
        
    }

    .menu-toggle {
        display: flex;
        margin-right: 40px;
    }

    .nav-links {
        display: none;
    }

    .dropdown-menu.active {
        margin-top: 40px;
        display: block;
    }
    .link {
        color: white;
        display: block; 
        font-family: 'Bebas Neue', sans-serif;
        font-size: 100px;
        padding: clamp(0.25em, 1vmin, 1em) clamp(1em, 4vmin, 4em);
        position: relative;
        text-decoration: none;
      }
      
      .link:hover {
        color: yellow;
      }
      
      .link:hover:before {
        transition: width 600ms ease;
        width: 100%; 
      }
      
      .link:before {
        background: linear-gradient(
          to right,
          transparent,
          var(--c1) var(--light-blue-percent),
          var(--c2) 
        );
        content: "";
        left: 0px;
        top: 0px;
        height: 100%;
        width: 0%;
        position: absolute;
      }
      
    }

@media (min-width: 768px) {
    .overlay-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 200px; /* Adjust the height of the overlay */
        background: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0));
        z-index: 999;
    }
    .nav-links {
        list-style: none;
        display: flex;
        gap: 5px;
       
    }
    
    .nav-links li a{
        text-decoration: none;
        color: white;
        font-size: 1rem;
        margin-right: 70px;
    }

}
  


  
.overlay-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Adjust the height of the overlay */
    background: linear-gradient(to bottom, rgb(0, 0, 0), rgba(0, 0, 0, 0));
    z-index: 999;
}


:root {
    --blue-rgb: 200 0 0;
    --green-rgb: 225 255 255;
    --brown-rgb: 125 161 35;
  }
  
  html, body {
    background-color: black;
  }
  
  body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 1000ms;
  }
/*   
  body:has(.card[data-color="blue"]:hover) {
    background-color: rgb(var(--blue-rgb) / 25%);
  } */
  
  body:has(.card[data-color="blue"]:hover) {
    background-color: rgb(var(--blue-rgb) / 45%);
  }
  
  body:has(.card[data-color="green"]:hover) {
    background-color: rgb(var(--green-rgb) / 45%);
  }
  
  body:has(.card[data-color="brown"]:hover) {
    background-color: rgb(var(--brown-rgb) / 45%);
  }
  
  #cards {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
  }
  
  .card {
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: scale 100ms;
  }
  
  .card .card-front-image {
    position: relative;
    z-index: 2;
  }
  
  .card .card-image {
    width: clamp(300px, 20vw, 500px);
    aspect-ratio: 2 / 3;
    border-radius: clamp(0.5rem, 0.75vw, 2rem);
  }
  
  .card-faders {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1;
    opacity: 0;
    transition: opacity 1500ms;
    pointer-events: none;
  }
  
  .card:hover .card-faders {
    opacity: 1;
  }
  
  .card:active {
    scale: 0.98;
  }
  
  .card-fader {
    position: absolute;
    left: 0px;
    top: 0px;
  }
  
  .card-fader:nth-child(odd) {
    animation: fade-left 3s linear infinite;
  }
  
  .card-fader:nth-child(even) {
    animation: fade-right 3s linear infinite;
  }
  
  .card-fader:is(:nth-child(3), :nth-child(4)) {
    animation-delay: 750ms;
  }
  
  .card-fader:is(:nth-child(5), :nth-child(6)) {
    animation-delay: 1500ms;
  }
  
  .card-fader:is(:nth-child(7), :nth-child(8)) {
    animation-delay: 2250ms;
  }
  
  @media(max-width: 1200px) {
    body {    
      justify-content: flex-start;
      align-items: flex-start;
    }
    
    #cards {
      flex-direction: column; 
      align-items: center;
      gap: 4rem;
      padding: 4rem;
    }
    
    .card .card-image {
      width: 400px;    
    }
  }
  
  @media(max-width: 600px) {
    #cards {
      margin-top: 10%;
      gap: 2rem;
      padding: 2rem;
    }
    
    .card {
      width: 80%;    
    }
    
    .card .card-image {
      width: 100%;    
    }
  }
  
  @keyframes fade-left {
    from {
      scale: 1;
      translate: 0%;
      opacity: 1;
    }
    
    to {
      scale: 0.8;
      translate: -30%;
      opacity: 0;
    }
  }
  
  @keyframes fade-right {
    from {
      scale: 1;
      translate: 0%;
      opacity: 1;
    }
    
    to {
      scale: 0.8;
      translate: 30%;
      opacity: 0;
    }
  }
