body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: fcb-condensed-bold,Arial,Helvetica Neue,Helvetica,sans-serif
}

#title-container{
    display: flex;
    justify-content:
    space-between;
    align-items: center;
    padding: 10px 5%;
    width: 100%;
    background-color: #154284;
}

#title {
    padding-left: 5%;
    font-size: 48px;
    margin: 0;
    color: #fdc52c;
}

#question-link {
    text-decoration: none;
    padding-right: 3%;
}

.question-icon {
    width: 45px;
    height: 45px;
    background-color: #fdc52c;
    border-radius:10px;
    -webkit-border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #154284;
    font-size: 48px;
    font-weight: bold;
}

.question-icon span {
    color: #154284;
    font-size: 48px;
    font-weight: bold;
}

#clicks {
    color: white;
    background-color: #A50044;
    width: 100%;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

#click-counter {
    margin-top: 10px;
    font-size: 24px;
    font-weight: bold;
}

#clicks-per-second {
    font-size: 18px;
    font-weight: normal;
    margin-top: 5px;
}

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

#millores {
    text-align: center; /* Centra el text dins del contenidor */
    font-size: 1.2rem; /* Ajusta la mida del text */
    font-weight: bold; /* Fa el text més destacat */
    color: #154284; /* Blau fosc */
    background-color: #fdc52c; /* Fons groc */
    padding: 5px; /* Espai intern per fer-lo més visible */
    border-radius: 8px; /* Cantonades arrodonides */
    width: 100%; /* Ocupa tot l'ample del contenidor */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombra per fer-lo més modern */
    position: fixed; /* Sempre visible */
    bottom: 21vh; /* Augmenta la distància respecte als botons */
    z-index: 10; /* Per assegurar que estigui a sobre */
}

#buttons-container {
    width: 100%;
    display: flex;
    position: fixed;
    bottom: 0;
    margin-bottom: 0; /* Elimina espai extra */
    justify-content: space-around;
    align-items: flex-start;
    z-index: 9; /* Per mantenir-lo sota #millores */
}

.upgrade-button {
    flex: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    width: 150px;
    transition: filter 0.3s, transform 0.3s;
    justify-content: space-between;
    border-radius: .3rem;
    background: linear-gradient(90deg, #8c1a17, #cd122d);
    color: white;
    text-align: center;
    margin: 5px;
    text-shadow: 1px 1px 2px white;
}



#buttons-container {
    width: 100%;
    display: flex;
    position: fixed;
    bottom: 0;
    margin-bottom: 10vh;
    justify-content: space-around;
    align-items: flex-start;
}

.upgrade-button {
    flex: 1;
    /*height: 100px;*/
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    width: 150px;
    transition: filter 0.3s, transform 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: .3rem;
    background: linear-gradient(90deg,#8c1a17,#cd122d);
    color: white;
    text-align: center;
    margin: 5px;
    text-shadow: 1px 1px 2px white;
}

.upgrade-button.enabled {
    filter: none;
    cursor: pointer;
}

.upgrade-info {
    margin-top: 10px;
}

.upgrade-value {
    font-size: 15px;
}

.upgrade-cost {
    font-size: 13px;
}

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: black;
    color: white;
    text-align: center;
    font-size: 0.8em;
    padding: 10px 0;
}

#footer a {
    color: white;
}

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

/* 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: #fdc52c;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    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 {
    list-style: none; /* Elimina els punts per defecte */
    padding: 0;
    margin: 0 auto; /* Centra tota la llista dins del modal */
    text-align: left; /* Alinea el text a l'esquerra */
    width: fit-content; /* L'amplada de la llista s'adapta al contingut */
}

.modal-content ul li {
    display: flex;
    align-items: center; /* Centra verticalment icona i text */
    gap: 10px; /* Espai entre la pilota i el text */
    margin-bottom: 10px; /* Espai entre elements de la llista */
}

.modal-content ul li::before {
    content: '⚽'; /* Icona de pilota de futbol */
    color: #154284; /* Blaugrana o qualsevol color preferit */
}
