@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600&display=swap');

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f2f6ff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.header {
  background: #f9fafb; 
  color: #111827;
  padding: 10px 10px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.header p{
    font-size: 0.9rem;
    font-weight: 600;
    color: red;
}

.badge {
  background: #2563eb; 
  color: #111;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  margin-bottom: 4px;
}

.title {
  font-size: 18px;
  font-weight: 500;
  margin: 2px 0;
}

.date {
  font-size: 14px;
  color: #6b7280;
}

.section, #reading-container {
    padding: 10px;
    border-bottom: 4px solid #e5e7eb;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid black;
}

.question-card {
    margin-bottom: 20px;
    padding: 5px;
}

.question-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.6;
}

.question-number {
  font-weight: bold;
  color: #111;
  margin-bottom: 2px;
}

.target-word {
    background: ghostwhite;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid darkgreen;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-button {
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: white;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

.option-button:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.option-button.selected {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1d4ed8;
}

.option-button.correct {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.option-button.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.reading-card {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background-color: #f9fafb;
}

.passage {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reading-question {
    font-style: italic;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-btn {
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  padding: 0.70rem 1.2rem;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin: 1rem 3.4rem;
  border: 1px solid #000;
}

.nav-btn:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.nav-btn:active {
  background-color: #1d4ed8;
  transform: translateY(0);
}


.footer {
    padding: 20px;
    text-align: center;
}

#submitBtn {
    background: #10b981;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

#submitBtn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.results {
    margin-top: 20px;
    background: #f0fdf4;
    padding: 15px;
    border-radius: 8px;
}

.score {
    font-size: 24px;
    font-weight: bold;
    color: #22c55e;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .container {
        margin: 40px auto;
    }
    
    .title {
        font-size: 24px;
    }
}

/*Level Choose page*/

.level-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
    width: 90%;
    max-width: 450px;
    padding: 0 1rem;
}

.level-button {
    background: linear-gradient(to right, #f0f0f0, #e0e0e0);
    color: #444;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: sans-serif;
    font-weight: 700;
    border: 1px solid #ccc;
    border-radius: 0.55rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.level-button:hover {
    background: linear-gradient(to right, #dcdcdc, #cfcfcf);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.level-button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}