body {
    text-align: left;
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* Change background to white */
    font-family: Arial, sans-serif; /* Change font to sans-serif */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

header, footer {
    text-align: left;
    background-color: #ffffff; /* Change background to white */
    color: #000000; /* Change text color to black */
}

h1 {
    font-size: 2.5em;
    color: #000000; /* Ensure headline is black */
    margin-left: 20px; /* Add left margin to align with other text */
}

nav {
    margin: 20px 0;
    margin-left: 20px; /* Add left margin to align with other text */
}

nav a {
    color: #000000; /* Change link color to black */
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

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

nav ul li {
    display: block; /* Display items under each other */
    margin-bottom: 10px; /* Add space between items */
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    text-align: left;
    margin: 20px;
    margin-left: 20px; /* Add left margin to align with other text */
    border: 1px solid rgba(0, 0, 0, 0.5); /* High-contrast border with 50% opacity */
    border-radius: 5px;
}

section.dark-mode {
    border: 1px solid rgba(255, 255, 255, 0.5); /* High-contrast border for dark mode with 50% opacity */
}

.project {
    margin-bottom: 20px;
    text-align: left; /* Ensure left alignment */
}

.project h3, .project p {
    margin: 0;
    margin-left: 20px; /* Add left margin to align with other text */
}

footer {
    background: #ffffff; /* Change background to white */
    color: #000000; /* Change text color to black */
    position: relative;
    bottom: 0;
    width: 100%;
    margin-left: 20px; /* Add left margin to align with other text */
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout for all breakpoints */
    gap: 20px;
}

.project-box {
    border: 1px solid rgba(0, 0, 0, 0.5); /* High-contrast border with 50% opacity */
    border-radius: 5px;
    background-color: transparent; /* Remove background */
}

.project-box.dark-mode {
    border: 1px solid rgba(255, 255, 255, 0.5); /* High-contrast border for dark mode with 50% opacity */
    background-color: transparent; /* Remove background */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-box {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.5); /* High-contrast border with 50% opacity */
    padding: 20px;
    border-radius: 5px;
    background-color: #ffffff; /* High-contrast background */
    color: #000000; /* High-contrast text color */
}

.contact-box.dark-mode {
    border: 1px solid rgba(255, 255, 255, 0.5); /* High-contrast border for dark mode with 50% opacity */
    background-color: #000000; /* High-contrast background for dark mode */
    color: #ffffff; /* High-contrast text color for dark mode */
}

@media (min-width: 600px) {
    .project {
        flex-direction: row;
    }

    .project img {
        max-width: 100%; /* Increase image size to maximum width of the container */
        margin-right: 20px;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .image-container img {
        max-height: 69vh; /* Maximum height of 69% of the viewport height on desktop */
    }
}

/* Dark mode styles */
body.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

header.dark-mode, footer.dark-mode {
    background-color: #000000;
    color: #ffffff;
}

h1.dark-mode {
    color: #ffffff; /* Change headline to white in dark mode */
}

a.dark-mode {
    color: #ffffff;
}

input.dark-mode, textarea.dark-mode {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* Toggle switch styles */
.switch {
    position: relative;
    display: inline-block;   
    width: 34px;
    height: 20px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000; /* Change background to black in light mode */
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #fff; /* Change background to white in dark mode */
}

input:checked + .slider:before {
    transform: translateX(14px);
    background-color: #000; /* Change dot to black in dark mode */
}

#mouse-coordinates {
    background-color: rgb(0, 0, 0); /* Black background in light mode */
    color: white; /* White font in light mode */
    padding: 10px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
    text-align: center;
}

#mouse-coordinates.dark-mode {
    background-color: rgb(255, 255, 255); /* White background in dark mode */
    color: black; /* Black font in dark mode */
}

#sticky-box {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: black; /* Black font in light mode */
    padding: 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px; /* Ensure sticky box is large enough */
    background: none; /* Remove background */
}

#sticky-box.dark-mode {
    color: white; /* White font in dark mode */
}

#toggle-container {
    justify-content: center;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    min-height: 200px; /* Set a minimum height for the image containers */
    display: flex; /* Display images in a row */
    flex-wrap: wrap; /* Allow images to wrap to the next line if necessary */
    gap: 10px; /* Add space between images */
}

.image-container img {
    max-width: 100%; /* Increase image size to maximum width of the container */
    height: auto;
    display: block;
    margin: 10px 0;
}