@font-face {
    font-family: "Mulish";
    src: local("Mulish"), local("Mulish Variable"), url("../../assets/font/Mulish-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: "Mulish", sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url("../../assets/hesteigBackground_500x500px_loop.jpg") center/cover repeat fixed;
    background-size: 400px;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.border {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: calc(1.5vh + 1.5vh);
    box-sizing: border-box;
    background: linear-gradient(var(--angle), #349649 54.59%, #3bbc84 79.87%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spinAngle 10s linear infinite;
}

@keyframes spinAngle {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 12vw;
}

.logo {
    position: fixed;
    left: 12vw;
    bottom: 6vw;
    max-width: 160px;
    width: 30vw;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    z-index: 20;
}

.logo.is-hidden {
    display: none;
}

.notes-output {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 24vw);
    max-height: calc(100vh - 24vw);
    overflow-y: auto;
    color: #fff;
    z-index: 10;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.7);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.notes-output h1,
.notes-output h2,
.notes-output h3,
.notes-output p,
.notes-output ul,
.notes-output ol,
.notes-output blockquote,
.notes-output pre {
    margin-bottom: 18px;
}

.notes-output h1 {
    font-size: clamp(2.4rem, 6.2vw, 6rem);
    line-height: 0.95;
}

.notes-output h2 {
    font-size: clamp(1.9rem, 4.8vw, 4.1rem);
    line-height: 1;
}

.notes-output h3 {
    font-size: clamp(1.5rem, 3.8vw, 3rem);
    line-height: 1.05;
}

.notes-output p,
.notes-output li,
.notes-output blockquote {
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    line-height: 1.25;
}

.notes-output code {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 8px;
    border-radius: 6px;
}

.notes-output pre code {
    display: block;
    padding: 12px;
    overflow-x: auto;
}

.notes-output ul,
.notes-output ol {
    padding-left: 2.2em;
}

.notes-output a {
    color: #8de8b7;
}

.notes-placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.notes-output .md-empty-line {
    display: block;
    height: clamp(1.5rem, 2.75vw, 2.5rem);
}

.notes-clock {
    position: fixed;
    right: 12vw;
    bottom: 6vw;
    z-index: 25;
    color: #fff;
    font: 700 2rem/1 Mulish, sans-serif;
    letter-spacing: 0.08em;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.7);
    user-select: none;
}

.notes-clock.is-hidden {
    display: none;
}

.notes-output::after {
    content: "";
    position: fixed;
    top: calc(100vw*-0.25 + 100vh * -0.5);
    left: calc(100vw *-0.5 + 100vh * -0.25);
    /*Alignment to be improved! TODO*/
    width: calc(120vw + 120vh);
    height: calc(120vw + 120vh);
    pointer-events: none;
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.0) 50vw,
            rgba(255, 255, 255, 0.3));
    background-position: 0 0;
    opacity: 0;
    z-index: 50;
    transform: rotate(45deg);
}

.notes-output.has-gradient::after {
    opacity: 1;
    animation: slideGradientBg 10s linear infinite;
}

@keyframes slideGradientBg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: calc(120vw + 120vh) 0px;
    }
}