body {
    font-family: Sahel, Arial, sans-serif;
    font-size: 15px;
    background: #111;
    color: #fff;
}

.header {
    padding: 20px 15px;
    width: 100%;
    height: 1.5em;
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    background-color: #111;
    top: 0;
}

.scoreboard {
    margin: 6em 10px 3em 15px;
}

.footer {
    margin-top: 20px;
    width: 100%;
    color: gray;
}

.footer a {
    color: gray;
    text-decoration: none;
}


/* -------------- Table styles -------------- */


.score-row {
    display: grid;
    grid-template-columns: 50px 60px 1fr 55% 80px;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    margin-bottom: 8px;
    background: #222;
    border-radius: 8px;
}

.rank {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.name {
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.categories {
    display: flex;
    gap: 6px;
}

.categories span {
    background: #3a3a3a;
    width: 9%;
    text-align: center;
    padding: 4px 4px;
    border-radius: 4px;
    font-size: 12px;
}

.score-badge {
    /* background: #32c739; */
    padding: 6px 2px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}

.subtitle {
    font-size: small;
    color: gray;
    line-height: 1em;
}

.scoreboard span {
    font-size: 16px !important;
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
}

.scoreboard span.empty {
    color: #888;
}

.scoreboard span.yes {
    background-color: #32c739;
    color: #111;
}

.scoreboard span.yes.first {
    background-color: #32c739;
}

.scoreboard span.no {
    background-color: #de290f;
}

.scoreboard span.pending {
    background-color: #ffb200 !important;
    color: #111;
    cursor: pointer;
}

.muted {
    font-size: 0.75em;
    color: #555;
    display: #111;
}

.no .muted {
    color: #000;
}

.text-center {
    display: block;
    text-align: center !important;
}

span.balloon {
    display: block !important;
    width: 27px !important;
    height: 40px !important;
    margin: 0 auto !important;
    text-align: center !important;
    line-height: 30px !important;
    background: url("../img/balloon.png") -1px -1px no-repeat;
}

/* -------------- Modal -------------- */

#photoModal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
}

#photoModal.show {
    opacity: 1;
    visibility: visible;
}

#photoModal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#closeModal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #eee;
    cursor: pointer;
}