:root {
    --color-background: #1f1e28e0;
    --color-background-soft: #14abbe;
    --color-accent: #000103;
    --color-primary: #ffffff;
    --color-secondary: #5ec0cd;
    --color-text-main: rgba(240, 248, 255, 0.9);
}

[data-theme="light"] {
    --color-background: #f4f4f4;
    --color-text-main: #1f1e28;
    --color-primary: #1f1e28; /* Links need to be dark in light mode */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    background-color: var(--color-background);
    color: var(--color-accent);
    font-size: 120%;
    width: 100vw;
    height: 100vh;
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    line-height: 1.75;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
    text-decoration: underline;
}

input:not([type='checkbox']) {
    background: var(--color-background-soft);
    border: none;
    padding: 12px;
    color: var(--color-accent);
    width: 16%;
    border-radius: 8px;

}

input[type='checkbox'] {
    margin: 8px;
}

h1, h2, h3, h4, h5, p, pre {
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-main);
    transition: color 0.3s ease;
}

p {
    padding: 16px 0;
}

h1 {
    font-size: 2.488rem;
    margin: 16px 0;
}

h2 {
    font-size: 2.074rem;
    margin: 16px 0;
    text-decoration: underline;
    text-decoration-color: var(--color-background-soft);
}

h3 { font-size: 1.728rem; }
h4 { font-size: 1.44rem; }
h5 { font-size: 1.2rem; }

input, textarea {
    font-family: "Mulish", sans-serif;
    font-weight: 400;
    line-height: 1.75;
    font-size: 1rem;
}

small, .text-small {
    font-size: 0.833rem;
}

strong {
    font-weight: 800;
    color: var(--color-accent);
}

span {
    color: var(--color-primary);
}

@media (max-width: 650px) {
    html {
        font-size: 100%;
    }
    h1 { font-size: 1.802rem; margin-top: 0; }
    h2 { font-size: 1.602rem; }
    h3 { font-size: 1.424rem; }
    h4 { font-size: 1.266rem; }
    h5 { font-size: 1.125rem; }
    small, .text-small { font-size: 0.889rem; }
}

.button-1 {
    background-color: #14aabe0e ! important;
    border-radius: 11px;
    color: var(--color-background-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 2px 12px;
    text-decoration: none;
    transition: border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    user-select: none;
    white-space: nowrap;
}


.button-1:active,
.button-1:focus {
    background-color: var(--color-background-soft);
    color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
    outline: none;
}

a.button-1 {
    text-decoration: none;
    border: 1px solid var(--color-background);
    background-color: #FFE7E7;
    padding: 8px 16px;
    font-weight: 700;
    border-radius: 11px;
    transition: 0.3s;
}

a.button-1:hover {
    text-decoration: none;
    background-color: #ff0000;
    border-color: var(--color-secondary);
}

a.button-1:focus,
a.button-1:active {
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.12) 0 1px 3px 0 inset;
    background-color: var(--color-background-soft);
    color: #ffffff;
}
