body {
    font-family: 'Times New Roman', Times, serif, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url('img/music-vintage-score-sheet.jpg') no-repeat right center;
    background-size: cover;
}

header {
    background: #333; /* Dark background for header */
    color: #fff; /* White text color for readability */
    padding: 20px;
    text-align: center;
    margin: 20px;
    border-radius: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff; /* White text color for links */
    text-decoration: none;
}

nav ul li a:hover {
    color: #ffcc00; /* Highlight color for links on hover */
}

main {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent background to ensure readability */
    margin: 20px;
    border-radius: 10px;
}

#mp3-player {
    text-align: center;
    margin: 20px 0;
}

#mp3-player h2 {
    margin-bottom: 20px;
}

#mp3-player iframe {
    display: block;
    margin: 0 auto;
}


section {
    margin: 20px 0;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1, h2, p, table {
    z-index: 1; /* Ensure text and table are above the background */
    position: relative;
}

h2 {
    color: #333; /* Set color for the headings */
    margin-bottom: 10px; /* Space below the headings */
}

p {
    color: #555; /* Change text color for better readability */
}

.biography-content {
    display: flex;
    align-items: center; /* Center align items vertically */
    justify-content: center; /* Center align items horizontally */
    gap: 20px; /* Adjust the gap as needed */
}

.biography-table {
    flex: 1;
    margin-left: 20px; /* Add margin to the left for distance from the image */
}

.biography-table table {
    border-collapse: collapse;
    width: auto; /* Adjust the width to fit the content */
    margin: 0 auto; /* Center the table horizontally */
}

.biography-table th, .biography-table td {
    border: 1px solid #ddd;
    padding: 10px; /* Adjust padding for better readability */
}

.biography-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.biography-table td {
    background-color: #fff;
}

footer {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent background to ensure readability */
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

/* Animation for flying to the right */
@keyframes fly-right {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.portrait, .music-sheet, .legacy {
    max-width: 20%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
    opacity: 0; /* Start hidden */
}

.portrait.fly-right, .music-sheet.fly-right, .legacy.fly-right {
    animation: fly-right 1s forwards; /* Apply the animation */
}

.music-sheet:hover, .portrait:hover, .legacy:hover {
    transform: scale(1.1); /* Increase size on hover */
}

#beethoven-image {
    float: left;
}

.music-content {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Adjust the gap as needed */
}

.music-text {
    flex: 1;
}

.music-video {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hover-animate {
    transition: transform 0.3s ease; /* Transition for headings */
}

.hover-animate:hover {
    transform: scale(1.1); /* Increase size on hover */
}

.feedback-section {
    margin-top: 20px;
    text-align: center;
}

.feedback-section h3 {
    margin-bottom: 10px;
}

#feedback-form {
    display: inline-block;
    text-align: left;
}

#feedback {
    width: 100%;
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.star-rating input {
    display: none;
}

.star-rating .icon {
    font-size: 2em;
    color: #ccc;
    cursor: pointer;
}

.star-rating input:checked ~ .icon,
.star-rating input:hover ~ .icon {
    color: #ffcc00;
}

.star.selected {
    color: #ffcc00;
}

.star-rating input:checked ~ .icon ~ .icon,
.star-rating input:hover ~ .icon ~ .icon {
    color: #ccc;
}

button[type="submit"] {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

button[type="submit"]:hover {
    background-color: #555;
}

.decorative-notes {
    text-align: center;
    margin-top: 20px;
}

.decorative-notes i {
    font-size: 2em;
    color: #333;
    margin: 0 5px;
    opacity: 0.5;
}



/* Feedback styles */
.feedback {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    flex: 1 1 calc(33.333% - 20px); /* Adjust width and spacing */
    box-sizing: border-box;
}

#feedbacks-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#doodle-game {
    text-align: center;
    margin: 20px 0;
}


.chatbot-icon {
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
    background-color: grey;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure the image fits within the circle */
}

.chatbot-icon img {
    width: 100%; /* Ensure the image covers the entire area */
    height: 100%; /* Ensure the image covers the entire area */
    object-fit: cover; /* Ensure the image covers the entire area */
    object-position: center; /* Center the image */
    transform: scale(1.6); /* Scale the image to make the face bigger */
}

.chat-window {
    display: none;
    position: fixed;
    bottom: 180px; /* Adjusted to accommodate larger icon */
    right: 20px;
    width: 300px;
    max-width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.chat-header {
    background-color: grey;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-body {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #ccc;
}

.chat-footer input {
    width: calc(100% - 50px);
    padding: 5px;
}

.chat-footer button {
    width: 40px;
    padding: 5px;
}

#doodle-game a:hover {
    text-decoration: underline;
}

/* Ensure the compositions are hidden initially */
.composition-list {
    display: none; /* Initially hidden */
}

/* Decorative music notes for the compositions section */
#compositions {
    position: relative;
}

#compositions .decorative-notes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    display: none; /* Initially hidden */
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#compositions .decorative-notes i {
    font-size: 2em;
    color: #ccc;
}

#compositions.open .decorative-notes {
    display: flex; /* Show when the section is open */
}