div#app {
    font-family: 'Inter', sans-serif;
    margin: 0 20%;
    padding-top: 5vh;
    color: #fff;
    height: 100%;
    background-color: #282828;
}
body {
    position: relative;
    text-align: center;
    background-color: #313131;
    margin: 0;
    padding: 0;
}
h1 {
    margin: 0;
}
#mode > div, #mode > a {
    text-decoration: none;
    color: #fff;
    user-select: none;
    padding: 10px 30px;
    cursor: pointer;
    background-color: #656565;
}
#mode > div:hover, #mode > a:hover {
    background-color: #7e7e7e;
}
#mode > div.active {
    cursor: unset;
    background-color: #7253e0;
}
#mode {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
.card {
    margin: 0 35%;
    position: relative;
}
.flipper {
    backface-visibility: hidden;
    transition: all 0.6s;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    min-height: 40vh;
}
.key-hint {
    padding: 10px 5px;
}
.key-hint span:first-child {
    border-radius: 5px;
    padding: 5px;
    font-weight: bold;
    border: 1px solid #ffffff;
}
#card-template-study {
    display: none;
}
.card[state="back"] .card-back {
    transform: rotateY(0deg);
}
.card[state="back"] .card-front {
    transform: rotateY(180deg);
}
.flipper .card-front, .flipper .card-back {
    backface-visibility: hidden;
    transition: 0.6s;
    transform-style: preserve-3d;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 40vh;
}
.card-front, .card-back {
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}
.card-front span.word, .card-back span.word {
    display: block;
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
}
.card-front {
    transform: rotateY(0deg);
    z-index: 2;
    background-color: #ffffff;
}
.card-back {
    transform: rotateY(-180deg);
    background-color: #ffffff;
}
.card input {
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    background-color: transparent;
    color: #7152de;
}
.card[wrong="true"] .card-front {
    animation: wrong 0.5s;
}
.card[correct="true"] .card-back {
    transition: 0.5s;
    background: #00ff00;
}
.card[correct="true"] .card-back span.word {
    color: #ffffff;
}
.card[correct="true"] .card-back .bottom {
    color: #545454;
}
@keyframes wrong {
    0% {
        background-color: #ffffff;
    }
    50% {
        background-color: #ff0000;
    }
    100% {
        background-color: #ffffff;
    }
}
.card input:hover {
    animation: pulse 0.5s;
}
.mobile-gen {
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: none;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin: 10px 0;
    background-color: #656565;
    cursor: pointer;
}
@keyframes pulse {
    0% {
        background: rgba(161, 137, 255, 0.14);
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        background: #ffffff;
        transform: scale(1);
    }
}
.bottom {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    color: #b0b0b0;
    padding: 10px 0;
}
@media screen and (max-width: 768px) {
    .mobile-gen {
        display: block;
    }
    div#app {
        margin: 0;
    }
    .card {
        margin: 0;
    }
    .key-hint {
        display: none;
    }
    #mode {
        flex-direction: column;
    }
}