/* Global styles */
body {
    font-family: 'Source Sans Pro', sans-serif;
    background-color: #F5F5F5;
    outline-color: rgb(237 158 183 / 75%);
}

/* Section styles */
nav {
    background: url(../images/background.jpg) bottom center;
    background-color: #4C4168;  
    text-align: center;
    padding: 25px 15px 0 15px;
}

nav a {
    color: white;
    margin: 0px 7px 0px 7px;
    display: inline-block;
    /*
    text-shadow: 0 0 4px white;
    text-decoration: none;
    */  
}

header {
    padding: 60px 15px 75px 15px;
/*    background: url(../images/background-top-decoration.jpg) no-repeat left top;*/
    background: url(../images/background.jpg) center center;
    background-color: #4C4168;
}

section {
    padding: 45px 15px;
}


#quiz {
    background-color: #383838;
    color: white;
    position: relative;
}

#quiz h2 {
    font-size: 1.1em;
    font-style: normal;
    margin: 5px 15px 15px 15px;
}

#questionTitle {
    min-height: 50px;
    vertical-align: bottom;
}

#rules {
/*    display: none;*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #383838;
    opacity: 0.9;
    padding: 45px 0 0 0;

    /* TO DO */
    overflow: hidden;
}

#rules .rules-list {
    margin: 35px 0 25px 0;
    text-align: center;
}

#questions {
/*    display: none;*/
    transition: filter 0.5s;
    filter: blur(10px);
}

#question {
    display: block;
    margin: 15px 0 25px 0;
}

#answers {
    text-align: center;
    margin: 15px 0 25px 0;
}

#timeUp {
    display: none;
    padding: 200px 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #383838;
    opacity: 0.9;
}

#results {
    display: none;
    margin: 15px 0 25px 0;
}

#leaderboardTable, #leaderboardTableHeader {
    display: grid;
    grid-template-columns: 40px auto 70px 60px;
    grid-auto-rows: 36px;
}

#leaderboardTable {
    background: repeating-linear-gradient(#eee 0 36px, transparent 36px 72px);
}

.leaderboardTable .columnHeading {
    font-style: italic;
    font-size: 0.8em;
    line-height: 1.2em;
    text-align: right;
    padding-top: 5px;
    opacity: 0.5;
}

.leaderboardTable .position {
    grid-column-start: 1;
    grid-column-end: 1;
    text-align: center;
    padding-top: 8px;
    opacity: 0.5;
    font-size: 0.8em;
}

.leaderboardTable .position.leader {
    padding-top: 4px;
    font-size: 1.05em;
    opacity: 1;
}

.leaderboardTable .name {
    grid-column-start: 2;
    grid-column-end: 2;
    padding-top: 5px;
}

.leaderboardTable .name.leader {
    font-weight: 600;
    font-size: 1.05em;
}

.leaderboardTable .answers {
    grid-column-start: 3;
    grid-column-end: 3;
    text-align: right;
    padding-top: 5px;
    font-style: italic;
}

.leaderboardTable .time {
    grid-column-start: 4;
    grid-column-end: 4;
    text-align: right;
    padding-top: 5px;
    padding-right: 12px;
}



#leaderboardCtas {
    display: none;
}

#leaderboardConfirmationMessage {
    display: none;
}


#startQuizButton {
    /*display: none;*/
}

#nextQuestionButton {
    display: none;
}

#resultsButton {
    display: none;
}

#showLeaderboardButton {
    display: inline-block;
    cursor: pointer;
    cursor: hand;
    margin: 10px 10px 0 10px;
}

#tryAgainButton {
    display: inline-block;
    cursor: pointer;
    cursor: hand;
    margin: 10px 10px 0 10px;
}

#exitQuizButton {
    display: none;
    cursor: pointer;
    cursor: hand;
    margin: 10px 10px 0 10px;
}



/* Read up popover */

#readUpButton {
    display: none;
    cursor: pointer;
    cursor: hand;
    margin: 10px 10px 0 10px;
}

#readUpLink {
    display: none;
}

#readUpImageContainer {
    display: none;
}

#readUpImage {
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 5px;
}

#readUpImageSource {
    font-size: 0.75em;
    font-style: italic;
}

.modal-header h5 {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.15em !important;
    text-align: left;
    margin: 0 25px 10px 0;
    color: black;
}

.modal-header {
    border-bottom: none;
    padding: 30px 30px 0 30px;    
}

.modal-header .btn-close {
    position: absolute;
    top: 25px;
    right: 25px;
}

.modal-body {
    padding: 0 30px 30px 30px;
}


.shadeTop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    z-index: 100;
}

.shadeBottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 100;
}


#about {
    position: relative;
    background: url(../images/background-light.jpg) center center;    
    background-color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin: 15px 0 0 0;    
}

.contact {
    color: black;
    text-align: center;
}

footer {
    color: black;
    padding: 50px 15px 50px 15px;
    font-weight: 700;
    position: relative;
    text-align: center;
}

footer a {
    color: black;
}



/* Text styles */
h1 {
    color: white;
    font-size: 3em;
    font-weight: 900;
    text-align: center;
    line-height: 0.9em;
    margin: 0 0 0 0;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

h1 .sup {
    display: block;
    font-size: 0.4em;
    margin: 0 0 0 0;
    line-height: 1em;
    opacity: 0.75;
}

h2 {
    color: white;
    font-size: 1.5em;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2em;
    text-align: center;
    margin: 10px 15px 10px 15px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.supheading {
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.2em;
    color: #7D7D7D;
    text-align: center;
    margin: 0;
}

h3 {
    font-size: 1.4em;
    font-weight: 900;
    text-align: center;
    margin: 10px 5px 20px 5px;
    text-transform: uppercase;
    color: black;
}

h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 1px #333333;
}

small {
    font-size: 0.9em;
    font-weight: 400;
    margin: 50px 0 15px 0;
    color: #B9B9B9;
    display: inline-block;
    text-align: center;
}

.light {
    color: white;
}


/* Lists */

ul.no-dashes {
    list-style: none;
}



/* Results */

.result {
    padding: 6px 28px 10px 28px;
    margin: 0 auto;
    border-radius: 100px;
    width: 230px;
    position: relative;
    transition: all 0.2s;
    color: white;
}

.result.superb {
    color: #79AF66;
    /*    background-color: #DCEBD7;*/
}

.result.positive {
    color: #79AF66;
    /*    background-color: #DCEBD7;*/
}

.result.average {
    color: #BE8938;
    /*    background-color: #F5DFBC;*/
}

.result.negative {
    color: #9E4646;
    /*    background-color: #EBDED7;*/
}

.result .value {
    display: inline-block;
    text-align: right;
    font-size: 4em;
    font-weight: 900;
    line-height: 1em;
}

.result .labels {
    display: block;
    float: right;
    text-align: left;
    margin: 12px 0 0 8px;
    color: white;
}

.result .units {
    display: block;
    font-weight: 900;
    font-size: 1.35em;
    line-height: 1.1em;
}

.result .maximum {
    display: block;
    font-weight: 400;
    font-size: 1.35em;
    line-height: 1.1em;
}

.result .decoration {
    width: 260px;
    opacity: 0.3;
    position: absolute;
    left: -13px;
    top: -5px;

    animation-name: resultDecorationAnimation;
    animation-duration: 1s;
    animation-delay: 0s;
    animation-timing-function: ease;
    animation-play-state: paused;
}

@keyframes resultDecorationAnimation {
    from {
        transform: scale(0.5)
    }

    to {
        transform: scale(1)
    }
}


/* Form elements */

.answer input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 1px;
}

.answer label {
    transition: all 0.15s;
    padding: 10px 15px;
    display: inline-block;
    cursor: pointer;
    cursor: hand;
    text-align: center;
    vertical-align: middle;
    transition: all 0.2s;
    font-weight: bold;
    font-size: 1.2em;
    position: relative;
    width: 100%;
    color: #444444;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    padding: 16px 16px;
    margin: 0 0 20px 0;
}

.answer label .icon {
    position: absolute;
    right: 22px;
    visibility: hidden;
}

.answer label .icon.icon-correct {
    margin: -1px 0 0 0;
}

.answer label .icon.icon-incorrect {
    margin: 2px 0 0 0;
}

.answer label:hover {
    transition: all 0.15s;
    background: #F5F5F5;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.85);
}

.answer input[type="radio"]:focus + label,
.answer input[type="radio"]:active + label {
    transform: scale(0.97);
    transition: all 0.15s;
    box-shadow: inset 0px 1.10107px 2.75267px rgba(0, 0, 0, 0.5);
}

.answer input[type="radio"][disabled]:focus + label,
.answer input[type="radio"][disabled]:active + label {
    transform: scale(1);
    box-shadow: none;
}

.answer input[type="radio"]:checked + label.correct {
    transition: all 0.15s;
    transform: scale(1);
    background: #79AF66;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

.answer input[type="radio"]:checked + label.incorrect {
    transition: all 0.15s;
    transform: scale(1);
    background: #9E4646;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

.answer input[type="radio"]:checked + label .icon {
    visibility: visible;
}

.answer input[type="radio"]:checked[disabled] + label.correct,
.answer input[type="radio"]:checked[disabled] + label.incorrect {
    opacity: 1;
}

.answer input[type="radio"][disabled] + label.correct,
.answer input[type="radio"][disabled] + label.incorrect {
    opacity: 0.15;
}


#visitorNameField {
    font-size: 1em;
    font-weight: 500;
    background: #fff;
    padding: 12px 15px 12px 15px;
    border: 1px solid #e1e0e0;
    border-radius: 9px;
    width: 100%;
    transition: all 0.1s ease-out;
}

#visitorNameField:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem #ED9EB7;
}

#visitorNameField:disabled {
    background: transparent;
    resize: none;
}

.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: -2px 0 0 3px;
    background-size: cover;
    vertical-align: middle;
}


/* Button styles */
.btn-primary {
    color: white;
    background: #9376D0;
    border-radius: 50px;
    border: none;
    margin: 20px 0;
    padding: 10px 16px;
    text-align: center;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    vertical-align: middle;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.btn-primary.large {
    padding: 22px 28px;
}

.btn-primary:focus {
    transition: all 0.2s;
    color: white;
    background: #AD8EEF;
    text-decoration: none;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.btn-primary:hover {
    transition: all 0.2s;
    background: #AD8EEF;
    text-decoration: none;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.btn-primary:active {
    transform: scale(0.97);
    transition: all 0.2s;
    background: #AD8EEF;
    text-decoration: none;
}

.btn-primary.light {
    background: white;
    color: black;
    text-shadow: none;
}

.btn-primary.dark {
    background: #505050;
    color: white;
}

.btn-primary.highlighted {
    background: #ED9EB7;
    color: white;
    line-height: 1.3em;
    text-shadow: 0 1px 0px rgba(0, 0, 0, 0.5);
}

.btn-check:active + .btn-primary:focus,
.btn-check:checked + .btn-primary:focus,
.btn-primary.active:focus,
.btn-primary:active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: none;
}


/* Link styles */
a {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: black;
}

a.light {
    color: white;
}

a.underline {
    background-image: linear-gradient(120deg, rgba(164, 133, 232, 0.25) 0%, rgba(164, 133, 232, 0.25) 100%);
    background-repeat: no-repeat;
    background-size: 95% 0.5em;
    background-position: bottom right;
}

a:hover,
a:hover h4 {
    color: #CB7692;
}

a:hover .icon {
    filter: invert(57%) sepia(93%) saturate(192%) hue-rotate(59deg) brightness(92%) contrast(91%);
}


/* Progress indicators */
#countdown {
    visibility: hidden;
}

#sound {
    position: absolute;
    top: 25px;
    right: 0px;
    z-index: 999;
    cursor: pointer;
    cursor: hand;
}

#soundPlayer {
    display: none;
}

#toggleSoundButton {
    padding: 25px 25px;
}

.progress-bar {
    transition: all 1s ease-out !important;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    min-width: 100%;
    width: 100%;
    height: 8px;
    overflow: hidden;
    font-size: .75rem;
    background-color: transparent;
    border-radius: 0;
}

.progress #time-left-label {
    text-align: center;
    position: absolute;
    left: 50%;
    top: 2px;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #79AF66;
    transition: width .6s ease;
    border-radius: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.75);
}

/* Warning zone */
.progress-bar[aria-valuenow="50"],
.progress-bar[aria-valuenow="40"],
.progress-bar[aria-valuenow="30"] {
    background-color: #FBAD38;
}

/* Timeout zone */
.progress-bar[aria-valuenow="20"],
.progress-bar[aria-valuenow="10"],
.progress-bar[aria-valuenow="0"] {
    background-color: #9E4646;
}

.loadingIndicator {
    height: auto;
    text-align: center;
    min-height: 250px;
    padding: 15% 15%;
}

.loadingIndicator .icon {
    font-size: 2em;
    display: block;
    margin-bottom: 15px;
}

.loadingIndicator .label {
    font-style: italic;
    font-size: 1em;
}


/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    h1 {
        font-size: 4em;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}
