body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica', sans-serif;
    background-color: #F5F5FF;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns the main content to the top */
    height: 100%; /* Changed from 100vh to 100% */
}
/* Night Mode Styles */
:root {
  --background-color: #1a1a2e; /* Dark background for night mode */
  --text-color: #e6e6e6; /* Light text for better readability in night mode */
  --link-color: #4e9f3d; /* A green that stands out against the dark background but isn't too bright */
}

html.night-mode,body.night-mode {
  background-color: var(--background-color);
  color: var(--text-color);
}

body.night-mode a {
  color: var(--link-color);
}

body.night-mode .about-content-box {
  background-color: #2c3e50; /* Darker background for readability */
  color: var(--text-color); /* Ensures text inside the box is also themed */
}

body.night-mode header,
body.night-mode footer {
  background-color: var(--background-color);
}

.main-content {
    width: 80%; /* Controls the width of the content area */
    max-width: 800px; /* Sets a max-width for larger screens */
    margin-top: 20px; /* Adds space at the top */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-aligns children horizontally */
}

.top-right-menu, footer {
    position: absolute;
    font-size: 0.8rem;
}

.top-right-menu {
    display: flex; /* This will apply Flexbox to your nav container */
    align-items: center; /* This will vertically center the items in the nav */
    justify-content: flex-end;
    top: 10px; /* Gives space from the top edge */
    right: 10px;
}

#settingsIcon img {
    height: 25px;
    width: auto;
    display:none;
    vertical-align: middle; /* This aligns the image vertically with the text */

}
footer {
    bottom: 10px; /* Gives space from the bottom edge */
    width: 100%;
    text-align: center;
}

footer a, .top-right-menu a {
    text-decoration: none;
    transition: transform 0.3s ease, font-weight 0.3s ease;
    transform: scale(1);
    font-weight: 400;
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
}

footer a:hover, .top-right-menu a:hover {
  /* Scale up text slightly */
  transform: scale(1.1);
  /* Visual weight increase, without changing the layout */
  font-weight: 700;
}

/* Removes the previously set animation for .brand */
.about-page .brand {
    animation: none;
    margin-bottom: 80px;
}

.about-title {
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 700;
    text-align: center;
    align-items: center;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.about-content-box {
    background-color: #fff; /* Or any color that fits your design */
    border-radius: 15px; /* Optional: For rounded corners */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds subtle shadow */
    max-width: 800px; /* Sets a maximum width for the box */
    margin: auto; /* Centers the box */
    text-align: left; /* Keeps the text left-aligned within the box */
}

.about-content-box p {
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal
    /* font-family: Helvetica, Georgia, serif; 
    font-size: 1em;
    line-height: 1.6;A dark grey for the text, easier on the eyes than pure black */ 
    color: #333; 
}

.coffee {
    display: flex;
    justify-content: center;
}

.coffee {
    display: flex; /* Use flexbox to align the child elements */
    justify-content: flex-end; /* Center the button horizontally */
    /* or use 'flex-end' to align it to the right */
}

main.content-area h1,
main.content-area p {
    align-self: flex-start; /* Aligns to the left side of the flex container */
    text-align: center;
    width: 100%; /* Ensures full width within the container for alignment */
}

/* Additional responsive styling for smaller screens */
@media screen and (max-width: 768px) {
    .main-content {
        width: 90%; /* Allows for more space on the sides */
    }
}
/* Positioning the toggle switch container */
#toggleSwitchContainer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000; /* Ensures it's on top of other elements */
}

/* Toggle switch styles (as provided) */
.switch {
  position: relative;
  display: inline-block;
  width: 40px; /* Reduced width */
  height: 20px; /* Reduced height */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; /* Reduced height */
  width: 16px; /* Reduced width */
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px); /* Adjusted for smaller size */
  -ms-transform: translateX(20px); /* Adjusted for smaller size */
  transform: translateX(20px); /* Adjusted for smaller size */
}

/* Rounded sliders */
.slider.round {
  border-radius: 20px; /* Adjusted for smaller size */
}

.slider.round:before {
  border-radius: 50%;
}

