body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
    min-height: calc(100vh - 8px);
}

.image-background {
    background-image: url("../images/bg.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.panel {
    margin: auto;
    margin-bottom: 8px;
    margin-top: 8px;
    max-width: 1000px;
    /*max-height: 600px;*/
    background-color: rgba(255, 255, 255, 0.9);
    padding: 16px;
    border-radius: 8px;
}

.full-panel {
    margin: 8px;
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    /*max-height: 600px;*/
    background-color: rgba(255, 255, 255, 0.9);
    padding: 16px;
    border-radius: 8px;
    box-sizing: border-box;
}

.full-height {
    min-height: 100vh;
}

.full-width {
    display: block;
    width: 100%;
}

.no-margin {
    margin: 0;
}

button {
    width: 100%;
}

.button {
    display: block;
    border: 1px solid #222222;
    background-color: white;
    border-radius: 4px;
    padding: 4px;
    margin-top: 16px;
    transition: all .2s linear;
    text-align: center;
    text-decoration: inherit;
    color: inherit;
}

.button:hover, .button:active, .button:focus {
    background-color: #222222;
    color: white;
}

select {
    background-color: transparent;
    display: block;
    width: 100%;
    outline: none;
    border: none;
    border-bottom: 1px solid lightgray;
    transition: .2s border-color linear;
}

select:focus {
    border-bottom-color: #222222;
}

.quiz-title {
    margin-top: 0;
}

.quiz-detail {
    margin-bottom: 16px;
}

.quiz-detail-key {
    width: 70%;
    display: inline-block;
}

.quiz-detail-value {
    width: 29%;
    display: inline-block;
    text-align: right;
    padding-right: 8px;
    box-sizing: border-box;
}

textarea {
    box-sizing: border-box;
    border-radius: 4px;
    margin-bottom: 8px;
    margin-top: 4px;
}

#quiz-introduction > * {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
}

#quiz-introduction * {
    text-align: center;
}

.time-bar {
    background-color: lightgray;
    border-radius: 4px;
    height: 10px;
    position: relative;
}

.time-bar > * {
    height: 8px;
    margin: 1px;
    border-radius: 4px;
    background-color: green;
    position: absolute;    
    transition: 1s linear width;
}

.no-anim {
    transition: none;
}

#question > * {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#question-text-wrapper {
    flex-grow: 1;
    border: 1px gray solid;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-basis: 100px;
}

#question-text {    
    flex-grow: 1;
    text-align: center;
}

#question-answers {
    margin-top: 4px;
    flex-grow: 1;
    flex-basis: 100px;
    display: flex;
    flex-direction: column;
}

.question-answers-row {
    display: flex;
    flex-grow: 1;
}

.question-answers-row > * {
    flex-grow: 1;
    border: 1px gray solid;
    border-radius: 8px;
    margin: 4px;
}

.question-answer-wrapper {
    flex-basis: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question-answer-wrapper > * {
    text-align: center;
}

.question-answer-wrapper.selected {
    background-color: lightgray;
}

.question-answer-wrapper.wrong {
    background-color: red;
    color: white;   
}

.question-answer-wrapper.correct {
    background-color: green;
    color: white;   
}

#question-wait {
    margin-top: 4px;
    flex-grow: 1;
    flex-basis: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.standings-row {
    display: flex;
}

.standings-name {
    flex-grow: 1;
}

.standings-row img {
    width: 24px;
    height: 24px;
}

.chart-container {
    position: relative; 
    height:500px; 
    width:100%;
}

#timestamp {
    color: gray;
}