* { font-family: 'NanumSquareRound', 'Pretendard', 'Noto Sans KR', 'Roboto', 'Malgun Gothic', sans-serif; }

body { background-color: #f0f2f5; display: flex; flex-direction: column; align-items: center; min-height: 100vh; margin: 0; padding: 60px 20px; box-sizing: border-box; }
h1 { color: #333; margin-bottom: 30px; }
footer { position: fixed; bottom: 0; width: 100%; background: #222; color: #fff; text-align: center; padding: 18px 0; font-size: 0.85rem; z-index: 100; font-weight: 300; letter-spacing: -0.5px; }

#top-banner { width: 100%; height: auto; aspect-ratio: 5 / 1; object-fit: cover; display: block; transition: opacity 0.3s ease-in-out;}
#banner-container { display: none; width: 100%; max-width: 800px; aspect-ratio: 5 / 1; margin-bottom: 40px; /* 배너와 흰색 박스 사이의 간격 */ border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); background-color: #fff; }
@media (min-width: 768px) { #banner-container { display: block; } }
#top-banner, .banner-item { width: 100%; height: auto; object-fit: contain; }

.container { background-color: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); width: 100%; max-width: 800px; text-align: center; box-sizing: border-box; }

.screen { display: none; } .active { display: block; }
.info-bar { display: flex; justify-content: space-between; background: #eee; padding: 10px 20px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; color: #555; }
.text-display { font-weight: 800; font-size: 24px; line-height: 1.6; margin-bottom: 20px; padding: 20px; background-color: #fff8e1; border: 1px solid #ffe0b2; border-radius: 8px; word-break: keep-all; min-height: 60px; color: #555; }
.guide-text { margin-top: 10px; font-size: 14px; color: #888; }
.incorrect { color: #e53935; font-weight: bold; text-decoration: underline; }

input[type="text"], input[type="number"] { padding: 10px; width: 250px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; }
.input-group { margin-bottom: 15px; }
.input-area { font-family: 'Pretendard'; width: 100%; padding: 15px; font-size: 24px; border: 2px solid #ddd; border-radius: 8px; box-sizing: border-box; }
.input-area:focus { outline: none; border-color: #4CAF50; }

.result-box { font-size: 18px; line-height: 1.5; text-align: left; display: inline-block; margin-top: 20px; width: 100%; max-width: 400px; }
.datetime-display, .sentence-display, .env-display { font-size: 14px; color: #666; line-height: 1; text-align: right; margin-top: 5px; }
#save-status { font-weight: bold; color: #1976d2; margin-bottom: 15px; }

.action-buttons { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
button { padding: 10px 25px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background 0.3s; }
button:hover { background-color: #45a049; } button:disabled { background-color: #cccccc; cursor: not-allowed; }
.btn-submit { background-color: #673ab7 ;} .btn-submit:hover { background-color: #512da8 ;}
.btn-history { background-color: #7f8c8d; } .btn-history:hover { background-color: #95a5a6; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: white; margin: 5% auto; padding: 20px; border-radius: 15px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; text-align: center; position: relative; box-sizing: border-box; }
.close-modal { position: absolute; right: 20px; top: 10px; font-size: 28px; cursor: pointer; color: #aaa; }
.history-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; }
.history-table th, .history-table td { border: 1px solid #ddd; padding: 12px 8px; text-align: center; }
.current-row { background-color: #e8f5e9; font-weight: bold; color: #2e7d32; }
#history-compare-msg { margin-top: 20px; padding: 10px; border-radius: 8px; background: #f0f4f8; font-size: 15px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.page-btn { width: 35px; height: 35px; border: 1px solid #ccc; background-color: #e0e0e0; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 5px; font-weight: bold; transition: 0.2s; }
.page-btn:hover { background-color: #d0d0d0; }
.page-btn.active { background-color: #4CAF50 !important; color: white !important; border-color: #4CAF50 !important; }
@media (prefers-color-scheme: dark) {
    .page-btn { background-color: #ffffff; color: #222; border-color: #bbb; }
    .page-btn:hover { background-color: #eeeeee; }
}