@import url('https://fonts.googleapis.com/css2?family=Neuton:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Signika:wght@400;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Signika', serif;
    overflow: hidden;
}

html,
button,
input,
select,
textarea,
.pure-g [class *="pure-u"] {
    font-family: 'Signika', sans-serif;
}

#container {
    position: fixed;
    top: 0;
    z-index: 1;
    transform: scale(1);
}

#inGameUI {
    display: none;
}

.playButton,
.backText {
    display: inline-block;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    background-color: var(--accent-color-1);
    padding: 0px 30px;
    border-radius: 55px;
    box-sizing: content-box;
    cursor: pointer;
    box-shadow: 1px 2px 4px #00000045;
    transition: all .1s cubic-bezier(.35, .01, .41, 2.55);
    line-height: 60px;
    margin: 10px;
    text-shadow: 1px 1.5px 0px #0000005e, 1px 0px 1px #000000bd;
}

.playButton:hover {
    transform: scale(1.1);
    background-color: var(--accent-color-1-alt);
}

.backText {
    background-color: var(--neutral-color-1);
}

.backText:hover {
    transform: scale(1.1);
    background-color: var(--neutral-color-1-alt);
}

.backButton,
.settingsButton,
.highscoreButton,
.pauseButton {
    display: inline-block;
    background-color: var(--neutral-color-1);
    box-sizing: content-box;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all .1s cubic-bezier(.35, .01, .41, 2.55);
    box-shadow: 1px 2px 4px #00000045;
    margin: 10px;
}

.backButton {
    background-image: url(../img/arrow.svg);
}

.settingsButton,
.highscoreButton,
.pauseButton {
    position: absolute;
    top: 4vh;
    right: 4vw;
}

.highscoreButton {
    top: 13vh;
    background-image: url(../img/highscores.svg);
}

.settingsButton {
    background-image: url(../img/Settings.svg);
}

.pauseButton {
    background-image: url(../img/Settings.svg);
}

#pauseButton {
    display: none;
}

.backButton:hover,
.settingsButton:hover,
.highscoreButton:hover,
.pauseButton:hover {
    transform: scale(1.1);
    background-color: var(--neutral-color-1-alt);
}

.backButtonFull {
    position: absolute;
    top: 4vh;
    left: 4vw;
}

.boxButtons {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toGuess {
    color: var(--main-text-color);
    font-size: 1.5em;
    font-weight: bold;
    display: inline-block;
    background-color: var(--neutral-color-1);
    padding: 7px 50px;
    border-radius: 55px;
    box-sizing: content-box;
}

.bottomCenterUI {
    position: fixed !IMPORTANT;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    margin: auto;
    text-align: center;
}


.UI {
    z-index: 2;
    position: relative;
    user-select: none;
}

.fullUI {
    width: 100vw;
    height: 100vh;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gameoverBoard,
.settingsBoard,
.customGameBoard,
.highscoreBoard,
.pauseMenu {
    display: none;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.68);
    margin: auto;
    width: 50vw;
    border-top: 1px solid var(--main-front-color);
    border-bottom: 1px solid var(--main-front-color);
    padding: 20px;
    border-radius: 13px 4px;
    transform: skew(-8deg);
}

#gameoverBoard,
#settingsBoard,
#highscoreBoard,
#pauseMenu {
    display: none;
}

.settingsBoard,
.gameoverBoard,
.highscoreBoard,
.pauseMenu {
    display: block;
}


.gameoverBoard,
.pauseMenu {
    animation-name: go_open;
    animation-duration: .2s;
    animation-timing-function: cubic-bezier(.35, .01, .59, 1.97);
}

h2 {
    font-style: italic;
    font-weight: initial;
    font-size: 1.2em;
    margin: 5px;
}

#go_success,
#go_time {
    font-size: 2.4em;
}

#go_success {
    margin-right: 20px;
}

#go_time {
    margin-left: 20px;
}

#menu {
    /*    display: none;*/
    display: block;
}

.gameoverBoard h1 {
    font-size: 3.5em;
    margin-top: 0;
    margin-bottom: 0;
}

.gameoverBoard p {
    font-size: 1.5em;
}


#continentMenu,
#levelMenu {
    display: none;
    padding-left: 4vw;
    padding-right: 4vw;
    box-sizing: border-box;
}


.continentBlock {
    color: var(--main-text-color);
    text-align: left;
    padding: 2vw;
    box-sizing: border-box;
    transform: skew(-8deg);
    transition: all .1s ease-in-out;
    top: 0vh;
    left: 0vw;
    transition: all .25s ease-in-out;
}

.continentHeader {
    background-color: var(--accent-color-1);
    display: inline-block;
    padding: 0.5vw 1vw;
    font-size: 1.9em;
    color: var(--main-text-color);
    text-shadow: 1px 1.5px 0px #0000005e, 1px 0px 1px #000000bd;
    border-radius: 13px 4px 0px 0px;
    transition: all .25s ease-in-out;
    font-weight: bold;
}

.continentLines {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.68);
    border-top: 1px solid var(--main-front-color);
    border-bottom: 1px solid var(--main-front-color);
    line-height: 2.2em;
    border-radius: 0px 4px 13px 4px;
    transition: all .25s ease-in-out;
}

.continentLine {
    transition: all .25s ease-in-out;
}

.continentSelected .continentLines {
    background-color: rgba(0, 0, 0, 0);
    border: none;
}

.continentBlockHover {
    cursor: pointer;
    transition: all .1s ease-in-out;
}

.continentBlockHover:hover .continentLines {
    background-color: rgba(30, 30, 30, 0.68);
}

.continentBlockHover:hover {
    transform: scale(115%) skew(-8deg);
}

.continentSelected {
    position: fixed;
    top: 50vh !IMPORTANT;
    left: 50vw !IMPORTANT;
    transform: translate(-50%, -50%) scale(1.3) skew(-8deg);
}

.continentSelected .continentHeader {
    transform: translateY(10.5px);
}

.continentSelected .continentLine {
    background-color: rgba(0, 0, 0, .68);
    margin: 10px 0px;
    cursor: pointer
}

.continentSelected .continentLine:hover {
    background-color: rgba(30, 30, 30, .68);
    transform: translateX(15px);
}

.continentSelected .continentLine:nth-child(1) {
    border-radius: 0px 4px 0px 0px;
}

.continentSelected .continentLine:nth-child(4) {
    border-radius: 0px 0px 13px 4px;
}



.menuLines {
    height: 50vh;
    align-content: space-around;
    align-items: center;
}

#levelMenu .menuLines {
    height: 100vh;
}

.errorsContainer {
    display: none;
}

.distanceScore {
    display: none;
    color: var(--main-text-color);
    font-size: 1.4em;
    text-shadow: 0px 0 2px black;
}

.errorsPastille {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    background-color: var(--error-color);
    margin: 5px;
}

.bestScore {
    display: none;
    color: var(--accent-color-1);
}

.gameTypeContainer {
    min-width: 400px;
}

.gameTypeName {
    margin-left: 85px;
    margin-right: 85px;
    background-color: var(--neutral-color-1);
    color: var(--main-text-color);
    padding: 10px 25px;
    border-radius: 30px;
}

.scoreArrows,
.typeArrows {
    width: 50vw;
    height: 60px;
    display: flex;
    justify-content: space-between;
    position: absolute;
}

.typeArrows {
    width: 100%;
    top: 20px;
    float: right;
}

.scoreBackArrow,
.scoreForwardArrow,
.typeBackArrow,
.typeForwardArrow {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    height: 60px;
    width: 60px;
    transition: all .1s cubic-bezier(.35, .01, .41, 2.55);
    cursor: pointer;
}

.scoreBackArrow,
.scoreForwardArrow {
    background-image: url(../img/arrow.svg);
}

.scoreBackArrow {}

.scoreBackArrow:hover,
.typeBackArrow:hover {
    transform: scale(1.2);
}

.scoreForwardArrow,
.typeForwardArrow {
    transform: rotate(180deg);
}

.scoreForwardArrow:hover,
.typeForwardArrow:hover {
    transform: rotate(180deg) scale(1.2);
}

.scoreContinent {
    font-style: italic;
}

.scoreType {
    transform: scale(1.5);
    width: 50%;
    margin: 20px auto;
}

.distancePath {
    fill: none;
    stroke: var(--accent-color-1);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.distancePathAnimation {
    animation: dash 1.5s ease-in-out forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.infoBox {
    background-color: #00000061;
    display: inline-block;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 50px;
    padding-left: 50px;
    margin: 3vw;
    min-width: 15vw;
    text-align: center;
    display: none;
    border-top: 5px solid var(--deep-color);
    border-bottom: 5px solid var(--deep-color);

    animation-name: go_open;
    animation-duration: .1s;
    animation-timing-function: cubic-bezier(.35, .01, .59, 1.97);
}

.infoName,
.infoBis {
    color: var(--secondary-text-color);
    /*    text-shadow: 1px 1px 3px #000000a8;*/
}


.infoBis {
    font-size: 1em;
    font-size: 1.3em;
    font-style: normal;
}

.infoFlag {
    height: 7vw;
    border-radius: 13px 2px;
}

.infoBox .infoFlag {
    margin-top: 10%;
}

.congrats {
    user-select: none;
    position: fixed;
    top: 40vh;
    left: 44vw;
    display: none;
    background-color: var(--accent-color-1);
    color: var(--main-text-color);
    z-index: 10;
    transform: skew(2deg, 5deg);
    padding: 20px 30px;
    font-weight: bold;
    font-size: 3em;
    border-radius: 7px;
    animation-name: congrats;
    animation-duration: .3s;
    animation-timing-function: cubic-bezier(.24, .69, .42, .66);
}

.failure {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100vw;
    height: 100vh;
    background-color: var(--error-color);
    z-index: 10;
    mix-blend-mode: darken;
    opacity: 0;
    animation-name: failure;
    animation-duration: .5s;
}

/* ANIMS */
.inAnim,
.outAnim,
.inFade,
.outFade,
.inAnimBack,
.outAnimBack,
.inAnimCenter,
.outAnimCenter,
.inAnimBackCenter,
.outAnimBackCenter {
    animation-duration: .5s;
    animation-timing-function: ease-in-out;
}


.inAnim {
    animation-name: inAnim;
}

.outAnim {
    animation-name: outAnim;
}

.inFade {
    animation-name: inFade;
}

.outFade {
    animation-name: outFade;
}

.inAnimBack {
    animation-name: inAnimBack;
}

.outAnimBack {
    animation-name: outAnimBack;
}

.inAnimCenter {
    animation-name: inAnimCenter;
}

.outAnimCenter {
    animation-name: outAnimCenter;
}

.inAnimBackCenter {
    animation-name: inAnimBackCenter;
}

.outAnimBackCenter {
    animation-name: outAnimBackCenter;
}


.error {
    animation-name: error;
    animation-duration: .9s;
    animation-timing-function: ease-out;
}

.success {
    animation-name: success;
    animation-duration: .9s;
    animation-timing-function: ease-out;
}

.guessUpdate {
    animation-name: guessUpdate;
    animation-duration: 1s;
    animation-timing-function: ease-out;
}

.guessError {
    animation-name: guessError;
    animation-duration: .6s;
    animation-timing-function: ease-in-out;
}

.guessErrorEndRound {
    animation-name: guessErrorEndRound;
    animation-duration: .6s;
    animation-timing-function: ease-in-out;
}

/* ANIMATIONS */
@keyframes congrats {
    from {

        transform: skew(2deg, 5deg) scale(0%);
        opacity: 1;
    }

    to {

        transform: skew(2deg, 5deg) scale(400%);
        opacity: 0;
    }
}

@keyframes error {
    from {
        fill: var(--error-color);
    }

    to {
        fill: var(--main-front-color);
    }
}

@keyframes success {
    from {
        fill: var(--accent-color-1);
    }

    to {
        fill: var(--main-front-color);
    }
}

@keyframes guessUpdate {
    from {
        background-color: var(--accent-color-1);
        transform: scale(1.3);
    }

    to {
        background-color: var(--neutral-color-1);
        transform: scale(1);
    }
}

@keyframes failure {
    from {
        opacity: .5;
    }

    to {
        opacity: 0;
    }
}

@keyframes outFade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes inFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes outAnim {
    from {
        transform: translateX(0vw);
    }

    to {
        transform: translateX(-100vw);
    }
}

@keyframes inAnim {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(0vw);
    }
}

@keyframes outAnimBack {
    from {
        transform: translateX(0vw);
    }

    to {
        transform: translateX(100vw);
    }
}

@keyframes inAnimBack {
    from {
        transform: translateX(-100vw);
    }

    to {
        transform: translateX(0vw);
    }
}

@keyframes outAnimCenter {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(-100vw);
    }
}

@keyframes inAnimCenter {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes outAnimBackCenter {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(100vw);
    }
}

@keyframes inAnimBackCenter {
    from {
        transform: translateX(-100vw);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes go_open {
    from {
        transform: scaleY(0) scaleX(0.8);
    }

    to {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes countryError {
    from {
        fill: var(--error-color);
    }

    to {
        fill: var(--main-front-color);
    }
}

@keyframes countrySuccess {
    from {
        fill: var(--accent-color-1);
    }

    to {
        fill: var(--main-front-color);
    }
}

@keyframes guessError {
    0% {
        transform: translateX(0px);
        background-color: var(--error-color);
    }

    16% {
        transform: translateX(20px);
    }

    32% {
        transform: translateX(-20px);
    }

    48% {
        transform: translateX(10px);
    }

    64% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
        background-color: var(--neutral-color-1);
    }
}

@keyframes guessErrorEndRound {
    0% {
        transform: translateX(0px);
    }

    16% {
        transform: translateX(20px);
    }

    32% {
        transform: translateX(-20px);
    }

    48% {
        transform: translateX(10px);
    }

    64% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* FORMS */
.pure-form input[type="color"],
.pure-form input[type="date"],
.pure-form input[type="datetime-local"],
.pure-form input[type="datetime"],
.pure-form input[type="email"],
.pure-form input[type="month"],
.pure-form input[type="number"],
.pure-form input[type="password"],
.pure-form input[type="search"],
.pure-form input[type="tel"],
.pure-form input[type="text"],
.pure-form input[type="time"],
.pure-form input[type="url"],
.pure-form input[type="week"],
.pure-form select,
.pure-form textarea {
    color: black;
}

input[type=range] {
    -webkit-appearance: none;
    /* Hides the slider so that custom slider can be made */
    width: 70%;
    /* Specific width is required for Firefox. */
    background: transparent;
    /* Otherwise white in Chrome */
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type=range]:focus {
    outline: none;
    /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;

    /* Hides the slider so custom styles can be added */
    background: transparent;
    border-color: transparent;
    color: transparent;
}


/* Special styling for WebKit/Blink */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 12px;
    background: var(--neutral-color-2);
    cursor: pointer;
    border: 0;
    margin-top: -14px;
    /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
    /*  box-shadow: 1px 1px 1px #000000;  Add cool effects to your sliders! */
}

/* All the same stuff for Firefox */
input[type=range]::-moz-range-thumb {
    /*  box-shadow: 1px 1px 1px #000000;*/
    height: 24px;
    width: 24px;
    border-radius: 12px;
    background: var(--neutral-color-2);
    cursor: pointer;
    border: 0;
}

input[type=range]:hover::-moz-range-thumb {
    background: var(--neutral-color-3);
}

/* All the same stuff for IE */
input[type=range]::-ms-thumb {
    /*  box-shadow: 1px 1px 1px #000000;*/
    height: 24px;
    width: 24px;
    border-radius: 12px;
    background: var(--neutral-color-2);
    cursor: pointer;
    border: 0;
}

input[type=range]:hover::-ms-thumb,
input[type=range]:hover::-moz-range-thumb,
input[type=range]:hover::-webkit-slider-thumb {
    background: var(--main-background-color);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    background: var(--main-front-color);
    border-radius: 2.5px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: var(--main-front-color);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: var(--main-front-color);
    border-radius: 2.5px;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #952a43;
    border: 0.2px solid #010101;
    border-radius: 2.6px;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

input[type=range]:focus::-ms-fill-lower {
    background: #3071a9;
}

input[type=range]::-ms-fill-upper {
    background: #3071a9;
    border: 0.2px solid #010101;
    border-radius: 2.6px;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

input[type=range]:focus::-ms-fill-upper {
    background: #367ebd;
}

.formLabels {
    line-height: 36px;
    text-align: right;
    padding-right: 10px;
    box-sizing: border-box;
}

.formInputs {
    line-height: 24px;
    text-align: left;
    padding-left: 10px;
    box-sizing: border-box;
}

.formLabels .line,
.formInputs .line {
    display: flex;
    height: 50px;
    align-items: center;
}

.formLabels .line {
    justify-content: flex-end;
    font-weight: bold;
}

.formInputs .line {
    justify-content: flex-start;
}

.rangeNumber {
    padding-left: 10px;
    bottom: 5px;
    position: relative;
}

.styleRadio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.styleRadio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radiobtn {
    position: absolute;
    top: -12px;
    left: 0;
    height: 26px;
    width: 26px;
    background-color: #eee;
    border-radius: 50%;
}

.dark-theme .radiobtn {
    background-color: #2a2a2a;
}

.light-theme .radiobtn {
    background-color: #e2e2e2;
}

.styleRadio:hover input ~ .radiobtn {
    background-color: #ccc;
}

.dark-theme input:checked ~ .radiobtn {
    background-color: #2a2a2a;
}

.light-theme input:checked ~ .radiobtn {
    background-color: #f2f2f2;
}

.radiobtn:after {
    content: "";
    position: absolute;
    display: none;
}

.styleRadio input:checked ~ .radiobtn:after {
    display: block;
}

.styleRadio .radiobtn:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f2f2f2;
}

.light-theme .radiobtn:after {
    background: #2a2a2a;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    top: 4px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-color-2);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
    height: 25px;
    width: 50px;
}

.slider:hover {
    background-color: var(--neutral-color-3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color-1);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-color-1);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
