body{
    background:#eef2f7;
}

.flashcard-wrapper{
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-top:35px;
}

.flashcard{
    width:600px;
    height:420px;
    perspective:1200px;
    cursor:pointer;
}

.flashcard-inner{
    width:100%;
    height:100%;
    position:relative;
    transform-style:preserve-3d;
    transition:.6s;
}

.flashcard.flip .flashcard-inner{
    transform:rotateY(180deg);
}

.flashcard-front,
.flashcard-back{

    position:absolute;
    width:100%;
    height:100%;

    backface-visibility:hidden;

    background:white;

    border-radius:15px;

    box-shadow:0 8px 20px rgba(0,0,0,.2);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    padding:25px;

    overflow:auto;

    text-align:center;

}

.flashcard-back{

    background:#fff3b4;

    transform:rotateY(180deg);

}

.flashcard img{

    max-width:100%;
    max-height:230px;

    margin-bottom:15px;

    border-radius:10px;

}

.answer-image{

    max-height:260px;

}