/* Font is vendored locally; see fonts/fonts.css (loaded from index.html). */

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #ece8d9;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
   position: relative;
    width: 400px;
    height: 500px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.8s;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 15px;
    flex-direction: column;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.card__front,
.card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    text-align: center;
    flex-direction: column;
}

.card__back {
    transform: rotateY(180deg);
}

.card__front{
    backface-visibility: hidden;
    /* backface-visibility: visible; */
}

.card.flipped {
    transform: perspective(1000px) rotateY(180deg);
}

.word a {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 0.4;
}

.word a:hover {
    /* color: #0056b3; */
    /* text-decoration: underline; */
}

#show {
    font-size: 24px;
    color: #f56476;
    cursor: pointer;
}

#next {
    margin-top: 20px;
}

.settings-icon {
    position: fixed;
    top: 20px;
    right: 20px;
}

#settingsModal {
    font-size: 14px;
}

.title {
    text-align: center;
    margin-bottom: 50px;
}

.made-by {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 7px;
    position: fixed;
    bottom: 0;
    /* width: 100%; */
    text-align: center;
    padding: 10px;
    /* background: #f8f9fa; */
}

@media screen and (max-width: 768px) {
    .card {
        width: 320px;
        height: 400px;
    }

    .card__front,
    .card__back {
        font-size: 1.6em;
    }

    .word a {
        font-size: 14px;
    }

    #show {
        font-size: 20px;
    }
}