/* Sesh Sofa website CSS */


/* ------------------------------
           GLOBAL LAYOUT + COLORS
        ------------------------------ */
html {
    scroll-behavior: smooth;
}
html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Pill Gothic 600mg', sans-serif;
    color: #FFFFFF;

    /* background: linear-gradient(to bottom, #F20D0D 0%, #E5F20D 100%); */
    background-image: url('img/background.png');
    background-position: top left;
    background-repeat: repeat-x;
    background-color: #E5F20D;
    /* background-color: #e5f10d; */
    background-attachment: fixed;
}

/* Text links only — ignore links that contain images */
a:not(:has(img)) {
    color: #FFFFFF;
    text-decoration: none;
    position: relative;
    font-weight: 600;
    transition:
        color 0.25s ease,
        text-shadow 0.25s ease,
        background-size 0.35s ease;
}

a:not(:has(img))::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;

    background: linear-gradient(to right,
            #E5F20D,
            #F20D0D,
            #E5F20D);

    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.35s ease;
}

a:not(:has(img)):hover {
    text-shadow: 0 0 6px #F20D0D, 0 0 12px #E5F20D;
}

a:not(:has(img)):hover::after {
    background-size: 100% 100%;
}

/* Mobile tap feedback */
@media (hover: none) {
    a:not(:has(img)):active {
        text-shadow: 0 0 10px #F20D0D;
    }
}

hr {
    border: none;
    height: 4px;
    background: linear-gradient(to right,
            #E5F20D,
            #F20D0D,
            #E5F20D);
    box-shadow:
        0 0 6px #E5F20D,
        0 0 12px #F20D0D,
        0 0 18px rgba(242, 13, 13, 0.6),
        0 0 24px rgba(229, 242, 13, 0.5);
    margin: 1.3em;
}


/* ------------------------------
           VIDEO OVERLAY SECTION
        ------------------------------ */
.container {
    position: relative;
    width: 90vw;
    max-width: 1920px;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.6s ease;
    z-index: 3;
}

.video-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 4;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

video {
    width: 100%;
    height: 100%;
    display: block;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 32px;
    color: #FFFFFF;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
    user-select: none;
}

/* ------------------------------
        Twitch LIVE BANNER
        ------------------------------ */
#twitch-live-banner {
    position: relative;
    width: 70%;
    min-width: 720px;
    z-index: 10;
    text-align: center;
}

.live-banner {
    align-items: flex-start;
    text-align: center;
    justify-content: center;
    background: #8600DF;
    border-radius: 25px;
    color: white;
    display: flex;
    flex-wrap: wrap;
    font-size: 2.4em;
    font-weight: bold;
    gap: 10px;
    margin: 20px auto 20px auto;
    padding: 12px 20px;
}

.live-banner a {
    color: white;
    text-decoration: none;
    border-bottom: none;
}

.live-text {
    background: red;
    padding: 4px 28px;
    border-radius: 4px;
}

#uptime-text,
#stream-title {
    width: 100%;
    display: block;
}

#stream-title {
    font-size: 0.6em;
    /* optional but recommended */
    opacity: 0.9;
    margin-top: 4px;
}

.live-dot {
    width: 1em;
    height: 1em;
    background: red;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ------------------------------
           MAIN + CONTENT SECTION
        ------------------------------ */
.main-section {
    width: 70%;
    min-width: 720px;
    margin-bottom: 50px;
    padding: 0 1em 50px 1em;
    margin: 25px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 2em;
    z-index: 5;
}

.main-section a {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ------------------------------
           NAVIGATION MENU
           ------------------------------ */
#menu {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.75em;
    margin: 1em auto;
    color: #FFFFFF;
    font-size: 2.5rem;
    font-family: 'Monster Chiller', sans-serif;
}

.menu-item {
    cursor: pointer;
}

.menu-item.active-menu-item {
    background-image: linear-gradient(to bottom, #F20D0D 0%, #E5F20D 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-icon {
    width: 48px;
    height: 48px;
}

/* ------------------------------
MARKDOWN CONTENT AREA
------------------------------ */

#content {
    scroll-behavior: smooth;
    margin: 40px 1em;
    font-size: 22px;
    line-height: 1.25em;
}

#content ul li {
    list-style-type: none;
}

#content li::before {
    content: "◽ ";
}

#content img {
    max-width: 100%;
    height: auto;
    display: block;
}

#content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#content th {
    text-align: left;
}

.event-block {
    font-family: 'Consolas', monospace;
}

/* ------------------------------
FOOTER   
------------------------------ */
#footer {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    font-size: 1.2em;
    text-align: center;
}


/* FLOATING PARTICLES */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 40%;
    filter: blur(1px);

    /* RANDOMIZED PER-PARTICLE VARIABLES (set via JS) */
    --xStart: 0;
    --xMid: 0;
    --xEnd: 0;

    --yMid: -60vh;
    --yEnd: -120vh;

    --scaleStart: 1;
    --scaleMid: 1;
    --scaleEnd: 1;

    --rotStart: 0deg;
    --rotMid: 180deg;
    --rotEnd: 360deg;

    --midOpacity: 0.8;

    --duration: 6s;

    animation: floatUp var(--duration) linear infinite;
}

@keyframes floatUp {
    0% {
        transform:
            translate(var(--xStart, 0), 0) scale(var(--scaleStart, 1)) rotate(var(--rotStart, 0deg));
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform:
            translate(var(--xMid, 20vh), var(--yMid, -50vh)) scale(var(--scaleMid, 1)) rotate(var(--rotMid, 180deg));
        opacity: var(--midOpacity, 0.8);
    }

    100% {
        transform:
            translate(var(--xEnd, 0), var(--yEnd, -120vh)) scale(var(--scaleEnd, 1)) rotate(var(--rotEnd, 360deg));
        opacity: 0;
    }
}

/* Let's have some fun :D */
.smoke-puff {
    z-index: 15;
    position: fixed;
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 70%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.9;
    animation: smokeRise 700ms ease-out forwards;
}

@keyframes smokeRise {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.9;
    }

    60% {
        transform: translate(calc(-50% + var(--drift)), -80%) scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: translate(calc(-50% + var(--drift)), -130%) scale(1.7);
        opacity: 0;
    }
}

.event-block {
    text-align: center;
}