@import url("main.css");

/*
    NEW-RELEASES.CSS

    Description: Styles for games section inside
    index.html. It is based in changing the background
    image, containers and its texts.
*/

.games,
.games__content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.games {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-bottom: 50px;
    padding-top: 50px;
}

.games__content {
    flex-direction: row;
    width: 100%;
    gap: 10px;
}

.games__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 400px));
    place-content: center;
    gap: 20px;
    width: 100%;
    transition: transform 0.3s ease;
}

.games__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 600px;
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: var(--container-bg-color-2);
}

.games__item:hover {
    transform: scale(1.05, 1.05);
}

.games__list.slide-out,
.games__list.slide-in {
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.games__list.show {
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.games__images-container {
    position: relative;
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.games__image {
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: fill;
    border-radius: 20px;
    color: var(--color-white);
    mask-image: linear-gradient(#000 80%, transparent);
}

.games__qr-img {
    position: absolute;
    z-index: 1;
    width: 27%;
    height: 20%;
    transform: translate(0%, 45%) rotate(-15deg);
}

.games__data-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    height: 10%;
}

/*
    Section: Texts

    Description: Styles for texts in new-realeses.css
*/

.games__title {
    text-align: center;
    letter-spacing: -5px;
    color: var(--color-white);
}

.games__title span {
    font-weight: var(--second-font-weight);
    color: var(--color-yellow);
}

.games__data-container > h3 {
    font-weight: bold;
}

.games__data-container > h3,
.games__data-container > p {
    text-align: center;
    word-wrap: break-word;
    color: var(--color-white);
    font-size: 1em;
}

/* 
    Section: Form
    
    Description: Styles for the search form for the
    games
*/

.games-search__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.games-search__input-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px 0;
}

.games-search__input {
    width: 40% !important;
    border-radius: 10px !important;
}

.games-search__select {
    width: 25% !important;
    border-radius: 10px !important;
}

.games-search__select > option {
    font-weight: 500;
}

.games-search__select > option:hover {
    background-color: #000;
}

.games-search__button {
    height: 56px;
    border-radius: 10px !important;
    background-color: var(--color-orange);
}

/*
    Section: Responsive

    Description: Media queries that change styles from 
    games.css
*/

@media (max-width: 1320px) {
    .games-search__input-container {
        flex-direction: column;
    }

    .games-search__input,
    .games-search__select {
        width: 100% !important;
    }

    .games-search__button {
        height: 48px;
    }
}

@media (max-width: 500px) {
    .games__qr-img {
        width: 30%;
    }

    .games__data-container > h3,
    .games__data-container > p {
        font-size: 0.9em;
    }
}

@media (max-width: 460px) {
    .games__qr-img {
        width: 32.5%;
    }

    .games__data-container > h3,
    .games__data-container > p {
        font-size: 0.8em;
    }
}

@media (max-width: 420px) {
    .games__qr-img {
        width: 35%;
    }
}

@media (max-width: 380px) {
    .games__qr-img {
        width: 40%;
    }

    .games__data-container > h3,
    .games__data-container > p {
        font-size: 0.7em;
    }
}

@media (max-width: 360px) {
    .games__qr-img {
        width: 45%;
    }
}

@media (max-width: 320px) {
    .games__title {
        letter-spacing: -1px;
    }

    .games__qr-img {
        width: 47.5%;
    }
}

@media (max-width: 300px) {
    .games__qr-img {
        width: 50%;
    }
}
