/* General Styles */
body {
    font-family: "Georgia", serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    max-width: 900px;
    margin: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
header {
    padding: 1.5em 0;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    display: flex;
    align-items: center; /* Aligns items vertically */
    justify-content: space-between; /* Positions the button to the right */
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

/* Logo Styling */
#logo {
    width: 150px; /* Adjust size as needed */
    height: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align with the heading text */
}

#logo-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align logo and button */
    width: fit-content; /* Container width adjusts to content */
    margin: 0 auto; /* Center the container horizontally */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 0.05em;
    display: inline-block;
    padding-bottom: 0.2em;
    transition: border-color 0.3s ease;
}

/* Main Content */
main {
    margin: 2rem 1rem;
    padding: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

main h2 {
    font-size: 1.5em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Links */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Dark Mode Toggle Button */
#dark-mode-toggle {
    top: 1rem;
    right: 1rem;
    max-width: 100px;
    padding: 0.5rem 1rem;
    border: 1px saddlebrown;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}
