body {
    background-color: lightgray;
}

/* -------Beginning of header stylings--------- */
#header {
    padding: .5rem;
    text-align: center;
}

button {
    background-color: #4CAF50;
    color: white;
    font-size: 1rem;
    padding: .5rem;
    margin: .2rem;
    border: none;
    cursor: pointer;
    width: 10%;
}

#message {
    font-weight: 500;
}

#matches {
    font-size: 1.7rem;
}

.alert {
    font-weight: 500;
    /* font-size: 1.2rem; */
    text-decoration: underline;
}

/* .button-active {
    background-color: #4CAF50;
    color: white;
    font-size: 1rem;
    padding: .5rem;
    margin: .2rem;
    border: none;
    cursor: pointer;
    width: 10%;
    border-radius: 5px;
} */

/* ----------------End of header stylings------------ */

/* ----------------Beginning of Grid stylings------------ */
#grid {
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 0.5rem;
    grid-auto-rows: minmax(100px, auto);
    margin: auto;
    justify-content: center;
}

.card {
    width: 200px;
    height: 200px;
    margin: auto;
}

.front {
    z-index: 2;
    backface-visibility: hidden;
}

.back {
    z-index: 1;
    backface-visibility: hidden;
}

.card:active {
    transform: scale(1.1);
    /* transform: rotateY(180deg); */
}

/* ----------------End of Grid stylings------------ */

/*--------------class for when player wins----- */
/* .winner {
    font-size: 3rem;
    width: 50%;
    margin: auto;
    background-color: lightgrey;
} */

/* ---------------Begin modal styles------------- */
#modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

#modalContent {
    background-color: rgb(255, 255, 255, 0.9);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#modalMessage {
    font-size: 2.5rem;
    font-weight: 500;
}

#modalButton {
    background-color: #4CAF50;
    color: white;
    font-size: 1rem;
    padding: .5rem;
    margin: .2rem;
    border: none;
    cursor: pointer;
    width: 10%;
}

/* -----------End Modal styles------------ */

/* -----------Begin highscore styles------------ */
/* 
/* #highscore {
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
} */
#highscoreList {
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

#highscoreList li {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: .1rem;
    margin-top: none;
}

/* -----------End highscore styles------------ */

/* -------------Media query 600------------ */
@media screen and (max-width: 600px) {
    #title {
        padding: 0;
    }

    #message {
        font-weight: 300;
        font-size: .85rem;
    }

    #matches {
        font-size: 1rem;
    }

    /* .winner {
        font-size: 1.5rem;
        width: 75%;
    } */

    button {
        width: 25%;
    }

    #grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .card {
        width: 100px;
        height: 100px;
    }

    #modalMessage {
        font-size: 1.5rem;
    }

    #modalButton {
        width: 25%;
    }
}

/* -------------End 600 media query----------- */