/* Fons amb degradat suau */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #e0f7fa, #fff);
    font-family: 'Segoe UI', sans-serif;
}

/* Capçalera */
#titol {
    font-size: 40px;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 10px;
    text-align: center;
}

/* Descripció */
#infobasica {
    background-color: #ffffffd9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    margin: 10px;
    max-width: 450px;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Botons en paral·lel */
.botonera {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

/* Estil dels botons */
button {
    height: 50px;
    width: 180px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background-color: #00bfa5;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #009e88;
    box-shadow: 0px 0px 10px 2px #00e5ff;
}

#buidar {
    display: none;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

/* Fade-in */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Zona de pilotes */
#container {
    margin-top: 40px;
    min-height: 100px;
    width: 90vw;
    border-radius: 12px;
    background-color: #e0f2f1;
    border: 2px solid #b2dfdb;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 8px;
    padding: 12px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
}

/* Bola */
.ball-in {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.ball-in:hover {
    transform: scale(1.1);
}

/* Comptadors */
#comptador, #nombreboles {
    font-size: 18px;
    font-weight: bold;
    color: #00695c;
    margin: 10px;
    text-align: center;
}

/* Home */
.home {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
}
/* Fons amb degradat suau */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #e0f7fa, #fff);
    font-family: 'Segoe UI', sans-serif;
}

/* TITOL - Gran, destacat i amb presència */
#titol {
    font-family: 'Segoe UI', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #004d40;
    margin-top: 50px;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#infobasica {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #3a3a3a;
    max-width: 480px;
    margin: 20px auto 35px auto;
    padding: 8px 16px;
    background: #f9fafb;
    border-left: 4px solid #00796b; /* barra lateral elegant */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 6px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.02em;
    font-weight: 500;
    user-select: none;
}



/* Botons en paral·lel */
.botonera {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

/* Estil dels botons */
button {
    height: 50px;
    width: 180px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background-color: #00bfa5;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #009e88;
    box-shadow: 0px 0px 10px 2px #00e5ff;
}

#buidar {
    display: none;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

/* Zona de pilotes */
#container {
    margin-top: 40px;
    min-height: 100px;
    width: 90vw;
    border-radius: 12px;
    background-color: #e0f2f1;
    border: 2px solid #b2dfdb;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 8px;
    padding: 12px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
}

/* Bola */
.ball-in {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.ball-in:hover {
    transform: scale(1.1);
}

/* Comptadors */
#comptador, #nombreboles {
    font-size: 18px;
    font-weight: bold;
    color: #00695c;
    margin: 10px;
    text-align: center;
}

/* Home */
.home {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
}



