/* Quiz styles */
.option {
    transition: all 0.2s ease;
    position: relative;
    padding-right: 30px;
}

.correct-indicator {
    position: absolute;
    right: 10px;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

/* Quiz Feedback Styles */
.bg-success {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    border-left: 5px solid #28a745 !important;
    position: relative;
}

.bg-danger {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    border-left: 5px solid #dc3545 !important;
    position: relative;
}

.correct-indicator {
    position: absolute;
    right: 10px;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bg-success .correct-indicator,
.bg-danger .correct-indicator {
    opacity: 1;
}

.explanation {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border-left: 5px solid #0c5460;
    transition: all 0.5s ease;
    max-height: 0;
    overflow: hidden;
}

.explanation.d-none {
    display: block !important;
    opacity: 0;
}

.explanation:not(.d-none) {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.option {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

.option:hover {
    transform: translateX(5px);
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.option.selected {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Simple hover effects - exclude large containers */
.nav-link:not(.timeline-content),
.btn:not(.timeline-content),
.option:not(.timeline-content) {
    transition: all 0.2s ease;
}

/* Explicitly disable hover on timeline content */
.timeline-content {
    pointer-events: none;
}
.timeline-content * {
    pointer-events: auto;
}

/* Enhanced hover animations */
.nav-link:hover {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #ff6b6b;
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: #4ecdc4;
    color: white;
}

.option:hover {
    transform: translateX(5px) scale(1.02);
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Image hover effects */
img:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Card hover effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Shaking animation for earthquake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shaking {
    animation: shake 0.5s linear infinite;
}

/* Earthquake button styles */
.secret-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secret-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,0,0,0.5);
}

.secret-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.secret-btn:hover::after {
    opacity: 1;
}

/* Mindmap Styles */
.mindmap-container {
    position: relative;
    min-height: 80vh;
    padding: 2rem;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.mindmap-main-node {
    background: linear-gradient(135deg, #4ecdc4, #556270);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.mindmap-main-node:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.mindmap-main-node h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mindmap-main-node p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Mindmap Branches and Nodes */
.mindmap-branch {
    position: absolute;
    width: 30%;
}

.mindmap-node {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.mindmap-node:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.asteroid-branch {
    left: 10%;
    top: 20%;
}

.volcano-branch {
    right: 10%;
    top: 20%;
}

.mindmap-subnodes {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mindmap-subnode {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    flex: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mindmap-subnode:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Connectors */
.mindmap-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connector {
    stroke: #4ecdc4;
    stroke-width: 2;
    stroke-dasharray: 5;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

.asteroid-connector {
    stroke: #ff6b6b;
}

.volcano-connector {
    stroke: #ffc107;
}

/* Enhanced Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(to right, #fff, #f8f9fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.15);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
