* {
    box-sizing: border-box;
}

:root {
    --primary: #8c031a;
    --second: #01068a;
    --third: #017e8a;
    font-size: 22px;
}

body {
    background-color: #afb2b3;
    color: black;
    margin: 0;
    padding: 0;
    display: grid;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
p {
    margin: 15px;
}
header {
    background: var(--third);
    padding: 30px 30px;
    border-bottom: 5px solid var(--second);
    text-align: center;
}

footer {
    width: 100%;
    background: var(--third);
    color: var(--second);
    font-size: 16px;
    position: -webkit-sticky;
    padding: 10px;
    bottom: 0;
    border-top: 3px solid var(--second);
}

.result {
    height: 100px;
    text-align: center;
    font-size: 75px;
}

.timer {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
    margin: 10px;
    display: inline-block;
}

.button {
    outline: var(--second) solid 2px;
    border: var(--second);
    display: inline-block;
    padding: 5px 5px;
    margin: 15px;
    background: var(--third);
    font-size: 12px;
    position: relative;
    text-align: center;
    cursor: pointer;
    width: 70px;
}

.button:hover {
    background-color: #b7f2f7;
}

.buttons {
    margin-top: 30px;
    margin: 20px;
}

#btn0, #btn1, #btn2, #btn3 {
    background-color: #017e8a;
    width: 350px;
    height: 40px;
    font-size: 16px;
    color:black;
    border: 1px solid var(--second);
    border-radius: 50px;
    font-weight: bold;
    margin: 10px 5px 10px 0px;
    padding: 10px 10px;
}

#btn0:hover, #btn1:hover, #btn2:hover, #btn3:hover {
    cursor: pointer;
    background-color: violet;
}

#btn0:focus, #btn1:focus, #btn2:focus, #btn3:focus {
    outline: 0;
}

.grid {
    width: 600px;
    height: 420px;
    margin: 0 auto;
    background-color: grey;
    padding: 20px 50px 50px 50px;
    border: 3px solid var(--second);
    border-radius: 10px;
}

.grid #question {
        padding: 3px;
        font-size: 20px;
        background: var(--second);
        border-radius: 20px;
        margin: 0;
        color: white;
        text-align: center;
        height: 75px;
        vertical-align: text-top;
}
.page-title {
    color: var(--second);
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 3.0rem;
}

.response {
    font-variant: small-caps;
    font-size: 20px;
    color: var(--primary);
    margin: 10px;
}

.highscores {
    color: var(--second);
    font-size: 18px;
}
/*MEDIA QUERY FOR SMALL DESKTOP SCREENS AND SMALLER */
@media screen and (max-width: 980px) {
    header {
        padding-block-start: 0;
        justify-content: space-evenly;
    }
    footer {
        position: -webkit-sticky;
    }
}

/*MEDIA QUERY FOR TABLETS AND SMALLER */
@media screen and (max-width: 768px) {
    body {
        margin: 0;
    }
    footer {
        position: -webkit-sticky;
    }
    .page-title {
        color: var(--second);
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 30px;
    }

/*MEDIA QUERY FOR MOBILE PHONES AND SMALLER */
@media screen and (max-width: 575px) {
    body {
        margin: 0;
    }

   body p {
       font-size: 20px;
       margin: 5px;
   }

   footer {
       position: -webkit-sticky;
   }
    .page-title {
        color: var(--second);
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 30px;
    }

    .question {
        padding: 0;
        font-size: 16px;
        background: var(--second);
        border-radius: 3px;
        margin: 0;
        color: white;
        text-align: center;
        vertical-align: text-top;
    }
    
    .option {
        width: 250px;
        height: 30px;
        display: inline-block;
        padding: 5px 0 5px 5px;
        vertical-align: middle;
        background: var(--third);
        font-size: 14px;
        margin: 10px 0 10px 10px;
        color: black;
    }
    .button {
        outline: var(--second) solid 2px;
        border: var(--second);
        display: inline-block;
        padding: 5px 5px;
        margin: 10px;
        background: var(--third);
        font-size: 10px;
        position: relative;
        text-align: center;
        cursor: pointer;
        width: 60px;
    }

    .response {
        font-variant: small-caps;
        font-size: 16px;
        color: var(--primary);
    }
            
}
