body {
    font-family: monospace;
    padding: 1.25rem;
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
    transition: background-color 0.3s, color 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

h1, h2 {
    color: currentColor;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(1.5rem, 5vw + 1rem, 3rem);
}

h2 {
    font-size: clamp(1.25rem, 4vw + 0.5rem, 2.5rem);
    margin-bottom: 1.25rem;
}

body.light-mode h1, body.light-mode h2 {
    background-color: #ddd;
}

body.dark-mode h1, body.dark-mode h2 {
    background-color: #333;
}

.polaroid {
    display: block;
    padding: 1rem;
    background: currentColor;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.polaroid img {
    display: block;
    width: 100%;
    max-height: clamp(20rem, 50vw, 50rem);
    object-fit: cover;
}

p, li {
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.5rem);
    line-height: 1.5;
    color: currentColor;
}

li {
    text-indent: -1.5rem;
    padding-left: 1.5rem;
}

p {
    hyphens: auto;
    text-indent: 1.5rem;    
}

body.light-mode {
    background-color: #fff;
    color: #222;
}

body.dark-mode {
    background-color: #222;
    color: #ddd;
}

.polaroid.light-mode {
    background: #fff;
}

.polaroid.dark-mode {
    background: #ddd;
}
.paragraph-container {
    column-gap: 1rem;
    margin-bottom: 1rem;
}

.paragraph-container p {
    break-inside: avoid;
    margin: 0 0 1rem 0;
}
.button-style {
    position: fixed;
    background: #ddd;
    border: 1px solid #222;
    width: clamp(2.5rem, 6vw, 4.5rem);
    height: clamp(2.5rem, 6vw, 4.5rem);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: clamp(1.25rem, 3vw, 2.25rem);
}

.theme-switch, .backtostart, .back-to-top {
    right: clamp(1rem, 3vw, 2rem);
}

.theme-switch {
    top: clamp(1rem, 2vw, 2rem);
}

.backtostart {
    top: clamp(1rem, 2vw, 2rem);
    right: calc(clamp(1rem, 3vw, 2rem) + clamp(2.5rem, 6vw, 4.5rem) + 1rem);
}

.back-to-top {
    top: calc(clamp(1rem, 2vw, 2rem) + clamp(2.5rem, 6vw, 4.5rem) + 1rem);
    display: none;
}

.navigation {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.navigation a {
    display: inline-block;
    color: currentColor;
    text-decoration: none;
    border: 2px solid currentColor;
    padding: 0.5rem 1rem;
    margin-right: clamp(0.5rem, 1vw, 1rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    font-size: 1.25rem;
    font-family: monospace;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    background-color: transparent;
}

body.light-mode .navigation a {
    color: #222;
    border: 2px solid #222;
}

body.light-mode .navigation a:hover {
    background-color: #222;
    color: #fff;
}

body.dark-mode .navigation a {
    color: #ddd;
    border: 2px solid #ddd;
}

body.dark-mode .navigation a:hover {
    background-color: #ddd;
    border: 2px solid #222;
    color: #222;
}
