* {
    box-sizing: border-box;
}

body {
    background-image: url('./images/lib-aaronglassman.jpeg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    font-family: 'Alata', sans-serif;
    position: relative;
    height: 100vh;
}

#game-container {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.welcome-page, .round-page, .game-over {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    position: absolute;
    align-items: center;
    width: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 15px;
    border-radius: 15px;
    flex: 1;
}

#htp {
    text-align: center;
    font-size: 22px;
    color: goldenrod;
}

.directions, .message {
    font-size: 20px;
}

h1 {
    margin: 5px 5px 10px 5px;
    font-size: 35px;
}

ul {
    padding: 0;
    margin: 0 40px 20px 40px;
}

li {
    background-color: rgba(7, 171, 155, 0.8);
    border: 4px solid rgba(191, 163, 19, 0.8);
    border-radius: 4px;
    width: 200px;
    list-style-type: none;
    margin: 5px 0 5px 0;
    padding: 5px 10px 5px 10px;
    text-align: center;
    transition: transform .2s linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answerMenu {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.category {
    color: white;
    background-color: rgba(6, 134, 161, 0.9);
    font-size: 27px;
    margin-bottom: 10px;
    width: 220px;
    display: inline-block;
    align-items: center;
    justify-content: center;
}

span {
    font-size: 15px;
}

button {
    background-color: #02945B;
    color: white;
    font-family: 'Alata', sans-serif;
    height: 50px;
    font-size: 24px;
    border: 4px solid #07AB9A;
    border-radius: 15px;
    padding: 0 8px 3px 8px;
    cursor: pointer;
    transition: transform .2s linear;
}

button:hover {
transform: scale(1.1);
color: #02945B;
background-color: white;
}

#photo-cred {
    display: flex;
    position: absolute;
    bottom: 0;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    height: 20px;
    flex: 1;
    padding: 2px 2px;
    border-radius: 5px;
}

.copyright {
    font-size: 9px;
    margin-bottom: 0;
}

figcaption {
    margin-bottom: 10px;
}

audio {
    border: 7px solid rgba(191, 163, 19, 0.8);
    border-radius: 27px;
}

h2 {
    font-size: 35px;
    margin: 5px 0 20px 0;
}

h3 {
    display: inline-block;
    width: 180px;
    background-color: rgba(71, 6, 161, 0.8);
    left: 50%;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px 8px 10px;
    margin: 0;
    font-size: 30px;
}

a {
    color: white;
    margin-left: 2px;
}

#final-score {
    color: rgb(250, 181, 0);
}

h2, h3, .category:hover{
    cursor: default;
}

figcaption {
    font-size: 22px;
}

/* MEDIA QUERIES */

/* iPad */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    body {
    background-attachment: fixed;
    background-size: 1536px 1024px;
    background-position: center;
    }
    
    #game-container {
        position: relative;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .answerMenu {
        display: flex;
        flex-flow: column wrap;
        align-items: center;
        margin: 8px 0;
    }

    .category {
        font-size: 34px;
        width: 265px;
        margin: 14px auto 7px;
    }

    .welcome-page, .round-page, .game-over {
        width: 95%;
        padding: 9px 9px 11px 9px;
    }

    figure {
        display: inline;
        margin: 0 auto;
    }
    figcaption {
        font-size: 27px;
    }

    h1 {
        font-size: 51px;
    }

    h3 {
        display: inline-flex;
        margin: 10px 0 15px 0;
        font-size: 35px;
        padding: 8px;
    }

    h2 {
        font-size: 55px;
    }

    #photo-cred {
        width: 142px;
        text-align: end;
        font-size: 10px;
        margin-bottom: 0;
        right: 0;
        background-color: transparent;
    }

    audio {
        margin: 0 auto;
        height: 68px;
        border-radius: 36px;
        width: 88%;
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        margin: 0 auto;
    }

    .options {
        width: 260px;
        margin: 5px 5px;
        height: 80px;
    }

    .answerText {
        font-size: 26px;
        line-height: 1.3;
    }

    #roundCounter {
        font-size: 40px;
        margin: 8px 8px;
    }

    #final-score {
        font-size: 46px;
        width: 260px;
        margin: 0 auto;
    }

    .message {
        font-size: 40px;
        margin: 16px auto;
    }

    .directions {
        margin: 18px 0;
        font-size: 29px;
    }

    #htp {
        font-size: 31px;
    }

    button {
        height: 68px;
        width: 200px;
        font-size: 32px;
        margin-bottom: 10px;
    }
}

/* Pixel 2 */
@media only screen and (min-width: 411px) and (max-width: 767px) {
    body {
    background-attachment: fixed;
    background-size: 1096px 731px;
    background-position: center;
    height: 100vh; /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);
    }
    
    #game-container {
        position: relative;
        height: 100vh; /* Fallback for browsers that do not support Custom Properties */
        height: calc(var(--vh, 1vh) * 100);
        display: flex;
        flex-direction: column;
    }
    
    .answerMenu {
        display: flex;
        flex-flow: column wrap;
        align-items: center;
        margin: 8px 0;
    }

    .category {
        font-size: 24px;
    }

    .welcome-page, .round-page, .game-over {
        width: 95%;
        padding: 6px 9px;
    }

    figure {
        display: inline;
        margin: 0 auto;
    }
    figcaption {
        font-size: 20px;
    }

    h1 {
        font-size: 30px;
    }

    h3 {
        display: block;
        margin: 6px auto;
        font-size: 22px;
        padding: 2px 0;
    }

    #photo-cred {
        width: 127px;
        text-align: end;
        font-size: 9px;
        margin-bottom: 0;
        background-color: transparent;
    }

    audio {
        margin: 0 auto;
        height: 68px;
        border-radius: 36px;
        width: 100%;
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        margin: 0 auto;
    }

    .options {
        width: 170px;
        margin: 5px 5px;
        height: 56px;
    }

    .answerText {
        font-size: 18px;
        line-height: 1;
    }

    #roundCounter {
        font-size: 23px;
        margin: 8px 8px;
    }

    #lowerCategory {
        margin-top: 8px;
    }

    #final-score {
        font-size: 30px;
    }

    .directions {
        margin: 18px 0;
    }

    button {
        height: 51px;
        width: 180px;
        font-size: 24px;
        margin-bottom: 5px;
    }
}

/* iPhone 6, 7, 8 */
/* @media only screen and (width: 375px) and (height: 667px) {
    body {
    background-attachment: fixed;
    background-size: 1000px 667px;
    background-position: center;
    }
    
    #game-container {
        position: relative;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .answerMenu {
        display: flex;
        flex-flow: column wrap;
        align-items: center;
        margin: 8px 0;
    }

    .category {
        font-size: 22px;
        height: 45px;
    }

    .welcome-page, .round-page, .game-over {
        width: 95%;
        padding: 10px 15px;
    }

    figure {
        display: contents;
    }

    figcaption {
        font-size: 21px;
    }

    h1 {
        font-size: 30px;
    }

    h3 {
        display: block;
        margin: 8px auto;
        font-size: 20px;
    }

    #photo-cred {
        width: 127px;
        text-align: end;
        font-size: 9px;
        margin-bottom: 0;
        background-color: transparent;
    }

    audio {
        margin: 0 auto;
        height: 58px;
        border-radius: 36px;
        width: 100%;
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        margin: 0 auto;
    }

    .options {
        width: 150px;
        margin: 5px 5px;
        height: 49px;
    }

    .answerText {
        font-size: 16px;
        line-height: 1;
    }

    #roundCounter {
        font-size: 23px;
        margin: 0px;
    }

    #lowerCategory {
        margin-top: 8px;
    }

    #final-score {
        font-size: 30px;
    }

    .directions {
        margin: 14px 0;
        font-size: 18px;
    }

    button {
        height: 44px;
        width: 180px;
        font-size: 24px;
    }
} */

/* iPhone 6, 7, 8, X */
@media only screen and (min-width: 375px) and (max-width: 767px) {
    body {
    background-attachment: fixed;
    background-size: 1230px 820px;
    background-position: center;
    }
    
    #game-container {
        position: relative;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .answerMenu {
        display: flex;
        flex-flow: column wrap;
        align-items: center;
        margin: 8px 0;
    }

    .category {
        font-size: 24px;
    }

    .welcome-page, .round-page, .game-over {
        width: 95%;
        padding: 9px 9px 11px 9px;
    }

    figure {
        display: inline;
        margin: 0 auto;
    }
    figcaption {
        font-size: 20px;
    }

    h1 {
        font-size: 30px;
    }

    h3 {
        display: block;
        margin: 10px auto;
        font-size: 22px;
        padding: 2px 0;
    }

    #photo-cred {
        width: 127px;
        text-align: end;
        font-size: 9px;
        margin-bottom: 0;
        background-color: transparent;
    }

    audio {
        margin: 0 auto;
        height: 68px;
        border-radius: 36px;
        width: 100%;
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        margin: 0 auto;
    }

    .options {
        width: 150px;
        margin: 5px 5px;
        height: 59px;
    }

    .answerText {
        font-size: 17px;
        line-height: 1;
    }

    #roundCounter {
        font-size: 23px;
        margin: 8px 8px;
    }

    #lowerCategory {
        margin-top: 8px;
    }

    #final-score {
        font-size: 30px;
    }

    .directions {
        margin: 18px 0;
    }

    button {
        height: 60px;
        width: 180px;
        font-size: 24px;
        margin-bottom: 5px;
    }
}