
/* GENERAL PAGE STYLING */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* HEADER AND WEBSITE TITLE */

header {
    background-color: #245b73;
    color: white;
    text-align: center;
    padding: 35px 20px;
}

header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

header p {
    font-size: 17px;
}

/* MAIN CONTENT AREA */

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
}

/* INSTRUCTIONS */

.instructions {
    text-align: center;
    background-color: #e2eee9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* LANDMARK CARD SECTION */

.landmark-section {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.landmark-section h2,
.sorting-section h2 {
    text-align: center;
    color: #245b73;
}

/* GRID FOR THE NINE LANDMARK CARDS */

.landmark-bank {
    display: grid;

    /* Creates three equal columns */
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
    margin-top: 20px;
}

/* INDIVIDUAL DRAGGABLE LANDMARK CARDS */

.landmark {
    background-color: #f1e5ce;
    border: 2px solid #d4b98b;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    cursor: grab;

    /* Smooth transition when hovering */
    transition: background-color 0.2s, transform 0.2s;
}

/* Changes the card's appearance when hovering */

.landmark:hover {
    background-color: #e6d2ad;
    transform: translateY(-3px);
}

/* Changes the cursor while dragging */

.landmark:active {
    cursor: grabbing;
}

/* SORTING AREA */

.sorting-section {
    margin-bottom: 30px;
}

.sorting-container {
    display: grid;

    /* Places the three continent boxes side by side */
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
    margin-top: 20px;
}

/* DROP ZONES */

.drop-zone {
    background-color: white;
    border: 3px dashed #8ba9a1;
    border-radius: 12px;
    padding: 15px;
    min-height: 220px;
    text-align: center;

    /* Smooth transition for drag-over effects */
    transition: background-color 0.2s, border-color 0.2s;
}

.drop-zone h3 {
    color: #245b73;
    font-size: 22px;
    margin-top: 5px;
}

/* Highlight a box when a card is dragged over it */

.drop-zone.drag-over {
    background-color: #e2eee9;
    border-color: #245b73;
    border-style: solid;
}

/* CONTENT INSIDE EACH DROP ZONE */

.drop-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CORRECTLY PLACED LANDMARKS */

.drop-content .landmark {
    background-color: #d9ebd7;
    border: 2px solid #82ae7e;
    cursor: default;
}

/* RESULTS AND FEEDBACK */

.results {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
}

#feedback {
    font-size: 18px;
    font-weight: bold;
    min-height: 25px;
}

/* Feedback colors */

.correct {
    color: #28743a;
}

.incorrect {
    color: #b33b32;
}

#progress {
    font-size: 17px;
    color: #245b73;
    font-weight: bold;
}

/* RESET BUTTON */

button {
    background-color: #245b73;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #173e50;
}

/* RESPONSIVE DESIGN FOR SMALLER SCREENS */

@media (max-width: 700px) {

    /* Change the landmark cards to two columns */
    .landmark-bank {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stack the continent boxes vertically */
    .sorting-container {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 28px;
    }
}
