* {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

body {
    color: var(--text);
    background: var(--bg);
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0;
}

@font-face {
    font-family: "slkscr";
    src: url("../assets/slkscr.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html {
    font-family: slkscr;
    scroll-behavior: smooth;
}

:root {
    --bg: burlywood;
    --text: #1f1f1f;
    --border: #c8cacf;
}

h3 {
    font-size:  1.8rem;
    margin-top:  2.5rem;
    line-height: 1.5;
}

h4 {
    font-size:  1.3rem;
    margin-top:  2.2rem;
    line-height: 1.3;
}

h5 {
    font-size:  1.1rem;
    margin-top:  2.2rem;
    line-height: 1.3;
}

@media only screen and (max-width: 800px) {
    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.8rem;
    }
}

td {
    width: 2rem;
    height: 2rem;
    padding: 0.5rem;
}

.cell-blank {
    background-color: #f2d2b1;
}

.cell-correct {
    background-color: #8aff8a;
}

.cell-wrong-place {
    background-color: #feffa8;
}

.cell-incorrect {
    background-color: #ff9696;
}

.animate {
    animation: flipAnimation 500ms ease-in-out;
}

@keyframes flipAnimation {
    25% {
        transform: rotateY(45deg);
    }
    50% {
        transform: rotateY(-33deg);
    }
    75% {
        transform: rotateY(15deg);
    }
    100% {
        transform: rotateY(-10deg);
    }
}

.jump {
    animation: jumpAnimation 500ms ease-in-out;
}

@keyframes jumpAnimation {
    25% {
        transform: translateY(30%);
    }
    50% {
        transform: translateY(-20%);
    }
    75% {
        transform: translateY(10%);
    }
    100% {
        transform: translateY(-20%);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content {
    font-size: 1.5em;
    display: inline-block;
    margin-top: 5%;
    padding: 1em;
    border: 1em solid black;
    background-color: sandybrown;
    vertical-align: middle;
    max-width: 100%;
}
