html {
    font-size: 14px;
    height: 100%;
}

body {
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.type-letter {
    animation-duration: 100ms;
    animation-name: type-letter;
    animation-timing-function: linear;
}

@keyframes type-letter {
    0% {
        opacity: 0;
        transform: translateY(-90px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.letter-land-cell {
    animation-duration: 100ms;
    animation-name: letter-land-cell;
    animation-delay: 100ms;
    animation-timing-function: linear;
}

@keyframes letter-land-cell {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.del-letter {
    animation-duration: 100ms;
    animation-name: del-letter;
    animation-timing-function: linear;
}

@keyframes del-letter {
    0% {
        opacity: 0;
        scale: 0;
    }

    100% {
        opacity: 1;
        scale: 1;
    }
}

.wrong-word {
    animation-duration: 100ms;
    animation-name: wrong-word;
    /*    animation-timing-function: linear;*/
}

@keyframes wrong-word {
    0% {
        transform: translateX(0px);
    }

    33% {
        transform: translateX(-10px);
    }

    67% {
        transform: translateX(10px);
    }

    100% {
        transform: translateX(0px);
    }
}

.correct-word {
    animation-duration: 100ms;
    animation-name: correct-word;
    animation-timing-function: linear;
}

@keyframes correct-word {
    0% {
        scale: 1;
    }

    50% {
        scale: 1.2;
    }

    100% {
        scale: 1;
    }
}

.hg-button {
    height: 60px !important;
    font-size: 20px;
}

.cell {
    padding: .25rem;
    margin: .25rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.w-row {
    display: flex;
    height: 100%;
    width: 100%;
}

.table-in {
    animation-name: table-in;
    animation-duration: 200ms;
    animation-fill-mode: both;
}

@keyframes table-in {
    0% {
        transform: translateX(200px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

.table-out {
    animation-name: table-out;
    animation-duration: 200ms;
    animation-fill-mode: both;
}

@keyframes table-out {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-200px);
        opacity: 0;
    }
}

.solution-text-show {
    animation-name: solution-text-show;
    animation-duration: 1000ms;
    animation-fill-mode: both;
}

@keyframes solution-text-show {
    0% {
        letter-spacing: -0.5em;
    }

    100% {
        letter-spacing: 0em;
    }
}

.solution-text-hide {
    animation-name: solution-text-hide;
    animation-duration: 500ms;
    animation-fill-mode: both;
}

@keyframes solution-text-hide {
    0% {
        letter-spacing: 0em;
    }

    100% {
        letter-spacing: 0.5em;
    }
}

.solution-show {
    animation-name: solution-show;
    animation-duration: 1000ms;
    animation-fill-mode: both;
}

@keyframes solution-show {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.solution-hide {
    animation-name: solution-hide;
    animation-duration: 500ms;
    animation-fill-mode: both;
}

@keyframes solution-hide {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.simple-keyboard.dark {
    background-color: #333333;
}

    .simple-keyboard.dark .hg-button {
        background: rgba(0, 0, 0, 0.5);
        color: white;
    }

        .simple-keyboard.dark .hg-button.hg-activeButton {
            background: #1c4995;
        }

.simple-keyboard.hg-theme-default .hg-row:nth-child(3) {
    margin-left: 40px;
}

.simple-keyboard.hg-theme-default .hg-row:nth-child(4) {
    justify-content: end;
}

    .simple-keyboard.hg-theme-default .hg-row:nth-child(4) .hg-button {
        flex-grow: 0;
        padding: 0 20px 0 20px;
    }

.bi {
    display: inline-block;
    vertical-align: -.125em;
    fill: currentcolor;
    width: 1em;
    height: 1em;
}

.tooltip2 {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    cursor: pointer;
}

.tooltiptext2 {
    visibility: hidden;
    width: 130px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
}

.tooltip2:hover .tooltiptext2 {
    visibility: visible;
}
