/**
* Styles for the app
*/

@font-face {
    font-family: 'Digital';
    src: url('../fonts/digital.woff') format('woff');
}

* {
    box-sizing: border-box;
}

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
    background-color: #222;
}

body {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: white;
}

p {
    color: #222;
    font-size: 1.1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

.unselectable {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}


/**
* Styles for the sections
*/

.main {
    padding: 25px;
}

img.header {
    max-width: 100%;
    border-radius: 14px;
    border: solid 1px rgb(204, 214, 221);
    padding: 0px;
}

.btn {
    display: block;
    border-radius: 18px;
    width: 90%;
    margin: 0 auto 10px auto;
    padding: 0.3em 0.5em;
    border: solid 1px rgb(29, 161, 242);
    color: rgb(29, 161, 242);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition-duration: 0.2s;
    transition-property: background-color;
    font-size: 0.95em;
    user-select: none;
}

.btn:hover {
    background-color: rgba(29, 161, 242, 0.1);
}

.btn-no-hover {
    display: block;
    border-radius: 18px;
    width: 90%;
    margin: 0 auto 10px auto;
    padding: 0.3em 0.5em;
    border: solid 1px rgb(29, 161, 242);
    color: rgb(29, 161, 242);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition-duration: 0.2s;
    transition-property: background-color;
    font-size: 0.95em;
    user-select: none;
}

a:link, 
a:visited, 
a:active, 
a:hover {
    color: rgb(29, 161, 242);
    background-color: transparent; 
    text-decoration: none;
}

.countdown-container {
    display: inline-block;
}

.countdown {
    font-family: 'Digital', Fallback, sans-serif;
    font-size: 28px;
    color: rgb(29, 161, 242);
    margin-top: -6px;
}

.hud-display {
    display: flex;
}
.hud-question {
    flex: 1.6; 
    margin: 0;
}

.hud-timer {
    flex: 0.4;
    width: 10px;
    text-align: center;
}

/**
* Styles for animations
*/

.zoom-in-zoom-out {
    animation: zoom-in-zoom-out 500ms ease;
    -moz-animation: zoom-in-zoom-out 500ms ease;
    -webkit-animation: zoom-in-zoom-out 500ms ease;
    -o-animation: zoom-in-zoom-out 500ms ease;
}

@keyframes zoom-in-zoom-out {
    0% {
          transform: scale(1, 1);
    }
    50% {
          transform: scale(1.1, 1.1);
    }
    100% {
        transform: scale(1, 1);
    }
}

@-moz-keyframes zoom-in-zoom-out {
    0% {
        -moz-transform: scale(1, 1);
    }
    50% {
        -moz-transform: scale(1.1, 1.1);
    }
    100% {
        -moz-transform: scale(1, 1);
    }
}

@-webkit-keyframes zoom-in-zoom-out {
    0% {
        -webkit-transform: scale(1, 1);
    }
    50% {
        -webkit-transform: scale(1.1, 1.1);
    }
    100% {
        -webkit-transform: scale(1, 1);
    }
}

@-ms-keyframes zoom-in-zoom-out {
    0% {
        -ms-transform: scale(1, 1);
    }
    50% {
        -ms-transform: scale(1.1, 1.1);
    }
    100% {
        -ms-transform: scale(1, 1);
    }
}

@-o-keyframes zoom-in-zoom-out {
    0% {
        -o-transform: scale(1, 1);
    }
    50% {
        -o-transform: scale(1.1, 1.1);
    }
    100% {
        -o-transform: scale(1, 1);
    }
}

.shake {
    animation: shake 150ms 2 linear;
    -moz-animation: shake 150ms 2 linear;
    -webkit-animation: shake 150ms 2 linear;
    -o-animation: shake 150ms 2 linear;
 }

@keyframes shake {
    0% {
        transform: translate(3px, 0);
    }
    50% {
        transform: translate(-3px, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}

@-moz-keyframes shake {
    0% {
        -moz-transform: translate(3px, 0);
    }
    50% {
        -moz-transform: translate(-3px, 0);
    }
    100% {
        -moz-transform: translate(0, 0);
    }
  }

@-webkit-keyframes shake {
    0% {
        -webkit-transform: translate(3px, 0);
    }
    50% {
        -webkit-transform: translate(-3px, 0);
    }
    100% {
        -webkit-transform: translate(0, 0);
    }
}

@-ms-keyframes shake {
    0% {
        -ms-transform: translate(3px, 0);
    }
    50% {
        -ms-transform: translate(-3px, 0);
    }
    100% {
        -ms-transform: translate(0, 0);
    }
}

@-o-keyframes shake {
    0% {
        -o-transform: translate(3px, 0);
    }
    50% {
        -o-transform: translate(-3px, 0);
    }
    100% {
        -o-transform: translate(0, 0);
    }
}


/**
* Styles for the dark mode
*/

@media (prefers-color-scheme: dark) {
    html {
        background-color: white;
    }

    p {
        color: #fff;
    }

    body {
        background-color: #222;
        color: white;
    }

    img.header {
        border-color: rgb(47, 51, 54);
    }

    .btn {
        color: rgb(29, 161, 242);
        border-color: rgb(29, 161, 242);
    }
    .btn-no-hover {
        color: rgb(29, 161, 242);
        border-color: rgb(29, 161, 242);
    }
}