:root {
    --c-blau:  #154284;
    --c-grana: #A50044;
    --c-groc:  #fdc52c;
}

body {
    margin: 0;
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: fcb-condensed-bold,Arial,Helvetica Neue,Helvetica,sans-serif;
    background-color: var(--c-blau);
}


#game-container {
    flex-grow: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer {
    width: 100%;
    background-color: black;
    color: white;
    text-align: center;
    font-size: 0.8em;
    padding: 4px 0;
    flex-shrink: 0;
}

#footer a {
    color: white;
}

#footer a:hover {
    text-decoration: none;
}

/* Debug panel in footer */
#debug-panel {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
#debug-panel button {
    background: #1a1030;
    color: var(--c-groc);
    border: 2px solid var(--c-groc);
    padding: 5px 10px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
}
#debug-panel button:hover { background: #2a1d50; }
#debug-panel button:active { transform: translateY(1px); }

/* Estil del modal (per defecte ocult) */
.modal {
    display: none; /* Amagat inicialment */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fons semitransparent */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Contingut del modal */
.modal-content {
    background-color: var(--c-groc);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
}

/* Tanca el modal */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
    border: none;
    background: none;
}

.modal-content ul {
    margin: 0 auto;
    text-align: left;
    width: fit-content;
}

