* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    text-decoration: none;
}

body {
    font-size: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Bebas Neue", sans-serif;
}

p {
    font-family: "Gotham", sans-serif;
}


.header {
    background-color: #eee;
    height: 10rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4);
}

.logo {
    width: 10rem;
}

.logo img {
    justify-content: flex-start;
}


.products {
    display: flex;
    align-items: center;
}

.products a {
    color: #333;
    text-decoration: none;
    font-size: 2rem;
    margin-left: 1rem;
    /* Adjust the margin value as needed */
}


.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 3rem;
    /* Adjust the value to control the roundness of the buttons */
    background-color: #ffffff;
    /* Set the background color */
    color: #fffbfb;
    /* Set the text color */
    font-size: 1.6rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 0.1rem solid black;


}

.button:nth-of-type(1) {
    justify-content: flex-start;
}

/* Style the hover effect */
.button:hover {
    background-color: #000000;
    color: #fff;
    background-position: -100% 0;
    /* Set a different background color on hover */
}

.checkout {
    padding: 4rem;
    width: 70%;
    height: 80%;
    background: var(--game-background-color);
    margin: 0 auto;
}

.checkout__list {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-rows: repeat(4, 20rem);
}

.checkout__listItem {
    list-style: none;
    grid-row: span 1;
    border-bottom: 0.3rem solid rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.checkout__image {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}


@media screen and (max-width: 62.5rem) {

    .header {
        flex-direction: column;
        padding: 1.5rem;
        height: auto;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .products {
        justify-content: center;
        margin: 1rem 0;
        text-align: center;
        flex-direction: column;
    }

    .products a {
        margin: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;

        height: 4rem;
        text-decoration: none;
        color: black;
        background-color: #f9f9f9;
        border-radius: 0.5rem;
    }

    .products a:hover {
        background-color: #e0e0e0;
    }

    .button {
        flex: 1;
        height: 100%;
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    body {
        padding: 2rem;
    }

    .searchBar {
        margin: 0;

    }

    .searchBar__input {
        flex-shrink: 0;
        width: 30rem;

    }

    .searchBar__glass {
        left: 20rem;
        left: calc(20rem - 6rem);
    }

    main {
        width: 100%;

    }

    .games {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 65rem 65rem 65rem;
        gap: 1rem;
    }

    .games__game--third {
        grid-column: span 1;
    }

    .modal {
        width: calc(100% - 2rem);
    }

    .checkout {
        width: 100%;

    }

    .checkout__list {
        grid-template-rows: repeat(4, 40rem);
    }

    .checkout__listItem {
        flex-direction: column;
        gap: 1rem;
        justify-content: space-between;
        padding-bottom: 2rem;
    }

    .checkout__image {
        height: 40%;


    }

    .shoppingCart {
        top: 20%;
    }


}