#titol{
    color:rgb(255, 255, 255);
    width: 800px;
    margin: auto;
    border:solid 2px;
    border-radius:10px;
    background-color:#1E3259;
    padding: 30px;
    font-family:Anton;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    animation: 2s ease-in-out infinite;
}
.casita{
    position: absolute;
    top: -80px;
    left: -150px;
  }

body{
    background-image: url('../img1/casasuper3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x:hidden;
}
button{
    width: 80px;
    height: 80px;
    background-size: cover;
    border: 2px solid #000;
    cursor: pointer;
}
#info{
    color:rgb(255, 255, 255);
    width: 800px;
    margin: auto;
    border:solid 2px;
    border-radius:10px;
    background-color:#F2A922;
    padding: 30px;
    text-align: center;
}
#boto_tancar{
    position:relative;
    width: 60px;
    top: -80px;
    left: 85%;
    border-radius: 50%;
}
.tauler{
    display: flex;
    flex-wrap: wrap;
    width:fit-content;
    margin: 40px auto;
    padding: 20px;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.tauler>button{
    width: 120px;
    height: 170px;
    border-width:2px;
    background-repeat: no-repeat;
    background-size:contain;
    background-position: center;
    background-image:url("../icon1/revers.png");
    border-radius: 15px;
    margin: 10px;
    transition: transform 0,3s, box-shadow 0,3s;
    cursor: pointer;
    flex: 1 1calc(25% - 40%);
}
.tauler > button.parella {
    border-color: #ffaf03; /* Color de la vora quan les cartes coincideixen (verd) */
    box-shadow: 0 0 20px rgba(255, 187, 0, 0.7); /* Una mica d'ombra per ressaltar */
}

.tauler>button:hover{
    transform: scale(1.1,1.1);
    box-shadow: 0 10px 15px rgb(255, 218, 8);
}
.marcadors{
    color:rgb(255, 255, 255);
    width: 800px;
    margin: auto;
    border: solid 2px;
    border-radius: 10px;
    background-color: #A62E2E;
    padding: 40px;
    position: relative;
    bottom: 20px;
}
.marcadors>div{
    width:250px;
    height: 30px;
    display: inline-block;
    margin: auto;
}
#final{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 30px;
    z-index: 10;
}
#final-img{
    width:100%;
    height:100%;
    object-fit: cover;
}
#final-temps{
    position: relative;
    top: 0%;
    left: 0%;
    width: 50%;
    height: 50%;
    display: none;
    border-radius: 20px;
    overflow:hidden;
    z-index:10;
    margin:auto;
    top:15%
    
}
#final-img-temps{
    width:100%;
    height: 100%;
    object-fit: cover;
}
.reproductor {
    width: 300px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Anton;
    margin-left: 500px;
    margin-top: 10px;
}

.reproductor .controles {
    margin-top: 10px;
}

.reproductor button {
    background: #eec200;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: center;
    width:auto;
    height: auto;
    display: inline-block;
    text-align: center;
}

.reproductor button:hover {
    background: #3700b3;
}
