@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

/* Global Footer */
.footer {
  width: 100%;
}

/* Layout Grid */
.parent-vowel {
  display: grid;
  grid-template-columns: 1fr 8fr 1fr 300px;
  grid-template-rows: 1fr;
  grid-column-gap: 2px;
  grid-row-gap: 2px;
}
.div1-vowel { grid-area: 1 / 1 / 2 / 2; }
.div2-vowel { grid-area: 1 / 3 / 2 / 4; }
.div3-vowel { grid-area: 1 / 2 / 2 / 3; }
.sidebar      { grid-area: 1 / 4 / 2 / 5; }

.text {
  padding: 5px;
}

/* Base Styles */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}
.parent-vowel p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
}
.parent-vowel p a {
  color: #1A73E8;
}
.parent-vowel h2,
.parent-vowel h3 {
  margin-bottom: 20px;
}

/* Who Or Whom Checker Container */
.vc-container {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FFFFFF;
}
.vc-title {
  font-size: 32px;
  color: #333;
  margin: 0;
  text-align: center;
  padding: 10px 0;
}

/* Directions */
.directions {
  font-size: 20px;
  text-align: left;
  margin: 10px 0;
}

/* Textarea */
.vc-textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 4px solid #ccc;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px;
  font-size: 18px;
  line-height: 1.5;
  box-sizing: border-box;
  margin-bottom: 10px;
  transition: border-color 0.3s;
}
.vc-textarea:hover {
  border-color: #A9A9A9;
}
.vc-textarea:focus {
  outline: none;
  border-color: black;
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
}

/* Output Box */
.mono-text {
  font-family: 'Roboto Mono', monospace;
  white-space: pre-wrap;
  background-color: #f0f0f0;
  padding: 10px;
  border: 1px solid #ccc;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  color: black;
  font-size: 24px;
  min-height: 120px;
}

/* Highlight Styles */
.correct-highlight {
  background-color: #90EE90; /* green */
  padding: 0 2px;
}
.incorrect-highlight {
  background-color: #FF9999; /* red */
  padding: 0 2px;
}

/* Legend */
.legend-title h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 24px;
  color: #333;
  text-align: center;
}
.legend {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}
.legend-item {
  font-family: 'Roboto Mono', monospace;
  margin-bottom: 5px;
}
.legend-item span {
  padding: 0 5px;
}

/* Responsive Breakpoints */

/* Wide screens */
@media (min-width: 1200px) {
  .div3-vowel {
    max-width: 900px;
  }
}

/* Medium screens */
@media (max-width: 1200px) {
  .parent-vowel {
    grid-template-columns: 1fr 300px;
  }
  .div1-vowel,
  .div2-vowel {
    display: none;
  }
  .div3-vowel {
    grid-area: 1 / 1 / 2 / 2;
  }
  .sidebar {
    grid-area: 1 / 2 / 2 / 3;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .parent-vowel {
    grid-template-columns: 1fr;
    grid-row-gap: 0;
    grid-column-gap: 0;
  }
  .div3-vowel {
    grid-area: 1 / 1 / 2 / 2;
  }
}

/* Small screens */
@media (max-width: 600px) {
  .vc-container {
    padding: 15px;
  }
  .vc-title {
    font-size: 30px;
  }
  .directions {
    font-size: 18px;
  }
}

/* Extra small */
@media (max-width: 400px) {
  .vc-container {
    padding: 10px;
  }
  .text {
    padding: 5px;
  }
}
