body{
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #fff8e1;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home{
    position: absolute;
    filter: invert(1);
    left: 90%;
    width: 7%;
}

#title{
    font-size: 48px;
    width: 113%;
    color: #ff5722;
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px #ffc107;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}
#game_setup{
    background-color: #fff3b0;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    max-width: 800px;
}
#game_setup label{
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #5c4400;
}
#game_setup select{
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #ffcc00;
    background-color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}
#game_setup button{
    display: block;
    margin: 20px auto 0;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    background-color: #ff5722;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}
#game_setup button:hover{
    background-color: #e64a19;
}

#ranking_filter{
    background-color: #ffe082;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    align-self: center;
}
#ranking_filter label{
    font-weight: bold;
    margin-right: 7px;
    color: #5c4400;
}
#ranking_filter select{
    padding: 6px 12px;
    margin-right: 20px;
    border-radius: 5px;
    border: 2px solid #ffa000;
    background-color: #fffde7;
}
#ranking{
    background-color: #fff9c4;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    max-height: 450px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    text-align: center;
}
#ranking h2{
    margin-top: 0;
    color: #5c4400;
    font-size: 24px;
}
#ranking_text{
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 350px;
    scrollbar-width: thin;    /* Pq funcioni a firefox */
    scrollbar-color: #ff9800 #fffde7;
}
#ranking_text::-webkit-scrollbar{
    width: 10px;
} 
#ranking_text::-webkit-scrollbar-track{
    background: #fffde7;
    border-radius: 10px;
}
#ranking_text::-webkit-scrollbar-thumb{
    background-color: #ff9800;
    border-radius: 10px;
    border: 2px solid #fffde7;
} 
#ranking_text::-webkit-scrollbar-thumb:hover{
    background-color: #fb8c00;
}
.ranking_entry{
    background-color: #fff;
    padding: 10px 15px;
    margin-right: 10px;
    border: 2px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #3e2723;
    transition: transform 0.2s;
}
.ranking_entry:hover{
    background-color: #fffde7;
}

#start{
    display: none;
    width: 45%;
}

#joc{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff8e1;
}
#marcadors{
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #5c4400;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}
#marcadors div{
    background-color: #ffe082;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.grid{
    width: 680px;
    height: 650px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.square{
    width: 210px;
    height: 200px;
    background-color: #fff;
    border: 3px solid #ff9800;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s;
    cursor: pointer;
}
.square:hover{
    background-color: #fff3e0;
}

.mole{
    background-image: url(../fotos/mole.png);
    background-size: cover;
    
}

.bomb{
    background-image: url(../fotos/bomb.png);
    background-size: cover;
}