* {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: "Courier New", Courier, monospace;
}

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

body.light-mode {
    background-color: white;
    color: black;
}

.bgimg {
    background-image: url('/images/lucas-giordano-de-sousa-UWupz6Lxz3A-unsplash-medium.jpg');
    height: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.bgimg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Darken the background image */
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2; /* Ensure content is above the dark overlay */
}

.topleft {
    position: absolute;
    top: 0;
    left: 16px;
    z-index: 2; /* Ensure topleft content is above the dark overlay */
}

.bottomleft {
    position: fixed; /* Change from absolute to fixed to keep it at the bottom left of the viewport */
    bottom: 16px;
    left: 16px;
    z-index: 3; /* Increase z-index if necessary to ensure it's above other elements */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for better visibility */
    color: white; /* Ensure text color is white for contrast */
    padding: 10px; /* Add some padding for better appearance */
    border-radius: 5px; /* Optional: Add border radius for smoother edges */
}

.bottomleft a {
    color: white; /* Ensure links are white for better visibility */
    text-decoration: none; /* Remove underline for cleaner look */
}

.bottomleft a:hover {
    text-decoration: underline; /* Add underline on hover for better UX */
}

.middle {
    max-width: 600px;
    margin: 0 auto;
}

ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

ul li {
    margin: 10px 0;
}

ul li a {
    color: inherit; /* Use inherited color to support dark and light modes */
    text-decoration: none;
}

ul li a:hover {
    text-decoration: underline;
}

hr {
    width: 40%;
    margin: 20px auto;
}

.comment {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    border-radius: 5px;
    color: black; /* Ensure text is visible in light mode */
}

body.dark-mode .comment {
    background-color: #2c2c2c;
    border-color: #444;
    color: white;
}

.toggle-button {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 10px;
    cursor: pointer;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 5px;
    z-index: 3; /* Ensure the button is above everything */
}

body.light-mode .toggle-button {
    background-color: #ddd;
    color: black;
}
