.story-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.story-header {
    text-align: center;
    margin-bottom: 2rem;
}

.story-header h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.story-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.storyDiv {
    flex: 1;
    padding: 3rem;
    background: #fafafa;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    overflow-y: auto;
    scroll-behavior: smooth;
    min-height: 300px;
    display: flex;
    align-items: left;
    justify-content: left;
    text-align: left;
}

.story-controls {
    padding: 2rem;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.button-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.button-1:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.button-1:active {
    transform: translateY(0) scale(1);
    transition: all 0.1s;
}

/* Specific button styling to match your color scheme */
#btnStart {
    background: linear-gradient(135deg, #8aff80, #00d084);
    border-color: #8aff80;
    box-shadow: 0 5px 20px rgba(138, 255, 128, 0.3);
}

#btnStart:hover {
    box-shadow: 0 8px 30px rgba(138, 255, 128, 0.4);
    background: linear-gradient(135deg, #9cff92, #00e094);
}

#storyOption1, #storyOption2 {
    background: linear-gradient(135deg, #575bd4, #667eea);
    border-color: #575bd4;
    box-shadow: 0 5px 20px rgba(87, 91, 212, 0.3);
}

#storyOption1:hover, #storyOption2:hover {
    box-shadow: 0 8px 30px rgba(87, 91, 212, 0.4);
    background: linear-gradient(135deg, #6b6fe4, #778efa);
}

#stopBtn {
    background: linear-gradient(135deg, #ff6f61, #ff8a80);
    border-color: #ff6f61;
    box-shadow: 0 5px 20px rgba(255, 111, 97, 0.3);
}

#stopBtn:hover {
    box-shadow: 0 8px 30px rgba(255, 111, 97, 0.4);
    background: linear-gradient(135deg, #ff8071, #ff9a90);
}

#returnBtn {
    background: linear-gradient(135deg, #ff6f61, #ff8a80);
    border-color: #ff6f61;
    box-shadow: 0 5px 20px rgba(255, 111, 97, 0.3);
}

#returnBtn:hover {
    box-shadow: 0 8px 30px rgba(255, 111, 97, 0.4);
    background: linear-gradient(135deg, #ff8071, #ff9a90);
}


#skipBtn {
    background: linear-gradient(135deg, #e0e0ff, #c8c8ff);
    border-color: #e0e0ff;
    box-shadow: 0 5px 20px rgba(224, 224, 255, 0.3);
    color: #333;
}

#skipBtn:hover {
    box-shadow: 0 8px 30px rgba(224, 224, 255, 0.4);
    background: linear-gradient(135deg, #f0f0ff, #d8d8ff);
}

/* Story text animations */
.story-text-enter {
    animation: slideIn 0.6s ease-out;
}

.story-loading {
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.7; 
    }
    50% { 
        opacity: 1; 
    }
}

.welcome-content {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.welcome-emoji {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.storyDiv::-webkit-scrollbar {
    width: 6px;
}

.storyDiv::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.storyDiv::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.storyDiv::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@media (max-width: 768px) {
    .story-container {
        margin: 1rem auto;
    }
    
    .story-header h1 {
        font-size: 2.2rem;
    }
    
    .storyDiv {
        padding: 2rem;
        font-size: 1.1rem;
    }
    
    .story-controls {
        padding: 1.5rem;
    }
    
    .content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button-1 {
        width: 100%;
        max-width: 280px;
    }
    
    .welcome-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .story-header h1 {
        font-size: 1.9rem;
    }
    
    .storyDiv {
        padding: 1.5rem;
        font-size: 1rem;
        min-height: 250px;
    }
    
    .button-1 {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
.help-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.help-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.help-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.help-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 180px;
    overflow: hidden;
}

.help-widget:hover .help-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-menu::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.help-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.help-menu a:last-child {
    border-bottom: none;
}

.help-menu a:hover {
    background-color: #f8f9fa;
}

.help-menu a::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    vertical-align: middle;
}

.help-menu a[href="/instructions"]::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23667eea" viewBox="0 0 24 24"><path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"/></svg>') no-repeat center;
    background-size: 16px;
}

.help-menu a[href="/helpchat"]::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23667eea" viewBox="0 0 24 24"><path d="M12,3C17.5,3 22,6.58 22,11C22,15.42 17.5,19 12,19C10.76,19 9.57,18.82 8.47,18.5C5.55,21 2,21 2,21C4.33,18.67 4.7,17.1 4.75,16.5C3.05,15.07 2,13.13 2,11C2,6.58 6.5,3 12,3Z"/></svg>') no-repeat center;
    background-size: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .help-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .help-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .help-menu {
        min-width: 160px;
        bottom: 55px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .navbar-center {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .navbar-right {
        gap: 1.5rem;
    }
}

.logout-btn {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%); /* red gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e53e3e 0%, #9b2c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}