:root {
    --main-font-color: #ffbba0;
    --bg-color: #0a0a0a;
    --correct-color: #297729;
    --wrong-color: #dd3c3c;
    --pick-color: gold;
    --btn-hover-color: rgb(48, 48, 48);
}

html,
body {
    text-align: center;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--main-font-color);
    font-size: 1em;
    display: flex;
    flex-direction: column;
    min-height: 100vh;    
}

body {
    position: relative;
}

a {
    color: var(--pick-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1>a, h1>a:hover {
    color: inherit;
    text-decoration: none;
}

main {
    flex: 1;
}

footer {
    font-size: 0.8em;
    opacity: 0.4;
}

section {
    display: inline-block;
}

.hidden {
    display: none !important;
}

#intro, .play-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#result-box-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
}

#result-box-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 3px dotted var(--main-font-color);
}

.result-box {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: lightgray;
    z-index: 1;
}

.result-box.correct {
    background-color: var(--correct-color);
}

.result-box.wrong {
    background-color: var(--wrong-color);
}

.result-box.picked {
    background-color: var(--pick-color);
}

#result-section {
    display: block;
}

#choice-section {
    display: block;
}

.player-wrapper {
    position: relative;
}

.player-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 10;
    background: transparent;
    cursor: default;
}

#choice-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    margin-top: 0.5em;
    margin-inline: auto;
}

.choice-btn-container {
    display: flex;
    align-items: center;
    margin-top: 0.5em;
}

.choice-vote {
    margin-left: 0.5em;
    width: 3em;
    text-align: right;
}

.choice-btn {
    margin-left: 3em;
    cursor: pointer;
    width: 100%;
    font-size: 1.2em;
    border-radius: 6px;
    background-color: var(--bg-color);
    color: var(--main-font-color);
    border: 2px solid gray;
    padding: 0.2em 0.5em;
    transition: background-color 0.15s ease;
    transition: border-color 0.15s ease;
    max-width: 100vw;
    text-overflow: ellipsis;

    position: relative;
    overflow: hidden;
}

.choice-btn:hover {
    background-color: var(--btn-hover-color)
}

.choice-btn:disabled {
    color: gray;
}

.choice-btn.correct {
    background-color: var(--correct-color);
    color: black;
}

.choice-btn.wrong {
    background-color: var(--wrong-color);
    color: black;
    text-decoration: line-through;
}

.choice-btn.picked {
    border-color: var(--pick-color);
}

.choice-btn {
    --vote-percent: 0%;
}

.choice-btn.voting::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--vote-percent);
  background: #8c45f740;
  z-index: 0;
  transition: width 0.4s ease;
}

.choice-btn.voting::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.choice-btn.voting {
  isolation: isolate;
}

.choice-btn.voting > * {
  position: relative;
  z-index: 2;
}

#end-results {
    font-size: 1.5em;
    margin-bottom: 1em;
}

#end-results.good {
    color: var(--correct-color);
}

#end-results.bad {
    color: var(--wrong-color);
}

.nav-btn {
    cursor: pointer;
    font-size: 1.5em;
    border-radius: 10px;
    background-color: var(--bg-color);
    color: var(--main-font-color);
    border: 2px solid gray;
    padding: 0.2em 0.5em;
    transition: background-color 0.15s ease;
    transition: border-color 0.15s ease;
}

.nav-btn:hover {
    background-color: var(--btn-hover-color);
    border-color: rgb(161, 161, 161);
}

.clip-description {
    /* Should match overall height of skip/next button */
    height: 2em;
}

.play-btn:disabled {
    color: gray;
    background-image: inherit;
}

.description {
    font-size: 1.2em;
}

.nav-btns {
    position: relative;
}

.play-btn {
    background-image: url('media/elass11.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-color: #0f1110;
    text-shadow: 2px 2px 2px black;
    padding: 0.3em 0.3em;
    margin-top: 0.7em;
}

#skip {
    font-size: 1.3em;
}

#next {
    font-size: 1.3em;
}

.float-left {
    position: absolute;
    left: 0;
}

.float-right {
    position: absolute;
    right: 0;
}

.hint {
    font-size: 0.8em;
}

.highlight {
    color: var(--pick-color);
    font-style: oblique;
}

.result-highlight {
    color: var(--pick-color);
}

.lds-dual-ring {
    color: white;
}

.lds-dual-ring,
.lds-dual-ring:after {
    box-sizing: border-box;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6.4px solid currentColor;
    border-color: currentColor transparent currentColor transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#daily-result-container {
    margin-top: 0.5em;
    font-weight: bold;
}

#share-btn {
    width: 5em;
    margin-top: 0.6em;
    font-size: 1em;
    background-color: rgb(49, 153, 101);
    color: black;
}

#share-btn:hover {
    background-color: rgb(61, 187, 124);
}

#report-btn {
    font-size: 1em;
    color: orange;
}

#countdown-bar {
    width: 100%;
    height: 6px;
    background-color: lightgray;
}

#title-reaction {
    max-width: 72px;
    max-height: 64px;
}

input[type=checkbox]
{
    /* https://stackoverflow.com/a/10415275/32727753 */
    -ms-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    transform: scale(1.5);
    padding: 10px;
    margin-right: 0.5em;
}

label {
    font-size: 1.2em;
    line-height: 1.8em;
}

.new-tag {
    vertical-align: super;
    background-color: greenyellow;
    border-radius: 4px;
    padding: 0px 2px;
    font-size: 0.5em;
    color: black;
    margin-left: 4px;
    opacity: 0.5;
}

.options-section {
    border: dashed 2px;
    margin-top: 1em;
    padding: 0em 1em;
    border-radius: 0px 0px 500px 500px;
    padding-bottom: 4em;
    position: relative;
}

.options-section::after {
    content: '';
    display: inline-block;
    height: 4em;
    position: absolute;
    left: 50%;
    border-left: dashed 2px;
    bottom: 0;
}

.options-section > h3 {
    text-align: left;
    margin: 0;
    margin-top: 0.5em;
}

.options-container {
    margin-bottom: 1em;
}

.options-container > h3 {
    margin: 0;
    text-decoration: underline;
}

.hcg-select {
    min-width: 30em;
}

.hcg-select-list {
    text-align: left;
}

#popup-container {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 8888;
    backdrop-filter: blur(4px);
}

#popup {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 30%;
    min-height: 20%;
    border-radius: 12px;
    background-color: rgb(190, 190, 190);
    z-index: 9999;
    color: black;
}

#popup-title {
    margin-top: 0.5em;
}

#popup-text {
    margin-bottom: 4em;
}

#popup-btn {
    border: 0;
    border-radius: 2px;
    font-size: 1.1em;
    color: black;
    background-color: rgb(72, 139, 72);
    position: absolute;
    right: 8px;
    bottom: 8px;
}

#popup-btn:hover {
    background-color: rgb(119, 158, 119);
}