
@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;
}
.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;
    /* align-items: center; */
}
.border {
    height: 10px;
    background: lightgrey;
}
.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: 150px;
    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;
}
.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: 20px;
}
.sentence-card img {
    height: 100%;
}
.sentence-card .card-text {
    font-size: 3rem;
    margin-top: 10px;
}
.phrase-card .card-text {
    height: 30%;
    font-size: 3rem;
    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%;
    font-size: 4rem;
    text-align: center;
    padding: 5px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 30px;
    line-height: 0.8;
}
.central-card-text {
    font-size: 2rem;
}
.before-after::before, .before-after::after {
    background-image: url('../alphabet_images/alphabet1/hot-chocolate2.png');
    height: 6rem;
    width: 4rem;
    background-size: 4rem 6rem;
    display: inline-block;
    content: "";
}
.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;
}
.heading-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* justify-content: center; */
}
.circle {
    /* color: brown; */
    font-size: 3rem;
    background: rgb(243, 242, 242);
    padding: 10px 30px;
    border-radius: 50%;
    margin-right: 40px;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.3)
}
.circle-even {
    background: #333;
    color: white;
}
.heading2 {
    font-size: 3rem;
}
.emphasized-letter {
    font-size: 3.3rem;
    color: red;
}
.card-central {
    background: rgba(255, 255, 255,0.9);
    height: 150px;
    position: relative;
}
.card-central  img {
    height: 140px;
}
.heading-alphabet {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: center;
}
.heading-alphabet i {
    font-size: 3rem;
    color: #333;
    margin-right: 50px;
}
.circle {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.circle-1{   
    background-image: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)), url('./alphabet_images/alphabet1/chocolate-to-cats.png');
}
.circle-3{   
    background-image: linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.6)), url('./alphabet_images/alphabet3/winnie-lemonade.png');
}

@media screen and (max-width: 1100px){
    .heading-alphabet h1, .heading-alphabet i {
        font-size: 2rem;
    }
}
@media screen and (max-width: 500px){
    .heading-alphabet h1, .heading-alphabet i, .heading2 {
        font-size: 1.5rem;
    }
}
.icon {
    position: absolute;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    border: solid 1px rgba(255,255,255,0.8);;
    /* border: solid 1px brown; */
}
.icon img {
    height: 100%;
}
.hidden {
    display: none;
}
.hidden-text {
    position: absolute;
    top: -110px;
    background: white;
    padding: 10px;
    width: 90%;
    border-radius: 15px;
    margin: 0 auto;
    border: 1px dashed brown;
    text-align: center;
    min-height: 80px;
}
.text {
display: flex;
justify-content: center;
font-weight: bold;
}
.card-initial {
    height: 200px;
    border-bottom: 20px solid lightgrey;
}
.card-initial:hover {
transform: translate(0, 0)
}

@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;
    
    }
}
