@font-face {
    font-family: 'Cursive standard';
    font-weight: normal;
    src: local('Cursive standard'),
        url('../fonts/Cursive standard.woff2') format("woff"2);
}
@font-face {
    font-family: 'Cursive standard';
    font-weight: bold;
    src: local('Cursive standard'),
        url('../fonts/Cursive standard Bold.woff2') format("woff"2);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
    background: linear-gradient(160deg, #00b3ed, #0082d8, #3f5aa9);

    color: white;
    font-family: 'Cursive standard', cursive, sans-serif;
    font-weight: bold;
}

[hidden] {
    display: none;
}

/* NAVIGATION */

.navigation {
    position: relative;
    width: 100%;
    height: 100%;
}

.navigation__page {
    position: absolute;
    inset: 0;
    padding: 40px 0;

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

    pointer-events: none;
    opacity: 0;

    overflow: auto;
    transition: 1s opacity;
}

.navigation__page--active {
    pointer-events: auto;
    opacity: 1;

    transition-delay: 1s;
}

/* CONTAINER */

.o-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
}

/* STEP COUNTER */

.c-step-counter {
    position: absolute;
    top: 20px;
    right: 20px;

    font-size: 30px;
    font-family: Arial, sans-serif;
    text-shadow: 0 2px rgba(0, 0, 0, 0.5);
}

/* STEP PROGRESS */

.c-step-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;

    background: rgba(255, 255, 255, 0.3);
}

.c-step-progress__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 0;

    background: #2ECC40;
}

/* RESULT */

.c-result {
}

.c-result__title {
    font-size: 60px;
    text-shadow: 0 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.c-result__color-success {
    color: #2ECC40;
}

.c-result__color-error {
    color: #FF4136;
}

.c-result__details {
    font-size: 32px;
    text-shadow: 0 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.c-result__details ins {
    display: inline-block;
    padding: 0 0.2em;
    background-color: #d4fcbc;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    text-shadow: none;
}

.c-result__details del {
    display: inline-block;
    padding: 0 0.2em;
    background-color: #fbb;
    color: #555;
    font-weight: bold;
    text-decoration: line-through;
    text-shadow: none;
}

.c-result__details-list {
    display: table;
    margin: auto;
    text-align: left;
}

/* CONTROLS */

.c-control {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-control__label {
    display: block;
    text-align: center;
    text-shadow: 0 2px rgba(0, 0, 0, 0.5);

    font-size: 40px;
}

@media (max-width: 599px) {
    .c-control__label {
        font-size: 7vw;
    }
}

.c-control__input {
    display: block;
    width: 100%;
    padding: 20px 40px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);

    color: black;
    font-size: 24px;
    font-family: 'Cursive standard', cursive, sans-serif;
    font-weight: bold;
}

.c-control__input--one-word {
    font-size: 60px;
}

@media (max-width: 599px) {
    .c-control__input {
        padding: 3vw 7vw;
        font-size: 4vw;
    }

    .c-control__input--one-word {
        font-size: 10vw;
    }
}

.c-control__input:focus {
    background: white;
    border-color: #3B7BA7;

    outline: none;
}

/* ACTION */

.o-action {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.o-action--tinier {
    gap: 4px;
    margin-top: 20px;
}

/* BUTTONS */

.o-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    padding: 10px 20px;
    max-width: 100%;
    background: #1565C0;
    border: 1px solid #0a3260;
    border-radius: 10px;
    box-shadow: 0 9px 0 #0a3260;

    color: #FFF;
    font-size: 24px;
    line-height: 1;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px rgba(0, 0, 0, 0.5);

    transition: all 0.1s linear;
    cursor: pointer;
}

.o-button:hover,
.o-button:focus {
    top: 5px;
    box-shadow: 0 2px 0 #0a3260;
}

.o-button--secondary {
    border-color: #004D40;
    background: #009688;

    box-shadow: 0 9px 0 #004D40;
}

.o-button--secondary:hover,
.o-button--secondary:focus {
    box-shadow: 0 4px 0 #004D40;
}

.o-button--error {
    background: #cb3b27;
    border: 1px solid #84261a;

    box-shadow: 0 9px 0 #84261a;
}

.o-button--error:hover,
.o-button--error:focus {
    box-shadow: 0 4px 0 #84261a;
}

.o-button--tertiary {
    border-color: #333;
    background: white;

    color: black;
    font-family: inherit;
    text-transform: none;
    text-shadow: none;

    box-shadow: 0 6px 0 #333;
}

.o-button--tertiary:hover,
.o-button--tertiary:focus {
    box-shadow: 0 2px 0 #333;
}

.o-button__icon {
    display: inline-block;
    width: 32px;

    fill: white;
    filter: drop-shadow(0 2px rgba(0, 0, 0, 0.5));
}

/* UTILS */

.u-mt-0 {
    margin-top: 0;
}

.u-mt-2 {
    margin-top: 20px;
}