body{
    margin: 0px;
    padding: 0px;
    display: flex;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/fons1.png");
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.contingut {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#titol{
    margin-top: 30px;
}

.mode {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

button{
    top:5vh;
    position: relative;
    height: 50px;
    width: 150px;
    font-weight: bold;
}
button:hover{
    box-shadow: 0px 0px 2px 1px cyan;
}

#container{
    position: relative;
    top: 50px;
    min-height: 70px;
    width: 90vw;
    border-bottom: 3px double rgb(0, 0, 0);
    border-right: 3px double rgb(0, 0, 0);
    border-left: 3px double rgb(0, 0, 0);
    background-color: rgb(214, 252, 222);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
}

.ball-in{
    height: 60px;
    width:60px;
    border-radius: 50%;
    position: relative;
    background-size: cover;
    background-position: center;
}

#info{
    color: black;
    width: 900px;
    margin: 20px auto;
    text-align: center;
    border: solid 2px;
    border-radius: 10px;
    background: #c3f8cc;
    padding: 15px;
    position: relative;
}

#titol_info{
    font-weight: bold;
    color: #1f4e5f;
    font-size: 20px; 
    display: block;
    margin-bottom: -10px;
}

#boto_tancar{
    position: absolute;
    top: 70px;
    left: 80px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#comptador {
    margin-top: -55px;
    margin-left: -590px;
    font-size: 22px;
    font-weight: bold;
    color: #da4c21;
    text-align: center;
    background-color: rgba(240, 180, 140, 0.7);
    padding: 8px 15px;
    border-radius: 10px;
    min-width: 80px;
}

#missatge_boles {
    font-size: 22px;
    font-weight: bold;
    color: #da4c21;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    background-color: rgba(240, 180, 140, 0.7);
    padding: 8px 15px;
    border-radius: 10px;
    text-align: center;
    margin-left: 700px;
    top: 400px;
}

.botons {
    display: flex;
    gap: 20px;
}

#tema2 {
    background-image: url("../img/tema2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    border:0;
}

#tema1 {
    background-image: url("../img/tema1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    border: 0;
}

#tema1:hover {
    box-shadow: 0px 0px 2px 1px blue;
}

#tema2:hover{
    box-shadow: 0px 0px 2px 1px blue;
}

#afegir {
    background-color: #60d360;
    border-color: #60d360;
    color: white;
    border-radius: 20px;

}

#afegir:hover {
    box-shadow: 0px 0px 2px 1px green;
}

#eliminar {
    background-color: #ee7676;
    border-color: #ee7676;
    color: white;
    border-radius: 20px;
}

#eliminar:hover {
    box-shadow: 0px 0px 2px 1px red;
}

.home img{
    width: 50px;
    height: 50px;
    position: absolute; 
    right: 30px;
    top: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}