* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    width: 100%;
    position: relative;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
}

/* Story Box */
.story-box {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-left: 5px solid #00796b;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.story-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.icon {
    font-size: 50px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header-text strong {
    color: #004d40;
    font-size: 20px;
    display: block;
}

.header-text p {
    color: #666;
    font-size: 14px;
    margin-top: 3px;
}

.story-text {
    color: #333;
    line-height: 1.8;
    font-size: 18px;
    text-align: center;
}

/* Plane Section */
.plane-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.plane-wrapper {
    position: relative;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 3px solid #00897b;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
}

.plane-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: white;
}

/* Matching Section */
.matching-section {
    margin: 25px 0;
}

.matching-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.column-title {
    font-size: 18px;
    font-weight: bold;
    color: #00796b;
    text-align: center;
}

.matching-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: 12px;
    align-items: center;
}

.point-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 3px solid #00897b;
    border-radius: 10px;
    padding: 15px;
    height: 100%;
}

.point-name {
    font-size: 28px;
    font-weight: bold;
    color: #00897b;
}

.quadrant-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quadrant-btn {
    background: white;
    border: 2px solid #00897b;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quadrant-btn:hover {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 137, 123, 0.3);
}

.quadrant-btn.selected {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    color: white;
    border-color: #004d40;
}

.quadrant-btn.correct {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border-color: #2e7d32;
    animation: pulse 0.6s ease-in-out;
}

.quadrant-btn.incorrect {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #c62828;
    animation: shake 0.5s ease-in-out;
}

.quadrant-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Feedback */
.feedback {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    min-height: 30px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.feedback.success {
    color: #4caf50;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
}

.feedback.error {
    color: #f44336;
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
}

/* Reset Button */
.reset-btn {
    display: block;
    margin: 20px auto;
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .matching-header {
        grid-template-columns: 120px 1fr;
    }

    .matching-row {
        grid-template-columns: 120px 1fr;
        gap: 15px;
    }

    .quadrant-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 26px;
    }

    .matching-header {
        grid-template-columns: 100px 1fr;
        gap: 10px;
        padding: 0 10px;
    }

    .column-title {
        font-size: 18px;
    }

    .matching-row {
        grid-template-columns: 100px 1fr;
        gap: 10px;
        padding: 15px;
    }

    .point-name {
        font-size: 28px;
    }

    .quadrant-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .story-text {
        font-size: 16px;
    }

    .matching-header {
        grid-template-columns: 80px 1fr;
    }

    .matching-row {
        grid-template-columns: 80px 1fr;
        margin-bottom: 20px;
    }

    .point-label {
        padding: 15px;
    }

    .point-name {
        font-size: 24px;
    }

    .column-title {
        font-size: 16px;
    }

    .quadrant-btn {
        font-size: 13px;
        padding: 10px;
    }

    .feedback {
        font-size: 18px;
    }
}
