/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f5f5f5; /* Light background to simulate a workbook page */
}

.section {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Slight shadow for card effect */
}

/* Heading Styles */
h2 {
  color: #0072bc; /* Dark blue */
  font-size: 24px;
}

h3 {
  color: #0072bc; /* Dark blue */
  background-color: #ffe799; /* Yellow background for subheadings */
  padding: 10px;
  border-radius: 5px;
  font-size: 20px;
}

h4 {
  color: #333;
  font-size: 18px;
}

/* Text Styles */
p {
  line-height: 1.6;
  margin: 10px 0;
  color: #333; /* Standard text color */
}

/* Vocabulary Section Background */
#vocabulary-section {
  background-color: #ffffff; /* White background for vocabulary section */
}

/* Image Gallery for Vocabulary Section */
.image-gallery {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.image-item {
  text-align: center;
  background-color: #f0f0f0; /* Light gray background for image containers */
  padding: 10px;
  border-radius: 5px;
}

.image-item img {
  width: 300px;
  height: auto;
}

#movieTheater-image {
  width: 300px;
  height: auto;
  float: right;
  margin-right: 20px;
}

.exercise that-those {
  display: flex;
}

/* Conversation Styles */
.conversation1,
.conversation2,
.conversation {
  background-color: #f4faff; /* Light blue background for conversation blocks */
  padding: 15px;
  border-radius: 5px;
  border-left: 5px solid #0072bc; /* Blue border on the left for emphasis */
  margin-top: 20px;
}

.conversation {
  padding-top: 90px;
}

.conversation2 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background-color: lightgray;
  width: 600px;
}

.exercise,
.exercise-discover-grammar {
  margin-top: 30px;
  margin-bottom: 30px;
  background-color: #fffae5; /* Light yellow for exercise sections */
  padding: 15px;
  border-radius: 5px;
  border-left: 5px solid #f4a742; /* Orange border for exercises */
}

/* Seattle Section Background */
#seattle-section {
  background-color: #ffffff; /* White background for the Seattle section */
}

.conversation-special {
  text-align: center;
}

.empty {
  clear: both;
}

/* Image Gallery for Seattle Section */

.conversation-image {
  float: right;
  width: 300px;
  height: auto;
}
.places-gallery {
  float: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 10px;
  margin-right: 20px;
}

.place-item {
  text-align: center;
  background-color: #f0f0f0; /* Light gray for Seattle image gallery */
  padding: 10px;
  border-radius: 5px;
}

.place-item img {
  width: 250px;
  height: auto;
}

/* Grammar Table Styles */
.grammar-table {
  margin-top: 20px;
  background-color: #e0f7fa; /* Light blue table background */
  padding: 10px;
  border-radius: 5px;
}

.grammar-table table {
  width: 100%;
  border-collapse: collapse;
}

.grammar-table th,
.grammar-table td {
  border: 1px solid #0072bc;
  padding: 8px;
  text-align: left;
  background-color: #ffffff;
}

/* Grammar notes table */
.grammar-notes-table-yellow #yellow-heading {
  background-color: #edc527;
  text-align: left;
  padding-left: 20px;
  color: whitesmoke;
}

#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: 15px;
  margin-top: 0;
  border: 1px solid;
}

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

/* Step 3 Focused Practice */
.exercise-discovery-grammar-list {
  display: flex;
  justify-content: space-around;
}

ul.questions,
ul.answers {
  list-style-type: none;
  padding: 0;
}

.input-match {
  border: none;
  border-bottom: 1.5px solid;
  width: 30px;
  text-align: center;
}

#feedback {
  margin-top: 20px;
  font-weight: bold;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

#submit-button,
#reset-button,
#submit-button-ex2,
#reset-button-ex2,
#submit-button-ex3,
#reset-button-ex3,
#submit-button-ex4,
#reset-button-ex4 {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #336699;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 85.5px;
}

#reset-button,
#reset-button-ex2,
#reset-button-ex3,
#reset-button-ex4 {
  margin-left: 20px;
  background-color: #d00000;
}

#reset-button:hover,
#reset-button-ex2:hover,
#reset-button-ex3:hover,
#reset-button-ex4:hover {
  background-color: #bb0101;
}

#submit-button:hover,
#submit-button-ex2:hover,
#submit-button-ex3:hover,
#submit-button-ex4:hover {
  background-color: #274d7f;
}

/* exercise 3 possessive adjectives */
.option {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin: 0 5px;
}

.option:hover {
  background-color: #dcdcdc;
}

.option.selected {
  background-color: #a0c4ff; /* Light blue to indicate selection */
  color: #fff;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

/* True/False Checkbox List */
.true-false-exercise ul {
  list-style-type: none;
  padding-left: 0;
}

.true-false-exercise li {
  margin: 10px;
}

/* More Possessive Adjectives Section */
#more-possessive-adjectives-section {
  background-color: #f9f9f9;
  border-left: 5px solid #3a73ab;
}

#more-possessive-adjectives-section .fill-in-the-blanks {
  background-color: #ffffe0;
  padding: 15px;
  border-radius: 5px;
  font-size: 16px;
}

/* Same Pronunciation Section */
#same-pronunciation-section {
  background-color: #ffffff;
  border-left: 5px solid #ffa500;
}

#same-pronunciation-section ul {
  list-style-type: none;
  padding-left: 0;
}

#same-pronunciation-section ul li {
  padding: 10px 0;
}

/* Editing Section */
#editing-section {
  background-color: #f9f9f9;
  border-left: 5px solid #ff6347;
}

#editing-section .editing-exercise {
  display: flex;
  justify-content: space-around;
  background-color: #f0f0f0;
  padding: 15px;
  padding-left: 45px;
  padding-right: 45px;
  border-radius: 5px;
}

.editing-exercise li {
  padding: 5px;
}

/* Listening Section */
#listening-section {
  background-color: #ffffff;
  border-left: 5px solid #3a73ab;
}

.listening-exercise li {
  padding: 10px 0;
}

/* Belongings Section */
#belongings-section {
  background-color: #f9f9f9;
  border-left: 5px solid #3a73ab;
}

#belongings-section img {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* University Map Section */
#university-section {
  position: relative;
  background-color: #ffffff;
  border-left: 5px solid #ff6347;
}

#university-section img {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
}

#university-input-1,
#university-input-2,
#university-input-3,
#university-input-4 {
  position: absolute;
  font-size: large;
  background-color: #b7ffb9;
}

#university-input-1:hover,
#university-input-2:hover,
#university-input-3:hover,
#university-input-4:hover {
  background-color: #dcdcdc;
}

#university-input-1 {
  top: 272px;
  left: 112px;
  width: 205px;
  height: 30px;
}

#university-input-2 {
  top: 320px;
  left: 412px;
  width: 205px;
  height: 30px;
}

#university-input-3 {
  top: 555px;
  right: 22px;
  width: 205px;
  height: 30px;
}

#university-input-4 {
  top: 770px;
  left: 197px;
  width: 205px;
  height: 30px;
}

#text-area-write {
  display: flex;
  margin: auto;
  resize: none;
  font-size: large;
}

/* Grammar to Writing Section */
#grammar-writing-section {
  background-color: #f9f9f9;
  border-left: 5px solid #3a73ab;
}

#grammar-writing-section .photo-section img {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
}

#grammar-writing-section .writing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

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

#grammar-writing-section .editing-checklist {
  background-color: #ffffe0;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

/* Review Section */
#unit-review-section {
  background-color: #ffffff;
  border-left: 5px solid #ff6347;
}

#unit-review-section h4 {
  margin-top: 20px;
}

#unit-review-section .review-exercise-A,
.review-exercise-B {
  list-style-type: none;
  padding-left: 0;
}

#unit-review-section .review-exercise-A li,
.review-exercise-B li {
  margin-bottom: 10px;
}

#unit-review-section .editing-conversation {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 5px;
}

#submit-button-A,
#submit-button-B {
  background-color: rgb(191, 193, 191);
}

#submit-button-A:hover,
#submit-button-B:hover {
  background-color: #d06100;
}

#reset-button-A,
#reset-button-B {
  background-color: rgb(93, 187, 93);
}

#reset-button-A:hover,
#reset-button-B:hover {
  background-color: #5959f7;
}
/* General responsive settings for small screens (mobile) */
@media (max-width: 768px) {
  /* Section containers */
  .section {
    padding: 15px;
    margin-bottom: 20px;
  }

  /* Table styles for smaller screens */
  .writing-table,
  .grammar-table table {
    width: 100%;
    font-size: 14px;
  }

  .writing-table th,
  .writing-table td,
  .grammar-table th,
  .grammar-table td {
    padding: 6px;
  }

  /* Adjusting font sizes for smaller screens */
  h2,
  h3,
  h4 {
    font-size: 20px;
  }

  p,
  li {
    font-size: 14px;
  }

  /* Ensure images are responsive */
  img {
    width: 100%;
    height: auto;
  }

  /* Adjust list styles for exercises */
  .review-exercise li,
  .editing-checklist ul li {
    font-size: 14px;
  }

  /* Editing conversation section padding */
  .editing-conversation {
    padding: 10px;
  }

  /* Make checkboxes and radio buttons more spaced out */
  input[type="checkbox"],
  input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2); /* Make checkboxes easier to click on mobile */
  }

  /* Adjust padding and spacing in checklist */
  .editing-checklist ul li {
    padding: 5px;
    font-size: 14px;
  }
}

/* Media Query for Tablets (portrait and landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Section padding adjustments */
  .section {
    padding: 20px;
    margin-bottom: 30px;
  }

  /* Adjust table padding for tablet screens */
  .writing-table th,
  .writing-table td,
  .grammar-table th,
  .grammar-table td {
    padding: 10px;
  }

  /* Font size adjustments for better readability */
  h2,
  h3,
  h4 {
    font-size: 22px;
  }

  p,
  li {
    font-size: 16px;
  }

  /* Ensure images are responsive */
  img {
    width: 100%;
    height: auto;
  }

  /* Adjust font sizes for exercises */
  .review-exercise li,
  .editing-checklist ul li {
    font-size: 16px;
  }

  /* Editing conversation section padding */
  .editing-conversation {
    padding: 15px;
  }

  /* Adjust checkbox and radio button sizes */
  input[type="checkbox"],
  input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.1); /* Slightly larger checkboxes and radios */
  }
}

/* Media Query for Small Screens (Mobile) */
@media (max-width: 768px) {
  /* Ensure that the image gallery stacks vertically */
  .image-gallery {
    display: block; /* Stack the items vertically */
  }

  .image-item {
    margin-bottom: 20px; /* Add space between each stacked item */
  }

  .image-item img {
    width: 100%; /* Ensure the images are responsive and take up full width */
    height: auto;
  }

  /* Ensure that the places gallery stacks vertically */
  .places-gallery {
    display: block; /* Stack the items vertically */
  }

  .place-item {
    margin-bottom: 20px; /* Add space between each stacked item */
  }

  .place-item img {
    width: 100%; /* Ensure the images are responsive and take up full width */
    height: auto;
  }
}

/* Media Query for Large Desktops */
@media (min-width: 1025px) {
  /* General font size for large screens */
  h2,
  h3,
  h4 {
    font-size: 24px;
  }

  p,
  li {
    font-size: 18px;
  }

  /* Table and content spacing */
  .writing-table th,
  .writing-table td,
  .grammar-table th,
  .grammar-table td {
    padding: 12px;
  }

  /* Ensure images fill the full width of their containers */
  img {
    width: 100%;
    height: auto;
  }

  /* Editing checklist font sizes */
  .editing-checklist ul li {
    font-size: 16px;
  }

  /* Adjust padding and spacing */
  .editing-conversation {
    padding: 20px;
  }

  /* Increase checkbox and radio button size for large screens */
  input[type="checkbox"],
  input[type="radio"] {
    margin-right: 5px;
    transform: scale(1); /* Normal size for larger screens */
  }
}
