@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');

:root {
    /*    --main-color-1: #2ec4b6;*/
    --main-color-1: #18a076;
    /*    --main-color-2: #cbf3f0;*/
    --main-color-2: #b4e6dc;
    --sec-color-1: #ff9f1c;
    --sec-color-2: #ffbf69;
    --sec-color-3: #ffdc1c;
    --sec-color-4: #fbd39d;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Signika', serif;
    overflow: hidden;
    background: rgb(248, 253, 255);
    background: linear-gradient(333deg, rgba(255, 159, 28, .25) 0%, rgba(46, 196, 182, .25) 49%, rgba(255, 159, 28, .25) 100%);
    background-size: 400vw 400vh;
    animation: gradient 15s ease infinite;
    color: #222725;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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);
}

.answerUI {
    display: none;
    z-index: 2;
    position: absolute;
    left: 50vw;
    transform: translateX(-50%);
    bottom: 10vh;
}

.answerContainer {
    padding: 2px 40px;
    background-color: white;
    border-radius: 50px;
    box-shadow: 1px 1px 5px #0000001c;
    cursor: text;
    height: 100%;
    display: inline-block;
}

.guessError {
    animation: guessError .8s ease-out;
}

.answerInput {
    line-height: 2em;
    line-height: 2em;
    border: 0;
    outline: none;
    font-size: 1.3em;
    text-align: center;
    background-color: #fff0;
}

.answerContainer:hover {
    background-color: #fdfdfd;
}


.dept {
    fill: url(#pattern);
    stroke: var(--main-color-1);
    stroke-width: .25;
    stroke-linejoin: round;
}

.patternBg {
    fill: var(--main-color-2);
}

.found {
    fill: var(--sec-color-2);
    stroke: var(--sec-color-1);
    stroke-width: .30;
    stroke-linejoin: round;
    transition: all .1s cubic-bezier(.7, .04, .32, .96);
    animation: found .25s ease-out;
}

.found:hover {
    stroke-width: .60;
    fill: var(--sec-color-4);
    stroke: var(--sec-color-3);
}

#stats {
    padding: 25px;
    z-index: 2;
    position: relative;
    display: inline-block;
}

#france {
    opacity: .015;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-12deg) scale(1.4);
    font-weight: bold;
    width: 110vw;
    height: 110vh;
    transform-origin: center;
}

.dimText {
    color: #959595;
}

#infobox {
    z-index: 3;
    display: none;
    padding: 8px 100px;
    font-size: 2.5em;
    position: absolute;
    right: 2vw;
    top: 2vw;
    background-color: var(--sec-color-4);
    border: 10px var(--sec-color-2) solid;
    border-radius: 4px 25px 4px 25px;
    color: white;
    text-shadow: 0px 0px 5px #0000004f;

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

#infobox span {
    font-size: .8em;
}

#communesTrouvees {
    height: 70vh;
    overflow-y: auto;
    width: auto;
    display: inline-block;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

#communesTrouvees::-webkit-scrollbar {
    display: none;
}

#loadAnimationContainer {
    position: absolute;
    z-index: 3;
    left: 50vw;
    top: 50vh;
    transform: translate(-50%, -40%);
    width: 15vw;
}

#loadAnimationContainer span {
    display: block;
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--main-color-1);
    border-radius: 5px 2px;
}

#loadAnimationContainer span:nth-child(1) {
    animation: loadingAnimation 1.5s cubic-bezier(.7, .04, .32, .96) infinite alternate;
}

#loadAnimationContainer span:nth-child(2) {
    animation: loadingAnimation 1.5s cubic-bezier(.7, .04, .32, .96) .05s infinite alternate;
    background-color: red;
}

#loadAnimationContainer span:nth-child(3) {
    animation: loadingAnimation 1.5s cubic-bezier(.7, .04, .32, .96) .1s infinite alternate;
}

#loadAnimationContainer span:nth-child(4) {
    animation: loadingAnimation 1.5s cubic-bezier(.7, .04, .32, .96) .15s infinite alternate;
}

@keyframes found {
    from {
        stroke-width: 7;
        stroke: var(--sec-color-3);
        fill: var(--sec-color-4);
    }

    to {
        stroke-width: .30;
        stroke: var(--sec-color-2);
        fill: var(--sec-color-1);
    }
}


@keyframes loadingAnimation {
    from {
        transform: translateX(0) rotate(0);
        background-color: var(--main-color-1);
    }

    to {
        transform: translateX(15vw) rotate(90deg);
        background-color: var(--sec-color-1);
    }
}

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

    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: white;
    }
}

@keyframes go_open {
    from {
        transform: scaleY(0) scaleX(0.8) skewX(-45deg);
        opacity: .5;
    }

    to {
        transform: scaleY(1) scaleX(1) skewX(0deg);
        opacity: 1;
    }
}
