* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 10px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.web-name {
    text-shadow: .025em .025em 0 #5A3E36,
        .05em .05em 0 #3E2A24,
        .075em .075em 0 rgba(90, 62, 54, .566),
        .1em .1em 0 rgba(245, 232, 199, .505);
}

.web-name a {
    text-decoration: none;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.web-name a,
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
    transition: color 0.3s ease;
}

.intro-section {
    margin-bottom: 30px;
}

h2 {
    color: #5A3E36;
    border-bottom: 2px solid #5A3E36;
    padding-bottom: 5px;
    font-size: 1.5em;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.course-section {
    margin-bottom: 30px;
}

.course {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 4px solid #5A3E36;
    border-radius: 4px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

h3 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

p {
    margin: 5px 0;
    color: #666;
    font-size: 1em;
    transition: color 0.3s ease;
}

strong {
    color: #333;
    transition: color 0.3s ease;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #666;
    transition: color 0.3s ease;
}

li {
    margin: 8px 0;
    font-size: 1em;
}

.theme-switch {
    text-align: end;
    margin-bottom: 20px;
}

#theme-toggle {
    padding: 10px 20px;
    font-size: 1em;
    color: #020202;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: cursive;
    background-image: linear-gradient(#F5E8C7, #5A3E36);
    box-shadow: 0px 1px 6px 0px #5A3E36;
    transition: background-color 0.3s ease;
}

#theme-toggle:hover {
    background-color: #3E2A24;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #2c2c2c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode h1 {
    color: #C68E5A;
}

body.dark-mode h2 {
    color: #C68E5A;
    border-bottom: 3px solid #C68E5A;
}

body.dark-mode .course {
    background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
    border-left: 4px solid #C68E5A;
}

body.dark-mode h3 {
    color: #E8C7A5;
}

body.dark-mode p {
    color: #d0d0d0;
}

body.dark-mode strong {
    color: #ffffff;
}

body.dark-mode ul {
    color: #d0d0d0;
}

body.dark-mode li {
    color: #d0d0d0;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #f9f9f9;
    font-size: 0.875rem;
    color: #666;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode footer {
    background-color: #2c2c2c;
    color: #d0d0d0;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.1em;
    }

    p,
    li {
        font-size: 0.95em;
    }

    .course {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .web-name a {
        font-size: 1.3em;
    }

    .web-name {
        margin-bottom: 10px;
    }

    .container {
        padding: 8px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    p,
    li {
        font-size: 0.9em;
    }

    .course {
        padding: 6px;
        margin: 10px 0;
    }

    ul {
        padding-left: 15px;
    }

    #theme-toggle {
        padding: 8px 15px;
    }
}