* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:'Trebuchet MS', sans-serif;
    background-color: white;
    color: black;
    transition: background-color 0.3s ease, color 0,3s ease;
}

.dark-mode {
    background-color: #121212;
    color: white;
}

.header-container {
    position: relative;
    min-height: 60vh;
    background-image: url("Home pic.jpg");
    padding: 60px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.nav-bar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
    /*position: relative;
    padding: 5px 0;
    margin-top: -20px; /* Adjust to overlap with header */
    /*margin-right: 50px;
    justify-content: center;*/
}

.nav-bar ul {
    display: flex;
    list-style-type: none;
    gap: 1rem;
    padding-right: 20px;
    /*overflow: hidden;
    float: right;
    justify-content: center;
    flex-wrap: wrap;*/
}

.nav-bar ul li {
    margin: 0 15px;
    float: right;
}

.nav-bar ul li a, .nav-bar ul li button {
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-shadow: 1px 1px 2px black;
    transition: background-color 0.3s ease;
}

.nav-bar a:hover, .nav-bar button:hover {
    background-color: purple;
    border-radius: 5px;
    padding: 5px 10px;
} 

.header-text h1 {
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.header-text p.subtitle {
    font-style: italic;
    font-size: 1.2rem;
}

.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px;
}

.dark-mode .intro-section {
    background-color: #1e1e1e;
    color: white;
}

.intro-image img {
    width: 350px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    margin-left: -50px;
}

.content {
    max-width: 600px;
    flex: 1;
}

.content h3 {
    color: darkblue;
    margin-bottom: 10px;
}

.dark-mode .content h3 {
    color: lightblue;
}

.content p, .content li {
    margin-bottom: 10px;
    color: inherit;
}

.content ul {
    padding-left: 20px;
}

#theme-button {
    border: 2px solid black;
    border-radius: 4px;
}

.quiz-section {
    background-color: rgb(184, 193, 221);
    color: #333;
    margin: auto;
    border-radius: 100px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 1200px;
    
}

.dark-mode .quiz-section {
    background-color: rgb(184, 193, 221);
    color: black;
}

.quiz-section h2 {
    color: rebeccapurple;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.quiz-container {
    display: flex;
    gap: 40px; /* Space between text and image */
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.quiz-text {
    flex: 1;
    min-width: 250px;
}

.lead{
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 10px;
}

.sub-lead {
    text-align: center;
    font-size: 1rem;
    color: #444;
    margin-bottom: 20px;
}

.quiz-image-container {
    flex: 1;
    text-align: center;
}

.quiz-image {
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.music-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
}

.music-button {
    background-color: #4b0082;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: backgroud-color 0.3s;
}

.music-button:hover {
    text-decoration: #6a0dad;
}

/* Dual-text (Refection and Feedback) */
.dual-text {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
}

.left-content, .right-content {
    flex: 1;
    min-width: 250px;
}

.left-content {
    padding-right: 20px;
}

.right-content {
    padding-left: 20px;
}

.lead-paragraph {
    font-size: 1.1rem;
    font-weight: bold;
}

.reflection-list {
    padding-left: 20px;
    font-size: 1rem;
    font-style: italic
}

.share-paragraph {
    font-size: 1.1rem;
    font-weight: bold;
}

#feedback-form textarea {
    width: 100%;
    max-width: 500px;
    font-family: inherit;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#feedback-form button {
    width: fit-content;
    margin-top: 10px;
    padding: 10px 18px;
    background-color: #4b0082;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#feedback-form button:hover {
    background-color: #6a0dad;
}

.feedback-msg {
    margin-top: 15px;
    font-weight: bold;
    color: green;
    display: none;
    text-align: center;
}

.resources-section {
    background-color: #f3f5f9;
    color: black;
    padding: 40px 20px;
    max-width: 900px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.resources-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #4b0082;
    text-align: center;
    margin-bottom: 24px;
}

.resource-text {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.resource-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.resource-list li {
    font-size: 1rem;
    margin: 12px 0;
    padding-left: 24px;
    position: relative;
}

.resource-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4b0082;
    font-weight: bold;
}

.learn-more {
    font-size: 1rem;
    text-align: center;
    color: #333;
}

.resource-button {
    display: inline-block;
    margin: 12px 8px;
    padding: 10px 20px;
    background-color: #4b0082;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.resource-button:hover {
    background-color: #6a0dad;
}

.music-footer {
    background-color:#4b0082;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    border-top: 4px solid #6a0dad;
}

.music-footer .footer-content {
    max-width: 1000px;
    margin: auto;
}

.footer-content p {
    margin: 8px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #dcd0ff;
}

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        text-align: center;
    }

    .intro-image img {
        margin: 0 auto;
    }

    .content {
        margin-top: 20px;
    }

    .quiz-container { 
        flex-direction: column; /* Stack on mobile */
        align-items: center;
    }

    .music-buttons {
        flex-direction: column; /*Stack music buttons vertically on mobile */
        align-items: center;
    }

    .quiz-image {
        max-width: 100%; /* Make image responsive */
    }

    .quiz-text {
        text-align: center;
    }

    .dual-text {
        flex-direction: column; /* Stack content on mobile */
        align-items: center;
    }

    .left-content, .right-content {
        width: 100%;
        padding: 0;
    }

    #feedback-form button {
        align-self: center;
    }

    .resource-list li {
        margin: 8px 0;
        padding-left: 20px; /* Adjust padding for smaller screens */
    }

    .resources-section {
        padding: 30px 15px; /* Reduce padding on smaller screens */
    }

    .rsource-button {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 8px auto; /* Center buttons on smaller screens */
    }
}