/* HTML Tags */

body {
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    margin: 0;
    background: rgb(255, 255, 255);
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(166, 208, 244, 1) 100%);
    min-height: 100vh;
    background-size: cover;
    height: 100vh;
}

main {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 100vh;
    padding: 10px;
    width: 100vw;
}

/* General */

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

.night-mode-transition {
    transition: 1s;
}

/* Container */
.container {
    height: 100vh;
    width: 100vw;
}

/* Game */

.game {
    align-items: center;
    background-color: #282e3a;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
    display: flex;
    flex-wrap: wrap;
    height: 80vw;
    justify-content: space-around;
    margin: auto;
    padding: 1.5%;
    position: relative;
    width: 80vw;
}

.clickable {
    height: 45%;
    opacity: 0.25;
    transition: 0.75s;
    width: 45%;
}

.top-left.round-corner {
    border-radius: 100% 5px 5px;
}

.top-right.round-corner {
    border-radius: 5px 100% 5px 5px;
}

.bottom-left.round-corner {
    border-radius: 5px 5px 5px 100%;
}

.bottom-right.round-corner {
    border-radius: 5px 5px 100% 5px;
}

.control-container {
    height: 100%;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.control {
    background-color: #282e3a;
    border-radius: 100px;
    cursor: pointer;
    height: 25%;
    margin: 10px 0;
    position: relative;
    width: 25%;
}

.control .background {
    background-color: green;
    border-radius: 100px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 80%;
    pointer-events: initial;
    position: absolute;
    width: 80%;
}

.control p {
    pointer-events: none;
    position: relative;
    text-align: center;
    z-index: 1;
}

.hover {
    opacity: 0.5;
}

.active {
    opacity: 1;
}

/* HUD */

.hud {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    width: 50vw;
}

.hud div {
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    margin: 0 1vw;
    padding: 15px;
}

.score, .high-score {
    margin: 0 auto;
    text-align: center;
}

/* Night Mode */

.night-mode-button {
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    font-size: 50px;
    padding: 10px 50px 10px 10px;
    position: absolute;
    right: 0;
    top: 70%;
}

/* Footer */

footer {
    bottom: 0;
    position: absolute;
}

footer p, footer a {
    text-align: center;
    width: 100vw;
}

/* Typography */

.control p, .hud div p {
    font-size: 0.55rem;
}

/* Night-Mode Coloring */

.container.night-mode {
    background-color: #2c3147;
}

.night-mode .night-mode-button {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.night-mode .hud div p,
.night-mode footer p,
.night-mode footer a {
    color: rgba(255, 255, 255, 0.5);
}

/* Day-Mode Coloring */

.container.day-mode {
    background: rgb(255, 255, 255);
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(166, 208, 244, 1) 100%);
    min-height: 100vh;
    background-size: cover;
    height: 100vh;
}

.day-mode .night-mode-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.15);
}

.day-mode .hud div p,
.day-mode footer p,
.day-mode footer a {
    color: rgba(0, 0, 0, 0.5);
}

/* Coloring */

#red {
    background-color: red;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 10%, 15%;
    background-size: 300px, 200px;
}

#yellow {
    background-color: yellow;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 10%, 15%;
    background-size: 300px, 200px;
}

#green {
    background-color: green;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 10%, 15%;
    background-size: 300px, 200px;
}

#blue {
    background-color: blue;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 10%, 15%;
    background-size: 300px, 200px;
}

/* Media Queries */
@media (min-width: 768px) {
    .control p, .hud div p {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    main {
        align-items: center;
        display: flex;
        height: 90vh;
        justify-content: center;
    }

    .game {
        height: 50vw;
        margin: 0 35px 0 0;
        width: 50vw;
    }

    .control p, .hud div p {
        font-size: 0.9rem;
    }

    .hud {
        align-items: center;
        flex-direction: column;
        margin: 0 0 0 35px;
        justify-content: space-around;
        width: 250px;
    }

    .hud div {
        margin: 60px 0;
    }
}

@media (min-width: 1200px) {
    .control p, .hud div p {
        font-size: 1.1rem;
    }
}
