/* CSS File for Interactive Web Page */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #3b5998;
    color: #fff;
    padding: 20px;
    text-align: left;
}

.unit-header h1 {
    font-size: 2em;
    margin: 0;
}

.unit-header p {
    font-size: 1.2em;
    margin-top: 5px;
}

section {
    padding: 20px;
    margin: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #3b5998;
    border-bottom: 2px solid #3b5998;
    padding-bottom: 10px;
}

h3 {
    color: #333;
    font-size: 1.5em;
    margin-top: 20px;
}

h4 {
    font-size: 1.2em;
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: #f0f0f0;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-item {
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.exercise {
    margin-top: 20px;
}

.exercise ul {
    margin-top: 10px;
}

.conversation-example, .conversation-editing {
    background-color: #f0f8ff;
    padding: 15px;
    border-left: 4px solid #3b5998;
    margin-bottom: 20px;
}

.example-conversation {
    background-color: #e6ffe6;
    padding: 15px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

footer {
    background-color: #3b5998;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

.place-image {
    width: 800px;
    height: auto;
}

.business-card-image {
    width: 40%;
    height: auto;
    float: left;
    margin-right: 20px;
}

.neighborhood-image {
    width: 100%;
    height: auto;
}



#submit-matching-game, #reset-matching-game {
    width: fit-content;

}

.word-box {
    border: 1px solid black;
    padding: 10px;
    
}

/* Add responsive styling */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }
    
    .unit-header h1 {
        font-size: 1.5em;
    }

    .unit-header p {
        font-size: 1em;
    }

    section {
        margin: 10px;
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.3em;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }
    
    .unit-header h1 {
        font-size: 1.2em;
    }

    .unit-header p {
        font-size: 0.9em;
    }

    section {
        margin: 5px;
        padding: 10px;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1.1em;
    }

    ul li {
        padding: 8px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 10px;
    }
}

/* Styling for comprehension matching game */
.matching-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.matching-game .match-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.matching-game select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.matching-game label {
    font-weight: bold;
}

.comprehension-answer {
    margin-top: 10px;
    font-style: italic;
    color: #333;
}

/* Styling for interaction with Exercise B */
.exercise-b {
    background-color: #f0f8ff;
    padding: 15px;
    border-left: 4px solid #3b5998;
    margin-top: 20px;
    border-radius: 8px;
}

/* Styling for Present of Be Section */
#present-of-be table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#present-of-be table th, #present-of-be table td {
    border: 1px solid #3b5998;
    padding: 10px;
    text-align: center;
}

#present-of-be table th {
    background-color: #3b5998;
    color: #fff;
    font-weight: bold;
}

#present-of-be table td {
    background-color: #f9f9f9;
    color: #333;
}

#present-of-be table tbody tr:nth-child(even) {
    background-color: #e6e6e6;
}

/* Styling for Prepositions of Place Section */
.prepositions-of-place img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styling for Exercise 2: Prepositions in Addresses */
#focused-practice select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 0 5px;
}

#focused-practice ul li {
    margin-bottom: 15px;
}

/* Styling for Exercise 9 Word Box */
.word-box {
    background-color: #e6e6e6;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Styling for Exercise 8 Image Container */
.image-container {
    text-align: center;
    margin-bottom: 20px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styling for Exercise Buttons */
.exercise-buttons {
    margin-top: 20px;
}

.exercise-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #3b5998;
    color: #fff;
    margin-right: 10px;
}

.exercise-buttons button:hover {
    background-color: #2e4677;
}
