/* base styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #011633;
    color: white;
}

* * {
    background-color: inherit;
    color: inherit;
}

ul {
    list-style-type: none;
}

a {
    color: white;
    text-decoration: none;
}

h1,
h2 {
    text-align: center;
}

/* header styles */
header {
    display: flex;
    position: fixed;
    z-index: 10;
    flex-direction: column;
    justify-content: center;
    background-color: #012D52;
    border-bottom: solid #E5ECFD 5px;
    width: 100%;
}

#logo {
    padding: 2%;
    margin-top: 2%;
    font-size: 180%;
}

/* styles common to landing and game page */
main {
    /* pushes content below header */
    margin-top: 20%;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    /*align-self: center;*/
}

.content-header {
    align-self: center;
    padding-top: 4px;
}

.content {
    padding: 9px 17px 9px 17px;
    margin-bottom: 4px;
}

/* landing page styles */
#subtitle {
    padding: 8px 40px;
    font-size: 115%;
    margin-top: -7px;
    align-self: center;
}

#index-content-div {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.index-container {
    border-color: #E5ECFD;
    border: solid 3px;
    border-radius: 15px;
    width: 80%;
    padding: 4px;
    margin: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #012D52;
}

#play-game {
    margin-top: .75em;
    font-size: 1.5em;
    border-color: #E5ECFD;
    border: solid 4px;
    padding: 7px 17px;
    border-radius: 15px;
    background-color: #012D52;
}

/* game page styles */
#game-content-div {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
}

.game-container {
    border-color: #E5ECFD;
    border: solid 3px;
    border-radius: 15px;
    width: 100%;
    padding: 5px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #012D52;
    min-height: 75px;
    justify-content: space-evenly;
    text-align: center;
}

.game-gap {
    gap: 5px;
}

.button {
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    border-color: #E5ECFD;
    border: solid 2px;
    margin-bottom: 3px;
}

/* video, feedback, and answer area styles */
#video-feedback-answer-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
}

#song-title {
    margin-bottom: .25em;
}

#song-video {
    border-radius: 15px;
}

#feedback-div {
    display: none;
    padding: 5px;
    align-items: center;
}

#feedback {
    margin: 5px;
    /*should I remove this width rule */
}

#input-label {
    margin: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#user-answer {
    width: 65%;
    border-radius: 5px;
    background-color: white;
    font-weight: bold;
    color: black;
    height: 2em;
}

#submit-button {
    background-color: #011633;
}

/* score area styles */
#records-div {
    display: flex;
    gap: 1%;
    width: 100%;
    justify-content: center;
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 7.5em;
    position: relative;
    width: 50%;
    max-width: 200px;
}

.scores {
    position: absolute;
    top: .5em;
}

.submissions {
    margin-top: 1.2em;
}

/* arrow styles */
#arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow-button {
    font-size: 2em;
    width: 3em;
    border-color: #E5ECFD;
    border: solid 3px;
    border-radius: 15px;
    background-color: #012D52;
}

#back {
    font-size: 1.5em;
    padding: 7px;
}

/* media queries */
@media screen and (min-width: 360px) {
    #game-content-div {
        margin-top: -.5em;
    }

    .game-gap {
        gap: 8px;
    }

    #song-video {
        width: 345px;
        height: 262px;
    }

    .arrow-button {
        font-size: 2.5em;
    }
}

@media screen and (min-width: 757px) {
    header {
        width: 50%;
        margin-top: 1em;
        align-self: center;
        border-color: #E5ECFD;
        border: solid 6px;
        border-radius: 15px;
        padding: 5px;
        position: static;
    }

    #logo {
        font-size: 200%;
    }

    main {
        margin-top: 0em;
    }

    /* landing page styles */
    #subtitle-div {
        margin-top: 2em;
        font-size: 1.2em;
        padding: 5px;
        width: 50%;
    }

    #index-content-div {
        flex-direction: row;
        align-items: flex-start;
        gap: 0px;
        justify-content: space-around;
        width: 85%;
    }

    .index-container {
        padding: 10px;
        min-height: 16em;
        width: 40%;
    }

    #play-game {
        font-size: 2em;
        border-color: #E5ECFD;
        border: 4px solid;
        padding: 10px 23px;
        border-radius: 15px;
        margin-top: 1em;
    }

    #play-game:hover {
        padding: 15px 28px;
    }

    /* game page styles */
    #game-content-div {
        margin-top: 2em;
        justify-content: space-evenly;
        /* this addresses a bug, this div was being constricted */
        width: 95vw;
        flex-direction: row;
        align-items: flex-start;
    }

    .game-container {
        padding: 10px;
    }

    /* video, feedback, answer area styles */
    #song-video {
        width: 420px;
        height: 315px;
    }

    #answer-area {
        gap: 3px;
    }

    /* score area styles */
    .panel {
        display: flex;
        flex-direction: column;
        position: relative;
        top: 4em;
        width: 20%;
    }

    .scores {
        top: .5em;
    }

    /* arrow styles */
    #arrows {
        gap: 2em;
    }

    .arrow-button {
        width: 3em;
    }
}

@media screen and (min-width: 900px) {
    main {
        margin-top: -1em;
    }

    /* landing page styles */
    .index-container {
        min-height: 17em;
    }

    /* game page styles */
    #song-video {
        width: 475px;
        height: 300px;
    }

    .arrow-button {
        width: 4em;
        font-size: 3em;
    }
}

@media screen and (min-width: 1024px) {
    main {
        margin-top: 0em;
    }

    #index-content-div {
        width: 60%;
    }

    .index-container {
        min-height: 17em;
        width: 45%;
    }

    #song-video {
        width: 550px;
    }

    .arrow-button {
        width: 4em;
        font-size: 3em;
    }
}

@media screen and (min-height: 1024px) {
    main {
        margin-top: 1em;
    }

    .index-container {
        min-height: 20em;
    }

    #song-video {
        height: 450px;
    }

    .game-container {
        min-height: 110px;
    }

    .panel {
        min-height: 200px;
    }
}