body {
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.indie-flower-regular {
  font-family: 'Indie Flower', cursive;
  font-weight: 400;
  font-style: normal;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #FFFDD0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #2c3e50;
  font-size: 50px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  background-color: #f5f5f5;
  padding: 18px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.file-input {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-input input[type="file"] {
  padding: 8px;
  border: 1px dashed #aaa;
  border-radius: 5px;
  background-color: #fff;
  width: 200px;
}

.toolbar button {
  padding: 10px 18px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toolbar button:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.landing-instructions {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  margin: 20px 0 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
  display: block;
}

.landing-instructions h4 {
  color: #e74c3c;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
}

.landing-instructions p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.landing-instructions ul {
  text-align: left;
  width: fit-content;
  margin: 0 auto;
  padding-left: 20px;
}

.landing-instructions li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.landing-instructions b {
  color: #333;
}

.user-file-helpers {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0 10px;
}

.user-file-helpers button {
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.user-file-helpers button:first-child {
  background-color: #f39c12;
  color: white;
  border: none;
}

.user-file-helpers button:first-child:hover {
  background-color: #e67e22;
}

.user-file-helpers button:last-child {
  background-color: #2ecc71;
  color: white;
  border: none;
}

.user-file-helpers button:last-child:hover {
  background-color: #27ae60;
}

/* Visual emphasis for file requirements */
.landing-instructions ul li:first-child {
  color: #3498db;
  font-weight: bold;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #3498db, transparent);
  margin: 30px 0;
}

/* Additional welcoming elements */
.landing-instructions::before {
  content: "📚";
  font-size: 36px;
  display: block;
  margin-bottom: 15px;
}

/* Save progress button enhancement */
.toolbar button:last-child {
  background-color: #2ecc71;
}

.toolbar button:last-child:hover {
  background-color: #27ae60;
}

/* File input label styling */
.file-input::before {
  content: "Select File:";
  font-weight: bold;
  margin-right: 10px;
  color: #555;
}

.flashcard {
  position: relative;
  max-width: 500px;
  border: 1px solid #ddd;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin: 20px auto;
  background-color: white;
  min-height: 300px;
  font-family: 'Comic Sans MS', 'Segoe Print', cursive;
}

.flashcard::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #f8a7c2;
}

.line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #a7c6f8;
}

.line:nth-child(1) { top: 70px; }
.line:nth-child(2) { top: 100px; }
.line:nth-child(3) { top: 130px; }
.line:nth-child(4) { top: 160px; }
.line:nth-child(5) { top: 190px; }
.line:nth-child(6) { top: 220px; }
.line:nth-child(7) { top: 250px; }
.line:nth-child(8) { top: 280px; }
.line:nth-child(9) { top: 310px; }

.word {
  position: absolute;
  top: 140px;
  width: 500px;
  text-align: center;
  font-size: 82px;
  line-height: 60px;
  color: #333;
  letter-spacing: 2px;
}

.word-score {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
}

.letter-grade {
  position: absolute;
  top: 0;
  left: 12px;
  font-size: 30px;
  font-weight: bold;
  color: #e74c3c;
}

.show-or-hide {
  align-content: center;
}

.dictionary {
  display: flex;
  width: 100%;
  height: 500px;
  margin: 40px auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  font-family: "Times New Roman", Times, serif;
  background-color: #f9f7f1;
  position: relative;
  border-radius: 3px;
}

.first-page, .second-page {
  flex: 1;
  padding: 30px;
  box-sizing: border-box;
  height: 100%;
  position: relative;
  overflow-y: auto;
  line-height: 1.5;
}

.dictionary:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to right, 
    rgba(0,0,0,0.1) 0%, 
    rgba(0,0,0,0.2) 50%, 
    rgba(0,0,0,0.1) 100%);
  box-shadow: -1px 0 3px rgba(0,0,0,0.15);
  z-index: 2;
}

.first-page {
  background-image: linear-gradient(to right, #f9f7f1 95%, #e0ded5 100%);
  border-right: 1px solid #e0ded5;
}

.second-page {
  background-image: linear-gradient(to left, #f9f7f1 95%, #e0ded5 100%);
  border-left: 1px solid #e0ded5;
}

#word {
  font-size: 28px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  text-transform: capitalize;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.first-page > div:nth-child(2) {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  font-size: 14px;
}

#definition {
  margin: 15px 0;
  padding-left: 30px;
}

#definition li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.synonyms {
  margin-top: 25px;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.synonyms p {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

#synonyms {
  column-count: 2;
  column-gap: 20px;
  list-style-type: none;
  padding-left: 0;
  margin-top: 5px;
}

#synonyms li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
}

.second-page h5 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.second-page p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  text-indent: 30px;
}

.second-page p b {
  color: #333;
  font-weight: bold;
}

.first-page:after, .second-page:after {
  content: attr(data-page);
  position: absolute;
  bottom: 20px;
  font-size: 14px;
  color: #888;
}

.first-page:after {
  right: 30px;
}

.second-page:after {
  right: 30px;
}

.dictionary:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtn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q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
  opacity: 0.02;
  pointer-events: none;
}

.show-or-hide-or-next {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.show-or-hide-or-next button {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-or-hide-or-next button:nth-child(1),
.show-or-hide-or-next button:nth-child(2) {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.show-or-hide-or-next button:nth-child(1):hover,
.show-or-hide-or-next button:nth-child(2):hover {
  background-color: #e0e0e0;
}

.show-or-hide-or-next button:nth-child(3) {
  background-color: #3498db;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.show-or-hide-or-next button:nth-child(3):hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.status div {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
}

.status button {
  margin: 5px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.status button:nth-child(2) {
  background-color: #27ae60;
  color: white;
}

.status button:nth-child(2):hover {
  background-color: #219955;
  transform: translateY(-2px);
}

.status button:nth-child(3) {
  background-color: #e74c3c;
  color: white;
  opacity: 0.9;
}

.status button:nth-child(3):hover {
  background-color: #c0392b;
  transform: translateY(2px);
}

#sentence-practice {
  width: 80%;
  min-height: 100px;
  margin: 20px auto;
  display: block;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease;
}

#sentence-practice:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 5px rgba(52, 152, 219, 0.5);
}

#sentence-practice::placeholder {
  color: #aaa;
  font-style: italic;
}

.user-file-helpers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.user-file-helpers button {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-file-helpers button:hover {
  background-color: #e0e0e0;
}

.guessed {
  display: block;
}