
@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: inherit;
}

html {
box-sizing: border-box;
}

body {
font-family: 'Nunito', sans-serif;
font-weight: 400;
color: #333;
display: flex;
align-items: center;
justify-content: center;
}
.card {
    width: 250px;
    height: 300px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    margin: 10px;
    transition: 0.4s all;
    padding: 10px;
    position: relative;
}
.card-central {
    width: 180px;
    height: 200px;
}
.card a {
    color: inherit;
}
.card:hover, .phrase-card:hover, .word-card:hover, .sentence-card:hover {
    transform: translate(2px, 2px);
}
.container {
    width: 90%;
    display: flex;
    flex-direction: column;
}
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.letter-cards, .phrase-cards, .sentence-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.letter-card {
    align-self: center;
    font-size: 3rem;
    color: red;
    width: 170px;
    height: 150p;
    margin: 1rem;
    padding: 2rem;
    border-radius: 3px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.phrase-card {
    align-self: center;
    width: 300px;
    height: 300px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    margin: 10px;
    transition: 0.4s all;
    padding: 20px;
    position: relative;
}
.sentence-card {
    align-self: center;
    width: 600px;
    height: 300px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    margin: 10px;
    transition: 0.4s all;
    padding: 10px;
    position: relative;
}
.sentence-card img {
    height: 100%;
}
.sentence-card .card-text {
    /* width: 100%; */
    font-size: 3rem;
    margin-top: 10px;
    /* overflow-wrap: break-word; */
}
.phrase-card .card-text {
    height: 30%;
    font-size: 2rem;
    text-align: center;
    padding: 5px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
    padding-top: 30px;
    line-height: 0.8;
}

.border-dashed {
    border: 2px dashed lightblue;
    border-radius:2px;
}
h1 {
    text-align: center;
    font-size: 4rem;
}
.image {
    height: 70%;
    text-align: center;
    object-fit: contain;
    border-radius: 3px;
}
.image > img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    border-radius: 5px;
}
.card-central img {
    height:120px;
}
.card-text {
    height: 30%;
    width: 100%;
    font-size: 2rem;
    text-align: center;
    padding: 5px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
    line-height: 0.8;
    overflow-wrap: break-word;
    word-break: break-all;
}
.word-cards .card-text {
    font-size: 3rem;
}
.central-card-text {
    font-size: 2rem;
}
.before-after::before, .before-after::after {
    height: 6rem;
    width: 4rem;
    background-size: 4rem 6rem;
    display: inline-block;
    content: "";
    background-repeat: no-repeat;
}
.before-after-1::before, .before-after-1::after {
    background-image: url('../alphabet_images/alphabet1/hot-chocolate2.png');
    background-size: 3rem 4rem;
    background-position: contain;
}
.before-after-2::before {
    background-image: url('../alphabet_images/alphabet2/hummus.png');
    background-size: 3rem 4rem;
    background-position: contain;
}
.before-after-2::after {
    background-image: url('../alphabet_images/alphabet2/crow.png');
}
.before-after-3::before {
    background-image: url('../alphabet_images/alphabet3/lemonade.png');
}
.before-after-3::after {
    background-image: url('../alphabet_images/alphabet3/winnie-the-pooh.png');
}
.before-after-4::before, .before-after-4::after {
    background-size: 4rem 3rem;
    background-position: contain;
}
.before-after-4::before {
    background-image: url('../alphabet_images/alphabet4/jelly.png');
}
.before-after-4::after {
    background-image: url('../alphabet_images/alphabet4/baba-yaga-jelly.png');
}
.word-phrases-tabs {
    display: flex;
    justify-content: space-around;
    text-transform: uppercase;
    transition: 0.3s all;
    flex-wrap: wrap;
}
.word-phrases-tabs a {
    text-decoration: none;
    color: inherit;
}
.word-phrases-tabs a h2 {
padding: 0 15px;
border-radius: 3px;
transition: 0.5s all;
text-align: center;
}
.word-phrases-tabs h2:hover {
    box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
    transform: translate(0,2px);
}
a {
    text-decoration: none;
}
.btn-back, .home {
    width: 50px;
    height: 30px;
    background: white;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
    border-radius: 3px;
    transition: 0.3s all;
    margin: 0 20px;
    font-size: 2rem;
    cursor: pointer;  
    margin-top: -2px;
}
.select {
    text-align: center;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
    padding: 5px;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
    width: 100%;
}
select {
    padding: 5px;
    outline: none;
    border: none;
    background: white;
    width: 150px;
    text-decoration: underline;
    border-radius: 3px;
    margin: 0 5px;
}
/* flashcards styles */
.flashcards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.flashcard {
    margin: 10px;
    width: 130px;
    height: 200px;
    background: linear-gradient(rgba(250, 223, 250, 0.5), rgba(250, 150, 250, 0.5));
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flashcard h1 {
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0;
    height: 22px;
}
.flashcard p {
    margin-top: 5px;
    margin-bottom: 5px;
    /* background: rgba(247, 244, 244, 0.6); */
    width: 100%;
    font-size: 1.2rem;
    box-shadow: 1px 1px 5px rgba(255, 255, 255, 0.55);
   }
   .flashcard details div {
       height: 100px;
       /* height: calc(100% - 32px); */
       width: 100%;
       object-fit: contain;
   }
   .flashcard details div img {
    /* width: 70%; */
    width: 100%;
    /* max-height: 100px; */
    height: 100%;
    object-fit: contain;
    /* height: 100%; */
    border-radius: 5px;
    text-align: center;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}
.flashcard details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 130px;
}
.flashcard summary {
    color: rgb(109, 109, 100);
    text-decoration: underline;
}
.toggle-button {
    width: 100%;
    text-align: center;
}
.toggle-button button {
    padding: 10px;
    outline: none;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.25);
    transition: 0.6s;
    margin: 5px 20px;
}
.toggle-button button:hover {
    transform: translate(0, 2px);
    background: darkgrey;
    color: white;
}
/* end of flashcards styles */



.hidden-russian {
    opacity: 0;
}
.hidden {
    display: none;
}
.fa-info{
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1    rem;
    color: darkgreen;
    background: lightgreen;
    /* background-image: url('../alphabet_images/kids.png'); */
    /* background-size: contain; */
    border-radius: 50%;
    padding: 0.5rem 0.75rem;
}
.translation-text {
    position: absolute;
    top: 10px;
    left: 20px;
    background: rgba(250, 250, 250, 1);
    padding: 3px;
    border-radius: 3px;
}
@media screen and (max-width: 1150px) {
    .word-phrases-tabs a h2 {
        font-size: 1.25rem;
    }
}
@media screen and (max-width: 1000px) {
    .word-phrases-tabs a h2 {
        font-size: 1rem;
    }
}
@media screen and (max-width: 800px) {
    .before-after {
        font-size: 3rem;
        margin-bottom: 1rem;
    }    
    .before-after::before, .before-after::after {
        height: 3rem;
        width: 2rem;
        background-size: 2rem 3rem;
    }   
}

@media screen and (max-width: 600px) {
    .sentence-card .card-text,.phrase-card .card-text {
        font-size: 2.5rem;
    }  
    .before-after {
        font-size: 2rem;
    }     
      
}

@media screen and (max-width: 400px) {
    .before-after::before, .before-after::after {
        height: 2rem;
        width: 1.33rem;
        background-size: 1.33rem 2rem;
    } 
}
@media screen and (max-width: 300px) {
    .sentence-card .card-text,.phrase-card .card-text {
        font-size: 1.5rem;
    }  
    .before-after::before, .before-after::after {
        display: none;
    
    }
}
