/*----------------------HEADER----------------------*/

header{
    position: -webkit-sticky;
    position: sticky;
}

/*----------------------BANNER----------------------*/

.banner{
    display: flex;
    width: 100%;
    height: 50vh;
    align-items: center;
    justify-content: center;
}

.banner img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    z-index: -1;
}

.banner-text {
    position: absolute;
    align-items: center;
    justify-content: center;
}

.banner-btn {
    position: absolute;
    align-self: flex-end;
    margin-bottom: 5vh;
}

.banner-text h2{
    color: var(--main-color);
    font-size: var(--big-font);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: #0b0b13 4px 4px;
}

.banner-text h3 {
    text-shadow: #0b0b13 2px 2px;
    font-weight: 500;
    text-align: center;   
}

/*----------------------INFO del juego (ABOUT)----------------------*/

.about {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 5rem; /*define el tamaño del espacio entre las filas y las columnas.*/
    align-items: center;
}

.about-img img {
    max-width: 100%;
    width: 580px;
    height: auto;
    border-radius: 35px;
}

.about-text h3 {
    color:  var(--text-color);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 6px; /*espacio entre letras*/
    margin: 0 0 30px;
}

.about-text h2 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: var(--h2-font);
    line-height: 1.2;
    max-width: 470px;
    margin-bottom: 2rem;
}

.about-text p {
    max-width: 570px;
    font-size: var(--p-font);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.8rem;  /*espacio entre renglones*/
    color: var(--2nd-main-color);
}

/*----------------------Galeria----------------------*/

.center {
    text-align: center;
}

.center h3 {
    color: var(--text-color);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 6px; /*Espacio entre letras*/
}

.games-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px); /*Auto-fit va a ajustar los elementos del grid hasta rellenar el contenedor y auto-fill va a ajustar los elementos del grid hasta colocarlos todo en la grilla dejando un hueco libre o vacío en caso de no rellenar todo el contenido. ||||| minmax(350px, auto): de minimo va a tener 350px y de maximo dependera del tamaño de su contenedor*/
    gap: 2rem; /*define el tamaño del espacio entre las filas y las columnas.*/
    align-items: center;
    justify-content: center;
    margin-top: 4.4rem;
}

.row {
    background: #0b0b13;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .40s;
}

.row h3 {
    color: var(--main-color);
    padding: 25px 0;
    font-size: 1.5rem;
    font-weight: 200;
    text-align: center;
}

.row img {
    object-fit: cover;
    width: 100%;
    height: 200px;
    border-radius: 2.5%;
}

.row p {
    font-size: 18px;
    color: var(--2nd-main-color);
    line-height: 30px; /*Espacio entre renglones*/
}

.row:hover {
    transform: translateY(-15px);
    box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
}

.yt {    
    width: 100%;
    height: 200px;
    border-radius: 2.5%;
}

/*----------------------Imagen agrandada de galeria----------------------*/

.popup-img {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.9);
    height: 100%;
    width: 100%;
    z-index: 2000;
    display: none;
}

.popup-img i {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    font-size: 40px;
    z-index: 2000;
    cursor: pointer;

    color: var(--2nd-main-color);
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 2px 2px var(--2nd-main-color);
    transition: ease all 0.35s;
}

.popup-img i:hover {
    color: var(--main-color);
    background-color: var(--2nd-main-color);
    box-shadow: 2px 2px var(--main-color );
    transition: ease all 0.35s;
}

.popup-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #0b0b13;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*----------------------Actualizaciones----------------------*/

.updates-content {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(450px, auto));*/
    gap: 3rem;
    align-items: center;
    margin-top: 4.4rem;
}

.box {
    background-color: #0b0b13;
    padding: 40px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .40s;
}

.box h6 {
    color: #3e4455;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 600;
}
.box h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 13px;
}

.box p {
    font-size: var(--p-font);
    font-weight: 300;
    line-height: 1.8rem; /*espacio entre renglones*/
    color: var(--2nd-main-color);
}

.box p:last-child{
    margin-bottom: 1.2rem;
}

.box h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--2nd-main-color);
}

.box:hover {
    transform: translateY(-15px);
    box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
}


/*----------------------Copyright----------------------*/

.copyright {
    text-align: center;
    padding: 30px;
    color: var(--2nd-main-color);
    background-color: #0b0b13;
    margin-top: 3rem;
    line-height: 1.8rem;
}


/*----------------------RESPONSIVE----------------------*/
@media (max-width: 1570px) {
    .games-content{
        grid-template-columns: repeat(auto-fit, minmax(315px, auto));
    }
    .games-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 1430px){
    header{
        padding: 25px 3%;
    }
    section {
        padding: 50px 3%;
    }

    :root {
        --big-font: 4rem;
        --2nd-big-font: 2rem;
        --h2-font: 1.2rem;
    }

    .banner {
        margin-bottom: 80px;
    }
}

@media (max-width: 1020px) {
    :root {
        --big-font: 3rem;
        --2nd-big-font: 1.5rem;
        --h2-font: 1.2rem;
        --P-font: 0.9rem;
    }
}

@media (max-width: 830px){
    header {
        padding: 18px 3%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background-color: #0b0b13;
        box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
        text-align: left;
        transition: 0.2s ease;
    }

    .navbar a {
        display: block;
        padding: 1rem;
        border-left: 2px solid var(--main-color);
        margin: 1rem;
    }

    .active {
        top: 100%;
    }
}

@media (max-width: 795px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text h2{
        max-width: 100%;
    }
    .about-text p{
        max-width: 100%;
    }
    .about-img {
        order: 1; /*para que la imagen se posicione despues (abajo) del texto*/
    }

    .games-content{
        grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    }
    .games-content h3 {
        font-size: 1.3rem;
    }
}


