:root {
    --prime: #ff5a5a;
    --prime-dark: #d14c4c;
    --second: #252526;
    --second-dark: #1e1e1e;
    --white: #fff;
    --black: #000;
    --e300: #adadad;

    --red: #e16c6c;
    --red-dark: #be1d1d;

    --font: Avenir, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font), sans-serif;
    background-color: var(--second);
    color: var(--white);
    scroll-behavior: smooth;
}

h1:focus {
    outline: none;
}

::selection {
    background-color: var(--prime);
    color: var(--white);
}

header {
    border-top: .5rem solid var(--prime);
    max-width: 100rem;
    padding: 1.25rem;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-flow: row;
    justify-content: space-between;

    .glitch {
        font-family: 'Anton', sans-serif;
        color: var(--white);
        font-size: 5rem;
        position: relative;
        margin-right: auto;

        &::after {
            content: attr(data-trick);
            position: absolute;
            top: 0;
            left: 0.25rem;
            color: white;
            background-color: var(--second);
            overflow: hidden;
            text-shadow: -0.2rem 0 var(--prime);
            clip: rect(0, 3rem, 0, 0);
            animation: noise 2s infinite linear alternate-reverse;
        }

        &::before {
            content: attr(data-trick);
            position: absolute;
            top: 0;
            left: -0.5rem;
            color: white;
            background-color: var(--second);
            overflow: hidden;
            text-shadow: 0.2rem 0 var(--prime);
            clip: rect(0, 3rem, 0, 0);
            animation: noise 2.2s infinite linear alternate-reverse;
        }

    }
}

.loader-container {
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background: var(--second);
    color: white;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader {
    display: flex;
    align-items: flex-end;
    height: 100px;
    gap: 8px;
}

.bar {
    width: 8px;
    height: 20px;
    background: var(--prime);
    animation: bounce 1s infinite ease-in-out;
}

.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

h1 {
    margin-top: 20px;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
