body {
    font-family: sans-serif;
    text-align: center;
    padding-top: 100px;
    background-color: #282c34; /* Dark background */
    color: #e1e1e1; /* Light text for readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h1 {
    color: #a9b7c6; /* Slightly lighter text for headings */
    margin-bottom: 20px; /* Reduced margin */
}

p {
    color: #d4d4d4; /* Lighter text for paragraphs */
    margin-bottom: 10px; /* Reduced margin */
}

img {
    max-width: 100%; /* Ensure images don't overflow their container */
    height: auto;
    margin-bottom: 20px; /* Added margin */
}

.switch-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Reduced margin */
}

.switch-label {
    font-size: 0.9em;
    margin-right: 10px;
    color: #e1e1e1; /* Light text for readability */
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 17px; /* Rounded corners */
}

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

input:checked + .slider {
    background-color: #3498db;
}

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

input:checked + .slider:before {
    transform: translateX(26px);
}

.light-mode {
    background-color: #ffffff; /* Light background */
    color: #000000; /* Dark text for readability */
}

.light-mode h1 {
    color: #333; /* Slightly darker text for headings */
}

.light-mode p {
    color: #666; /* Slightly lighter text for paragraphs */
}

.subtle-hr {
    width: 50%; /* Adjust the width as needed */
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
    margin: 0.5em auto; /* Reduced margin for better spacing */
}