@font-face {
    font-family: 'ds-digib';
    src: url('./font/ds-digib.woff2') format('woff2'),
         url('./font/ds-digib.woff') format('woff'),
         url('./font/ds-digib.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@charset "utf-8";
* {
    box-sizing: border-box; /* 모든 요소에 box-sizing 설정 */
}
input {
    all: unset; /* 모든 기존 스타일을 초기화 */
}

/********** 전체 레이아웃 *******/
.panel-wrapper {
    width: 100%; /* 부모 레이어가 전체 너비를 차지하도록 설정 */
}

.main_section {
    display: flex;
    justify-content: space-between; /* 패널 간의 간격 조정 */
    width: 100%; /* 전체 너비 */
    box-sizing: border-box; /* 패딩 및 보더를 포함한 너비 계산 */
}

.left-panel {
    width: 250px; /* 왼쪽 패널 너비 */
    padding: 0 5px;
}

.center-panel {
	flex:1;
    padding-top: 60px;
}

.right-panel {
    width: 250px; /* 오른쪽 패널 너비 */
    padding: 0 5px;
}

/***** 다용도 박스 스타일 *****/
.box {
    background-color: #f9f9f9; /* 박스 배경색 */
    border: 1px solid #ccc; /* 박스 테두리 */
    border-radius: 10px; /* 라운딩 효과 */
    padding: 15px; /* 내부 여백 */
    margin-bottom: 15px; /* 박스 간의 간격 */
	text-align:center;
}

/**** 헤더 설정 & 한글 / 영어 선택 ******/
.language-selector h3,
.seat-selector h3,
.word-selector h3 {
    text-align: center; /* 제목 중앙 정렬 */
}

.inner-container {
    background-color: #ffffff; /* 흰색 배경 */
	border: 1px solid #ccc;
    border-radius: 10px; /* 라운딩 효과 */
    padding: 5px; /* 내부 여백 */
    display: flex; /* 수평 배치 */
    justify-content: space-around; /* 옵션 간격 조정 */
}

.btn-container {
	text-align:center;
    background-color: #f9f9f9; /* 흰색 배경 */
    border: 1px solid #ccc; /* 테두리 */
    border-radius: 10px; /* 라운딩 효과 */
    padding: 10px; /* 내부 여백 */
    margin-top: 10px; /* 위쪽 여백 */
}

.btn-container button {
    margin: 0 5px; /* 좌우 간격 설정 */
}

/*********** 자리, 단어, 단문, 장문 버튼 영역 *****/
.button-container {
	margin-top:10px;
}

.btn_group {
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    justify-content: center; 
}

.btn_group li {
    margin: 0 2px; 
}

button {
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/******* 입력할 데이터 & 입력 상자 표시 영역 *****/
.display-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%; /* 원하는 너비 조정 */
}

/****** 입력한 데이터 표시 영역 ******/
.input-display {
    display: flex;
    flex-direction: row; /* 가로 배열 */
    align-items: center; /* 세로 중앙 정렬 */
	 justify-content: flex-end;
	width:200px;
	height:60px;
	background:#f9f9f9;
	border:1px solid #ccc;
	border-radius: 5px 0 0 5px;
	font-size: 26px; /* 큰 글씨 */
	color:#ccc;
}

.input-char {
	width:55px;
	font-size: 26px; /* 큰 글씨 */
	color:#ccc;
}

/*** 입력할 정보 디스플레이 영역 ****/
.input_area {
    background-color: #2196F3; /* 파란색 배경 */
    border-radius: 5px; /* 라운드 네모 */
    display: flex;
    flex-direction: column; /* 세로 방향으로 배치 */
    justify-content: center; /* 수직 중앙 정렬 */
    align-items: center; /* 수평 중앙 정렬 */
    padding: 10px; /* 내부 여백 */
    width: 120px;
    height: 120px;
    color: white; /* 글자 색상 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
}

/*********** 입력해야할 데이터 *****/
.current-key {
    font-size: 50px; /* 큰 글씨 */
    text-align: center; /* 가운데 정렬 */
}

/*********** 다음에 입력할 데이터 ********/
.next-keys {
    display: flex;
    flex-direction: row; /* 가로 배열 */
    align-items: center; /* 세로 중앙 정렬 */
	width:200px;
	height:60px;
	background:#f9f9f9;
	border:1px solid #ccc;
	padding:20px 30px;
	border-radius: 0 5px 5px 0;
	justify-content: space-between;
}

.next-key {
	font-size: 26px; /* 큰 글씨 */
	color:#777;
}

/************ 사용자 데이터 입력란 ******/
#userInput {
    width: 100%;
	padding: 5px;
	border:0;
    border-radius: 5px; /* 라운드 모서리 */
    background-color: #EEF7FF;
    color: #666; /* 글자 색상 */
    font-size: 30px; /* 글자 크기 */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/*********** 단어 연습 **********/

.word-sentence .input-display, .word-sentence .next-keys {
	width:180px;
}

/* inputDisplay 스타일 */
.word-sentence .input_area {
    background-color: #2196F3; /* 파란색 배경 */
    border-radius: 5px; /* 라운드 네모 */
    display: flex;
    flex-direction: column; /* 세로 방향으로 배치 */
    justify-content: center; /* 수직 중앙 정렬 */
    align-items: center; /* 수평 중앙 정렬 */
    padding: 10px !important; /* 내부 여백 */
    width: 160px;
    height: 120px;
    color: white; /* 글자 색상 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
}

.word-sentence .input-display {
	padding-right: 30px;
}

/* input_area 스타일 */
.word-sentence .input-area {
    width: 160px !important;
    padding: 10px 20px !important;
}

/* current-key 스타일 */
.word-sentence .current-key {
    display: flex;
    flex-direction: row; /* 수평 배열로 설정 */
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: flex-start; /* 왼쪽 정렬 */
    font-size: 30px !important;
    padding-left: 15px;
    width: 100%; /* 너비를 100%로 설정 */
}

.word-sentence #userInput {
	width:calc(100% - 20px) !important;
	padding-left:15px;
}
/********* 단문 및 장문 연습 스타일 *******/
.short-sentence .display-area {
    display: flex;
	align-items: flex-start;
    flex-direction: column; /* 세로 방향으로 배치 */
	width: 100%;
	height:100%;
}

.short-sentence .input-display {
    display: flex;
    flex-direction: column; /* 세로 배열로 설정 */
    align-items: flex-start; /* 왼쪽 정렬 */
	justify-content: center; 
    width: 100%; /* 전체 너비 */
	height:90px;
    background: #f9f9f9;
    border-radius: 10px 10px 0 0;
    font-size: 18px;
    color: #ccc;
    padding: 15px !important; /* 패딩 조정 */
}

.short-sentence .input-char {
	width:100%;
	font-size: 18px; /* 큰 글씨 */
	color:#ccc;
}

.short-sentence .input_area {
  	background-color: #2196F3; /* 파란색 배경 */
	padding:5px 20px !important;
	margin-bottom:5px 0;
    display: flex;
    flex-direction: column; /* 세로 방향으로 배치 */
    justify-content: center; /* 수직 중앙 정렬 */
    width: 100%; /* 전체 너비 */
	height: 100px !important;
    color: white; /* 글자 색상 */
	border-radius: 0 0 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
}

.short-sentence .current-key {
	width:100% !important;
    font-size: 18px !important; /* 큰 글씨 */
    margin-bottom: 5px !important; /* 아래 여백 */
	text-align:left;
}

.short-sentence .next-keys {
    display: flex;
	flex:1;
	align-items: flex-start; 
    flex-direction: column; /* 세로 배열 */
    width: 100%;
	margin-bottom:20px;
	padding:15px;
	border-radius: 0 0 10px 10px;
}

.short-sentence .next-key {
    font-size: 18px; /* 글자 크기 */
    color: #777;
}

.short-sentence #userInput {
    border: 0;
	text-align:left;
	font-size:18px !important;
    border-radius: 5px; /* 라운드 모서리 */
    background-color: #EEF7FF;
    color: #666; /* 글자 색상 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/******** 사용자 정보 표시영역 ******/
.member-info {
    display: flex; /* 수평으로 배치 */
    align-items: center; /* 수직 중앙 정렬 */
	justify-content: center; 
}

.member-image {
    width: 52px; /* 이미지의 너비 */
    height: 52px; /* 이미지의 높이 */
    border-radius: 50%; /* 원형으로 만들기 위해 50% 설정 */
    background-color: #ccc; /* 기본 배경색 (이미지가 없을 경우) */
    display: flex; /* 플렉스 박스로 설정하여 내용 중앙 정렬 */
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    margin-right: 10px; /* 사진과 닉네임 간의 간격 */
    overflow: hidden; /* 원형으로 잘라내기 */
}

.member-nick {
    text-align: left; /* 텍스트 왼쪽 정렬 */
    color: #14274E;
}

/******************* 키보드 디스플레이 관련 *************************/
.keyboard-container {
    position: relative; /* overlay 위치 조정용 */
}

.keyboard {
    display: flex;
    flex-direction: column; /* 키보드 행을 세로로 나열 */
    gap: 5px; /* 각 행 간의 간격 */
    padding: 10px; /* 전체 키보드에 패딩 추가 */
    width: 100%; /* 키보드가 전체 너비를 차지하도록 설정 */
    box-sizing: border-box; /* 패딩 포함하여 너비 계산 */
}

.row {
    display: flex;
    justify-content: center; /* 키보드 행 내 키 중앙 정렬 */
    flex-wrap: wrap; /* 줄 바꿈을 허용 */
}

.key {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 5px;
    flex: 0 1 50px; /* 키의 기본 크기 */
    height: 50px; /* 키의 높이 */
    display: flex;
    justify-content: center; /* 텍스트 중앙 정렬 */
    align-items: center; /* 텍스트 세로 중앙 정렬 */
    margin: 2px; /* 키 간의 간격 */
    font-size: 16px; /* 글자 크기 */
    transition: background-color 0.2s; /* 배경색 변화 애니메이션 */
    min-width: 50px; /* 최소 너비 설정 */
}

/* 활성화된 키 스타일 */
.key.active {
    background-color: #ffeb3b; /* 활성화 시 색상 */
}

/* 호버 스타일 */
.key:hover {
    background-color: #e0e0e0; /* 호버 시 색상 */
}

.overlay {
    display: none; /* 기본적으로 숨김 */
    width: 100%;
    height: 310px;
    background:url('../img/bg_image.png') repeat;
    justify-content: center; /* 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    display: flex; /* flexbox 사용 */
    flex-direction: column; /* 세로 방향으로 배치 */
    text-align: center; /* 텍스트 중앙 정렬 */
	border: 1px solid #cccccc;
	border-radius: 10px;
}

.overlay span {
	color:#f55f24;
	font-size:20px;
}

@keyframes slide-up {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.overlay .wave {
    display: inline-block; /* inline-block으로 설정 */
    animation: slide-up 0.6s forwards; /* 애니메이션 적용 */
}

.adm_btn {
	text-align:right;
	margin-right:10px;
}

@media (max-width: 600px) {
    .key {
        font-size: 14px;
    }
}

/********************** 진행률 표시 ********************/
/* 공통 스타일 */
#progress_container {
    background-color: #fff;
    padding: 10px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex; /* Flexbox 사용 */
    align-items: center; /* 세로 중앙 정렬 */
    margin-top: 10px;
}

#progress_label {
    width: 80px; /* 너비 설정 */
}

.progress_bar {
    width: 100%;
    height: 18px;
	background-color:#777;
    border-radius: 5px;
    border: 1px solid #ccc;
    position: relative; /* 자식 요소의 절대 위치 설정 */
	overflow:hidden;
}

.progress_fill {
    background-color: #F0585E; /* 연분홍색 배경 */
    height: 100%;
    transition: width 1s ease;
}

.progress_text {
    position: absolute; /* 절대 위치 설정 */
    left: 50%; /* 부모의 50% 위치 */
    top: 50%; /* 부모의 50% 위치 */
    transform: translate(-50%, -50%); /* 중앙 정렬을 위해 이동 */
    font-size: 10px;
    color: #fff;
    z-index: 1; /* 항상 위에 오도록 설정 */
    margin: 0; /* 기본 마진 제거 */
}

/****** 스코어 디스플레이 관련 *******/
.info-box {
	text-align:left;
    background-color: #ffffff; /* 흰색 배경 */
    border: 1px solid #ccc; /* 테두리 */
    border-radius: 10px; /* 라운딩 효과 */
    padding: 10px; /* 내부 여백 */
    margin-top: 5px; /* 위쪽 여백 */
}

.process {
	margin-bottom:2px;
}

.process:last-child {
	margin-bottom:0;
}

.time-text, .speed-text, .max-text, .accuracy-text, .error-text {
    display: flex; /* Flexbox 사용 */
    justify-content: space-between; /* 양쪽 끝으로 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
	color: #333;
	font-size:14px;
}

#timeElapsed, #speed, #max, #accuracy, #error {
	color: #333;
	font-size:18px;
	font-family:ds-digib;
	margin-left: auto;
}

.time-text::before, 
.speed-text::before, 
.max-text::before, 
.accuracy-text::before, 
.error-text::before {
    content: "•"; /* 동그라미 점 */
    color: #D55F8F; /* 점 색상 */
    font-size: 14px; /* 점의 크기 조정 (필요에 따라 조정) */
    vertical-align: middle; /* 수직 정렬 */
}

.process-bar {
	margin-top:-3px;
    width: 100%;
    height: 6px;
	border-radius: 3px;
	background:#f9f9f9;
    border: 1px solid #f9f9f9;
    position: relative; /* 자식 요소의 절대 위치 설정 */
}

.speed-line {  /* 현재타수 */
	height: 100%; /* 두께 5픽셀 */
    background-color: #4caf50; 
	transition: width 1s ease;
}

.accuracy-line { /* 정확도 */
	height: 100%;
    background-color: #F95950; /* 정확도 색상 */
	transition: width 1s ease;
}

.well {
	display:block;
	text-align:center;
	margin-bottom:10px;
	font-size:20px;
	font-weight:600;
	color:#E16C5B;
}

.setting input {height:26px !important; }
.setting td {text-align:left !important; }
#timeElapsed.active {
    color: #EA5455 !important;
    font-size: 18px;
    font-family: ds-digib;
    margin-left: auto;
}

#popupOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: none; justify-content: center; align-items: center; z-index: 10000; }
#popup { position: fixed; top: 10vh; left: 20%; width: 60%; max-height: 80vh; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); overflow: hidden; z-index: 100002; display: none; }
#popup .pop_head { background: #2c3e50; color: #ffffff; padding: 15px; display: flex; justify-content: space-between; align-items: center; border-top-left-radius: 10px; border-top-right-radius: 10px; cursor: move; }
#popup .pop_head .pop_title { font-size: 22px; font-weight: bold; }
#popup .close-btn { font-size: 24px; cursor: pointer; transition: color 0.3s; }
#popup .close-btn:hover { color: #ff4d4d; }
#popup .pop_content { font-size: 16px; padding-bottom:20px; line-height: 1.5; color: #333; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; max-height: calc(80vh - 60px); overflow-y: auto; }
#popupIframe { }
#popup .pop_content .bo_fx { margin-top:20px; text-align:right; }
#popup .pop_content .btn_submit { background: #2c3e50; color: #ffffff; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background 0.3s; }
#popup .pop_content .btn_submit:hover { background: #1a252f; }
#popup .popup-footer {padding: 10px; text-align: right;}
#popup .popup-footer .confirmButton { background: #2c3e50; color: #ffffff; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background 0.3s; }
#popup .popup-footer .confirmButton:hover { background: #1a252f; }

@media screen and (max-width: 1024px) { 
	#popup { left: 10%; width: 80%; max-height: 80vh; } 
}
@media screen and (max-width: 860px) { 
	#popup { left: 5%; width: 90%; max-height: 80vh; } 
}
@media screen and (max-width: 640px) { 
	#popup { left: 0; width: 100%; max-height: 80vh; } 
	#popup .pop_content { max-height: calc(80vh - 60px); } 
}
.no-scroll {
    overflow: hidden !important; 
    width: 100% !important; 
    height: 100% !important;
}

html.no-scroll, body.no-scroll {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
}
.hidden {display: none;}
.tooltip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.8); color: #fff; padding: 10px 20px; border-radius: 5px; display: none; z-index: 1004; }

td span img {
    width: 24px; /* 너비를 32픽셀로 설정 */
    height: 24px; /* 높이를 32픽셀로 설정 */
    border-radius: 50%; /* 동그랗게 만들기 */
    object-fit: cover; /* 이미지가 잘리지 않도록 설정 */
	margin-right:5px;
}
/*******************************************************************************************
***********************      select, radio, checkbox 스타일   *******************************
*******************************************************************************************/

.seat-selector select {overflow:hidden; white-space:nowrap; text-overflow:ellipsis; width:100%; height:36px; margin:0; padding:0 34px 0 12px; line-height:36px; color:#333; vertical-align:middle; border:1px solid #ccc; border-radius:4px; background:#fff url('../img/select-arr.png') no-repeat right 10px center;
    -webkit-appearance:none;
    -moz-appearance:none;
}
.seat-selector select[disabled] {color:#525252; background-color:#f6f6f6; opacity:1;}
.seat-selector select::-ms-expand {display:none;}
.seat-selector select.err {border:1px solid #e52a07;}
.seat-selector select.err:focus {border:1px solid #e52a07; outline:none !important;}

[type='checkbox'],
[type='radio'] {width:24px; height:24px; vertical-align:middle;}
.bg-chk {display:inline-block; position:relative; margin-right:15px;}
.bg-chk [type='checkbox'],
.bg-chk [type='radio'] {position:absolute; left:0; top:50%; width:24px; height:24px; margin:-10px 0 0 0; opacity:0;}
.bg-chk label {position:relative; padding:0 0 0 29px; line-height:24px;}
.bg-chk label:before {content:""; display:block; position:absolute; left:0; top:50%; width:24px; height:24px; margin:-12px 0 0 0; cursor:pointer; box-sizing:border-box;}
.bg-chk [type='checkbox'] {position:absolute; left:-99999px;}
.bg-chk [type='checkbox'] + label:before {background:url('../img/checkbox.png') no-repeat 0;}
.bg-chk [type='checkbox']:hover + label:before {background:url('../img/checkbox-hover.png') no-repeat 0;}
.bg-chk [type='checkbox']:checked + label:before {border:0; background:url('../img/checkbox-on.png') no-repeat 0;}
.bg-chk [type='checkbox'][disabled] + label:before {border:0; background:url('../img/checkbox-disabled.png') no-repeat 0;}
.bg-chk [type='checkbox'][disabled]:checked + label:before {background:#ebebeb url('../img/checkbox-disabled-on.png') no-repeat 0;}
.bg-chk [type='checkbox']:focus + label {outline:1px dotted blue;}
.bg-chk [type='radio'] + label:before {background:url('../img/radio.png') no-repeat 0;}
.bg-chk [type='radio']:hover + label:before {background:url('../img/radio-hover.png') no-repeat 0;}
.bg-chk [type='radio']:checked + label:before {background:url('../img/radio-on.png') no-repeat 0;}
.bg-chk [type='radio'][disabled] + label:before {background:url('../img/radio-disabled.png') no-repeat 0;}
.bg-chk [type='radio'][disabled]:checked + label:before {background:url('../img/radio-disabled-on.png') no-repeat 0;}
.bg-chk [type='radio']:focus + label {outline:1px dotted blue;}
.bg-chk:last-child {margin-right:0;}

