/* Tutorial overlay - completely transparent, no blur */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* Centered modal dialog with solid gradient background */
.tutorial-dialog {
    background: linear-gradient(135deg, #446684, #6e63c5);
    border-radius: 24px;
    padding: 28px 32px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 45px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-family: 'Cormorant Garamond', serif;
    position: relative;
    animation: fadeInScale 0.3s ease;
    text-align: center;
}

/* Close button – sticky to stay visible when scrolling */
.tutorial-close-btn {
    position: sticky;
    top: 10px;
    float: right;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
    margin-bottom: 10px;
}

.tutorial-close-btn:hover {
    background: rgba(255,255,255,0.4);
}

.tutorial-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 1px;
    clear: both;
}

.tutorial-step-number {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tutorial-dialog img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tutorial-description {
    font-size: 18px;
    line-height: 1.5;
    margin: 20px 0 30px;
}

.tutorial-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.tutorial-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #f0f0f0;
}

.tutorial-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tutorial-checkbox input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.tutorial-nav-buttons {
    display: flex;
    gap: 12px;
}

.tutorial-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    transition: 0.2s;
}

.tutorial-nav-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* Mobile adjustments – with closer close button and taller images */
@media (max-width: 480px) {
    .tutorial-dialog {
        padding: 16px 16px 24px 16px;
        width: 85%;
        max-height: 75vh;
        overflow-y: auto;
    }
    .tutorial-header {
        font-size: 20px;
        margin-top: 8px;
    }
    .tutorial-step-number {
        font-size: 12px;
    }
    .tutorial-description {
        font-size: 16px;
        margin: 15px 0 20px;
    }
    .tutorial-close-btn {
        top: 2px;
        right: 8px;
        padding: 4px 10px;
        font-size: 12px;
    }
    .tutorial-dialog img {
        max-height: 375px;
    }
    .tutorial-nav-btn {
        padding: 6px 16px;
        font-size: 14px;
    }
    .tutorial-checkbox {
        font-size: 12px;
    }
}