body {
    font-family: sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

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

.theme-switch input {
    display:none;
}

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

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

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

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

.slider.round {
    border-radius: 34px;
}

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

/* Dark mode styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

/* Light mode styles */
.light-mode {
    background-color: #fff;
    color: #000;
}

/* Form Styles */
#contact-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dark-mode #contact-form {
    background-color: #2c2c2c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#contact-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0b7dda;
}

/* Disqus Styles */
#disqus_thread {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.dark-mode #disqus_thread {
    background-color: #2c2c2c;
}
