html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    display: block;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at center top, #d2d6dc 0%, #b8bcc2 40%, #9fa3a9 70%, #8a8e94 100%);
    background-attachment: fixed;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}


.main-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f5f6f7 100%);
    border: 3px solid #3e4c66;
    border-radius: 16px;
    padding: 30px;
    width: 960px;
    max-width: calc(100% - 40px);
    margin: 50px auto;
    min-height: 780px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.help-text {
    color: #454955;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.5;
}

.help-text a {
    color: #8CD3DA;
    text-decoration: none;
}

.help-text a:hover {
    color: #F38AB8;
    text-decoration: underline;
}

.genre-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.genre-card {
    background: #9ea5b2;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.genre-card:hover {
    transform: scale(1.05);
    background: #4a5a7a;
}

.genre-card h2 {
    color: white;
}

h2 {
    margin: 0 0 10px 0;
    color: #454955;
}

.genre-info {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.branding-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px;
    width: 300px;
}

@media (max-width: 600px) {
    .genre-container {
        grid-template-columns: 1fr;
    }
    .main-container {
        padding: 20px;
        width: calc(100% - 20px);
        max-width: none;
        margin: 10px auto;
    }
    .help-text {
        font-size: 1em;
    }
    .branding-image {
        width: 200px;
    }
    
    .song-type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .song-type-btn {
        width: 100%;
        max-width: 320px;
    }
    
    .song-dropdown,
    .demo-songs-dropdown {
        max-width: 320px;
        width: 100%;
    }
    
    .load-song-btn {
        width: 100%;
        max-width: 320px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

.genre-card.disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.genre-card.disabled:hover {
    transform: none;
}

/* Password screen styles */
#passwordScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top, #d2d6dc 0%, #b8bcc2 40%, #9fa3a9 70%, #8a8e94 100%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-container {
    background: white;
    border: 2px solid #3e4c66;
    border-radius: 16px;
    padding: 30px;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.password-container h2 {
    color: #454955;
    margin-bottom: 20px;
    width: 100%;
}

.password-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.password-button {
    background-color: #d4d5d8;
    color: #454955;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.password-button:hover {
    background-color: #3e4c66;
    color: white;
}

.error-message {
    color: #ff6b6b;
    margin-top: 10px;
    display: none;
}

/* Song Type Selection Styles */
.song-type-selection {
    text-align: center;
    margin-bottom: 30px;
}

.song-type-selection h2 {
    color: #454955;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.song-type-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.song-type-btn {
    background-color: #d4d5d8;
    color: #454955;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
    min-width: 150px;
}

.song-type-btn:hover {
    background-color: #3e4c66;
    color: white;
    transform: translateY(-2px);
}

.song-type-btn.disabled {
    background-color: #888888;
    color: #aaaaaa;
    cursor: not-allowed;
    opacity: 0.7;
    border: 2px solid #666666;
}

.song-type-btn.disabled:hover {
    background-color: #888888;
    color: #aaaaaa;
    transform: none;
    cursor: not-allowed;
}

.tutorial-info {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #454955;
    font-size: 1em;
    line-height: 1.5;
}

.tutorial-info a {
    color: #8CD3DA;
    text-decoration: none;
    font-weight: bold;
}

.tutorial-info a:hover {
    color: #F38AB8;
    text-decoration: underline;
}

/* Loader and Instructions Container */
.loader-instructions-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

#loader {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    background-color: #7e8798;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid white;
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#loader h2 {
    color: white;
}

#instructions {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: left;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #7e8798;
    box-sizing: border-box;
}

#instructions h2 {
    color: #454955;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#instructions p {
    color: #454955;
    line-height: 1.6;
    margin-bottom: 15px;
}

#instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#instructions ul li {
    color: #454955;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

#instructions ul li:before {
    content: "•";
    color: #8CD3DA;
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 600px) {
    .loader-instructions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    #loader,
    #instructions {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Video Thumbnails Section */
.video-thumbnails {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.video-thumbnail {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    text-align: center;
}

.video-thumbnail h3 {
    color: #454955;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.video-thumbnail a {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-thumbnail a:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .video-thumbnails {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .video-thumbnail {
        max-width: 100%;
        width: 100%;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #454955;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.modal-instruction {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.4;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: #8CD3DA;
}

.song-dropdown-modal {
    margin-bottom: 20px;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    min-width: 80px;
}

.cancel-btn {
    background-color: #ccc;
    color: #333;
}

.cancel-btn:hover {
    background-color: #bbb;
}

.confirm-btn {
    background-color: #d4d5d8;
    color: #454955;
}

.confirm-btn:hover {
    background-color: #3e4c66;
    color: white;
}

.modal-btn:disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-btn:disabled:hover {
    background-color: #ccc;
    color: #999;
    transform: none;
}

/* Song Selection Styles */
.song-selection {
    text-align: center;
    margin-bottom: 30px;
}

.song-selection h2 {
    color: #454955;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.song-dropdown {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

.song-dropdown:focus {
    outline: none;
    border-color: #8CD3DA;
}

.admin-dashboard-btn {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
    background: #34459B;
    color: white;
    border: 2px solid #2a3a7a;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-dashboard-btn:hover {
    background: #2a3a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.admin-dashboard-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.load-song-btn {
    background-color: #d4d5d8;
    color: #454955;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s;
}

.load-song-btn:hover:not(:disabled) {
    background-color: #3e4c66;
    color: white;
}

.load-song-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Genre Selection Styles */
.genre-selection {
    /* Inherits styles from existing .genre-container */
    display: block;
}

/* Title validation styles */
.title-validation {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.title-validation.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.title-validation.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Demo Songs Section Styles */
.demo-songs-section {
    padding-top: 50px;
    text-align: center;
}

/* Style .demo-songs-dropdown to match .song-dropdown exactly */
.demo-songs-dropdown {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

.demo-songs-dropdown:focus {
    outline: none;
    border-color: #8CD3DA;
}

/* Start New Mix Link Styling */
.start-new-mix-link {
    color: #8CD3DA;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    display: block;
    margin: 10px 0;
}

.start-new-mix-link:hover {
    color: #F38AB8;
    text-decoration: underline;
} 