@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins',sans-serif;
}

body{
  background: #eaeaea; 
}

.header{
    font-weight:600;
    font-size: medium;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 5%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.singn_in_btn {
    border-radius: 50px;
    height: 52px;
    border: none;
    font-weight:600;
    font-size: medium;
    padding: 0 20px;
    background-color: #EE626B;
    color: #fff;
    text-transform: uppercase;
    transition: .3s;
}

.singn_in_btn:hover {
    background-color: #9E4147;
    cursor: pointer;
}

.header .logo-image{
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    margin: 0 20px;
    transition: .3s;

    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay :calc(.2s * var(--i)) ;
}
.navbar a:hover,
.navbar a.active
{
    color: #1743e3;
}

.soial-media{
    display: flex;
    justify-content: space-between;
    width: 150px;
    height: 40px;
   
}
.soial-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    z-index: 20;
    height: 40px;
    background: transparent;
    border: 2px solid transparent;
    text-decoration: none;
    transform: rotate(45deg);
    transition: .5s;
    opacity: 1;
    animation: slideSci .5s ease forwards;
    animation-delay :calc(.2s * var(--i)) ;
}
.soial-media a:hover{
border-color: #eaeaea;
}
.soial-media a i{
    font-size: 24px;
    color: #eaeaea;
    transform: rotate(-45deg);

}

.home{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 8% 0;
    overflow: hidden;
}
.home-content{
    max-width: 630px;
}
.home-content h1{
    font-size: 50px;
    line-height: 1.2;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 1s;

}
.home-content h3{
    font-size: 40px;
    color: #1743e3;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1.3s;
}
.home-content p{
    font-size: 16px;
    margin: 15px 0 30px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.6s;
}
.btn{
    display: inline-block;
    padding: 10px 28px;
    background: #1743e3;
    border: 2px solid #1743e3;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0 ,0 ,0,.1);
    font-size: 16px;
    color: #eaeaea;
    letter-spacing: 1px;
    text-decoration:none ;
    font-weight: 600;
    transition: .5s;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    
}
.btn:hover{
    background: transparent;
    color: #1743e3;
}

.home-img{
    position: relative;
    right: -7%;
    width: 330px;
    height: 330px;
    transform: rotate(45deg);
}
.home-img .rhombus{
    position: absolute;
    width: 100%;
    height: 100%;
    background: #eaeaea;
    border: 30px solid #1743e3;
    margin:  20px;
    box-shadow: -15px 15px 15px rgba(0 ,0 ,0,.2);
    opacity: 0;
    animation: zoomOut 1s ease forwards;
    animation-delay: 1.6s;
}
.home-img .rhombus img{
    position: absolute;
    top: 50px;
    left: -230px;
    max-width: 530px;
    transform: rotate(-45deg);
    filter: drop-shadow(5px 5px 15px black);
    opacity: 0;
    animation: ship 1s ease forwards;
    animation-delay: 2s;
}
.home .rhombus2{
    position: absolute;
    top: -20%;
    right: -25%;
    width: 650px;
    height: 650px;
    background: #1743e3;
    transform: rotate(45deg);
    z-index: -1;
    opacity: 0;
    animation: rhombus2 1s ease forwards;
}


/* CATEGORY GAMES  */

.category{
  width: 100%;
  margin-bottom:300px;
}
   
.categoryContainer {
    margin-top: 0px;
    display: flex;
}

.category .categoryHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay :calc(.2s * var(--i)) ;
}

.category .card .cardImg{
    position: relative;
    top: -20px;
    width: 230;
    height: 220;
    border-radius: 20px;
    
}
.category .card img {
    border-radius: 20px;
    width: 230;
    height: 240;
}
.card a{
  text-decoration: none;
}


.category .card .genre {
    background-color: #0171F9;
    text-align: center;
    color: #fff;
    padding: 15px 0 30px 0;
    font-size: x-large;
    font-weight: 500;
    border-radius: 20px 20px 0 0;
}

.category .categoryCards {
    padding: 10;
    margin: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 1s;
    

}
.card {
    transition: .3s;
}

.category .card:hover {
    transform: scale(1.05);
}

main{
  position: relative;
}

/* END CATEGORY GAMES  */


/*keyframes animation*/
@keyframes slideRight{
    0%{
        transform: translateX(-100%);
        opacity: 0;

    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}



@keyframes slideLeft{
    0%{
        transform: translateX(100%);
        opacity: 0;

    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop{
    0%{
        transform: translateY(100%);
        opacity: 0;

    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom{
    0%{
        transform: translateY(-100%);
        opacity: 0;

    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideSci{
    0%{
        transform: translateX(100%) rotate(45deg);
        opacity: 0;

    }
    100%{
        transform: translateX(0) rotate(45deg);
        opacity: 1;
    }
}

@keyframes zoomOut{
    0%{
        transform: scale(1.1);
        opacity: 0;

    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes ship{
    0%{
        transform: translateX(300px,-300px) scale(0) 
        rotate(-45deg);
        opacity: 0;

    }
    100%{
        transform: translateX(0,0) scale(1) 
        rotate(-45deg);     
           opacity: 1;
    }
}


@keyframes rhombus2{
    0%{
       right: -40%;
        opacity: 0;

    }
    100%{
        right: -25%;
        opacity: 1;
    }
}


/* Base styles remain the same */

@media (max-width: 1200px) {
    .home-content h1 {
      font-size: 40px;
    }
  
    .home-content h3 {
      font-size: 30px;
    }
  
    .home-content p {
      font-size: 14px;
    }
  
    .home-img {
      width: 300px;
      height: 300px;
    }
  
    .home-img .rhombus img {
      top: 40px;
      left: -200px;
      max-width: 480px;
    }
  }
  
  @media (max-width: 992px) {
    .header {
      flex-direction: column;
      padding: 20px 5%;
    }
  
    .navbar a {
      margin: 0 10px;
      font-size: 16px;
    }
  
    .home-content {
      text-align: center;
      margin: 0 auto;
    }
  
    .home-content h1 {
      font-size: 35px;
    }
  
    .home-content h3 {
      font-size: 28px;
    }
  
    .home-content p {
      font-size: 14px;
    }
  
    .home-img {
      width: 280px;
      height: 280px;
    }
  }
  
  @media (max-width: 768px) {
    .header {
      padding: 10px 5%;
    }
  
    .navbar {
      display: none; /* Optionally hide navbar for smaller screens */
    }
  
    .home-content h1 {
      font-size: 30px;
    }
  
    .home-content h3 {
      font-size: 24px;
    }
  
    .home-content p {
      font-size: 12px;
    }
  
    .btn {
      padding: 8px 20px;
      font-size: 14px;
    }
  
    .home-img {
      width: 250px;
      height: 250px;
    }
  }
  
  @media (max-width: 576px) {
    .home {
      flex-direction: column;
      padding: 20px;
    }
  
    .home-content h1 {
      font-size: 24px;
    }
  
    .home-content h3 {
      font-size: 20px;
    }
  
    .home-content p {
      font-size: 12px;
    }
  
    .btn {
      font-size: 12px;
      padding: 6px 16px;
    }
  
    .home-img {
      width: 200px;
      height: 200px;
    }
  
    .category .categoryCards {
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
  
    .category .card img {
      width: 180px;
      height: 180px;
    }
  }
  
  @media (max-width: 400px) {
    .singn_in_btn {
      font-size: 14px;
      padding: 0 16px;
      height: 40px;
    }
  
    .home-content h1 {
      font-size: 20px;
    }
  
    .home-content h3 {
      font-size: 18px;
    }
  
    .home-content p {
      font-size: 10px;
    }
  
    .btn {
      font-size: 10px;
      padding: 4px 12px;
    }
  
    .home-img {
      width: 150px;
      height: 150px;
    }
  }
  