:where(*) {
    transition:
        color 0.3s,
        background-color 0.3s,
        border-color 0.3s,
        outline-color 0.3s,
        transform 0.3s,
        opacity 0.3s;
}

:root {
    --step: 0.5s;
    --ease: linear(
        0 0%,
        0.2342 12.49%,
        0.4374 24.99%,
        0.6093 37.49%,
        0.6835 43.74%,
        0.7499 49.99%,
        0.8086 56.25%,
        0.8593 62.5%,
        0.9023 68.75%,
        0.9375 75%,
        0.9648 81.25%,
        0.9844 87.5%,
        0.9961 93.75%,
        1 100%
    );
    --ease-fallback: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
    color-scheme: light only;
    --text-color: #333;
    --bg-color: #fff;
    --theme-toggle-svg-color: #000;
    --sun-transform: scale(1);
    --sun-core-transform: scale(1);
    --sun-rays-transform: rotate(0deg);
    --moon-transform: scale(0);
    --moon-outline-transform: scale(0);
    --moon-inner-transform: scale(0);
    --divider-color: #a5a5a5;
    --copyright-color: #999;
    --copyright-button-color: #0080ff;
}

[data-theme="dark"] {
    color-scheme: dark only;
    --text-color: #e0e0e0;
    --bg-color: #121212;
    --theme-toggle-svg-color: #fff;
    --sun-transform: scale(0);
    --sun-core-transform: scale(0);
    --sun-rays-transform: rotate(45deg);
    --moon-transform: scale(1);
    --moon-outline-transform: scale(1);
    --moon-inner-transform: scale(1);
    --divider-color: #555555;
    --copyright-color: #aaa;
    --copyright-button-color: rgb(57, 156, 255);
}

.theme-toggle,
.language-toggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: 2px solid transparent;
    outline-offset: 2px;
    font-weight: bold;
    transition: outline 0.3s;
}

.language-toggle {
    top: 20px;
    width: 40px;
    height: 40px;
    right: 70px;
}

.theme-toggle {
    top: 20px;
    width: 40px;
    height: 40px;
    right: 20px;
}

.theme-toggle:hover,
.language-toggle:hover,
.theme-toggle:focus,
.language-toggle:focus {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    overflow: visible;
    color: var(--theme-toggle-svg-color);
}

.sun,
.sun-core,
.sun-rays,
.moon,
.moon-outline,
.moon-inner {
    transform-origin: center;
}

.sun,
.sun-core,
.sun-rays,
.moon,
.moon-outline,
.moon-inner,
.glow,
.trail circle {
    transition-timing-function: var(--ease, var(--ease-fallback));
}

.sun {
    transition: transform var(--step) var(--ease, var(--ease-fallback));
    transform: var(--sun-transform);
}

.sun-core {
    transition: transform calc(var(--step) * 2) var(--ease, var(--ease-fallback));
    transform: var(--sun-core-transform);
}

.sun-rays {
    transition: transform calc(var(--step) * 2) var(--ease, var(--ease-fallback));
    transform: var(--sun-rays-transform);
}

.moon {
    transition: transform calc(var(--step) * 2) var(--ease, var(--ease-fallback));
    transform: var(--moon-transform);
}

.moon-outline {
    transition: transform calc(var(--step) * 2) var(--ease, var(--ease-fallback));
    transform: var(--moon-outline-transform);
}

.moon-inner {
    transition: transform calc(var(--step) * 2) var(--ease, var(--ease-fallback));
    transform: var(--moon-inner-transform);
}

.glow {
    opacity: 0;
    transition: opacity 1.25s var(--ease, var(--ease-fallback));
}

.trail circle {
    stroke-dasharray: 10 80;
    stroke-dashoffset: 10;
    opacity: 0;
    transition:
        stroke-dashoffset calc(var(--step) * 3) var(--ease, var(--ease-fallback)),
        opacity calc(var(--step) * 0.5) var(--ease, var(--ease-fallback));
}

.divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 10px 0;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    justify-content: center;
    text-align: center;
    padding: 5px;
    z-index: 4;
    background-color: transparent;
}

.footer-static {
    display: grid;
    justify-content: center;
    text-align: center;
    padding: 5px;
    width: 100%;
}

.footer-flex {
    display: flex !important; 
    justify-content: center;
    align-items: center;
    flex: 1 0 auto;
    width: 100% !important;
    padding: 5px;
    margin: 0;
}

.footer-content,
.copyright {
    font-size: 14px;
    margin: 0;
    color: var(--copyright-color);
    line-height: 1.4;
}

.copyright button,
.footer-content button {
    color: var(--copyright-button-color);
    display: inline-block;
    padding: 0;
    font-size: inherit;
    background: none;
    border: none;
    cursor: pointer;
    vertical-align: baseline;
}

.copyright button:hover,
.footer-content button:hover {
    background: none;
    box-shadow: none;
    transform: none;
}

@media screen and (max-width: 768px) {
    .copyright {
        font-size: 12px;
    }
    
    .theme-toggle,
    .language-toggle {
        top: 15px;
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 22px;
        height: 22px;
    }
}

@media screen and (max-width: 480px) {
    .copyright {
        font-size: 10px;
    }
    
    .theme-toggle,
    .language-toggle {
        top: 12px;
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .language-toggle {
        right: 60px;
    }
    
    .theme-toggle {
        right: 15px;
    }
}

@media screen and (min-width: 1200px) {
    .copyright {
        font-size: 16px;
    }
    
    .theme-toggle svg {
        width: 26px;
        height: 26px;
    }
}

main {
    flex: 1;
    min-height: calc(100vh - 40px - 40px);
    padding: 20px;
}