/* GENERAL */

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

body {
    background-color: #000000;
    color: white;
    font-family: "Courier New", monospace;
    text-align: center;
    border-top: 3px solid #555555;
}


/* MAIN WEBSITE */

.website {
    width: 100%;
    min-height: 100vh;
    padding: 45px 20px 80px;
}


/* TITLE */

h1 {
    font-family: "UnifrakturMaguntia", "Old English Text MT", serif;
    font-size: 64px;
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 38px;
}

h1 a {
    color: #003cff;
    text-decoration: none;
}

/* "777" in a metal font */
h1 .num {
    font-family: "New Rocker", "UnifrakturMaguntia", serif;
    letter-spacing: 2px;
    margin-left: 2px;
}

h1 a:hover {
    color: #ffffff;
}


/* SUBTITLE */

.subtitle {
    font-family: "Courier New", serif;
    color: #870551;
    font-size: 17px;
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto 55px;
    letter-spacing: 0.4px;

    text-shadow:
        1px 0px 0px #870551,
        -1px 0px 0px #870551,
        0px 1px 0px #870551;

    filter: blur(0.3px);
    -webkit-font-smoothing: none;
    image-rendering: pixelated;
}


/* PHOTO FRAME */

.photo-frame {
    width: 860px;
    max-width: 95%;
    margin: 0 auto 50px;
    border: 9px solid #880927;
    line-height: 0;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}


/* CROSSES + LIVE */

h2.crosses {
    font-family: calibri, sans-serif;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 14px;
    color: #ffffff;
}

h2.live {
    font-family: calibri, sans-serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 55px;
    color: #ffffff;
}


/* CLICK CONTAINER */

.click-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px auto 0;
    padding-bottom: 40px;
}


/* CLICKABLE AREA */

.heart-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


/* CLICK TEXT */

.heart-link span {
    color: white;
    font-family: "Courier New", monospace;
    font-size: 15px;
    margin-bottom: 12px;
    letter-spacing: 3px;
}


/* CROSS */

.cross {
    display: inline-block;
    font-size: 150px;
    line-height: 1;
    color: white;
    text-shadow: 0 0 3px rgba(255,255,255,0.3);
    transform-origin: center center;
}


/* HOVER */

.heart-link:hover .cross {
    color: #ff2222;
    text-shadow:
        0 0 4px rgba(255,0,0,0.5),
        0 0 9px rgba(255,0,0,0.3);
    animation: retro-spin 2.5s steps(8, end) infinite;
}


/* ANIMATION */

@keyframes retro-spin {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.12);
    }
}


/* ========== VIDEO PAGE ========== */

.music-page {
    padding: 70px 20px;
}

.music-page h1 {
    margin-bottom: 50px;
}
.video-wrapper {
    max-width: 680px;        /* not full screen */
    width: 90%;
    margin: 0 auto 45px;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border: 7px solid #880927;
    background: #111;
}

/* MAIN VIDEO PLAYER (index.html) — only play/pause + sound */

.player {
    position: relative;
}

.player .main-video {
    cursor: pointer;
}

.player-controls {
    position: absolute;
    left: 7px;                  /* inside the red border */
    right: 7px;
    bottom: 7px;
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    pointer-events: none;
}

.player-btn {
    pointer-events: auto;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 4px 8px;
    cursor: pointer;
}

.player-btn:hover {
    color: #ff2222;
    border-color: #ff2222;
}

/* BOTTOM PICTURE — B&W, low quality, faded into the page */

.bottom-pic-link {
    display: block;
    width: 760px;
    max-width: 92%;
    margin: 140px auto 0;       /* pushed further down the page */
}

.bottom-pic {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;        /* square picture stretched sideways a bit */
    object-fit: fill;
    filter: grayscale(1) contrast(1.15) blur(0.6px);
    opacity: 0.55;
    /* each picture fades in, stays, fades away (7s); java.js swaps to the next one */
    animation: bottom-fade 7s ease-in-out infinite;
}

.bottom-pic-link:hover .bottom-pic {
    animation-play-state: paused;
}

@keyframes bottom-fade {
    0%        { opacity: 0; }
    20%, 65%  { opacity: 0.55; }
    85%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bottom-pic { animation: none; }
}

/* LIVE SHOW POPUP (java.js) — long thin retro bar.
   Default: bottom of the screen. .docked: next to the main video. */

.live-pop {
    --tx: -50%;
    --ty: 0px;
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(680px, 92vw);
    padding: 10px 16px;
    background: #000000;
    border: 2px solid #880927;
    box-shadow: 5px 5px 0 #3a0010;
    color: #ffffff;
    cursor: pointer;
    transform: translate(var(--tx), var(--ty));
    /* pops in on choppy frames, then boils like the 7s */
    animation:
        pop-in 0.5s steps(4, end) both,
        pop-boil 0.375s steps(1, end) 0.5s infinite;
}

.live-pop.docked {
    --tx: 0px;
    --ty: 0px;
    position: absolute;
    bottom: auto;
    transform-origin: left center;
}

.live-pop.out {
    animation: pop-out 0.5s steps(4, end) both;
}

.live-pop-cross {
    flex: none;
    font-size: 30px;
    line-height: 1;
    color: #c40000;
}

/* low quality, slightly warped text */
.live-pop-text {
    flex: 1;
    font-family: "Courier New", monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: left;
    filter: url(#seven-warp) blur(0.7px) contrast(1.6);
}

.live-pop:hover .live-pop-cross {
    color: #ff2222;
}

@keyframes pop-in {
    0%   { opacity: 0; transform: translate(var(--tx), var(--ty)) scaleX(0.2); }
    100% { opacity: 1; transform: translate(var(--tx), var(--ty)) scaleX(1); }
}

@keyframes pop-out {
    0%   { opacity: 1; transform: translate(var(--tx), var(--ty)) scaleX(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scaleX(0.2); }
}

@keyframes pop-boil {
    0%      { transform: translate(var(--tx), var(--ty)) rotate(0deg); }
    33.33%  { transform: translate(calc(var(--tx) + 1px), var(--ty)) rotate(0.4deg); }
    66.66%  { transform: translate(calc(var(--tx) - 1px), var(--ty)) rotate(-0.3deg); }
}

/* live section blinks when you land on it from the popup */
h3.live.flash {
    animation: live-flash 0.25s steps(1, end) 6;
}

@keyframes live-flash {
    0%  { color: #ff2222; }
    50% { color: #ffffff; }
}

@media (max-width: 600px) {
    /* phones: in the middle of the screen */
    .live-pop {
        --ty: -50%;
        top: 50%;
        bottom: auto;
        gap: 10px;
        padding: 8px 12px;
    }

    .live-pop-cross {
        font-size: 24px;
    }

    .live-pop-text {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-pop,
    .live-pop.out {
        animation: none;
    }
}

/* SOCIAL ICONS */

.socials {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    gap: 14px;
    z-index: 10;
}

/* square white tiles with black logos */
.socials a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 0;
    line-height: 0;
}

.socials img {
    width: 26px;
    height: 26px;
    position: relative;
    top: 1px;
}

/* blood dripping from the top edge */
.socials a::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 46px;
    height: 75px;
    background: url("images/icons/blood2.svg") top left / 100% auto no-repeat;
    pointer-events: none;
}

.socials a:nth-child(2)::after {
    transform: scaleX(-1);
}

.socials a:nth-child(3)::after {
    height: 64px;
}

/* hover: invert tile to black with white logo */
.socials a:hover {
    background: #000000;
}

.socials a:hover img {
    filter: invert(1);
}

.small-pic {
    display: block;
    width: 180px;
    height: auto;
    margin: 45px auto 0;
    image-rendering: pixelated;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: #003cff;
    text-decoration: none;
    font-family: "Courier New", monospace;
    font-size: 16px;
    letter-spacing: 2px;
}

.back-link:hover {
    color: white;
}


/* MOBILE */

@media (max-width: 600px) {

    .website {
        padding: 66px 14px 60px;    /* room for social icons + drips */
    }

    /* social icons: same corner look as desktop, scaled for phones */
    .socials {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .socials a {
        width: 30px;
        height: 30px;
    }

    .socials img {
        width: 18px;
        height: 18px;
    }

    .socials a::after {
        width: 32px;
        height: 53px;
    }

    .socials a:nth-child(3)::after {
        height: 45px;
    }

    h1 {
        font-size: 44px;
        margin-bottom: 28px;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 40px;
    }

    .photo-frame {
        max-width: 100%;
        border-width: 6px;
        margin-bottom: 40px;
    }

    h2.crosses {
        font-size: 18px;
        letter-spacing: 3px;
    }

    h2.live {
        font-size: 18px;
        margin-bottom: 45px;
    }

    .cross {
        font-size: 110px;
    }

    .video-wrapper {
        width: 95%;
    }
}

/* ========== SEVENS ANIMATION (java.js) ========== */

/* layer sits behind the page content */
.sevens-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* content above the layer; empty areas let clicks through to the 7s */
.website {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.website a,
.website video {
    pointer-events: auto;
}

.seven {
    position: absolute;
    font-family: "UnifrakturCook", "UnifrakturMaguntia", serif;
    font-weight: 700;
    line-height: 0.9;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    transform: rotate(var(--tilt, 0deg));
    /* old-cartoon: pop in on 4 choppy frames, then "boil" at ~8fps */
    animation:
        seven-in 0.5s steps(4, end) both,
        seven-boil 0.375s steps(1, end) 0.5s infinite;
}

.seven.big {
    font-size: min(65vh, 110vw);
}

/* low-quality, distorted 7: stretched, warped, blurry, a bit faded */
.seven.big .warp {
    display: inline-block;
    transform: scale(1.05, 0.97);
    filter: url(#seven-warp) blur(1.6px) contrast(1.4);
    opacity: 0.8;
}

/* words are just decoration, not clickable */
.seven.word {
    font-size: 22px;
    letter-spacing: 1px;
    pointer-events: none;
    cursor: default;
}

.seven.out {
    animation: seven-out 0.5s steps(4, end) both;
}

@keyframes seven-in {
    0%   { opacity: 0;   transform: rotate(var(--tilt)) scale(0.6); }
    100% { opacity: 1;   transform: rotate(var(--tilt)) scale(1); }
}

@keyframes seven-out {
    0%   { opacity: 1;   transform: rotate(var(--tilt)) scale(1); }
    100% { opacity: 0;   transform: rotate(var(--tilt)) scale(1.15); }
}

/* hand-drawn wobble: 3 slightly different "frames" */
@keyframes seven-boil {
    0%      { transform: rotate(var(--tilt)) translate(0, 0);       opacity: 1; }
    33.33%  { transform: rotate(calc(var(--tilt) + 1.2deg)) translate(1px, -1px); opacity: 0.92; }
    66.66%  { transform: rotate(calc(var(--tilt) - 0.8deg)) translate(-1px, 1px); opacity: 0.97; }
}

@media (max-width: 600px) {
    .seven.word {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seven,
    .seven.out {
        animation: none;
    }
}
