@import url('https://fonts.googleapis.com/css2?family=Amatic+SC&family=Indie+Flower&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff93be3;
}

h1 {
    text-align: center;
    font-size: 3.4em;
    padding: 10px;
    font-family: 'amatic SC', sans-serif;
    font-weight: bold;
}

/* Rules Section */
#rules {
    text-align: center;
    padding-bottom: 10px;
    margin: 0 10px;
}

#rules>h2 {
    font-family: 'Indie Flower', sans-serif;
    font-size: 2em;
}

#rules>p {
    font-family: 'Indie Flower', sans-serif;
    font-size: 1.3em;
}

/* Game-board Section*/
#game-board {
    max-width: 800px;
    margin: 0 auto;
}

#start {
    font-family: 'amatic SC';
    margin: 0px 40% 20px;
    width: 20%;
    height: 50px;
    background-color: #27bbcb;
    border-radius: 15px;
    border-width: 0px;
    text-align: center;
    font-size: 2em;
    font-weight: 800;
}

#message {
    font-family: 'Indie Flower', sans-serif;
    text-align: center;
    font-size: 1.3em;
    top: 65px;
    margin-bottom: 0.5em;
    opacity: 0;
}

.text-right {
    text-align: right;
    margin-right: 1em;
    position: relative;
    top: -1.6em;
    margin-bottom: -35px;
}

#scores-div>h3 {
    font-family: 'Indie Flower', sans-serif;
    font-size: 1.6em;
    margin-left: 1em;
}

/* grid for images to sit */

#grid {
    text-align: center;
    height: fit-content;
    margin-bottom: 30px;
}

.img-div {
    background-color: #27bbcb;
    width: 160px;
    height: 160px;
    margin: 5px;
    display: inline-block;
    border-radius: 20px;
}

.green {
    background-color: #0eb60e;
}

.red {
    background-color: #ff0000;
}

/* Images */
img {
    max-width: 80%;
    height: 85%;
    position: relative;
    top: 10px;
    opacity: 0;
}

/* High Score/Best Times Section*/

.high-scores {
    font-family: 'Indie Flower', sans-serif;
    font-size: 2em;
    float: right;
    position: relative;
    right: 75px;
    top: -500px;
}

#high-scores {
    position: relative;
    left: 50px;
}

/* Responsive Design */

@media only screen and (min-width: 1500px) {
    h1 {
        font-size: 7em;
    }

    #rules>h2 {
        font-size: 4em;
    }

    #rules>p {
        font-size: 2.3em;
    }

    #start {
        height: 100px;
        font-size: 5em;
    }

    #scores-div>h3 {
        font-size: 3em;
        margin-bottom: -35px;
    }

    #message {
        font-size: 3em;
    }

    .text-right {
        top: -40px;
    }

    #game-board {
        max-width: 1400px;
    }

    .img-div {
        width: 300px;
        height: 300px;
    }

    .high-scores {
        float: unset;
        position: unset;
        max-width: fit-content;
        margin: 0 auto 20px;
        font-size: 3em;
    }

    #high-scores {
        left: 100px;
    }
}

@media only screen and (max-width: 1400px) {
    .high-scores {
        float: unset;
        position: unset;
        max-width: fit-content;
        margin: -20px auto 20px;
        font-size: 1.7em;
    }
}

@media only screen and (max-width: 768px) {
    .img-div {
        width: 20%;
        height: 100px;
        margin: 3px;
    }

    .high-scores {
        margin-top: -30px;
        font-size: 1.4em;
    }
}

@media only screen and (max-width: 560px) {
    .high-scores {
        font-size: 1.2em;
    }
}

@media only screen and (max-width: 480px) {
    .img-div {
        width: 22%;
        margin: 2px;
    }

    #rules>h2 {
        font-size: 1.7em;
    }

    #rules>p {
        font-size: 1.2em;
    }

    #start {
        font-size: 1.7em;
        height: 40px;
    }

    #scores-div {
        margin-bottom: 10px;
    }

    #scores-div>h3 {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 410px) {
    #message {
        font-size: 1.3em;
    }

    #scores-div>h3 {
        font-size: 1.4em;
    }

    img {
        max-width: 90%;
        height: 80%;
        top: 12px;
    }

    .img-div {
        width: 23%;
        height: 80px;
        margin: 1px;
    }

    #game-board {
        margin: 0 10px;
    }
}