:root {
    --base: #0e1120;
    --accent: #ffffff;
    --light-base: #1f2231;
    --body-base: #000000;
}

@font-face {
    font-family: 'Gilroy';
    font-weight: normal;
    src: url('../assets/fonts/Gilroy-Medium.ttf') format('truetype');
}

* {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -ms-touch-action: none;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;

    cursor: default;
    color: var(--accent);

    text-align: center;
    font-family: 'Gilroy', Helvetica, Verdana, Arial, sans-serif;

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

    min-width: 300px;
    user-select: none;

    overflow: hidden;
}

#game-div {
    overflow: hidden;
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    max-width: 500px;
    border: 2px solid var(--base);
}

#dfg-ui-div {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 0;
}

.backlay {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.4);
}

.backlay.hidden {
    display: none;
}

.top-section {
    width: 100%;
    height: 90%;
    display: flex;
}

.side-bar {
    height: 100%;
    width: 100%;
    max-width: 120px;
    min-width: 100px;
    flex-shrink: 3;
    padding-left: 8px;
    padding-top: 8px;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-bar .logo {
    background-color: var(--base);
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    flex-shrink: 0;
}

#general-error-code {
    margin-bottom: 30px;
    color: lightgray;
}

.dialog {
    color: white;
    z-index: 110;
    background-color: var(--base);
    max-width: 320px;
    width: 87%;
    max-height: 255px;
    position: fixed;
    padding: 15px;
    top: 50%;
    left: 50%;
    border-radius: 18px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dialog.hidden {
    display: none;
}

.dialog-icon {
    width: 100%;
    height: 55px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dialog-icon.out-of-funds {
    background-image: url('../assets/icons/Out of funds.svg');
}

.dialog-icon.general-error {
    background-image: url('../assets/icons/Info.svg');
}

.dialog h1 {
    font-size: 1.5em;
    margin-bottom: 2px;
}

.dialog p {
    font-size: 13px;
    margin-bottom: 18px;
}

.dialog button {
    cursor: pointer;
    width: 100%;
    padding: 10px;
    background: #cdcdcd;
    border-radius: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: 'Gilroy', Helvetica, Verdana, Arial, sans-serif;
    border: none;
    color: black;
}

.days {
    background-color: var(--base);
    width: 100%;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    outline: 2px solid rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    font-weight: bold;
    transition: outline 330ms;
}

.days.highlit {
    outline: 2px solid var(--accent);
}

.day-letter {
    font-size: 12px;
    margin-top: 6px;
    margin-left: 2px;
    margin-right: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.day-letter-played {
    color: #444444;
}

.day-spot-current-day-played {
    background: #444444 !important;
}

.day-letter-skipped {
    -webkit-text-decoration-line: line-through; /* Safari */
    text-decoration-line: line-through;
    text-decoration-thickness: 15%;
    color: #dddddd;
    text-decoration-color: #ffffff;
}

.day-spot {
    width: 5px;
    height: 5px;
    border-radius: 3px;
    box-sizing: border-box;
}

.day-spot-current-day {
    background: #ffffff;
}

.day-spot-played {
    background: #44444400;
}

.day-spot-skipped {
    background: #44444400;
}

.side-bar .points {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: var(--base);
    display: flex;
    flex-direction: column;
}

#round-points {
    background: white;
    border-radius: 10px;
    color: var(--base);
    font-size: 10px;
    font-weight: bold;
    padding: 2px;
    position: absolute;
    height: 14px;
    min-width: 14px;
    left: 80px;
    transform: translateY(-14px);
    opacity: 0;
    transition: transform 330ms, opacity 330ms;
}

#round-points.in {
    opacity: 1;
    transform: translateY(-4px);
}

.point-bar-section {
    height: 100%;
    display: flex;
    margin: 4px;
    border-radius: 4px;
}

.point-bar {
    width: 8px;
    background: var(--light-base);
    margin: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.point-progress {
    width: 6px;
    background: var(--accent);
    margin: 1px;
    border-radius: 3px;
}

.point-prizes {
    width: 100%;
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 8px;
    margin-bottom: 8px;
    position: relative;
}

.point-prize {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: absolute;
    cursor: pointer;
}

.point-prize::before {
    content: '';
    display: inline-block;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: var(--base);
    border: 3px solid var(--light-base);
    left: -27px;
    position: relative;
}

.point-prize-awarded::before {
    background: var(--accent) !important;
}

.point-prize sup {
    font-size: 10px;
    margin-top: -16px;
}

.point-prize p {
    font-size: 11px;
}

.point-prize sub {
    font-size: 0px;
}

/* */
.score {
    flex-shrink: 0;
    display: flex;
    background: var(--light-base);
    margin: 4px;
    border-radius: 4px;
    transition: background 330ms;
}

.score.highlit {
    background: var(--accent);
}

.score.highlit .score-label {
    color: var(--base);
}

.score-label {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(90deg) translateY(-2px);
    font-size: 10px;
    width: 12px;
}

.score-points {
    background: var(--base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 2px;
    font-size: 12px;
    border-radius: 4px;
    padding: 8px;
}

.score-points p {
    font-size: 12px;
}

/* */

.side-bar .info {
    background-color: var(--base);
    width: 100%;
    height: 100px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#info-box {
    outline: 0px solid white;
    transition: outline 330ms;
}

#info-box.highlit {
    outline: 2px solid white;
}

.game-client {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-right: 8px;
}

.game-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    height: 100%;
    position: relative;
}

.ui {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--light-base);
}

.foot-grid {
    width: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 10%;
    position: absolute;
    bottom: -2px;
    z-index: 2;
}

.button {
    cursor: pointer;
}

#close-button {
    display: none;
}

.main-button {
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
    background-color: var(--base);
    color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 8px;
    pointer-events: none;
}

.main-button.active {
    pointer-events: initial;
}

.active {
    cursor: pointer;
    background-color: var(--accent) !important;
    color: var(--base) !important;
}

.active:hover {
    filter: brightness(0.8);
}

.active:active {
    transform: scale(0.98);
}

.logo-picture {
    border-radius: 10px;
    background-size: cover;
    height: 100%;
}

#prize-info-bg {
}

#prize-info {
    background: white;
    color: black;
    margin: 0 auto;
    width: 70%;
    border-radius: 16px;
    text-align: left;
    padding: 20px;
    padding-top: 17px;
    padding-bottom: 30px;
    position: absolute;
    max-height: calc(90% - 40px);
    overflow: auto;
    transform-origin: left;
    z-index: 5;
}

.prize-popup.intro {
    pointer-events: initial;
    background-color: rgba(0, 0, 0, 0.75);
    animation: prize-container-intro;
    animation-duration: 700ms;
}

@keyframes prize-container-intro {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.75);
    }
}

.prize-popup {
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 20;
    pointer-events: none;
}

.prize-poup.outro {
    animation-name: prize-container-outro;
    animation-duration: 700ms;
    pointer-events: none;
}

@keyframes prize-container-outro {
    0% {
        background-color: rgba(0, 0, 0, 0.75);
    }

    100% {
        background-color: rgba(0, 0, 0, 0);
    }
}

.prize-popup button {
    width: 100%;
    padding: 20px;
    background: var(--base);
    color: white;
    font-family: 'Gilroy', Helvetica, Verdana, Arial, sans-serif;
    font-size: x-large;
    font-weight: bold;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
}

#prize-info-content h3 {
    text-align: left;
    font-size: 16px;
    margin-top: 0;
}

#prize-info-content h1 {
    text-align: left;
    margin-top: 40px;
    font-size: 26px;
}

#prize-info-content h2 {
    text-align: left;
    font-size: 16px;
    font-weight: lighter;
}

#prize-info-content p {
    text-align: justify;
    font-size: 18px;
    line-height: 24px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.button-picture {
    width: 80%;
    height: 80%;
    box-sizing: border-box;
}

.call-to-action {
    font-size: 22px;
    font-weight: bold;
    animation: fade-call-to-action 500ms;
    background-color: white;
}

@keyframes fade-call-to-action {
    from {
        background-color: var(--base);
    }
    to {
        background-color: white;
    }
}

#prizes {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

#points-tutorial,
#tutorial {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

#tutorial-content h1 {
    font-size: 21px;
}

#points-tutorial h1 {
    font-size: 21px;
}

#points-tutorial.intro,
#tutorial.intro {
    pointer-events: unset;
    animation-name: tutorial-intro;
    animation-duration: 700ms;
    background-color: rgba(0, 0, 0, 0.75);
}

#points-tutorial.outro,
#tutorial.outro {
    animation-name: tutorial-outro;
    animation-duration: 700ms;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
}

@keyframes tutorial-intro {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.75);
    }
}

@keyframes tutorial-outro {
    0% {
        background-color: rgba(0, 0, 0, 0.75);
    }

    100% {
        background-color: rgba(0, 0, 0, 0);
    }
}

.fade-in-prizes {
    animation: fadeInPrizes 330ms;
    animation-fill-mode: forwards;
    visibility: unset !important;
}

@keyframes fadeInPrizes {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

.fade-out-prizes {
    animation: fadeOutPrizes 330ms;
    animation-fill-mode: forwards;
    visibility: visible !important;
}

@keyframes fadeOutPrizes {
    0% {
        opacity: 100%;
    }
    100% {
        opacity: 0%;
    }
}

.cta-button {
    background: #0e1120;
    color: white;
    padding: 20px;
    font-weight: bold;
    font-family: 'Gilroy', Helvetica, Verdana, Arial, font-family;
    font-size: 16px;
    width: 100%;
    border-radius: 9px;
    margin-top: 20px;
}

#prize-container {
    background: white;
    color: black;
    margin: 0 auto;
    width: 70%;
    border-radius: 16px;
    text-align: left;
    padding: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
}

#tutorial-content.intro {
    animation-name: tutorial-content-intro;
    animation-duration: 700ms;
    animation-fill-mode: forwards;
}

#tutorial-content.outro {
    animation-name: tutorial-content-outro;
    animation-duration: 700ms;
    animation-fill-mode: forwards;
}

/* #points-tutorial-content.intro {
    animation-name: points-tutorial-content-intro;
    animation-duration: 700ms;
    opacity: 1;
    transform-origin: center;
} */

/* #points-tutorial-content.outro {
    animation-name: points-tutorial-content-outro;
    animation-timing-function: ease-in;
    animation-duration: 500ms;
    transform: scale(0);
    --webkit-transform: scale(0);
    transform-origin: center;
} */

/* @keyframes tutorial-content-intro {
    0% {
        transform: translate(-170px, -350px) scale(0);
        opacity: 0;
    }

    100% {
        transform: translate(0px, 0px) scale(1);
        opacity: 1;
    }
} */

/* @keyframes tutorial-content-outro {
    0% {
        transform: translate(0px, 0px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-170px, -350px) scale(0);
        opacity: 0;
    }
} */

/* @keyframes points-tutorial-content-intro {
    0% {
        margin-left: -400px;
        margin-top: 500px;
        transform: scale(0);
        --webkit-transform: scale(0);
    }

    100% {
        
        margin-left: 0px;
        margin-top: 0px;
        transform: scale(1);
    }
}

@keyframes points-tutorial-content-outro {
    0% {
        opacity: 1;
        margin-left: 0px;
        margin-top: 0px;
        transform: scale(1);
        --webkit-transform: scale(1);
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        margin-left: -400px;
        margin-top: 500px;
        transform: scale(0.05);
        --webkit-transform: scale(0.05);
    }
} */

#points-tutorial-content,
#tutorial-content {
    opacity: 0;
    background: white;
    color: black;
    margin: 0 auto;
    width: 80%;
    border-radius: 16px;
    text-align: left;
    padding: 20px;
    padding-top: 17px;
    padding-bottom: 30px;
    position: absolute;
    max-height: 100%;
    overflow: auto;
}

.prize p {
    display: block;
}

.prize .title {
    font-size: 30px;
    font-weight: bold;
}

#prizes .prize {
    display: block;
}

.tutorial-close-button {
    width: 25px;
    height: 25px;
    position: sticky;
    float: right;
    top: 0px;
}

.close-button {
    width: 25px;
    height: 25px;
    position: absolute;
    right: 12px;
    top: 11px;
}

.week-days {
    background: url('../assets/icons/menu/Week days.png') no-repeat center;
    background-size: cover;
    width: 128px;
    height: 32px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.points-tutorial-image {
    background: url('../assets/icons/menu/prize-meter.png') no-repeat center;
    width: 128px;
    margin-top: 20px;
    margin-bottom: 20px;
    height: 150px;
    background-size: contain;
}

.close-img {
    background: url('../assets/icons/menu/close-bk.svg') no-repeat center;
    background-size: cover;
}

@media (min-width: 450px) {
    .side-bar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .score-points p {
        font-size: 16px;
    }
}

@media (min-height: 900px) {
    .point-prize sub {
        font-size: 10px;
    }

    .point-prizes sup {
        font-size: 10px;
    }

    .point-prizes p {
        font-size: 16px;
    }
}

#orientation-prompt {
    display: none;
}

#orientation-prompt h1,
p {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.points-tutorial-image {
    height: 150px;
    background-size: contain;
}

@media (orientation: landscape) {
    #orientation-prompt.active {
        transform: unset;
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: stretch;
        flex-wrap: wrap;
        flex-direction: column;
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 10;
        background-color: black !important;
        top: 0;
        color: white !important;
        left: 0;
        text-align: center;
    }
}
