body {
    background: #f8fafc;
    color: #222;

    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

textarea {
    font-family: 'Pretendard', sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
    width: 100%;
    max-width: 800px;

    padding: 15px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    resize: vertical;

    background: white;
} 

#word1 {
    padding-top: 10px;
}
#word2 {
  position: sticky;
  top: 20px;
}

textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 5px rgba(37,99,235,0.3);
}

#audioFile {
    font-size: 15px;
    color: #333;
}

/* 파일 선택 버튼 */
#audioFile {
    font-size: 15px;
    color: #333;
}

/* 파일 선택 버튼 */
#audioFile::file-selector-button {
    background: #2563eb;
    color: white;

    border: none;
    border-radius: 8px;

    padding: 10px 18px;
    margin-right: 8px;

    font-size: 15px;
    cursor: pointer;

    transition: 0.2s;
}

/* 마우스 올렸을 때 */
#audioFile::file-selector-button:hover {
    background: #1d4ed8;
}

/* 눌렀을 때 */
#audioFile::file-selector-button:active {
    transform: scale(0.97);
}

button:hover {
    background: #1d4ed8;
}

button:active {
    transform: scale(0.98);
}

button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    margin-right: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

#result {
    margin-top: 30px;

    padding: 20px;

    background: white;
    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #ddd;
}

input {
    font-size: 20px;
    font-weight: 600;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-text {
  font-size: 14px;
  font-weight: normal;
  color: #2196f3;
}

#container {
  display: flex;
  gap: 30px;       /* 두 박스 사이 간격 */
  align-items: flex-start;
}

#buttonRow {
  display: flex;
  gap: 10px;   /* 버튼 사이 간격 */
  flex-wrap: wrap; /* 화면 좁으면 자동 줄바꿈 */
  margin-bottom: 10px;
}

#memorization {
    position: absolute;
    top: 10px;;
    left: 30px;;
    margin: 0;
    color: #1d4ed8;
    cursor: pointer;
}