.study-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.card-container {
    perspective: 1000px;
    width: 300px;
    height: 200px;
    margin-bottom: 20px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    background-color: #f8f9fa;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #e9ecef;
}

.button-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 400px;
}

.fullscreen {
    background-color: white;
    z-index: 9999;
}

.fullscreen .card-container {
    width: 80vw;
    height: 60vh;
    max-width: 600px;
    max-height: 400px;
}

.fullscreen .button-container {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .card-container {
        width: 90vw;
        height: 60vh;
    }
    
    .navigation-buttons {
        display: none;
    }
}