body {
    background-color: #333333;
    font-family: 'Titillium Web', sans-serif;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    margin: 0;
    overflow: hidden;
}

.content {
    height: 100%;
}

.content > * {
    display: flex;
}

.titleBar {
    justify-content: space-between;
    width: 100%;
    height: 10%;
}

.titleBar > div {
    width: 100%;
    margin: 0;
    z-index: 5;
}

#currentNumber {
    color: #43c4be;
    margin: 0;
    font-size: 50px;
}

#time {
    color: white;
    font-size: 50px;
    display:none;
}

#highScore {
    color: #EAAA00;
    font-size: 20px;
    animation: appear 2s;
}

#highScoresDiv {
    display: none;
    text-align: center;
}

.titleBar > div:nth-child(1) {
    float: left;
}

.titleBar > div:nth-child(2) {
    float: center;
    text-align: center;
}

.titleBar > div:nth-child(3) {
    float: right;
    text-align: right;
}

#gameWindow {
    height: 90%;
    padding: 0;
}

#mainMenu {
    position: absolute;
    display: none;
    flex-direction: column;
    top: 50%;
    left: 50%;
    font-size: 50px;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

#gameMenu {
    position: absolute;
    display: none;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

#gameMenu > * {
    animation: reveal-top 1s;
}

#gameModes {
    display: flex;
    width: 300px;
    border: 1px solid black;
    border-radius: 5px;
    flex-direction: row;
    margin: 5px;
}

.gameMode {
    width: 50%;
    text-align: center;
}

.gameModeLabel {
    font-size: 30px;
    left: 50%;
    width: 100%;
    color: white
}

input[type="radio"] {
    appearance: none;
    display: none;
}

input[type="radio"]:checked ~ label{
    color: #EAAA00;
}

#classicGameSizes {
    display: flex;
}

#timedGameSizes {
    display: none;
}

.gameModeHighScore {
    display: none;
    text-align: center;
    animation: fade-in 0.75s;
}

.selectedGameSizeScore {
    display: block;
}

.gameSizes {
    flex-direction: row;
    justify-content: space-around;
    width: 300px;
    border: 1px solid black;
    border-radius: 5px;
    margin: 5px;
}

.gameSize, .highScoreText {
    color: white;
    font-size: 30px;
}

.highScoreText{
    display: inline-block;
}

.selected {
    color: #EAAA00;
}


#startGame {
    width: 300px;
    font-size: 30px;
    border: 0;
    border-radius: 5px;
    font-family: 'Titillium Web';
    background-color: #c44349;
    color: white;
    margin: 5px;
}

#back {
    width: 300px;
    font-size: 30px;
    border: 0;
    border-radius: 5px;
    font-family: 'Titillium Web';
    background-color: #EAAA00;
    color: white;
    margin: 5px;
}

#start {
    width: 300px;
    font-size: 50px;
    height: 100px;
    border: 0;
    border-radius: 5px;
    font-family: 'Titillium Web';
    background-color: #c44349;
    color: white;
    margin: 5px;
    animation: reveal-top 1s;
}

#leaderboard {
    width: 300px;
    font-size: 50px;
    height: 100px;
    border: 0;
    padding: 0px;
    border-radius: 5px;
    font-family: 'Titillium Web';
    background-color: #EAAA00;
    color: white;
    margin: 5px;
    animation: reveal-bottom 1s;
}


.sequenceButton:hover {
    cursor: pointer;
}

button:focus {
    outline: none;
}

.sequenceButton {
    touch-action: manipulation;
    box-sizing: border-box;
    border: 0;
    padding: 10px 10px;
    width: 100px;
    height: 100px;
    border-radius: 30%;
    background-color: #c44349;
    color: white;
    font-family: 'Titillium Web', 'sans-serif';
    font-size: 50px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
    /*Shadow propery taken from https://www.w3schools.com/css/css3_shadows_box.asp*/
}

.sequenceButton > div {
    width: 78px;
    height: 78px;
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 3;
}

#pauseOverlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 5;
}

#pause {
    position: absolute;
    display: none;
    padding: 0;
    margin: 10px;
    bottom: 0;
    right: 0;
    font-size: 30px;
    color: white;
    border: none;
    background-color: rgba(0,0,0,0.0);
    z-index: 5;
}

#logout {
    position: absolute;
    padding: 0;
    margin: 10px;
    bottom: 0;
    right: 10px;
    height: 50px;
    font-family: 'Titillium Web';
    font-size: 30px;
    color: lightgray;
    border: none;
    background-color: rgba(0,0,0,0.0);
    z-index: 5;
}

#pauseMenu {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    font-size: 50px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

#pauseMenu > button {
    width: 200px;
    font-size: 50px;
    height: 100px;
    border: 0;
    margin: 10px;
    border-radius: 5px;
    font-family: 'Titillium Web';
    background-color: #EAAA00;
    color: white;
    padding: 0;

}

#pause:focus {
    outline: none;
}

#countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

/*Shake keyframes taken from https://www.w3schools.com/howto/howto_css_shake_image.asp*/
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes reveal-top {
    0% { 
        margin-bottom: 50px;
        opacity: 0.0; 
    }
    100% { 
        margin-bottom: 5px;
        opacity: 1.0; 
    }
}

@keyframes reveal-bottom {
    0% { 
        margin-top: 50px;
        opacity: 0.0; 
    }
    100% { 
        margin-top: 5px;
        opacity: 1.0; 
    }
}

@keyframes disappear {
    0% { opacity: 1.0; }
    50% { opacity: 1.0; }
    100% { 
        opacity: 0.0; 
        display: none;
    }
}

@keyframes fade-out {
    0% { opacity: 1.0; }
    100% { opacity: 0.0; }
}

@keyframes fade-in {
    0% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@keyframes appear {
    0% { opacity: 0.0; }
    50% { opacity: 0.0; }
    100% {opacity: 1.0; }
}

@media only screen and (min-width:620px) {
    /* For Desktops: */
    #currentNumber, #time {
        font-size: 75px;
    }

    #highScore {
        font-size: 30px;
    }

    .titleBar > div:nth-child(3) {
        float: right;
        text-align: right;
    }

    #logout {
        top: 0;
        bottom: auto;
    }
}