.tutorial-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    height: 90%;
    max-height: 800px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.tutorial-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.tutorial-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.tutorial-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4CAF50;
    font-size: 22px;
}

.tutorial-content p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.tutorial-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100% - 100px);
    overflow: hidden;
    margin: 10px 0;
}

.tutorial-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tutorial-nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.tutorial-nav-btn {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.tutorial-nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.step-indicator {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin: 0 5px;
}

.step-dot.active {
    background-color: #4CAF50;
}

#tutorial-toggle {
    position: absolute;
    top: 10px;
    right: 60px; /* Position next to settings button */
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#tutorial-toggle:hover {
    background-color: #3e8e41;
}

/* Style for the tutorial button on the profile screen */
.tutorial-button {
    padding: 12px 24px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tutorial-button:hover {
    background-color: #0b7dda;
}

/* Make sure the buttons are side by side on the profile screen */
#profile-screen .button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Style for the start game button on the profile screen to match tutorial button */
.start-button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.start-button:hover {
    background-color: #3e8e41;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tutorial-panel {
        width: 95%;
        height: 95%;
    }
    
    .tutorial-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .tutorial-content p {
        font-size: 14px;
        margin: 8px 0;
    }
    
    .tutorial-nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #tutorial-toggle {
        padding: 6px 12px;
        font-size: 12px;
        right: 55px;
    }
    
    .tutorial-button,
    .start-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-height: 600px) {
    .tutorial-panel {
        height: 98%;
    }
    
    .tutorial-header {
        padding: 10px 15px;
    }
    
    .tutorial-nav-buttons {
        padding: 10px 15px;
    }
    
    .step-indicator {
        padding: 5px;
    }
} 