@charset "UTF-8";

html {
    width: 100vw;
    height: 100vh;
    overflow: scroll;
}

#sing-multi h4 br {
    display: none;
}

#flip-warning {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
}

#footer + #flip-warning {
    top: 0;
    left: 0;
    z-index: 10000;
    position: absolute;
}

#flip-warning > div:first-child {
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background-color: rgb(23 58 92);
}

#flip-warning > div:last-child {
    justify-content: center;
}

#flip-warning .q-ma-portrait {
    width: 70%;
}

#flip-warning .flip-phone {
    width: 60%;
    margin: 2em auto 1em;
}

#board {
    position: relative;
}

#shimmer {
    top: initial;
    bottom: 1.1vw;
    width: calc(16.4vw*5 + (1.1vw) * 4);
    height: calc(100% - 2.5em - (1.1vw) * 2);
    transform: none;
}

h4 span.yellow {
    color: var(--michigan-yellow);
}

#cat-popup {
    width: 96vw;
    height: 85vh;
    overflow: hidden;
    position: relative;
}

#cat-point-slider {
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.5s linear;
}

.cat-slide {
    width: 100%;
    height: 100%;
    padding: 0 1.5%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

#cat-popup .msg {
    margin-top: 0;
}

.cat-buttons,
.point-buttons {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
}

.cat-buttons .medium.button {
    width: 29%;
    margin: 1%;
    min-height: 3em;
    padding: .25em .125em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-buttons .large.button {
    width: 29%;
    margin: 1%;
    padding: 0.5em 1.25em;
}

.cat-buttons .button.complete,
.point-buttons .button.complete {
    border-color: var(--michigan-light-grey);
    color: var(--michigan-dark-grey) !important;
    background-color: var(--michigan-light-grey) !important;
}

.small.button {
    float: left;
    font-size: 1.5vw;
    position: relative;
    margin-top: 1em;
    padding: 0.75em 1em;
    display: inline-block;
    padding-left: 1.5em;
}

#selected-cat {
    margin-top: 0.25em;
    margin-bottom: 0;
}

#back-cat {
    margin-top: 0.5em;
    align-self: flex-start;
}

.small.button::before {
    content: '';
    top: 50%;
    left: 0.125em;
    width: 1em;
    height: 1em;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url('../images/left-triangle.png');
    transform: translateY(-50%);
}

.q-content {
    top: 4vh;
    height: 93%;
}

.q-category,
.q-content.q-image .q-category {
    margin-bottom: .125em;
}

#q-question {
    min-height: 4.25em;
}

#blurb-disclaimer {
    height: 34%;
    overflow-y: auto;
}

.q-content.q-image #question-image {
    bottom: 0.5em;
}

.q-image #answers {
    bottom: 2vh;
}

.q-image #answers .answer {
    height: 5.5vw;
}

.q-image #answers .answer:last-child {
    margin-bottom: 0
}

.results-page #Q_Ma {
    width: 40%;
}

.results-page .ftr.right {
    justify-content: space-between;
}

.results-page .ftr.right > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.results-page .ftr.right > div .button {
    margin: 0;
    padding: 0.5em 1em;
    padding-right: 2em;
    text-transform: none;
}
.results-page .ftr.right > div .button::before {
    width: 1.5em;
    height: 1.5em;
    left: auto;
    right: 0.125em;
    background-image: url('../images/new-window.png');
}

.results-page .ftr.right > div p {
    margin: 0 0.5em;
    text-align: left;
}

@media screen and (orientation: portrait) {

    .q-ma,
    #h-logo {
        display: none;
    }
    
    #h-logo-portrait {
        width: 74%;
        max-width: 500px;
        height: auto;
        display: block;
        margin-bottom: 5em;
    }
    
    .q-ma-portrait {
        width: auto;
        max-height: 60%;
    }
    
    #board {
        min-width: 900px;
        max-width: 900px;
    }
    
    #shimmer {
        width: 900px;
    }
    
    .col {
        width: 19.5%;
    }

    #board .col:nth-child(2n) {
        width: 16.75%;
    }

    .col h2 {
        width: 100%;
        margin: 0;
        margin-top: 0.5em;
    }
    
    #board .col:nth-child(2n) .category {
        margin-top: 0.5em;
        margin-bottom: 9px;
    }

    .block {
        width: 88.6%;
        height: 14.9%;
        aspect-ratio: 23 / 10;
    }

    #board .col:nth-child(2n) .block {
        width: 100%;
        aspect-ratio: 23 / 10.35;
    }
    
    h2 {
        font-size: 16px;
    }
    
    .block {
        width: 155px;
        height: 68px;
        margin: 10px;
        font-size: 34px;
    }
    
    #board .col:nth-child(2n) .block {
        margin-bottom: 10px;
    }
    
    #mm {
        min-width: 80%;
    }

    .results-page #Q_Ma {
        display: none;
    }
    
    .results-page .ftr.right > div {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .results-page .ftr.right > div p {
        width: 100%;
        order: 3;
    }
    
}

@media screen and (max-width: 800px) and (orientation: portrait) {
 
    .large.button {
        font-size: 29px;
    }
    
    .medium.button {
        font-size: 26px;
    }
    
    .plus-minus .large.button {
        width: 80%;
        border-radius: 5px;
        text-align: center;
        margin-top: 1em;
    }
    
    h4 {
        font-size: 33px;
    }
    
    #lets-play h4 {
        font-size: 42px;
    }
    
    #lets-play h6 {
        font-size: 24px;
    }
    
    #pages #num-of-players p b,
    #pages #player-names p {
        font-size: 20px;
    }
    
    #pages #num-of-players h4 + p {
        width: 86%;
        font-size: 17px;
    }
    
    #player-names #name-inputs {
        width: 80vw;
        margin: 20px;
    }
    
    #pages #num-of-players .plus-minus {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #pages #num-of-players .plus-minus .num {
        width: 40px;
        height: 40px;
        border-radius: 5px;
    }
    
    #pages #num-of-players .plus-minus .num.plus {
        margin-right: 15px;
    }
    
    #pages #num-of-players .plus-minus .input {
        width: 60px;
        height: 60px;
        margin: 0 10px;
        font-size: 50px;
        line-height: 60px;
    }
    
    #player-names .multi-title,
    #player-names .single-title {
        width: 90%;
    }
    
    #player-names #name-inputs {
        flex-wrap: wrap;
    }
    
    #name-inputs .name-input {
        width: 40%;
        min-width: 120px;
        margin: 0 15px 10px;
        
    }
    #name-inputs .name-input input {
        font-size: 32px;
        margin-bottom: 5px;
        border-radius: 5px;
        border-width: 4px;
    }
    #name-inputs .name-input label {
        font-size: 26px;    
    }

    #player-names #keyboard-container .button {
        position: static;
        display: inline-block;
    }
    
    #player-names #keyboard-container {
        text-align: center;
    }
    
    #keyboard-container #initial-error {
        top: calc(100% + 10px);
        left: 50%;
        width: 100%;
        font-size: 16px;
        transform: translateX(-50%);
    }

    #flip-warning h4 {
        font-size: 35px;
    }
    
    #play-demo.choices .button,
    #player-choice.choices .button {
        font-size: 22.5px;
    }
    
    #lets-play {
        padding: 0 25px;
    }
    
    #lets-play.page .m-stkd {
        width: 90px;
    }
    
    #lets-play .copyright p {
        font-size: 12px;
        margin-left: 1em;
    }
    #lets-play .copyright p br {
        display: none;
    }
    
    .ftr #back {
        width: 10vw;
        height: 10vw;
        margin-left: 2vw;
        margin-right: 6vw;
        background-position: left;
    }
    .ftr .m-stkd {
        width: 18vw;
        height: 15vw;
    }
    
}

@media screen and (max-width: 800px) and (orientation: portrait) {
 
    .popup-page {
        padding: 0 30px;
    }
    
    .button {
        border-radius: 10px;
    }
    
    #player-ready .p-num {
        font-size: 35px;
    }
    
    #player-ready h1 {
        font-size: 45px;
    }
    
    #player-ready .sml-msg {
        font-size: 25px;
    }
    
    #popup .msg {
        font-size: 30px;
    }
    #popup .sml-msg {
        font-size: 20px;
    }
    #popup .t-yellow {
        display: block;
    }
    
    .popup-buttons {
        align-items: center;
        flex-direction: column;
    }
    
    .popup-buttons .quit.button,
    .popup-buttons .resume.button {
        width: 60vw;
        max-width: 350px;
    }
    
    .cat-buttons, .point-buttons {
        grid-gap: 2em;
        flex-direction: column;
    }
    
    .cat-buttons .medium.button,
    .point-buttons .large.button {
        width: 80%;
    }
    
    .small.button {
        font-size: 20px;
        margin-top: 3em;
    }
    
    .results-page .small.button {
        
    }

    #close {
        width: 50px;
        height: 50px;
    }
    
    .m-stkd {
        width: 60px;
    }
    
    #player-scores {
        width: 58vw;
        font-size: 20px;
        flex-wrap: wrap;
    }
    #player-scores br {
        display: none;
    }
    
    .player-score {
        width: 46%;
        margin: .5em 0;
        text-align: left;
    }
    
    .q-category {
        font-size: 32px;
        align-items: flex-start;
        flex-direction: column-reverse;
    }
    
    .q-points {
        width: 100px;
        height: 35px;
        margin-left: 0;
        margin-bottom: 10px;
        font-size: 32px;
    }
    
    #q-question {
        margin: 20px 0;
        font-size: 16px;
    }
    
    #q-question .q-result, 
    #q-question .q-earned {
        font-size: 24px;
    }
    
    .q-content #answers,
    #question-overlay .q-image #answers {
        min-height: initial;
        align-content: center;
        flex-direction: column;
    }
    
    #question-overlay .q-image #answers {
        width: 90%;
    }
    
    #question-overlay .q-content.result-content #answers {
        display: block;
    }
 
    #answers .answer,
    #question-overlay .q-image #answers .answer {
        width: 90%;
        height: 50px;
        margin: 0.25em 0;
        font-size: 20px;
        border-radius: 10px;
        margin-bottom: .75em;
    }
    
    #answers .answer:first-child {
        margin-top: 1em;
    }
    
    .q-content #next-question {
        margin-left: 0;
        display: block;
    }
    
    .q-content #next-question .large.button {
        width: 200px;
        height: 46px;
        font-size: 25px;
        line-height: 46px;
        border-radius: 10px;
    }
    
    .q-content #blurb-disclaimer .b {
        font-size: 12px;
    }
    
    .q-content #blurb-disclaimer .d {
        font-size: 10px;
    }
    
    #question-overlay .q-content.q-image {
        width: 80vw;
    }
    
    #question-overlay .q-content.q-image #q-question {
        width: 100%;
    }
    
    #question-overlay .q-content.q-image #question-image {
        width: 90%;
        height: 25%;
        position: static;
    }
    
    #question-overlay .q-image #answers {
        position: static;
    }
    
}

@media screen and (max-width: 800px) and (orientation: portrait) {
 
    .results-page .page {
        padding-top: 0;
    }
    
    .results-page .q-ma-portrait {
        width: 64%;
    }
    
    .results-page h3 {
        margin-top: 1em;
        font-size: 30px;
        text-align: center;
    }
    
    .results-page h3 .t-yellow {
        display: block;
    }
    
    .results-page #multi-scores {
        margin: 1em auto;
        min-height: 10vh;
    }
    
    .results-page #multi-scores .score-row {
        font-size: 20px;
    }
    .results-page #multi-scores .place {
        width: 105px;
        font-size: 20px;
    }
    .results-page #multi-scores .initial {
        width: 55px;
    }
    .results-page #multi-scores .score {
        width: 120px;
    }
    .results-page #multi-scores .rank {
        width: 80px;
    }
    
    .results-page .buttons {
        width: 80%;
        flex-direction: column;
    }
    .results-page .buttons .button {
        width: 100%;
        margin: 0.35em 0;
    }
    
    .results-page .ftr.right p {
        font-size: 14px;
    }
    .results-page .ftr.right p .t-yellow {
        display: block;
    }
    
    .results-page #high-scores {
        padding: 30px 0px 0;
        align-items: center;
    }
    
    .results-page #high-scores h3 {
        margin: 0.5em auto 0;
    }
    
    .results-page #player-choice .col {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .results-page #play-demo.choices, 
    .results-page #player-choice.choices {
        max-width: 80%;
        margin-bottom: 0;
    }
    
    .results-page .scores {
        height: 6em;
        margin: 0 auto;
        font-size: 20px;
    }
    
    .results-page #play-demo.choices .button, 
    .results-page #player-choice.choices .button {
        margin: 0.25em 0;
    }
    
}

@media screen and (max-width: 550px) and (orientation: portrait) {
 
    #sing-multi h4 br {
        display: block;
    }
    
    #play-demo.choices,
    #player-choice.choices {
        width: 80%;
        max-width: 280px;
        flex-direction: column;
    }
    
    #play-demo.choices .button,
    #player-choice.choices .button {
        width: 100%;
        margin-top: 1em;
        margin-bottom: 1em;
    }
    
}

@media screen and (orientation: landscape) {
 
    #popup {
        height: 85vh;
    }
    
    .q-ma-portrait,
    #h-logo-portrait,
    #flip-warning {
        display: none;
    }
    
    #num-of-players p br.mobile-br {
        display: none;
    }
    
    #player-scores br {
        display: none;
    }
    
    #player-ready .p-num {
        font-size: 35px;
        margin-top: 0;
    }
    #player-ready .sml-msg {
        font-size: 25px;
    }
    
    #player-names #keyboard-container {
        text-align: center;
    }
    
    #player-names #keyboard-container .button {
        position: static;
        display: inline-block;
    }
    
    #player-choice .scores {
        height: 5.9em;
    }
    
    #high-scores h3 {
        line-height: 1;
        margin-top: 0.25em;
    }
    
    #high-scores #player-choice {
        margin-top: 0.25em;
    }
    
    #pages .page {
        padding-top: 10px;
    }
    
    #close.active::before {
        border-width: 0.24em;
    }
    
}