html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
header,
section,
footer,
article,
details {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
}


/* Basic styles, change according to your style */

html {
    height: 100%;
    display: flex;
}

body {
    position: relative;
    margin: auto;
    perspective: 500px;
    background-color: white;
    font-family: 'Fredericka the Great', cursive;
}

#start-page,
#intructions-page,
#winner-page,
#learn-page,
#solve-page {
    height: 90vh;
    width: 80vw;
    text-align: center;
    margin: 0 auto;
    margin-top: 2vh;
    border-radius: 6em/8em;
    overflow: hidden;
    padding: 2vh 2vw;
    border-color: white;
    border-style: dashed double none;
    border-width: 10px;
    -webkit-box-shadow: 8px -3px 23px 15px rgba(0, 0, 0, 0.66);
    box-shadow: 8px -3px 23px 15px rgba(0, 0, 0, 0.66);
}

article {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: normal;
    margin: auto;
}

#start-page,
#learn-page,
#intructions-page,
#solve-page,
#winner-page {
    background-color: black;
}

#learn-page,
#intructions-page,
#solve-page,
#winner-page {
    display: none;
}

#winner-page {
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.box-title-intro {
    color: white;
    position: relative;
    padding: 2vh 1vw;
    margin-top: -5vh;
}

.box-for-star {
    justify-content: flex-end;
    display: flex;
    flex-direction: row;
    transform: rotatex(20deg);
    align-items: baseline;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 1vh;
    margin: 4vh auto;
}

#video-intro {
    max-width: 50vw;
    max-height: 50vh;
    transform: scale(1.25);
    padding: 2vh 1vw;
}

#video-solve {
    min-width: 100%;
    min-height: 100%;
    background-size: cover;
    overflow: hidden;
    padding: 0;
}

#learn-page main,
#solve-page main,
#winner-page main {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    width: 95%;
    align-items: center;
}

#winner-page main {
    overflow: hidden;
}

.content-winner {
    z-index: 1;
    position: absolute;
    justify-content: center;
    align-items: center;
}

#country-picture {
    border-radius: 5px;
    width: 60%;
    padding: 4vh 4vw;
    background-color: cyan;
}


/* Auxiliar classes */

.hidden {
    display: none;
}

.shown {
    display: flex;
}


/* ------- Maps ---------- */

.europe-map {
    transform: scale(.9);
}

.map-picture {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    transition: transform 4s, filter .5s ease-out;
}

#learn-page .map-picture {
    width: 65%;
}

#solve-page .map-picture {
    width: 40%;
}

.map-picture:hover {
    transform: scale(1.3);
}

.map-picture img {
    width: 85%;
    transform-origin: 65% 75%;
    transition: transform 4s, filter .5s ease-out;
}


/* Basic styles, change according to your style */

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    padding: 1vw 3vh;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

#winner-page h2 {
    font-size: 4rem;
    margin: 2vh 2vw;
}

h3 {
    font-size: 1.15rem;
}

li {
    color: white;
    list-style: none;
    font-size: 1.05em;
    padding: 1.5vh .5vw;
    font-weight: 300;
}

span {
    mix-blend-mode: none;
    display: block;
}

a {
    text-decoration: none;
}


/* Colors style */

.white {
    color: white;
}

.black {
    color: black;
}

.red {
    color: #FF1731;
}


/* Paddings style */

.padding-bot {
    padding: 1vh 1vw 3vh;
}

.padding-onevx {
    padding: 1vh 1vw;
}


/* Buttons style */

button#start {
    width: 20vw;
    margin: 4vh auto;
}

button#play,
button#back {
    width: 48%;
}

button#back {
    margin-right: 2%;
}

button#play {
    margin-left: 2%;
}

button#start {
    background-color: cyan;
}

#posible-solutions button {
    width: 125px;
    font-size: 0.7rem;
    margin: 0.5vh 0.5vw;
}

button {
    display: block;
    position: relative;
    margin: 0.5em 0;
    padding: 1vh 1vw;
    cursor: pointer;
    background: #FFFFFF;
    border: none;
    border-radius: .4em;
    text-transform: uppercase;
    font-size: 1.4em;
    font-family: 'Fredericka the Great', cursive;
    font-weight: 500;
    letter-spacing: 0.04em;
    mix-blend-mode: color-dodge;
    perspective: 500px;
    transform-style: preserve-3d;
}

button:before,
button:after {
    --z: 0px;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    opacity: 0;
    mix-blend-mode: inherit;
    border-radius: inherit;
    transform-style: preserve-3d;
    transform: translate3d( calc(var(--z) * 0px), calc(var(--z) * 0px), calc(var(--z) * 0px));
}

button:after {
    background-color: #5D00FF;
}

button:before {
    background-color: #FF1731;
}

button:hover {
    background-color: #FFF65B;
    transition: background-color .3s 0.1s;
}

button:hover:before {
    --z: 0.04;
    animation: translateWobble 2.2s ease forwards;
}

button:hover:after {
    --z: -0.06;
    animation: translateWobble 2.2s ease forwards;
}

@keyframes rotateAngle {
    0% {
        transform: rotateY(0deg) rotateX(10deg);
        animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
    }
    25% {
        transform: rotateY(20deg) rotateX(10deg);
    }
    50% {
        transform: rotateY(0deg) rotateX(10deg);
        animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
    }
    75% {
        transform: rotateY(-20deg) rotateX(10deg);
    }
    100% {
        transform: rotateY(0deg) rotateX(10deg);
    }
}

@keyframes translateWobble {
    0% {
        opacity: 0;
        transform: translate3d( calc(var(--z) * 0px), calc(var(--z) * 0px), calc(var(--z) * 0px));
    }
    16% {
        transform: translate3d( calc(var(--z) * 160px), calc(var(--z) * 160px), calc(var(--z) * 160px));
    }
    28% {
        opacity: 1;
        transform: translate3d( calc(var(--z) * 70px), calc(var(--z) * 70px), calc(var(--z) * 70px));
    }
    44% {
        transform: translate3d( calc(var(--z) * 130px), calc(var(--z) * 130px), calc(var(--z) * 130px));
    }
    59% {
        transform: translate3d( calc(var(--z) * 85px), calc(var(--z) * 85px), calc(var(--z) * 85px));
    }
    73% {
        transform: translate3d( calc(var(--z) * 110px), calc(var(--z) * 110px), calc(var(--z) * 110px));
    }
    88% {
        opacity: 1;
        transform: translate3d( calc(var(--z) * 90px), calc(var(--z) * 90px), calc(var(--z) * 90px));
    }
    100% {
        opacity: 1;
        transform: translate3d( calc(var(--z) * 100px), calc(var(--z) * 100px), calc(var(--z) * 100px));
    }
}


/* learn page & solve page */

.top-counter {
    margin: 1vh 0;
    height: 10%;
}

.points {
    display: flex;
    justify-content: space-evenly;
}

#learn-page .counter-zone {
    width: 35%;
    z-index: 1;
}

#solve-page .counter-zone {
    width: 60%;
    z-index: 1;
}

.seconds {
    justify-content: center;
    display: flex;
    flex-direction: row;
}

.countdown,
.countscore {
    margin: 1vh 0;
    padding: 0.8em 2.2em;
    cursor: pointer;
    background: #FFFFFF;
    border: none;
    border-radius: 0.4em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#score-total {
    padding: 0 1vw;
}

#score-points {
    padding: 0 1vw;
    margin-left: -1.5vw;
}

#solve-page .top-counter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#solve-page .countdown,
#solve-page .countscore {
    width: 65%;
    display: flex;
    justify-content: space-between;
}

#instructions {
    width: 100%;
    background-color: #5D00FF;
    display: flex;
    align-items: stretch;
    height: 77%;
    margin: 1vh 0;
    border-radius: 0.4em;
}

.bottom-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 1vh 0;
    height: 10%;
}

#winner-page .bottom-buttons {
    margin: 5vh 0;
}

#winner-page button {
    width: 250px;
}

.number {
    font-size: 0.9rem;
    padding: 2px;
    color: red;
}

#posible-solutions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.breakLine {
    height: 10px;
}