:root {
    --bg-color: #f8f8f8;
    --content-bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #1a8917;
    --icon-color: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.content-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--content-bg-color);
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

p {
    font-size: 21px;
    margin-bottom: 30px;
    text-align: justify;
}

ul {
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
    border-radius: 3%;
}

.normal-img {
    position:relative; 
    transform: translateX(-50%); 
    left: 50%;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;
}

.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: zoom-out;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--content-bg-color);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--icon-color);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --content-bg-color: #2a2a2a;
    --text-color: #e0e0e0;
    --link-color: #4caf50;
    --icon-color: #e0e0e0;
}

body.dark-mode .zoom-overlay {
    background-color: rgba(0, 0, 0, 0.9);
}

body.dark-mode .sun-icon {
    display: none;
}

body.dark-mode .moon-icon {
    display: block;
}