* {
    box-sizing: border-box;
}

body {
    background-color:rgba(205, 250, 198, .8);
    font-family: 'Arcade', 'Odibee Sans', 'Tomorrow', sans-serif;
    height: 100vh;
    position: relative;
    margin: 0;
}

#simon {
    margin: 50px 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    grid-gap: 10px;
    background-color: black;
    border: 20px solid black;
    border-radius: 100%;
    height: 400px;
    width: 400px;
}

h1 {
    font-size: 5vw;
    margin-bottom: 0;
}

h2 {
    text-align: center;
    border: 2px solid white;
    border-radius: 100%;
    margin: 7px 0;
    padding: 15%;
    font-size: 40px;
}

.red {
    grid-row: 5 / span 4;
    grid-column: 1 / span 4;
    background-color: red;
    opacity: 1;
    transition: opacity .25s linear;
    border-bottom-left-radius: 100%;
    border-top-right-radius: 100%;
}
.green {
    grid-row: 5 / span 4;
    grid-column: 5 / span 4;
    background-color: green;
    opacity: 1;
    transition: opacity .25s linear;
    border-bottom-right-radius: 100%;
    border-top-left-radius: 100%;
}

.yellow {
    grid-row: 1 / span 4;
    grid-column: 1 / span 4;
    background-color: yellow;
    opacity: 1;
    transition: opacity .25s linear;
    border-top-left-radius: 100%;
    border-bottom-right-radius: 100%;
}

.blue {
    grid-row: 1 / span 4;
    grid-column: 5 / span 4;
    background-color: blue;
    opacity: 1;
    transition: opacity .25s linear;
    border-top-right-radius: 100%;
    border-bottom-left-radius: 100%;
}

.highlight {
    transition: opacity .5s linear;
    opacity: 0;
}

#new-game{
    border: 2px solid white;
    border-radius: 10%;
    padding: 5%;
    cursor: pointer;
    text-align: center;
}

#new-game:hover {
    border: 2px solid greenyellow;
    color: greenyellow;
}

#loser {
    height: 40px;
    font-size: 4vw;
}

.middle {
    color: white;
    grid-row: 4 / span 2;
    grid-column: 4 / span 2;
    z-index: 1;
}

.flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rotate {
    transform: rotateY(360deg) rotateZ(360deg);
    transition: 2s cubic-bezier(0.175, 0.885, 0.32, 3);
}

.rote-lose {
    transform: rotateZ(180deg);
    transition: 3s cubic-bezier(0.39,-0.76, 0.32, 2)
}

.score {
    height: 15px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 4vw;
    /* height: auto; */
}

#question {
    position: absolute;
    top: 2%;
    left: 2%;
    text-align: center;
    cursor: pointer;
    font-size: 4vw;
}

.button:hover {
    text-shadow: gray 2px 2px;
}

.modal-container {
    /* box-sizing: content-box; */
    z-index: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: rgb(126, 118, 118, .7);
    transform: scale(0);
    transition: 1s cubic-bezier(0.175, 0.885, 0.32, 2);
}

#modal {
    position: relative;
    width: 30%;
    padding-top: 30%;
    background-color:rgba(205, 250, 198, 1);
    border: 5px solid black;
    padding: 2%;
    text-align: justify;
    font-size: 1.5vw;
}

#close {
    position: absolute;
    right: 5%;
    top: 5%;
    cursor: pointer;
}

.show-mod {
    z-index: 2;
    opacity: 1;
    transform: scale(1);
}

footer {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: 2%;
    height: auto;
}

@media only screen and (max-width: 500px) {
    #simon {
        height: 275px;
        width: 275px;
    }
    h2 {
        font-size: 25px;
    }
    #new-game {
        font-size: 15px;
        padding: 2%
    }
    
    #modal {
        width: 50%;
        padding-top: 0;
        font-size: 3vw;
    }
    #question {
        top: 2%;
        left: 5%;
    }
    footer {
        font-size: 10px;
    }
}