/* Custom styles to complement Tailwind CSS */

/* Question option buttons */
.option-btn {
    transition: all 0.3s ease;
}

.option-btn:hover {
    transform: scale(1.02);
}

.option-btn.selected {
    background-color: #3b82f6;
    color: white;
}

/* Result cards */
.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .result-card {
        margin-bottom: 1rem;
    }
}

/* Video modal styles */
.video-container {
    position: relative;
    padding-bottom: 65%; /* 16:9より少し高めに設定 */
    height: 0;
    overflow: hidden;
    margin: 0;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
}