/* =====================================================
   BASE
===================================================== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: #0b0b0b;
}


/* =====================================================
   VIEWER (index.html)
===================================================== */

body.viewer {
    font-family: Georgia, serif;
    background: radial-gradient(circle at center, #bd0000 0%, #5f0000 70%, #3f0000 100%);
    overflow: hidden;
    position: relative;
}

/* Guld-ramme overlay */
body.viewer::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: url("../assets/background/frame.png") no-repeat center center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scoreboard layout */
body.viewer #scoreboard {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 73vh;
    gap: 45px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

/* Team container (bruges til position-animation) */
body.viewer .team {
    text-align: center;
    transition: transform 0.6s ease;
}

/* Indre wrapper (bruges til scale) */
body.viewer .team-inner {
    transition: transform 0.65s ease;
}

/* Profilbillede */
body.viewer .team img {
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 6px solid #d4af37;
    box-shadow: 0 0 25px rgba(212,175,55,0.55);
    background-color: #8b0000; /* fallback farve */
}


/* Navn */
body.viewer .team h2 {
    margin: 18px 0 0;
    font-size: 28px;
    letter-spacing: 0.5px;
    min-height: 34px;
}

/* Point */
body.viewer .points {
    font-size: 70px;
    margin-top: 10px;
    font-weight: 700;
}

/* Leader */
body.viewer .team.leader .team-inner {
    transform: scale(1.2);
}

body.viewer .team.leader img {
    border-width: 8px;
    box-shadow: 0 0 45px rgba(255,215,0,0.95);
}


/* =====================================================
   ADMIN (admin.html)
===================================================== */

/* =====================================================
   ADMIN (admin.html)
===================================================== */

body.admin {
    background: radial-gradient(circle at top, #1f1f1f 0%, #0b0b0b 60%, #000 100%);
    overflow: auto;
    padding: 40px 20px 60px;
    box-sizing: border-box;
}

/* Overskrift */
body.admin h1 {
    margin: 0 0 30px;
    text-align: center;
    font-size: 42px;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Top actions */
body.admin .admin-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Generelle knapper */
body.admin button {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

body.admin button:hover {
    background: linear-gradient(to bottom, #333, #222);
    transform: translateY(-2px);
}

body.admin button:active {
    transform: translateY(0);
}

/* Team container */
body.admin #admin {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: grid;
    gap: 14px;
}

/* Hver række */
body.admin #admin > div {
    display: grid;
    grid-template-columns: 1fr 220px 60px 60px 70px 60px;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s ease;
}

body.admin #admin > div:hover {
    background: rgba(255,255,255,0.08);
}

/* Inputs */
body.admin input,
body.admin select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: #111;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

body.admin input:focus,
body.admin select:focus {
    outline: none;
    border-color: #d4af37;
}

/* Point display */
body.admin span {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: #d4af37;
}

/* Opgaver sektion */
body.admin .task-buttons {
    max-width: 1000px;
    margin: 0 auto;
}

body.admin .task-buttons h2 {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

/* Opgave grid */
body.admin .task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

/* Opgave knapper */
body.admin .task-grid button {
    padding: 10px 0;
    font-size: 14px;
    border-radius: 8px;
}

/* Luk opgave knap */
body.admin .task-grid button:last-child {
    background: linear-gradient(to bottom, #5c0000, #3a0000);
    border-color: rgba(255,0,0,0.4);
}

body.admin .task-grid button:last-child:hover {
    background: linear-gradient(to bottom, #750000, #4a0000);
}

/* =========================
   OPGAVE OVERLAY – PAPER STYLE
========================= */

.task-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.task-overlay.hidden {
    display: none;
}

.task-content {
    width: 1000px;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    font-family: 'Special Elite', cursive;
    font-size: 40px;
    line-height: 1.6;
    text-align: center;
    color: #2b2b2b;
    background: url("../assets/background/paper.jpg") center center no-repeat;
    background-size: 100% 100%;
    box-shadow:
        0 50px 100px rgba(0,0,0,0.6),
        0 0 0 8px rgba(0,0,0,0.15);
    position: relative;
}


/* Let gylden aura bag papiret */
.task-content::before {
    content: "";
    position: absolute;
    inset: -25px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(255,215,0,0.35), transparent 70%);
    z-index: -1;
}

#taskText {
    white-space: pre-line;
}

