body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.game-container {
    max-width: 900px;
    width: 100%;
}

h1 {
    color: #4CAF50;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

td {
    width: 33%;
    height: 200px;
    border: 2px solid #4CAF50;
    padding: 10px;
    vertical-align: top;
    text-align: center;
}

.dropzone {
    background-color: #f1f8e9;
    min-height: 200px;
    transition: background-color 0.3s;
}

.dragover {
    background-color: #c5e1a5;
    border: 2px dashed #558b2f;
}

#animals {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.draggable {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #9e9e9e;
    cursor: move;
    transition: transform 0.2s;
}

.draggable:hover {
    transform: scale(1.1);
    border-color: #4CAF50;
}

.dropped-animal {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 5px;
    border: 2px solid #4CAF50;
}

#message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 100;
}

.success {
    background-color: #4CAF50;
    color: white;
}

.error {
    background-color: #f44336;
    color: white;
}

/* Completion overlay styles */
#completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#completion-message {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
}

.tvo-message {
    color: #4CAF50;
}

.tvo-message img {
    max-width: 200px;
    margin-top: 20px;
}

/* Blinking animation */
.blinking {
    animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        opacity: 0.3;
    }
}