body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    text-align: center;
    padding: 20px;
}

#deck-status {
    margin-bottom: 20px;
}

#drawn-cards {
    margin-top: 20px;
    font-size: 20px;
}

#drawn-cards-container {
    overflow: visible; /* Asegúrate de que el contenedor no corte las imágenes */
}

.card {
    width: 63mm;
    height: 88mm;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: grab;
    background-size: cover;
    background-position: center;
    color: transparent; /* Hacer el texto transparente para probar */
}

.card {
    z-index: 10; /* Asegúrate de que esté en la parte superior */
    opacity: 1;  /* Asegúrate de que sea completamente visible */
}



.card.dragging {
    opacity: 0.5;
}

#drawn-cards-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#ok-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#ok-button:hover {
    background-color: #45a049;
}

#graveyard-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #FF6347; /* Tomate */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#graveyard-button:hover {
    background-color: #FF4500; /* Naranja Rojo */
}


#bottom-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#bottom-cards-section h2 {
    text-align: center;
    margin-top: 20px;
}

.card {
    width: 63mm;
    height: 88mm;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: default;
    background-size: cover;
    background-position: center;
}

#end-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50; /* Mismo color que el botón OK */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#end-button:hover {
    background-color: #45a049; /* Color al pasar el mouse */
}


#reset-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #f44336; /* Rojo para indicar reinicio */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#reset-button:hover {
    background-color: #d32f2f; /* Color más oscuro al pasar el mouse */
}

#drawn-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}











.card {
    width: 63mm;
    height: 88mm;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    position: relative;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card .card-front, .card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 5px;
}

.card .card-back {

    background-image: url('/img/back.png');
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
}


.card .card-front {
    background-size: cover;
}
