@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Cormorant:wght@400;600&family=Poppins:wght@300;400&display=swap");

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
   

}

body{
    
    background-color:whitesmoke;


}

header{
    background-color:white;
}

button{
    padding: 8px;
    outline: none;
   cursor: pointer;
   border: 1px solid lightgray;
   border-radius: 5px;
   background-color: whitesmoke;
}

button:hover{
    background-color: black;
    color: white;
}

.container{
    width: 95%;
    margin: auto;
}

.nav{
    display: flex;
    justify-content:space-between;
    width: 100%;
    margin: auto;
    padding: 20px 0;
    background-color: white;

}

.create-box{
    width: 380px;
    margin: auto;
    padding: 20px;
    margin-top: 10px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 4px 0 black;
}

.create-box textarea{
    width: 100%;
    border-radius: 5px;
    border: 1px solid lightgray;
}

.create-box button{
    width: fit-content;
}



@media (max-width:480px) {
    .nav{
        flex-direction: column;
        align-items: center;
    }
    .create-box{
        width: 100%;
    }
    .flashcard{
        width: 100%;
    }
}



.flashcards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


.flashcard {
    width: 300px;
    height: 180px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px #a9bb9d;
    padding: 20px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    word-wrap: break-word;
    cursor: pointer;
}

.flashcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px #a9bb9d;
}

.flashcard h2 {
    font-size: 1.1rem;
    color: #a9bb9d;
}