*,
:after,
:before,
html {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    background-color: #f0f8ff;
}

.select-container {
    margin: 20px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

select {
    padding: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    appearance: none;
    border-radius: 6px;
}

.learn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin: 0 20px;
}

.card {
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-content: space-between;
    align-items: center;
    text-align: center;
    border: 1px solid #767676;
    border-radius: 6px;
    padding: 20px;
    font-size: 18px;
    background-color: #fff;
    width: 100%;
    max-width: 400px;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.card.flip {
    transform: rotateX(180deg);
}


#phrase {
    user-select: none;
}

#counter {
    font-size: 75%;
    color: gray;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.info-panel {
    display: flex;
    width: 100%;
    max-width: 390px;
    justify-content: space-between;
    align-items: center;
}

.tts-button {
    border: none;
    background: none;
    cursor: pointer;
    user-select: none;
    padding: 4px 6px;
}

.tts-button:active {
    transform: scale(0.9);
}

.empty {
    width: 36px;
}