:root {
    --border-radius: 16px;
    --body-padding: 16px;
    --margin: 32px;
    --margin-mobile: 16px;
}

.hidden {
    display: none;
}

.main {
    background: white;
}

.main .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.main .header h1 {
    flex: 1 1 auto;
}

.main .header .cup {
    width: 32px;
    height: auto;
    opacity: 0.5;
}

.main .header .cup2 {
    width: 24px;
    height: auto;
    opacity: 0.5;
}

.main .header .cup:hover,
.main .header .cup2:hover {
    opacity: 1;
}

#chart {
    margin-bottom: 1.5rem !important;
}

.answers button.selected {
    outline: 4px solid yellow;
}

.answers ul {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.answers ul li {
    list-style-type: none;
    display: flex;
    flex-direction: column;

}

ul.results-list {
    width: fit-content;
    margin: 0 auto;
}

ul.results-list li.bad {
    color: red;
}
ul.results-list li.good {
    color: green;
}

.buttons {
    margin-top: 32px;
}

.buttons-play {
    margin-top: 8px;
}

.word {
    position: relative;
}

@keyframes flipA {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(90deg);
    }
}

@keyframes flipB {
    0% {
        transform: rotateY(90deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.animated-a {
    animation-duration: 2s;
    animation-name: flipA;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: forwards;
}

.animated-b {
    animation-duration: 3s;
    animation-name: flipB;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: forwards;
}


.word-flip {
    position: relative;
    width: 100%;
    height: 150px;
}

.word-flip .front {
    background: white;
    padding: 24px;
    width: 400px;
    position: absolute;
    top: 0;
    left: calc(50% - 200px);
    transform: rotateY(0deg);
    backface-visibility: hidden;
}

.word-flip .front.done {
    transition: transform 2s;
    transform: rotateY(180deg);
}

.word-flip .front h4 img{
    height: 24px;
    width: auto;
    margin-right: 8px;
}

.word-flip .back.done {
    transition: transform 2s;
    transform: rotateY(0deg);
}

.word-flip .back {
    background: white;
    padding: 24px;
    transform: rotateY(180deg);
    width: 400px;
    position: absolute;
    top: 0;
    left: calc(50% - 200px);
    backface-visibility: hidden;
}

.words-count-choosers,
.words-lang-choosers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.words-count-choosers .form-check,
.words-lang-choosers .form-check {
    font-size: 1.6em;
}

#game_none {
    color: red;
}

@media screen and (max-width: 480px) {
    .answers ul {
        flex-direction: column;
    }

    .answers ul li {
        flex-direction: row;
    }
}

.progress-bar.transp {
    background-color: transparent;;
}

.counter-progress.progress {
    height: 2px;
}

.progress-bar-success {
    background-color: #5cb85c;
}

.progress-bar-danger {
    background-color: #d9534f;
}

.progress-bar-warning {
    background-color: #f0ad4e;
}


.answers .btn[data-wordid][disabled="disabled"]{
    opacity: 0.2;
    border: none;
}

.answers button.text-red{
    color: red;
}

.answers button.text-green {
    color: green;
}

.words-lang-choosers button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.words-lang-choosers button img {
    height: 24px;
    width: auto;
}

.header {
    margin-bottom: 8px;

}

.header h1 {
    margin-left: 68px;/* 2 iconse 32 each + gap (4)*/
    margin-bottom: 0;
}

@media screen and (max-width:400px){
    .main .header .cup {
        height: 24px;
        width: auto;
    }

    .header h1 {
        margin-left: 52px;/* 2 iconse 24 each + gap (4)*/
    }
}

#chart {
    margin: 0 auto;
    max-width: 480px;
}