@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap');

@font-face {
    font-family: 'Minecraft';
    src: url('assets/fonts/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #0d0e0e;
    margin: 0;
    padding-top: 150px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background: #111312;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    transition: transform 0.3s ease;
}

.logo {
    font-size: 2em;
    color: #E6FDFF;
    user-select: none;

}

#gameboy {
    width: 70px;
    height: 70px;
}

.navigation a {
    position: relative;
    font-size: 1.1em;
    color: #E6FDFF;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #E6FDFF;
    border-radius: 5px;
    transform: scaleX(0);
    transition: transform .5s;
}

.navigation a:hover::after {
    transform: scaleX(1);
}


/* HAMBURGER START */


.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}


.hamburger {
    position: fixed;
    top: 30px;
    left: 30px;
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}


.hamburger span {
    width: 28px;
    height: 3px;
    background: #E6FDFF;
    border-radius: 3px;
}


header.hide {
    transform: translateY(-100%);
}


.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 190px;
    height: 100vh;
    background: #222627;
    padding: 120px 20px 20px;
    transition: left 0.3s ease;
    z-index: 98;
}

.side-menu.active {
    left: 0;
}

.side-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.side-nav a,
.side-nav button {
    width: 100%;
    padding: 14px 25px;
    text-align: left;
    font-size: 1.1em;
    color: #E6FDFF;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.side-nav a:hover,
.side-nav button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.side-nav button {
    color: #E6FDFF;
    font-size: 1.2em;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}




/* HAMBURGER END */



/*      LOGIN START   */

.navigation .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #E6FDFF;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #E6FDFF;
    font-weight: 500;
    margin-left: 40px;
    transition: .5s;
}

.navigation .btnLogin-popup:hover {
    background-color: #E6FDFF;
    color: #293132;
}

.wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform .2s ease, height .2s ease;
    z-index: 1000;
    
}

.wrapper.active-popup {
    transform: translate(-50%, -50%) scale(1);
}

.wrapper.active {
    height: 520px;
}

.wrapper .form-box {
    width: 100%;
    padding: 40px;
}

.wrapper .form-box.login {
   transition: transform .18s ease;
   transform: translateX(0);
}

.wrapper.active .form-box.login {
    transition: none;
    transform: translateX(-400px);
}

.wrapper .form-box.register {
    position: absolute;
    transition: none ;
    transform: translateX(400px);
}

.wrapper.active .form-box.register {
    transition: transform .18s ease;
    transform: translateX(0);
 }

.wrapper .icon-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: #E6FDFF;
    font-size: 2em;
    color: #384142;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
}

.form-box h2 {
    font-size: 2em;
    color: #E6FDFF;
    text-align: center;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #E6FDFF;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #E6FDFF;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #E6FDFF;
    font-weight: 600;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: #E6FDFF;
    line-height: 57px;
}


.remember-forgot {
    font-size: .9em;
    color: #E6FDFF;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label input {
    accent-color: #E6FDFF;
    margin-right: 3px;
}

.remember-forgot a {
    color: #E6FDFF;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    height: 45px;
    background: #970fbd6b;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer; 
    font-size: 1em;
    color: #E6FDFF;
    font-weight: 500;
}
button:hover {
    transition: background 0.3s;
    background: #a50ecfce;
}

.login-register {
    font-size: .9em;
    color: #E6FDFF;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}

.login-register p a {
    color: #E6FDFF;
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover {
    text-decoration: underline;
}


/*      LOGIN END    */


.Welcome {
    font-family: 'Minecraft', sans-serif;
    letter-spacing: 3px;
    font-size: 4em;
    text-align: center;
    color: #E6FDFF;
    margin-top: 80px;
}    

.descreption{
    color: #E6FDFF;
    text-shadow: #aebebf;
    font-size: 1em;
    text-align: center;
    font-weight: 500;
    
}


/*      CAROUSEL START    */

  .carousel {
    width: 900px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    margin: 0 auto;
  }
  
  .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
  }
  
  .carousel-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 22px;
  }

  

/*      CAROUSEL END    */


/* featured start */

.featured-games-section {
    max-width: 1000px;
    margin: 140px auto;
    padding: 0 25px;
}

.featured-games-title {
    font-size: 2.5em;
    color: #E6FDFF;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 500;
    letter-spacing: 0.5px;
}


.featured-games-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}


.featured-game {
    display: flex;
    gap: 30px;
    align-items: center;
}


.featured-game img {
    width: 220px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}


.featured-game-info h3 {
    font-size: 1.6em;
    color: #E6FDFF;
    margin-bottom: 12px;
}

.featured-game-info p {
    color: #aebebf;
    font-size: 1.05em;
    line-height: 1.7;
    max-width: 600px;
}


@media (max-width: 768px) {
    .featured-game {
        flex-direction: column;
        text-align: center;
    }

    .featured-game-info p {
        max-width: 100%;
    }
}

.featured-game:not(:last-child) {
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.featured-game img {
    transition: transform 0.3s ease;
}

.featured-game:hover img {
    transform: scale(1.03);
}


/* featured end */

.featured {
    margin-top: 50px;
    text-align: center;
    font-size: 1.25em;
    color: #aebebf;
    font-weight: 400;
    opacity: 0.9;
}

.featured a {
    color: #E6FDFF;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}


.featured a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgba(230, 253, 255, 0.6);
    transition: background 0.2s ease;
}

.featured a:hover::after {
    background: #E6FDFF;
}





/* About */

.about-section {
    max-width: 900px;
    margin: 140px auto;
    padding: 0 25px;
}

.about-title {
    text-align: center;
    font-size: 3em;
    color: #E6FDFF;
    margin-bottom: 60px;
    letter-spacing: 0.5px;
}

.about-content {
    color: #aebebf;
    font-size: 1.05em;
    line-height: 1.8;
}

.about-lead {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 50px;
}

.about-divider {
    border: none;
    height: 1px;
    background: #384142;
    margin: 60px 0;
}

.about-block {
    margin-bottom: 50px;
    
}

.about-block h3 {
    color: #E6FDFF;
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 500;
}

.about-block p {
    max-width: 720px;
}


.gif {
    display: flex;
    justify-content: center;
    margin: 80px 0 140px;
}

.gif img {
    width: 140px;
    height: auto;
    image-rendering: pixelated;
    opacity: 0.9;
}


footer {
    text-align: center;
    padding: 15px;
    color: #aebebf;
    margin-top: 20px;
  }
/* Responsive header for smaller screens */
@media (max-width: 900px) {
    header {
        padding: 20px 40px;
    }

    #gameboy {
        left: -60px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 15px 20px;
    }

    #gameboy {
        display: none;
    }

    .navigation {
        display: none;
    }

    .carousel {
        width: 100%;
        height: 260px;
    }

    .Welcome {
        font-size: 2.4em;
    }

    .about-title {
        font-size: 2em;
    }

    .featured-games-title {
        font-size: 1.8em;
    }
}