:root {
    --primary-color: #006152;
    --secondary-color: #d7F7Cf;
}

html {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--secondary-color);

    scrollbar-color: var(--primary-color) var(--secondary-color);
}

h1 {
    font-size: 38px;
    color: var(--secondary-color);
}

h1, h2 {
    text-align: center;
}

p {
    color: var(--secondary-color);
}

form {
    color: var(--secondary-color);
}

input {
    color: var(--primary-color);
    background-color: var(--secondary-color);

    border: 6px solid var(--secondary-color);
    border-radius: 6px;

    margin-top: 4px;

    font-size: 16px;
}

input[type=submit] {
    cursor: pointer;
}

button {
    all: unset;
    background-color: var(--secondary-color);

    color: var(--primary-color);

    border: 8px, solid, var(--secondary-color);
    border-radius: 6px;

    cursor: pointer;

    font-weight: bold;
}

button:disabled {
    opacity: 50%;
    cursor: default;
}

a {
    all: unset;
}

#logout-button {
    all: unset;
    background-color: var(--primary-color);

    cursor: pointer;
}

.centered {
    text-align: center;
}

#login-background {
    top: 0;
    left: 0;

    min-width: 100%;
    min-height: 100%;

    position: absolute;

    overflow: hidden;

    z-index: -5;
}

#login-color-block {
    width: 30%;
    height: 100%;

    position: fixed;

    background-color: var(--primary-color);
}

#login-form {
    width: 50%;
    /* text-align: center; */

    justify-content: center;
    align-items: center;

    display: flex;

    flex-direction: column;
}

#team-easy-join-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;

    align-content: space-between;
    align-items: center;

    max-width: 90%;

    justify-self: center;
    justify-content: center;

    margin-bottom: 10px;
}

#team-easy-join-menu>p {
    margin: 0px;
    margin-bottom: 4px;
}

#easy-join-buttons {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;

    align-content: space-between;
    align-items: center;
}

.easy-join {
    font-weight: bold;

    margin: 4px;
}

.gradient-cell {
    position: absolute;
}

.gradient-dot {
    overflow: visible;
    fill: var(--primary-color);
}

#login-interactable, #left-container {
    width: 33%;
    height: 100%;

    position: fixed;

    background-color: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    z-index: 1;
}

#attribution-link {
    position: fixed;
    left: 15.5%;
    bottom: 5px;

    color: var(--secondary-color);

    text-align: center;
    font-size: 9px;

    cursor: pointer;
}

#left-container {
    color: var(--secondary-color);
}

.checker {
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--secondary-color) 25%, transparent 25%, transparent 75%, var(--secondary-color) 75%), linear-gradient(45deg, var(--secondary-color) 25%, transparent 25%, transparent 75%, var(--secondary-color) 75%);
    background-position: 10px 10px, 11px 11px;
    background-size: 2px 2px;
}

#players-display {
    width: 67%;

    overflow: auto;

    scrollbar-color: var(--secondary-color) var(--primary-color);
    /* scrollbar-width: thin; */

    padding-right: 8px;
}

.team-container {
    display: flex;

    justify-content: center;
    align-items: center;

    margin: 16px 0px;
}

.team-container.cannot-answer>.team-members>.team-member {
    background-color: var(--secondary-color);
    background-image: linear-gradient(45deg, var(--primary-color) 25%, transparent 25%, transparent 75%, var(--primary-color) 75%), linear-gradient(45deg, var(--primary-color) 25%, transparent 25%, transparent 75%, var(--primary-color) 75%);
    background-position: 10px 10px, 11px 11px;
    background-size: 2px 2px;
}

.team-name {
    flex: 1;
}

.team-members {
    flex: 1;
    /* flex-grow: 0; */

    text-align: center;
}

.team-member {

    color: var(--primary-color);
    background-color: var(--secondary-color);

    border: 3px solid var(--secondary-color);
    border-radius: 6px;

    padding: 6px;

    transition: all 0.33s ease-out;
}

.answering-player {
    padding: 16px;

    color: var(--secondary-color);
    background-color: var(--primary-color);

    font-size: 28px;

    font-weight: bold;
}

.team-split {
    width: 100%;
    height: 2px;

    background-color: var(--secondary-color);
}

.team-split-invert {
    background-color: var(--primary-color);
}

.content-split {
    width: 100%;
    height: 2px;

    background-color: var(--primary-color);
}

#logout-button {
    position: absolute;

    top: 6px;
    left: 6px;
    
    color: var(--secondary-color);

    z-index: 16;
}

#toggle-sound-button {
    position: absolute;

    top: 6px;
    right: 6px;
    
    color: var(--primary-color);
    background-color: transparent;
    border: 0px solid transparent;
    border-radius: 0px;

    z-index: 16;

    text-shadow:
        -1px -1px 0 var(--secondary-color),
        1px -1px 0 var(--secondary-color),
        -1px 1px 0 var(--secondary-color),
        1px 1px 0 var(--secondary-color);
}

#admin-button {
    z-index: 16;
}

#quizmaster-container {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

}

#start-quiz-button {
    margin-bottom: 32px;
}

#right-container {
    width: 67%;
    height: 100%;

    right: 0px;

    position: fixed;

    color: var(--primary-color);
    background-color: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    z-index: 1;
}

#right-container p, #right-container h1 {
    color: var(--primary-color);
}

#content {
    width: 80%;
    height: 80%;

    background-color: var(--secondary-color);

    border: 8px, solid, var(--primary-color);
    border-radius: 16px;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#content p {
    font-size: 20px;
    margin: 8px 16px;
}

#content li {
    font-size: 20px;
}

#content > h3 {
    margin-bottom: 2px;
}

#quiz-flow-buttons > button, #answer-button, #grading-buttons > button {
    width: 96px;
    text-align: center;

    color: var(--secondary-color);
    background-color: var(--primary-color);

    border: 6px, solid, var(--primary-color);
    border-radius: 6px;

    margin: 0px 6px;
}

#grading-buttons {
    margin-bottom: 12px;
}

#grading-buttons > button {
    width: 158px;
}

#next-questions-list {
    overflow-y: auto;

    min-height: 84px;
    max-height: 84px;
}

#question-display {
    margin-top: auto;
    margin-bottom: auto;

    width: 85%;

    text-align: center;

    overflow:auto;
}

#question-display>p {
    font-size: 32px;
}

p#question-answer{
    margin-top: 12px;
    font-size: 36px;

    font-weight: bold;
}

#answer-highlight {
    text-decoration: underline;
}

#answer-button {
    margin-bottom: 12px;

    width: 256px;
    height: 24px;
}

.answer-button-disabled {
    visibility: hidden;
}

.welcome-link {
    text-align: center;
    font-size: 18px;

    color: var(--primary-color);
    background-color: var(--secondary-color);

    border: 6px, solid, var(--secondary-color);
    border-radius: 8px;

    width: 148px;

    margin: 16px;

    cursor: pointer;
}

#bingo-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    /* width: min(80vw, 1000px);
    height: min(80vw, 1000px); */
    /* width: 500px;
    height: 256px; */
    /* border: 2px solid #333; */
}

.grid-cell {
    border: 1px solid #999;
    box-sizing: border-box;
    background: #f5f5f5;
}

.answer-feedback {
    fill: var(--primary-color);

    position: absolute;

    transition: all 3s ease-out;
}

.score-container {
    display: flex;

    align-items: center;
    justify-content: center;
}

.score-container>* {
    width: 100%;
}

.score-header {
    display: flex;
    font-size: medium;

    justify-content: center;
    align-items: center;
}

.score-header>* {
    width: 50%;
}

svg {
    pointer-events: none;
}

#lobby-text {
    display: none;
}

/* Mobile device styling */
@media screen and (max-width: 768px) {
    #login-color-block {
        width: 100%;
    }

    .gradient-cell {
        display: none;
    }

    #login-interactable {
        top: 0px;
        left: 0px;  
        width: 100%;
    }

    #attribution-link {
        left: 50%;
    }

    #login-form {
        width: 100%;
    }

    #toggle-sound-button {
        display: none;
    }
    #logout-button {
        display: none;
    }

    #left-container {
        top: 0px;
        left: 0px;
        width: 100%;
        height: 33%;

        z-index: 5;
    }

    #left-container>h1 {
        display: none;
    }

    #players-display {
        top: 0px;
        position: absolute;
    }

    .team-name {
        display: none;
    }

    .team-container {
        margin: 0px;
    }

    .team-member {
        top: -100px;
        position: fixed;
        justify-self: center;
        margin: 0px;

        font-size: 38px;

        width: 100%;

        color: var(--secondary-color);
        background-color: var(--primary-color);

        border: 0px;
        height: 63px;

        line-height: 63px;
    }

    .answering-player {
        top: 0px;
    }

    #right-container {
        top: 0px;
        left: 0px;

        width: 100%;
    }

    #content {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0px;
    }

    #answer-button {
        width: 100%;

        margin-bottom: 0px;
        bottom: 0px;

        position: fixed;
    }

    #answer-button.answer-button-disabled {
        visibility: unset;
        background-color: var(--secondary-color);
        background-image: linear-gradient(45deg, var(--primary-color) 25%, transparent 25%, transparent 75%, var(--primary-color) 75%), linear-gradient(45deg, var(--primary-color) 25%, transparent 25%, transparent 75%, var(--primary-color) 75%);
        background-position: 10px 10px, 11px 11px;
        background-size: 2px 2px;

        border: 0px, solid, var(--primary-color);
        border-radius: 0px;

        height: 32px;
    }

    p#lobby-text {
        display: block;
        color: var(--secondary-color);
    }

    .answer-feedback {
        width: 125%;
        height: auto;
    }
}