* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f4ff;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #8e44ad;
    margin-bottom: 15px;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.instructions {
    font-size: 1.5em;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 15px auto;
    width: fit-content;
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-button {
    display: inline-block;
    margin: 10px;
    padding: 8px 16px;
    background-color: #8e44ad;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #9b59b6;
}

#game-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #f0e6ff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

#start-screen, #game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

#words-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 600px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    flex-grow: 0;
}

.word-card {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 8px;
    position: relative;
    border: 2px solid transparent;
}

.word-card::before {
    content: "≡";
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.word-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #a66bbe, #9b59b6);
}

.word-card.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    cursor: grabbing;
    z-index: 10;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.word-card.drag-over {
    border: 2px solid white;
    background: linear-gradient(135deg, #8e44ad, #673ab7);
    box-shadow: 0 0 12px rgba(142, 68, 173, 0.6);
    transform: scale(1.03);
}

.word-card.correct {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    animation: pulse 0.5s;
}

.word-card.incorrect {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: shake 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

#check-button {
    padding: 12px 25px;
    background-color: #8e44ad;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px 0;
}

#check-button:hover {
    background-color: #9b59b6;
}

#feedback-container {
    height: 40px;
    margin: 5px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.feedback-message {
    padding: 10px 25px;
    border-radius: 10px;
    display: inline-block;
    animation: fadeInOut 2s forwards;
}

.feedback-message.correct {
    background-color: #a5d6a7;
    color: #2e7d32;
}

.feedback-message.wrong {
    background-color: #ef9a9a;
    color: #c62828;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.bonus-time {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    animation: bonusAnimation 2s ease-in-out;
    z-index: 10;
}

@keyframes bonusAnimation {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

.drop-indicator {
    height: 5px;
    background-color: #ddd;
    width: 100%;
    margin: 5px 0;
    transition: all 0.2s;
    border-radius: 3px;
}

.drop-indicator.active {
    height: 10px;
    background-color: #9b59b6;
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.5);
}

button {
    padding: 12px 25px;
    margin: 15px 0;
    background-color: #8e44ad;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #9b59b6;
}

.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .instructions {
        font-size: 1.2em;
        min-width: auto;
        width: 90%;
    }
    
    .word-card {
        font-size: 1.1em;
        padding: 12px;
    }
} 