/* Basic styling for the game */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f9f9f9;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.intro-screen, .completion-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.intro-screen h1, .completion-screen h1 {
    color: #4c7bd9;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.intro-screen h2, .completion-screen h2 {
    color: #333;
    margin-bottom: 40px;
}

.start-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: #4c7bd9;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(76, 123, 217, 0.3);
}

.start-button:hover {
    background-color: #3b68c0;
    transform: translateY(-3px);
}

.game-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h2 {
    color: #4c7bd9;
    margin-bottom: 10px;
}

.instructions {
    font-size: 1.2rem;
    color: #555;
}

.game-area {
    display: flex;
    justify-content: space-between;
    height: 70%;
}

.basket-container {
    width: 45%;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.basket-container h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.left {
    background-color: #f1f7ff;
}

.right {
    background-color: #fff1de;
}

.draggables-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.draggable {
    width: 80%;
    padding: 15px;
    background: linear-gradient(135deg, #4c7bd9, #6a5acd);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3rem;
    cursor: move;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    user-select: none;
}

.draggable:hover {
    transform: translateY(-5px);
}

.dropzone {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: white;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    transition: all 0.3s;
}

.dropzone.hover {
    background-color: #e8f4ff;
    border-color: #4c7bd9;
}

.dropzone.correct {
    background-color: #e8ffe8;
    border-color: #28a745;
    color: #28a745;
}

.draggable.matched {
    pointer-events: none;
}

@media (max-width: 768px) {
    .game-area {
        flex-direction: column-reverse;
    }
    
    .basket-container {
        width: 100%;
        margin-bottom: 20px;
    }
}
