* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.score {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #666;
}

.game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.dropzone {
    border: 3px dashed #ccc;
    border-radius: 10px;
    padding: 0.5rem;
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    align-content: start;
    transition: background-color 0.3s ease;
}

.dropzone h2 {
    margin-bottom: 0.5rem;
    color: #666;
    grid-column: 1 / -1;
    font-size: 1rem;
}

.dropzone.highlight {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.cards-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    text-align: center;
    cursor: move;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.card p {
    font-weight: bold;
    color: #333;
    font-size: 0.8rem;
}

.card.dragging {
    opacity: 0.5;
}

#continue-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.5rem 1rem;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#continue-btn:hover {
    background-color: #40a9ff;
}