* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f0f8ff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(72, 209, 204, 0.3);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #48d1cc, #7fffd4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.column-container {
    flex: 1;
    min-width: 300px;
    background: rgba(25, 55, 65, 0.7);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(72, 209, 204, 0.2);
    transition: transform 0.3s ease;
}

.column-container:hover {
    transform: translateY(-5px);
}

.column-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#column1 .column-title {
    color: #48d1cc;
    border-color: #48d1cc;
}

#column2 .column-title {
    color: #7fffd4;
    border-color: #7fffd4;
}

.column-content {
    min-height: 400px;
    border-radius: 10px;
    padding: 15px;
    background: rgba(15, 40, 50, 0.5);
    transition: background-color 0.3s;
}

.column-content.drag-over {
    background-color: rgba(72, 209, 204, 0.15);
}

.column-content .empty-message {
    text-align: center;
    padding: 50px 20px;
    opacity: 0.7;
    font-style: italic;
}

.statement-container {
    flex: 1;
    min-width: 300px;
    background: rgba(25, 55, 65, 0.7);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.statement-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid gold;
    color: gold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.statements {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 400px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(15, 40, 50, 0.5);
}

.statements .initial-message {
    text-align: center;
    padding: 50px 20px;
    opacity: 0.7;
    font-style: italic;
    width: 100%;
}

.statement {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #203a43;
    padding: 18px 15px;
    border-radius: 10px;
    cursor: move;
    user-select: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    flex: 1 1 calc(50% - 15px);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.statement:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.statement.dragging {
    opacity: 0.7;
    transform: scale(0.98);
}

.statement.in-column {
    flex: 0 0 100%;
    margin-bottom: 15px;
    text-align: left;
    padding: 15px;
    min-height: auto;
}

.statement.correct {
    border-left: 5px solid #32cd32;
}

.statement.incorrect {
    border-left: 5px solid #ff4500;
}

.statement-number {
    position: absolute;
    top: 8px;
    left: 10px;
    background: rgba(32, 58, 67, 0.8);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(to right, #48d1cc, #20b2aa);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #20b2aa, #48d1cc);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(to right, #ffd700, #ffa500);
    color: #203a43;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #ffa500, #ffd700);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stats-container {
    background: rgba(25, 55, 65, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(72, 209, 204, 0.2);
}

.stats-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #48d1cc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.stat-box {
    background: rgba(15, 40, 50, 0.8);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.correct .stat-value {
    color: #32cd32;
}

.incorrect .stat-value {
    color: #ff4500;
}

.remaining .stat-value {
    color: #ffd700;
}

.instructions {
    background: rgba(25, 55, 65, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.instructions-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: gold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ol {
    padding-left: 20px;
    line-height: 1.6;
}

.instructions li {
    margin-bottom: 10px;
}

.completion-message {
    text-align: center;
    font-size: 1.8rem;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    background: rgba(50, 205, 50, 0.2);
    border: 1px solid #32cd32;
    display: none;
}

.element-icon {
    color: #48d1cc;
}

.substance-icon {
    color: #7fffd4;
}

.shuffle-icon {
    color: gold;
}

.stats-icon {
    color: #48d1cc;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(72, 209, 204, 0.3);
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .game-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .column-title, .statement-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .statement {
        flex: 1 1 100%;
    }
}