/* Common styles for both modes */
body {
    margin: 0;
    font-family: 'Playfair Display', serif;
}
header, footer {
    text-align: center;
    padding: 1em;
    position: relative;
}
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;
    background-image: url('image/home-background.jpg');
    background-size: cover;
    background-position: center;
}
h1 {
    font-size: 2.5em;
    margin: 0.5em 0;
}
.button {
    font-size: 2em;
    font-weight: bold;
    margin: 2em 0;
    padding: 0.5em 1em;
    text-decoration: none;
    display: inline-block;
    border-radius: 15px;
    color: #fff;
    background-color: #111111;
    border: 2px solid #fff;
}
.button:hover {
    background-color: #333333;
}

/* Mode switch button styles */
#mode-switch {
    position: absolute;
    top: 10px;
    right: 20px; /* Adjusted to be further from the right edge */
    width: 30px;
    height: 30px;
    border-radius: 5px;
    padding: 0;
    text-align: center;
    line-height: 30px;
    background: url('image/lightbulb-icon.png') no-repeat center center; /* Lightbulb icon */
    background-size: contain;
    border: none; /* Remove border for icon button */
    cursor: pointer; /* Add cursor pointer for better UX */
}

/* Default dark mode styles */
body.dark-mode {
    background-color: #000;
    color: #fff;
}
header.dark-mode {
    background: linear-gradient(to bottom, #111111, #111113);
}
footer.dark-mode {
    background: linear-gradient(to bottom, #111113, #111111);
}
.button.dark-mode {
    color: #fff;
    background-color: #111111;
    border: 2px solid #fff;
}
.button.dark-mode:hover {
    background-color: #333333;
}

/* Light mode styles */
body.light-mode {
    background-color: #fff;
    color: #000;
}
header.light-mode {
    background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
    color: #000;
}
footer.light-mode {
    background: linear-gradient(to bottom, #c0c0c0, #e0e0e0);
    color: #000;
}
.button.light-mode {
    color: #000;
    background-color: #e0e0e0;
    border: 2px solid #000;
}
.button.light-mode:hover {
    background-color: #c0c0c0;
}