body {
    background-color: rgba(0,0,0,0.15);
}

h1, h2, h3, h4, p, button {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

p {
    font-size: 1.3rem;
    margin: auto;
    color: rgba(0,0,0,0.7)
}

h4 {
    font-weight: bold;
}

button {
    font-size: 1.5rem;
    padding: 0.5rem;
    border: 2px solid black;
    outline: none;
    box-shadow: none;
    background-color: inherit;
    cursor: pointer;
    color: black;
    margin-top: 1rem;
    &:focus {
        background-color: grey;
    }
}

.contrastButton {
    font-size: 1.2rem;
}

#instructions {
    margin-block-end: 2rem;
    line-height: 1.9rem;
}

#scoringSystem {
    position: sticky;
    top: 0;
    background-color: rgba(200,200,200,0.85);
    z-index: 2;
    padding: 1rem;
    box-sizing: border-box;
}

#formContainer, #instructions, #scoringSystem, #lowerSection {
    width: 1000px;
    max-width: calc(100% - 2rem);
    margin: 1rem auto;
}

#lowerSection {
    padding-bottom: 4rem;
}

.row {
    width: 100%;
    display: flex;
    /* flex-wrap: wrap; */
    gap: 3rem;
    margin: 1rem 0;
    border-block: 2px solid rgba(0,0,0,0.5);
    padding: 1rem 0.5rem;
    box-sizing: border-box;
}

.question {
    flex: 2;
}

.options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option {
    flex: 1;
    cursor: pointer;
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
    &:focus {
        outline: 2px solid blue!important;
    }
}

.options.noneSelected > .option {
    outline: 1px solid black;
}

.option.active {
    border: none;
    color: white;
}

.option0.active {
    background-color: rgba(0,0,0,0.5);
}
.option1.active {
    background-color: rgba(87, 80, 225, 0.85);
}
.option2.active {
    background-color: rgba(68, 177, 141, 0.85);
}
.option3.active {
    background-color: rgba(216, 165, 35, 0.85);
}
.option4.active {
    background-color: rgba(213, 68, 57, 0.85);
}

#submitButton {
    display: none;
}

#results {
    width: 100vw;
    height: 100svh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    background: rgba(200,200,200,0.99);
    padding: 2rem;
    box-sizing: border-box;
}

#recommendation {
    font-weight: bold;
    padding-bottom: 2rem;
}

#total {
    padding-bottom: 1rem;
}

.displayScores {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 1.5rem;
}

.displayScores p {
    margin: 0;
}

.displayScores p:nth-of-type(odd) {
    font-weight: bold;
}

.displayScores p:nth-of-type(even) {
    margin-right: 2rem;
}


/* PRINTING */

#print {
    display: none;
}

#printArea {
    background-color: white;
}

#printArea p {
    font-size: 0.8rem;
}

#printArea .option {
    flex: none!important;
    width: 40px!important;
}

#printArea .row {
    border: none!important;
    padding: 0!important;
    margin: 0.5rem 0;
}

#printArea .option.active {
    background-color: rgba(0,0,0,0.5)!important;
}

#printArea button, #printArea .printOutleg {
    display: none!important;
}


/* Media Commands */

@media screen and (max-width: 700px) {
    #formContainer .row {
        flex-direction: column;
        gap: 1rem;
    }
    .option {
        max-width: 60px;
    }
    p {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    #total, #recommendation {
        padding-bottom:0.5rem;
    }
    #perCat {
        gap: 0;
    }
    #print, #closeResults {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
}