/*Set font, remove default padding and margins, set global color to white*/
* {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    /*margin: 0;*/
    padding: 0;
    color: white;
}

/*Set Background gradient and color*/
body {
    background-color: #2a2a72;
    background: -webkit-gradient(linear, left top, left bottom, from(#2a2a72), to(#009ffd)) fixed;
    background-repeat: no-repeat;
    z-index: 0;
}

/*Set position and style for difficulty menu*/
#difficulty-menu {
    position: absolute;
    top: 40px;
    z-index: 1;
    opacity: 1;
    background-image: linear-gradient(0deg, #5f077a, #4f3a9c);
    border: 2px solid rgb(255, 255, 255);
    border-radius: 15px;
    box-shadow: 0 0 20px #000000;
    width: 100%;
}

/*Popup menu size and position*/
#endgame-popup {
    background-image: linear-gradient(0deg, #5f077a, #4f3a9c);
    width: 90%;
    height: 200px;
    z-index: 10;
    position: absolute;
    top: 60px;
    margin-left: 5%;
    text-align: center;
    border-radius: 10px;
    border: 2px solid black;
    visibility: hidden;
}

/*Pop up styles for the play again button*/
#play-again {
    position: absolute;
    height: 40px;
    width: 90%;
    left: 5%;
    bottom: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 5px;
    border: none;
    background-color: white;
    cursor: pointer;
    color: rgb(18, 89, 170);
    border: 1px solid black;
}

#score-message {
    width: 80%;
    margin-left: 10%;
}

/*Set header size and position, also add underline to header to separate sections*/
header {
    text-align: center;
    width: 100%;
    height: 40px;
    border-bottom: 2px solid white;
}

/*Removes link styling*/
a:link,
a:visited {
    text-decoration: none;
}

/*Set font styles and spacing*/
h1 {
    font-weight: 800;
    margin-top: 3px;
    font-size: 1.8rem;
}

/*Align content to center above difficulty divs*/
#page-heading {
    text-align: center;
    display: flex;
    flex-direction: column;
}

/*Set responsive and max width, center main*/
main {
    width: 50%;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    top: 5px;
}

/*Set font size and spacing*/
h2 {
    font-size: 1.6rem;
    margin: 10px 0 5px 0;
}

h3 {
    font-size: 1.4rem;
    margin: 2px 0 10px 5px;
    color: black;
}

/*Label and input styling*/
form {
    margin: 10px 0 0 0;
}

label {
    font-size: 1.5rem;
    margin: 5px 0 5px 0;
}

input {
    font-size: 1.6rem;
    border-radius: 5px;
    border: none;
    color: black;
    width: 50%;
    margin: 0 0 0 5px;
    text-align: center;
}

/*Set timer size and position*/
#timer {
    font-size: 1.5rem;
    position: relative;
    text-align: center;
    margin-top: 15px;
}

/*Set the border, spacing and color for the timer*/
#timer-border {
    float: right;
    height: 60px;
    width: 60px;
    border: 3px solid rgb(39, 231, 13);
    position: relative;
    bottom: 35px;
    border-radius: 50%;
}

/*Settings for all home page difficulty boxes*/
.difficulty-pair {
    display: flex;
    flex-direction: row;
    margin: 5px 0 10px 0;
}

.difficulty-box {
    width: 100%;
    height: 0;
    padding-bottom: 42%;
    border: 1px solid white;
    border-radius: 10px;
    position: relative;
    margin-left: 1.5%;
}

.difficulty-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transition: .1s;
    z-index: -1;
}

.difficulty-box:hover::before {
    box-shadow: 0 0 20px #ffee10;
}

.difficulty-box:hover {
    color: #ffee10;
    box-shadow: 0 0 4px #ffee10;
}

#difficulty-medium,
#difficulty-extreme {
    margin-right: 1.5%
}

#difficulty-easy {
    background-image: linear-gradient(145deg, #b4ffb4, #13680c);
}

#difficulty-medium {
    background-image: linear-gradient(145deg, #ffcda3, #be6600);
}

#difficulty-hard {
    background-image: linear-gradient(145deg, #ffafa1, #aa0b0b);
}

#difficulty-extreme {
    background-image: linear-gradient(145deg, #868686, #000000);
}

/*Set play button styles*/
#restart {
    height: 30px;
    width: 100%;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 5px;
    border: none;
    background-color: white;
    cursor: pointer;
    color: rgb(18, 89, 170);
    border: 1px solid black;
}

/*Set answer buttons on flag game page*/
.user-choice {
    margin: 8px 0;
    height: 50px;
    width: 100%;
    font-weight: 800;
    font-size: 1.6rem;
    border-radius: 10px;
    cursor: pointer;
    color: rgb(18, 89, 170);
    border: 1px solid black;
}

/*Progress bar styling, added width so it finishes at the correct spot*/
#progress-bar {
    background-color: rgb(255, 255, 255);
    width: 1%;
    height: 15px;
    border-radius: 7.5px;
    margin-bottom: 5px;
}

#flag {
    width: 100%;
    display: flex;
    justify-content: center;
}

/*Set max width and height of image so they don't leak out of a div*/
img {
    max-width: 100%;
    max-height: 400px;
}

.scores {
    text-align: center;
    position: relative;
    font-size: 1.8rem;
    margin-left: 28px;
    width: 100%;
}

@media screen and (max-width: 900px) {
    main {
        width: 90%;
        margin-left: 5%;
    }

    h1 {
        margin-left: 5%;
    }

    h2 {
        font-size: 1.2rem;
    }

    .user-choice {
        height: 30px;
        width: 100%;
        border-radius: 10px;
        text-align: center;

        font-size: 1rem;
        margin-top: 2px;
    }

    .scores {
        font-size: 1.4rem;
        margin-left: 10px;
    }

    #timer {
        font-size: 1rem;
        margin-top: 10px;
    }

    #timer-border {
        height: 40px;
        width: 40px;
        bottom: 25px;
        border-radius: 25px;
    }

    label {
        font-size: 1.2rem;
        margin: 5px 0 5px 0;
    }

    input {
        font-size: 1.3rem;
        width: 70%;
    }

    h3 {
        font-size: 1.1rem;
        margin: 2px 0 4px 4px;
    }

    #progress-bar {
        margin-bottom: 15px;
    }
}