@charset "utf-8";

/* -------------------- VARIABLES -------------------- */
:root {
    --text-main: #00ffff;   /* primary cyan color */
    --highlight: yellow;    /* yellow highlight for bold/links */
    --bg-main: black;       /* main background */
    --text-light: white;    /* lighter text */
}

/* -------------------- FONTS -------------------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Workbench&display=swap');

/* -------------------- BASE STYLES -------------------- */
* {
    box-sizing: border-box;
    font-family: "Source Code Pro", monospace;
    scrollbar-width: thin;
    scrollbar-color: var(--text-main) var(--bg-main);
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    overflow: hidden;
}

/* -------------------- PARAGRAPHS -------------------- */
p {
    color: var(--text-main);
    text-shadow: 0 0 4px var(--text-main);
    padding: 0.25rem 0.5rem;
    margin: 0 1rem 1rem 1rem;
    text-decoration-color: var(--highlight);
}

/* -------------------- TYPOGRAPHY HIGHLIGHTS -------------------- */
b, strong {
    color: var(--highlight);
    text-shadow: 0 0 4px var(--highlight);
    text-decoration-color: var(--highlight);
}

i, em {
    color: var(--text-light);
    text-shadow: 0 0 4px var(--text-light);
    text-decoration-color: var(--highlight);
}

/* -------------------- LISTS AND BULLETS -------------------- */
ul, ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
    list-style: none;
}

ul li, ol li {
    position: relative;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

ul li::before {
    content: "• ";
    color: var(--highlight);
    font-weight: bold;
    text-shadow: 0 0 4px var(--highlight);
    position: absolute;
    left: -1.5rem;
}

ol {
    counter-reset: li;
}

ol li::before {
    counter-increment: li;
    content: counter(li) ". ";
    color: var(--highlight);
    font-weight: bold;
    text-shadow: 0 0 4px var(--highlight);
    position: absolute;
    left: -1.5rem;
}

/* -------------------- TABLES -------------------- */
.table-container {
    padding-left: 2rem;
    padding-right: 2rem;
    overflow-x: auto;
}

.table-container table {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-main);
    text-shadow: 0 0 2px var(--text-main);
}

.table-container th,
.table-container td {
    border: 1px solid var(--text-main);
    padding: 0.5rem 1rem;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.8);
}

.table-container th {
    background-color: rgba(0, 255, 255, 0.2);
    font-weight: bold;
}

.table-container tbody tr:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

/* -------------------- LINKS -------------------- */
a {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--highlight);
    text-decoration-thickness: 2px;
    transition: color 0.3s ease;
}

a:hover {
    color: #0ff;
}

/* -------------------- HEADINGS -------------------- */
h1, h2 {
    background-color: var(--text-main);
    color: var(--bg-main);
    box-shadow: 0 0 4px var(--text-main);
    padding: 4px 8px;
    transition: box-shadow 0.3s ease;
}

h1:hover, h2:hover {
    box-shadow: 0 0 16px var(--text-main);
}

/* -------------------- GRAPHICS / CARDS -------------------- */
.graphic {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 25vw;           
    min-width: 360px;
    max-width: 50vw;
    margin-bottom: 1rem;
    background-color: var(--text-main);
    border: thin solid var(--text-main);
    box-shadow: 0 0 8px var(--text-main);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.graphic:hover {
    transform: scale(1.5);
    box-shadow: 0 0 24px var(--text-main);
}

.graphic .image-container {
    width: 100%;
    overflow: hidden;
}

.graphic img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.graphic p {
    width: 100%;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    color: var(--bg-main);
    background-color: var(--text-main);
    margin: 0.5rem 0 0 0;
    padding: 0.25rem;
}

/* -------------------- COVER IMAGE CONTAINER -------------------- */
#coverimage-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 16px;
}

#coverimage-container p {
    text-align: center;
    font-weight: bolder;
    text-shadow: 0 0 8px var(--text-main);
}

/* -------------------- COVER CARDS -------------------- */
.cover {
    width: calc(20vw - 1vw); /* 1/5 of viewport minus gap */
    max-width: 200px;
    min-width: 120px;
    aspect-ratio: 2 / 3;
    margin-bottom: 1vw;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

/* Slide and glow effect on hover */
.cover.pop-glow:hover {
    transform: translateY(-8px) translateX(-8px);
    box-shadow: 8px 8px 0 var(--text-main), 0 0 16px var(--text-main);
    filter: saturate(1.2);
}

/* -------------------- COVER GRID -------------------- */
#cover-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* align left */
    gap: 1.5vw;                 /* scalable spacing */
    margin: 2vw;
}

/* each card wrapper */
#cover-grid section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(120px, 20vw, 200px); /* mobile → desktop */
}
/* -------------------- ROWS -------------------- */
.row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-content: center;
}

/* -------------------- EFFECTS -------------------- */
.black-and-white {
    filter: saturate(0);
}

.float-shadow {
    display: inline-block;
    position: relative;
    transition: all 1s;
}

.float-shadow:hover {
    transform: translateY(-5px);
}

/* -------------------- SCROLLBARS -------------------- */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-main);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--text-main);
    border: 2px solid var(--bg-main);
    border-radius: 4px;
}

/* -------------------- ACCORDION -------------------- */

.accordion {
    background: var(--bg-main);
    border: 2px solid var(--text-main);
    box-shadow: 0 0 8px var(--text-main);
    margin-bottom: 1rem;
}

.accordion-header {
    cursor: pointer;
    background: var(--text-main);
    color: var(--bg-main);
    font: 900 1.2em/1.2 inherit;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem;
    border: 0;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(0, 255, 255, 0.6);
}

.accordion-content {
    display: none;
    padding: 0.5rem 1rem 1rem;
}

.accordion.active > .accordion-content {
    display: block;
}

.accordion-content a {
    display: block;
    color: var(--text-main);
    margin: 0.25rem 0;
}

.accordion-content a:hover {
    color: #0ff;
}

.accordion.sub {
    margin-left: clamp(0.75rem, 2vw, 1.25rem);
}

.pop-glow:hover {
    box-shadow: 8px -8px 0 var(--text-main),
                0 0 24px var(--text-main);
    transform: scale(1.08);
}

.info-card {
    position: relative;
    border: 2px solid var(--text-main);
    padding: 0.6rem;
    background: var(--bg-main);
    color: var(--text-light);
    font-size: 0.9rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    border-radius: 0;

    /* Start with no shadow */
    box-shadow: none;

    /* Smooth movement on hover */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1;
}

.info-card:hover {
    /* Move card diagonally up-left */
    transform: translate(-8px, -8px);

    /* Shadow appears behind, like a hole */
    box-shadow: 8px 8px 0 var(--text-main),
                0 0 16px var(--text-main);

    z-index: 10;
}

.info-card-placeholder {
    height: 160px;            /* roughly match your card height */
    margin-bottom: 20px;      /* same spacing as cards */
    pointer-events: none;     /* so it doesn’t interfere with clicks */
}



/* Spoiler effect for winner reveal */
.spoiler {
    background: var(--text-main);
    color: var(--bg-main);
    cursor: pointer;
    display: block;
    padding: 0.25rem 0.5rem;
    text-align: center;
    margin-top: 0.5rem;
    border-radius: 2px;
    transition: color 0.3s ease;
    min-height: 1.2em;  /* reserve height to prevent resize */
    overflow: hidden;   /* hide extra text before reveal */
}

/* Optional: revealed state */
.spoiler.revealed {
    color: var(--text-main);
}

/* Remove ::after if not needed or can be used for effects */
.spoiler::after {
    display: block;
    text-align: center;
    content: ""; /* can keep empty if not used */
}

.glow {
    text-shadow: 0 0 4px var(--text-main);
}

/* ---- Connector Lines ---- */
#connector-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#connector-lines line {
    stroke: var(--text-main);
    stroke-width: 2;
    stroke-dasharray: 4 2;
    filter: drop-shadow(2px -2px 2px var(--text-main));
    transition: stroke 0.3s ease;
}

#connector-lines line:hover {
    stroke: #0ff;
}

/* -------------------- YOUTUBE EMBEDS -------------------- */
iframe {
    border: none;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes saturate {
    0% {
        filter: saturate(0%);
        drop-shadow: 0 0 0px var(--text-main);
    }
    100% {
        filter: saturate(100%);
        drop-shadow: 0 0 16px var(--text-main);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
