@import './assets/css/_vars.css';
@import './assets/fonts/_fonts.css';
@import './components/header/header.css';
@import './components/footer.css';
@import './components/downloadbox/downloadbox.css';
@import './components/content.css';
@import './components/contentcontainer.css';
@import './components/panels/panel.css';

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

html.dark [data-mode="light"],
html:not(.dark) [data-mode="dark"] {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--color-black);
}

h2[id] {
    scroll-margin-top: 10ex;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-family-vollkorn);
}

h2 {
    color: #fff;
}

h3 {
    color: var(--color-black);
}

h2, h3 {
    font-size: clamp(var(--font-size-default), 5vw, var(--font-size-xl));
    font-weight: 300;
}

h4, h5 {
    font-size: clamp(var(--font-size-default), 3vw, var(--font-size-xl));
    font-weight: 400;
}



h3 small {
    font-size: var(--font-size-default);
}

p {
    font-family: var(--font-family-opensans);
}

a {
    color: var(--color-blue);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.toggle:hover,
a:hover {
    transform: scale(1.1);
}

audio {
    width: 100%;
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}

#top {
    height: 0;
    position: absolute;
    top: 0;
}

.back-to-top {
    bottom: 5rem;
}

.toggle {
    border: none;
    bottom: 1rem;
}

.back-to-top,
.toggle {
    position: sticky;
    margin-right: 1rem;
    margin-bottom: 1rem;
    align-self: flex-end;
    z-index: 300;
    cursor: pointer;
    background: var(--color-float-button-bg);
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.back-to-top span:nth-child(1) {
    height: 1rem;
}

.back-to-top span {
    display: block;
    width: 0.3rem;
    background-color: #333;
    border-radius: 999px;
}

.back-to-top span:nth-child(2),
.back-to-top span:nth-child(3) {
    height: 0.8rem;
    position: absolute;
    top: 13px;
}

.back-to-top span:nth-child(2) {
    transform: rotate(45deg);
    left: 19px;
}

.back-to-top span:nth-child(3) {
    transform: rotate(-45deg);
    left: 26px;
}

.toggle > div {
    width: 80%;
    height: 80%;
    border-radius: 9999px;
    border: 4px solid #333;
    background: #333;
    overflow: hidden;
}

.toggle > div > div {
    height: 120%;
    width: 55%;
    transform: translateX(-5%);
    background: var(--color-float-button-bg);
}