:root {
    --bg-color: rgb(214, 210, 205);
    --body-bg: rgb(224, 222, 218);
    --text-color: rgb(56, 61, 63);
    --container-bg: rgb(214, 211, 205);
    --link-color: rgb(42, 117, 171);
    --link-hover: rgb(43, 89, 171);
    --button-bg: rgb(232, 230, 227);
    --button-hover-bg: rgb(116, 116, 116);
    --button-text: rgb(0, 0, 0);
    --border-color: rgb(160, 160, 160);
}

.dark-mode {
    --bg-color: rgb(24, 26, 27);
    --body-bg: rgb(30, 32, 33);
    --text-color: rgb(225, 222, 218);
    --container-bg: rgb(40, 42, 43);
    --link-color: rgb(120, 172, 255);
    --link-hover: rgb(100, 150, 250);
    --button-bg: rgb(40, 42, 43);
    --button-hover-bg: rgb(60, 63, 65);
    --button-text: rgb(225, 222, 218);
    --border-color: rgb(100, 100, 100);
}

html {
    background-color: var(--bg-color);
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    background-color: var(--container-bg);
}

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

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

a:active,
a[tabindex]:focus {
    color: var(--link-hover);
    outline-color: currentcolor;
}

.button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background-color: var(--button-hover-bg);
}

.roundedsquarephoto,
.mediumroundedsquarephoto {
    border-radius: 10%;
}

.roundedsquarephoto {
    width: 225px;
    height: 225px;
}

.mediumroundedsquarephoto {
    width: 550px;
    height: 550px;
}

@media (max-width: 768px) {
    .roundedsquarephoto {
        width: 150px;
        height: 150px;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: rgb(100, 100, 100);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

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

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
}

.dark-mode .switch {
    background-color: rgb(220, 220, 220);
}

.dark-mode .slider::before {
    left: 28px;
    background-color: var(--container-bg);
}
