/* =========================================================
   HEADSOUSED
   90s VHS / CRT / LO-FI WEBSITE
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

html {
    background: #050505;
}

body {
    min-height: 100vh;

    background: #050505;

    color: #b8b8b8;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 14px;
    line-height: 1.6;

    overflow-x: hidden;

    position: relative;
}


/* =========================================================
   CRT OVERLAY
   IMPORTANT:
   This is completely independent of .container
   ========================================================= */

.crt-overlay {

    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    pointer-events: none !important;

    z-index: 2147483647 !important;

    overflow: hidden !important;

    background-color: transparent !important;

    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.035) 0px,
            rgba(255,255,255,0.035) 1px,
            rgba(0,0,0,0.055) 2px,
            rgba(0,0,0,0.055) 4px
        ) !important;

    opacity: 0.9;

    animation: crtFlicker 0.65s infinite;
}


/* =========================================================
   CRT NOISE
   ========================================================= */

.crt-overlay::after {

    content: "" !important;

    position: absolute !important;

    inset: -50% !important;

    width: 200% !important;
    height: 200% !important;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: none !important;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.65'/%3E%3C/svg%3E");

    background-repeat: repeat;

    background-size: 180px 180px;

    opacity: 0.11;

    animation:
        vhsNoise 0.13s steps(2) infinite;
}


/* =========================================================
   CRT FLICKER
   ========================================================= */

@keyframes crtFlicker {

    0% {
        opacity: 0.90;
    }

    3% {
        opacity: 0.60;
    }

    4% {
        opacity: 0.90;
    }

    8% {
        opacity: 0.72;
    }

    9% {
        opacity: 0.90;
    }

    16% {
        opacity: 0.82;
    }

    17% {
        opacity: 0.50;
    }

    18% {
        opacity: 0.90;
    }

    27% {
        opacity: 0.70;
    }

    28% {
        opacity: 0.90;
    }

    41% {
        opacity: 0.78;
    }

    42% {
        opacity: 0.48;
    }

    43% {
        opacity: 0.90;
    }

    57% {
        opacity: 0.68;
    }

    58% {
        opacity: 0.90;
    }

    71% {
        opacity: 0.80;
    }

    72% {
        opacity: 0.55;
    }

    73% {
        opacity: 0.90;
    }

    84% {
        opacity: 0.70;
    }

    85% {
        opacity: 0.90;
    }

    94% {
        opacity: 0.60;
    }

    95% {
        opacity: 0.90;
    }

    100% {
        opacity: 0.90;
    }
}


/* =========================================================
   VHS NOISE MOVEMENT
   ========================================================= */

@keyframes vhsNoise {

    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-1%, 1%);
    }

    40% {
        transform: translate(2%, -1%);
    }

    60% {
        transform: translate(-1%, -2%);
    }

    80% {
        transform: translate(1%, 2%);
    }

    100% {
        transform: translate(0, 0);
    }
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.container {

    position: relative;

    z-index: 10;

    width: 90%;
    max-width: 855px;

    margin: 67px auto 60px auto;

    padding: 30px;

    background: rgba(5,5,5,0.82);

    border: 1px solid #303030;

    box-shadow:
        0 0 25px rgba(255,255,255,0.025);
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1 {

    margin: 0 0 5px 0;

    font-size: 34px;

    font-weight: normal;

    letter-spacing: -2px;

    color: #d0d0d0;

    text-shadow:
        1px 0 rgba(255,255,255,0.08),
        -1px 0 rgba(255,255,255,0.04);
}


h2 {

    margin-top: 28px;
    margin-bottom: 8px;

    font-size: 15px;

    font-weight: normal;

    letter-spacing: 1px;

    color: #d0d0d0;

    text-transform: lowercase;
}


/* =========================================================
   TEXT
   ========================================================= */

p {

    margin-top: 0;

    color: #aaa;
}


.boot {

    color: #777;

    font-size: 12px;

    letter-spacing: 1px;
}


/* =========================================================
   HORIZONTAL RULES
   ========================================================= */

hr {

    border: 0;

    border-top: 1px solid #292929;

    margin: 22px 0;
}


/* =========================================================
   LINKS
   ========================================================= */

a {

    color: #aaa;

    text-decoration: none;

    transition:
        color 0.15s ease,
        text-shadow 0.15s ease;
}


a:hover {

    color: #e0e0e0;

    text-shadow:
        0 0 5px rgba(255,255,255,0.35);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.menu {

    line-height: 1.9;
}


.menu a {

    display: block;
}


/* =========================================================
   MUSIC
   ========================================================= */

.track {

    padding: 12px 0;

    border-bottom: 1px solid #242424;

    transition:
        padding-left 0.15s ease,
        background 0.15s ease;
}


.track:hover {

    padding-left: 8px;

    background:
        rgba(255,255,255,0.025);
}


.track-title {

    display: block;

    color: #d0d0d0;
}


.track-meta {

    color: #666;

    font-size: 11px;
}


/* =========================================================
   BLINKING CURSOR
   ========================================================= */

.cursor {

    display: inline-block;

    width: 7px;
    height: 14px;

    margin-left: 3px;

    background: #aaa;

    vertical-align: -2px;

    animation:
        cursorBlink 0.8s steps(1) infinite;
}


@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


/* =========================================================
   EPK
   ========================================================= */

.epk-section {

    margin-bottom: 25px;
}


.epk-label {

    color: #666;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================================
   MAILING LIST
   ========================================================= */

.mailing-list-page .container {

    max-width: 600px;
}


.mailing-list-page .ml-embedded {

    width: 100% !important;

    max-width: 100% !important;

    margin: 25px 0 !important;

    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    border-radius: 0 !important;
}


.mailing-list-page .ml-form-embedContainer,
.mailing-list-page .ml-form-align-center,
.mailing-list-page .ml-form-embedWrapper,
.mailing-list-page .ml-form-embedBody,
.mailing-list-page .ml-form-successBody {

    width: 100% !important;

    max-width: 100% !important;

    background: transparent !important;

    border: 0 !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    padding: 0 !important;

    margin: 0 !important;
}


/* =========================================================
   MAILERLITE TEXT
   ========================================================= */

.mailing-list-page
.ml-form-embedContent h4,
.mailing-list-page
.ml-form-successContent h4 {

    color: #aaa !important;

    font-family:
        "Courier New",
        Courier,
        monospace !important;

    font-size: 18px !important;

    font-weight: normal !important;

    text-transform: lowercase !important;

    margin: 0 0 8px 0 !important;
}


.mailing-list-page
.ml-form-embedContent p,
.mailing-list-page
.ml-form-successContent p {

    color: #777 !important;

    font-family:
        "Courier New",
        Courier,
        monospace !important;

    font-size: 13px !important;

    line-height: 1.6 !important;
}


/* =========================================================
   MAILERLITE INPUT
   ========================================================= */

.mailing-list-page
.ml-form-fieldRow input {

    width: 100% !important;

    background: #0b0b0b !important;

    color: #ccc !important;

    border: 1px solid #444 !important;

    border-radius: 0 !important;

    font-family:
        "Courier New",
        Courier,
        monospace !important;

    font-size: 13px !important;

    padding: 10px !important;

    outline: none !important;
}


.mailing-list-page
.ml-form-fieldRow input:focus {

    border-color: #777 !important;

    box-shadow:
        0 0 8px rgba(255,255,255,0.08)
        !important;
}


.mailing-list-page
.ml-form-fieldRow input::placeholder {

    color: #555 !important;

    opacity: 1 !important;
}


/* =========================================================
   MAILERLITE BUTTON
   ========================================================= */

.mailing-list-page
.ml-form-embedSubmit {

    width: 100% !important;

    margin: 10px 0 0 0 !important;
}


.mailing-list-page
.ml-form-embedSubmit button {

    width: 100% !important;

    background: #151515 !important;

    color: #aaa !important;

    border: 1px solid #444 !important;

    border-radius: 0 !important;

    font-family:
        "Courier New",
        Courier,
        monospace !important;

    font-size: 13px !important;

    font-weight: normal !important;

    text-transform: lowercase !important;

    padding: 10px !important;

    cursor: pointer !important;
}


.mailing-list-page
.ml-form-embedSubmit button:hover {

    background: #222 !important;

    color: #ddd !important;

    border-color: #777 !important;
}


/* =========================================================
   MAILERLITE SUCCESS
   ========================================================= */

.mailing-list-page
.ml-form-successBody {

    color: #aaa !important;

    padding: 20px 0 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 600px) {

    .container {

        width: 94%;

        margin: 25px auto;

        padding: 20px;
    }


    h1 {

        font-size: 28px;
    }


    body {

        font-size: 13px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .crt-overlay,
    .crt-overlay::after,
    .cursor {

        animation: none !important;
    }
}