/* Custom styles */
.option-container {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.option-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.option-container:hover img {
    transform: scale(1.05);
}

.option-container .option-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
}

.option-container.correct {
    border: 4px solid #10b981; /* Green border */
}

.option-container.incorrect {
    border: 4px solid #ef4444; /* Red border */
}

.option-container .check-mark {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.option-container .check-mark.correct {
    background-color: #10b981;
    color: white;
}

.option-container .check-mark.incorrect {
    background-color: #ef4444;
    color: white;
}

/* Feedback box styles */
.feedback-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.feedback-box.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-box.correct {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.feedback-box.incorrect {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.feedback-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.feedback-title .icon {
    margin-right: 8px;
    font-size: 20px;
}

.feedback-explanation {
    color: #4b5563;
}

/* Share modal styles */
#share-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

#share-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

#share-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#share-modal .bg-white {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#share-modal:not(.hidden) .bg-white {
    transform: scale(1);
    opacity: 1;
}

.share-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.share-button:hover::before {
    width: 120%;
    height: 120%;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.question-container {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.question-container:nth-child(1) { animation-delay: 0.1s; }
.question-container:nth-child(2) { animation-delay: 0.2s; }
.question-container:nth-child(3) { animation-delay: 0.3s; }
.question-container:nth-child(4) { animation-delay: 0.4s; }
.question-container:nth-child(5) { animation-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .option-container .check-mark {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .feedback-box {
        padding: 12px;
        font-size: 16px;
    }
} 