/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* Unit 3 Header Styles */
#unit-header {
    background-color: #FDE599; /* Light yellow color from the image */
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.unit-info h2 {
    color: #336699; /* Dark blue from the image */
    font-size: 1.8em;
    margin: 0;
}

.unit-info h3 {
    
    font-size: 2.8em;
    margin: 5px 0;
}

.unit-info p {
    font-size: 1.9em;
    font-weight: bold;
    color: #333;
}

.grammar-outcomes {
    margin-left: 20px;
    border: solid .5px bfbfbf1c;
    background-color: #dcd9d96f;
    
}

.grammar-outcomes h4 {
    font-size: 1.2em;
    margin-bottom: 8px;
    padding-left: 10px;
    
}

.grammar-outcomes ul {
    padding-left: 20px;
    padding-right: 10px;
    
}

.grammar-outcomes li {
    font-size: 1em;
    margin-bottom: 5px;
    
}

.step-indicator {
    background-color: #4CAF50; /* Green color from the image */
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    position: absolute;
    bottom: -15px;
    left: 20px;
    color: white;
}

.step-indicator p {
    font-size: 1.1em;
    margin: 0;
}

.step-indicator h4 {
    font-size: 1.4em;
    margin: 5px 0 0;
}

h2 {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

h3 {
    color: #333;
    margin-bottom: 10px;
}

h4 {
    color: #555;
    margin-bottom: 5px;
}

/* Section Layout */
section {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Vocabulary Section */
#vocabulary-section {
    background-color: #e0f7fa;
}

.vocabulary-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}
 
.image-container {
    
    padding: 8px;
    margin: 0px 10px;
}

.image-container p {
    margin: 10px 0;
}

.vocabulary-images {
    background-color: none;
    width: 15em;
    height: auto;
}

.vocabulary-images, #boring-img, #boring-img1, #fun-img, #fun-img1{
    width: 15em;
    height: auto;
}

#dirty-image1, #far-img1, #boring-img1, #fun-img1 {
    width: 15.8em;
    height: auto;
}


/* Conversation Section */
.conversation {
    background-color: #fff3e0;
}

.conversation p {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.conversation-exercise p {
    font-size: 1.1em;
    color: #333;
    border: 1px dashed #ccc;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 5px;
}

/* Reading Section */
#reading-section {
    background-color: #fce4ec;
}

.dialogue p {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.reading-images {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

#seattle-people-img,
#australia-map-img {
    background-color: #f9fbe7;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

#seattle-people-img #seattle-people-img1, #australia-map-img #australia-map-img1 {
    width: 250px;
    height: auto;
}

/* After Reading Section */
#after-reading-section {
    background-color: #e3f2fd;
}

#after-reading-section #instructions{
    font-size: large;
}

.comprehension-exercise p {
    font-size: 1.5em;
    color: #333;
    width: 95%;
    margin: 0 auto;
}

.comprehension-exercise span {
    text-decoration: underline;
    color: #d32f2f;
}

#correctWord {
    padding: 2px;
    font-size: large;
}

.six_sentences h4 {
    font-size: 20px;
}

 .six_sentences input{
    width: 90%;
    padding: 5px; 
}

/* Table Styles */

#grammar-presentation-section h3 {
    font-size: 28px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

table thead {
    background-color: #dfb5edd0;
}

.grammar-table h4 {
    margin-top: 20px;
    background-color: #336699;
    color: whitesmoke;
}

/* Grammar notes table */
#grammar-notes-table th {
    background-color: #4CAF50;
    text-align: left;
    padding-left: 20px;
    color: whitesmoke;
}

#grammar-notes-table td {
    margin: 0 auto;
    text-align: left;
    padding-top: 0;
    margin-top: 0;
}

#contractions-section h4{
    font-size: 32px;
}

 /* step 2 tables */
 .card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1105px;
    margin: 0 auto;
}
.card {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
    background-color: #3a73ab;
    color: whitesmoke;
    padding: 2px;
    padding-left: 7px;
}
.table-row {
    display: flex;
    justify-content: space-between;
}
table {
    width: 30%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center;
}
th {
    background-color: #ddd;
}

/* Usage Note */
.usage-note {
    background-color: #f9f9f9;
    padding: 10px;
    border-left: 4px solid #4CAF50;
    margin-bottom: 20px;
}

/* Exercise List */
.exercise-table tr td {
    border: none;
    text-align: left;
    
}

#exercise-1{
    width: 20px;
}

ol {
    padding: 0;
}

li {
    margin-bottom: 10px;
}

/* Input Styling */
input[type="checkbox"] {
    margin-left: 10px;
}

.exercise p {
    border: 1px dashed #ccc;
    padding: 10px;
    background-color: #fafafa;
    border-radius: 5px;
    margin-top: 10px;
}

/* Input Styling */
input[type="checkbox"] {
    margin-left: 10px;
}

/* Word Box */
.word-box {
    background-color: #f9f9f9;
    padding: 10px;
    border-left: 4px solid #4CAF50;
    margin-bottom: 20px;
}

.conversation-example {
    background-color: #fafafa;
    padding: 10px;
    border-left: 4px solid #FF9800;
    margin-bottom: 20px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

/* Placeholder for images */
.image-container {
    width: 250px;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    border-radius: 8px;
}

.image-container p {
    color: #888;
}

/* Styling for images */
.image-placeholder {
    width: 200px;
    height: 150px;
    background-color: #ddd;
    margin-bottom: 10px;
    
}

.exercise ul {
    list-style: none;
}

.exercise3-images {
    display: flex;
    justify-content: space-between;
    width: 60%;
    padding-left: 25px;
    
}

.exercise3-images h3 {
    padding-top: 25px;
}

.image-placeholder {
    display: flex;
    flex-direction: row;
    gap: 10px;
    
}

/* Exercise 2 answers and button */
/* General Button Styling */
.submit-btn {
    background-color: #336699; /* Dark blue color for education feel */
    color: #fff; /* White text for readability */
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
    margin-top: 20px;
}

/* Hover Effect */
.submit-btn:hover {
    background-color: #274d7f; /* Darker blue for hover effect */
    transform: translateY(-2px); /* Slight elevation on hover */
}

/* Focus Effect */
.submit-btn:focus {
    outline: 3px solid #FDE599; /* Light yellow outline for accessibility */
}

/* Feedback Styling */
span[id$="-feedback"] {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
    font-weight: bold;
}

/* Correct Feedback Styling */
span[id$="-feedback"] span {
    padding: 5px;
}

/* Correct Answer Styling */
span[id$="-feedback"] span[color="green"] {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 4px 8px;
}

/* Incorrect Answer Styling */
span[id$="-feedback"] span[color="red"] {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 4px 8px;
}


/* exercise 4 */
.exercise-4-table tr td {
    text-align: left;
    border: none;
}

/* General Reset Button Styling */
.reset-btn {
    background-color: #999999; /* Gray color to differentiate from submit button */
    color: #fff; /* White text for readability */
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
    margin-top: 20px;
    margin-left: 10px; /* Add some space between submit and reset buttons */
}

/* Hover Effect */
.reset-btn:hover {
    background-color: #777777; /* Darker gray for hover effect */
    transform: translateY(-2px); /* Slight elevation on hover */
}

/* Focus Effect */
.reset-btn:focus {
    outline: 3px solid #FDE599; /* Light yellow outline for accessibility */
}


/* Styling for the student info table in Exercise 5 */
.student-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 20px;
}

.student-info-table th, .student-info-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.student-info-table th {
    color: #f0f0f0;
    background-color: #092847;

}

#name-ex5 {
    color: #f0f0f0;
    background-color: #336699;
}

.input-exercise {
    font-size: medium;
    width: fit-content;
}

/* exercise 6 */
/* Email Section */
.email-container {
    background-color: #fafafa;
    padding: 15px;
    border-left: 4px solid #4CAF50;
    border-radius: 5px;
    font-size: 1.1em;
}

#womanRainyDayEx6 {
    float: left;
    padding: 0 10px 10px 0;
    width: 360px;
    height: auto;
}

/* step4 exercise 8 */
#step4 {
    padding: 10px;
    color: #fdfdfd;
    
}

/* Placeholder for images exercise 8 */
.chef-image #exercise-8-image{
    width: 370px;
    height: auto;
    float: right;
    padding: 0 10px 10px 0;

}

.chef-image p {
    color: #888;
}

/* Editing Checklist */
.editing-checklist {
    background-color: #f5f5f5;
    padding: 10px;
    border-left: 4px solid #4CAF50;
}

.editing-checklist ul {
    list-style-type: none;
    padding-left: 0;
}

.editing-checklist ul li {
    margin-bottom: 10px;
}

/* Example box */
.example {
    background-color: #e0f7fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}


/* Ordered List Styling */
ol {
    margin-left: 20px;
}

ol li {
    margin-bottom: 10px;
}

/* grammar to writing */

.image-container-city-image {
    width: 100%;
    margin: 0 auto;
}

#city-info-image {
    width: 98%;
    height: auto;
    border-radius: 8px;
}

/* Conversation Styling */
.conversation {
    background-color: #fafafa;
    padding: 10px;
    border-left: 4px solid #FF9800;
    margin-bottom: 20px;
}

.conversation p {
    margin-bottom: 8px;
}

#grammar-to-writing-input {
    width: 850px;
    height: 200px;
    font-size: large;
}

/* unit 3 Review */

.u3-review {
    border: none;
    border-bottom: 1.5px solid;
    font-size: large;
}

/* Part C note */
p strong {
    color: #FF5722;
}

/* Smartphones (portrait and landscape) */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    #unit-header {
        flex-direction: column;
        align-items: center;
    }

    .unit-info h2, .unit-info h3, .unit-info p {
        text-align: center;
    }

    .unit-info h2 {
        font-size: 1.4em;
    }

    .unit-info h3 {
        font-size: 2em;
    }

    .unit-info p {
        font-size: 1.5em;
    }

    .grammar-outcomes {
        margin-left: 0;
    }

    .grammar-outcomes h4 {
        font-size: 1em;
    }

    .vocabulary-images, .reading-images, .exercise3-images {
        flex-direction: column;
        align-items: center;
    }

    #seattle-people-img, #australia-map-img {
        width: 150px;
        height: auto;
    }

    .vocabulary-images, #boring-img, #boring-img1, #fun-img, #fun-img1,
    #dirty-image1, #far-img1 {
        width: 12em;
        height: auto;
    }

    .conversation p, .comprehension-exercise p, .exercise p {
        font-size: 1em;
    }

    .step-indicator {
        position: static;
        margin: 10px 0;
    }

    .step-indicator h4, .step-indicator p {
        font-size: 1em;
    }

    .student-info-table th, .student-info-table td {
        padding: 6px;
    }

    /* Adjust the size of images */
    #womanRainyDayEx6, #city-info-image {
        width: 100%;
        height: auto;
    }

    .chef-image #exercise-8-image {
        width: 100%;
        height: auto;
    }

    input, .input-exercise {
        width: 95%;
    }

    table {
        width: 100%;
    }
}

/* Tablets (landscape) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #unit-header {
        flex-direction: row;
        align-items: center;
    }

    .unit-info h2 {
        font-size: 1.6em;
    }

    .unit-info h3 {
        font-size: 2.4em;
    }

    .unit-info p {
        font-size: 1.7em;
    }

    .vocabulary-images, .reading-images, .exercise3-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    #seattle-people-img, #australia-map-img {
        width: 180px;
        height: auto;
    }

    .vocabulary-images, #boring-img, #boring-img1, #fun-img, #fun-img1 {
        width: 14em;
    }

    .grammar-outcomes {
        margin: 10px;
        width: auto;
    }

    .step-indicator {
        position: relative;
        left: 10px;
        bottom: -5px;
    }

    .step-indicator h4, .step-indicator p {
        font-size: 1.2em;
    }

    table {
        width: 100%;
    }
}

/* Small desktops (1024px - 1280px) */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    body {
        padding: 15px;
    }

    .unit-info h2 {
        font-size: 1.8em;
    }

    .unit-info h3 {
        font-size: 2.6em;
    }

    .unit-info p {
        font-size: 1.8em;
    }

    .step-indicator {
        position: absolute;
        bottom: -10px;
        left: 15px;
    }

    #city-info-image {
        width: 95%;
        height: auto;
    }

    input, .input-exercise {
        width: 80%;
    }

    table th, table td {
        padding: 8px;
    }

    .card-container {
        max-width: 800px;
    }
}

/* Large screens (1280px and above) */
@media screen and (min-width: 1281px) {
    .vocabulary-images, .reading-images, .exercise3-images {
        justify-content: space-between;
    }

    #city-info-image {
        width: 90%;
        height: auto;
    }

    .unit-info h3 {
        font-size: 3em;
    }

    .input-exercise {
        width: 60%;
    }

    .step-indicator {
        bottom: -15px;
        left: 20px;
    }

    .card-container {
        max-width: 1300px;
    }

    table {
        width: 70%;
    }
}
