body {
    background-color: #2a2a2a;
}

h2, h3, h4 {
    letter-spacing: 0.5px;
    background-color: transparent;
}

p, td, li {
    font-family: sans-serif;
    color: #c9c9c9;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: transparent;
}

a {
    color: #6893cc;
    text-decoration: none;
}

a:hover {
    color: #a3c9ff;
    text-decoration: underline;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.header {
    background: #3d3d3d;
    color: #e6a1b1;
    text-align: center;
    padding: 1em 0;
}

.main {
    padding: 1em 0;
}

.footer {
    background: #2d2d2d;
    color: #e6a1b1;
    text-align: center;
    padding: 1em 0;
    margin-top: 1em;
}

/* Quiz-specific styles */
.quiz-container {
    background: #1d1d1d;
    color: #c9c9c9;
    padding: 1.5em;
    border-radius: 5px;
    margin-bottom: 20px;
}

.question-container {
    margin-bottom: 25px;
    border-left: 3px solid #e6a1b1;
    padding-left: 15px;
}

.question {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #e6a1b1;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.option {
    background: #2d2d2d;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #3d3d3d;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.option:hover {
    background: #333333;
    transform: translateX(5px);
}

.option.selected {
    background: rgba(230, 161, 177, 0.2);
    border: 1px solid #e6a1b1;
}

.option-label {
    font-weight: bold;
    color: #e6a1b1;
    margin-right: 8px;
    display: none; /* Hide the label from view */
}

.submit-button {
    display: block;
    background: #3d3d3d;
    color: #e6a1b1;
    padding: 12px 25px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin: 20px auto;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #4d4d4d;
    color: #e6a1b1;
}

.submit-button:disabled {
    background: #2d2d2d;
    color: #8a8a8a;
    cursor: not-allowed;
}

.results-container {
    display: none;
    padding: 20px;
    background: #222222;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #3d3d3d;
}

.result-header {
    font-size: 1.5em;
    color: #e6a1b1;
    text-align: center;
    margin-bottom: 20px;
}

.result-message {
    margin-bottom: 15px;
    line-height: 1.6;
}

.score-display {
    font-size: 2em;
    text-align: center;
    margin: 20px 0;
    color: #e6a1b1;
    font-family: monospace;
}

.compatibility-level {
    font-weight: bold;
    color: #6893cc;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.andalina-says {
    background: #2a2a2a;
    border-left: 4px solid #e6a1b1;
    margin: 15px 0;
    padding: 15px;
    border-radius: 0 5px 5px 0;
    font-style: italic;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.restart-button, .copy-button, .edit-button {
    background: #3d3d3d;
    color: #e6a1b1;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.restart-button:hover, .copy-button:hover, .edit-button:hover {
    background: #4d4d4d;
    color: #e6a1b1;
}

.status-container {
    background-color: rgba(230, 161, 177, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #e6a1b1;
}

.status-pulse {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #e6a1b1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 161, 177, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 161, 177, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 161, 177, 0);
    }
}

.hidden-textarea {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Piano animation for the welcome screen */
.piano-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.piano-keys {
    display: flex;
    height: 60px;
}

.key {
    width: 20px;
    margin: 0 2px;
    background: #fff;
    border-radius: 0 0 3px 3px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.key:hover {
    background: #f0f0f0;
    transform: translateY(5px);
}

.key.black {
    background: #333;
    height: 40px;
    width: 16px;
    margin: 0 -8px;
    z-index: 2;
}

.key.black:hover {
    background: #222;
}

.key.active {
    background: #e6a1b1;
    transform: translateY(5px);
}

.key.black.active {
    background: #df9fe0;
}

/* Audio theme for the welcome message */
.music-note {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    margin: 0 5px;
    color: #e6a1b1;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.music-note:nth-child(2) {
    animation-delay: 0.5s;
}

.music-note:nth-child(3) {
    animation-delay: 1s;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .option {
        padding: 10px;
    }
}