  :root {
            --primary-color: #2c3e50;
            --accent-color: #3498db;
            --background-color: #dce4e8;
            --container-bg-color: #ffffff;
            --text-color: #333;
            --correct-color: #2ecc71;
            --incorrect-color: #e74c3c;
            --border-color: #bdc3c7;
            --shadow-subtle: 0 2px 5px rgba(0, 0, 0, 0.05);
            --border-radius: 8px;
        }
        body {
    font-family: 'Roboto', sans-serif;
    background: url("img/background.jpg") no-repeat center center fixed;
    background-size: cover;
    margin: 20px 10px;
    text-align: center;
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
  }
        .quiz-container {
            background-color: #fffce5;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    max-width: 650px;
    width: 100%;
    margin: auto;
    padding: 2px 20px 30px;
    box-sizing: border-box;
}




 

        #timerDisplay {
            font-size: 1.5em;
            font-weight: 500;
            color: #598157;
        }

        #questionCount {
            font-size: 1.1em;
            color: #7f8c8d;
            margin-bottom: 15px;
        }

        .question-box {
            padding: 20px;
            background: #598157;
            margin: 5px 15px;
            border-radius: 10px;
        }

        .question-text {
            font-size: 3.2em;
            font-weight: 700;
            color: #fff;
            margin: 40px 0px 30px 0px;
            display: inline-block;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
        }

        .answer-area {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        #submitBtn {
            width: 150px;
            padding: 10px;
            border: none;
            border-radius: 15px;
            font-size: 1.5em;
            font-weight: 600;
            color: #fff;
            background-color: #e74c3c;
            cursor: pointer;
            transition: background-color 0.3s;
            display: block;
            margin: 20px auto 60px;
        }

        #submitBtn:hover {
            background-color: #27ae60;
        }

       #intro-controls {
display: flex;
    flex-direction: column;
    gap: 0px;
    border-top: 1px dashed #ddd;
    margin-top: 30px;
    padding: 10px 0px;
    text-align: center;
}

#intro-controls .row {
  display: flex;
  justify-content: center; /* căn giữa theo chiều ngang */
  gap: 10px; /* khoảng cách giữa các nút */
  flex-wrap: wrap; /* nếu thiếu chỗ thì tự xuống hàng */
}

        #intro-controls button {
            flex: 1;
            padding: 15px 2px;
            border: none;
            border-radius: 10px;
            font-size: 1.2em;
            font-weight: 600;
            border: 2px solid #ffe082;
            color: #fff;
            cursor: pointer;
            transition: transform 0.2s, opacity 0.2s;
        }


        @media (max-width: 768px) {
            #intro-controls {
            /* flex-direction: column;  */
                gap: 8px;
            }

			#intro-controls button

			{
			margin: auto;
			}
        }

        #instructionsScreen {
            display: none;
            text-align: left;
            padding: 20px;
        }

        #instructionsScreen h2 {
            text-align: center;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        #instructionsScreen ul {
         /* list-style-type: disc;  */
            padding-left: 20px;
        }

        #instructionsScreen li {
            margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    font-size: 1.2em;
    font-weight: 500;
    line-height: 20px;
	}

        #answerInput {
            padding: 10px;
            font-size: 1.5em;
            width: 180px;
            text-align: center;
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s ease;
            background: beige;
            margin-bottom: 15px;
        }

        #answerInput:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
        }

            button {
    display: block;              /* để margin auto có tác dụng */
    padding: 8px 20px;
    font-size: 1.2em;
    margin: 20px auto 0;         /* căn giữa + khoảng trống trên */
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-subtle);
    transition: all 0.2s ease;
    font-weight: 600;
}


        button:hover {
            opacity: 0.9;
        }

        .feedback {
            margin: 10px;
            font-size: 1.2em;
            font-weight: 500;
            animation: feedback-anim 0.5s ease-in-out;
        }

.incorrect-questions-list
{

            font-size: 1.2em;
            font-weight: 500;
}


        @keyframes feedback-anim {
            0% {
                opacity: 0;
                transform: scale(0.8);
            }
            50% {
                opacity: 1;
                transform: scale(1);
            }
            100% {
                transform: scale(1);
            }
        }

        .correct {
            color: #fff;
        }

        .incorrect {
            color: #ffecb3;
        }

        .results-box {
            margin-top: 20px;
            border-radius: var(--border-radius);
            display: none;
            text-align: center;
        }

        .results-box h2 {
        font-size: 2em;
    color: #244b22;
    border: 1px dashed;
    background: linear-gradient(178deg, #ffecb3, #7dd378);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

        .results-box p {
            color: #e74c3c;
            margin: 5px 0;
            font-size: 1.2em;
        }

        .result-item {
            display: flex;
            align-items: left;
            justify-content: left;
            margin: 10px 0;
            font-size: 1.1em;
        }

        .result-item span {
            font-size: 1em;
            font-weight: 700;
            color: var(--accent-color);
            margin-left: 8px;
        }

        .result-icon {
            font-size: 1.6em;
            margin-right: 10px;
            color: var(--correct-color);
        }

        #finalMessage {
            font-size: 1.4em;
            color: var(--primary-color);
            margin-bottom: 20px;
            font-weight: 500;
        }

        #playAgainBtn {
            background-color: var(--correct-color);
        }

        .dynamic-title {
            font-size: 1.6em;
            color: #2c3e50;
            font-weight: 700;
            margin: 30px 10px;
        }

        #instructionsScreen {
            display: block;
            overflow-y: auto;
            padding-top: 20px;
            border: 1px solid #ffe082;
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }

        #resultsControl {
            display: flex;
            justify-content: space-between;
            margin-top: 25px;
            font-weight: 600;
			font-size: 1.2em;
            align-items: center;
        }

        #resultsControl button {
           padding: 10px 20px;
    margin: 5px;
        }

        #reviewIncorrectBtn {
            background-color: #f39c12;
            display: none;
        }

        .name-input-box {
            margin-bottom: 20px;
        }

        .name-input-box label {
            font-size: 1.1em;
            margin-bottom: 5px;
            display: block;
        }

        #playerNameInput {
            font-size: 1.5em;
			padding: 4px;  
            font-weight: bold;
            background: #ffecb3;
            border-radius: var(--border-radius);
            border: 1px dashed #7dd378;
            width: 80%;
            max-width: 100%;
            text-align: center;
            color: var(--incorrect-color);
            transition: border-color 0.3s ease;
            box-sizing: border-box;
        }

        #playerNameInput:focus {
            outline: none;
            border: 1px solid #e74c3c;
        }

        .mode-selection {
            margin-top: 15px;
            display: flex;
            text-align: left;
			font-size: 1.1em;
            background: #7dd37854;
            color: #244b22;
            font-weight: 600;
            border: 1px solid #ffe082;
            padding: 10px;
            border-radius: 10px;
            justify-content: space-between;
            align-items: center;
        }

/* Bọc tất cả trong 1 container */
.mode-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* nếu màn hình hẹp thì tự xuống hàng */
}

/* Mỗi khối */
.mode-selection2 {
    flex: 1;
    min-width: 250px; /* đảm bảo không bị bóp quá nhỏ */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ffe082;
    border-radius: 10px;
    background: #fff9c4;
}

/* Label */
.mode-selection2 label {
    flex: 1;
    font-size: 1.1em;
	text-align: left;
    color: #333;
    white-space: nowrap;
}

/* Input */
.mode-selection2 input {
        flex: 1;
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ffecb3;
    border-radius: 6px;
    background: #7dd378;
    color: #fff;
    text-align: center;
    min-width: 120px;
}

/* Trên điện thoại thì xếp dọc */
@media (max-width: 600px) {
    .mode-container {
        flex-direction: column;
    }

    .mode-selection2 {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

.mode-selection {padding:10px;}

.range-selection {padding:5px;}

	#playerNameInput

	{
	padding:6px;
	font-size:1.2em;
	max-width:60%;
	}

    .mode-selection2 label {
        margin-bottom: 5px;
    }

    .mode-selection2 input {
        width: 100%;
    }
}


        #advancedSettingsBtn {
            background-color: #7f8c8d;
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
    /* font-size: 1.2em; */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 15px;
    /* display: block; */
    /* width: 100%; */
}

        #advancedSettingsBtn:hover {
            transform: translateY(-2px);
            opacity: 0.9;
        }

        .advanced-options {
            background: #fff;
            border: 1px dashed #7f8c8d;
            padding: 15px;
            border-radius: 10px;
            margin-top: 10px;
            display: none;
            flex-direction: column;
            gap: 15px;
        }

        #playModeSelect, #operationSelect,  .advanced-options select {
            width: 200px;
            padding: 5px;
            font-size: 1em;
            text-align: left;
            background: #7dd378;
            border: none;
            border-radius: var(--border-radius);
        }


		#playModeSelect:focus {
outline: none;
border: 1px solid #f39c12;
		
		}

.advanced-options input {
    width: 200px;
    padding: 10px 5px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    background: #7dd378;
    border: none;
    border-radius: var(--border-radius);
}


        .advanced-options input:focus {
            border: 1px solid #f39c12;
            outline: none;
			text-align: center;
        }

        .range-selection {
            margin-top: 15px;
            display: flex;
            gap: 10px;
            text-align: left;
            border: 1px solid #ffe082;
            padding: 10px;
            border-radius: 10px;
            background: #ffecb3;
            align-items: center;
            justify-content: center;
        }

        .range-selection label {
            font-size: 1.1em;
            font-weight: 600;
            color: #444;
        }

        .range-selection input {
            width: 70px;
            padding: 8px;
            font-size: 1em;
            color: red;
            font-weight: 600;
            background: #fff;
            text-align: center;
            border: 1px solid #ffe082;
            border-radius: 8px;
        }

        .range-selection input:focus {
            border: 1px solid #f39c12;
            outline: none;
        }

        @media (max-width: 600px) {

#resultsControl{

        flex-direction: column;
		margin: 15px;
        gap: 0px;
    }

#resultsControl button {

         border: 2px solid #ffe082;
        width: 100%;
        font-size: 1em;
        font-weight: 600;
        padding: 10px;
    }

#playModeSelect, #operationSelect, .advanced-options select 
{

width:150px;

}

.advanced-options input {
        width: 100%;
        padding: 10px 0px;
        text-align: center;
    }

}

            .range-selection input {
                width: 40px;
            }
        }
        
        


        #back-btn {
            background: green;
        }

        .number-popup {
            position: fixed;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #fff;
            border: 1px solid #f39c12;
            border-radius: var(--border-radius);
            padding: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            display: none;
            z-index: 1000;
            max-width: 350px;
        }

        .number-display {
            grid-column: span 3;
            background-color: #ffecb3;
            border: 1px solid #f39c12;
            padding: 10px;
            margin-bottom: 10px;
            border-radius: 5px;
            font-size: 2.8em;
            text-align: left;
            min-height: 1.5em;
            font-weight: 500;
            color: #e74c3c;
            overflow: hidden;
            white-space: nowrap;
        }

        .number-popup button {
            width: 100px;
            height: 100px;
            font-size: 2.8em;
            background-color: #ffecb3;
            color: var(--text-color);
            border: 1px solid #f39c12;
            border-radius: var(--border-radius);
            box-shadow: none;
            transition: background-color 0.2s ease, transform 0.1s ease;
            margin: 0;
            font-weight: 500;
        }

        .number-popup button:hover {
            background-color: #ffe082;
            transform: none;
        }

        .number-popup button.clear-btn {
            background-color: var(--incorrect-color);
            color: white;
            font-size: 1.2em;
        }

        .number-popup button.done-btn {
            background-color: var(--correct-color);
            color: white;
            font-size: 1.2em;
        }

        .number-popup button.done-btn:hover {
            background-color: #27ae60;
        }

        #historyScreen {
            display: none;
            text-align: left;
        }

        #historyScreen h2 {
            text-align: center;
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        #historyList {
            list-style-type: none;
            padding: 0;
            overflow-y: auto;
        }

        .history-item {
            background-color: #fff;
            border: 1px solid #ffe082;
            border-radius: var(--border-radius);
            padding: 15px;
            margin-bottom: 10px;
            box-shadow: var(--shadow-subtle);
        }

        .history-item p {
            margin: 5px 0;
            font-size: 1.1em;
        }

        .history-item .history-date {
            font-size: 0.8em;
            color: #95a5a6;
            margin-top: 10px;
            text-align: right;
        }

        #historyControls {
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
        }

        #clearHistoryBtn {
            background-color: #e74c3c;
        }

        .player-name {
            color: red;
            font-weight: bold;
        }

        #questionHeader {
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: 20px;
        }

        .powered {
            position: absolute;
            background: #fff;
            left: 0;
            right: 0;
            bottom: 0;
            margin: 0;
            padding: 8px 12px;
            text-align: center;
        }



.tabs {
      display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.tab {
  padding: 10px;
    background: #ffe082;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #7dd378;
    transition: 0.3s;
}

.tab.active {
  background: #7dd378;
    color: #fff;
    border: 2px solid #ffe082;
}

.bang-container {
  display: none;
}

.bang-container.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.bang {
  background: #fff;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bang h3 {
  text-align: center;
  color: #ff6f00;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.bang ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bang li {
  padding: 4px 0;
  text-align: center;
  font-size: 1em;
}


.bang.active {
  background: #fffce5;
    border-color: #afcfbd;
    box-shadow: 0 4px 10px rgba(27, 104, 181, 0.3);
}




.player-box {
  background: #fff7d6;
  border:1px dashed #598157;
  padding: 8px;
  box-shadow: 0px 1px 3px #7dd378;
  border-radius: 12px;
  text-align: center;
}

.player-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


.avatar-btn {
  background: #4caf50;
  border: none;
  color: white;
  font-size: 20px;
  border-radius: 8px;
  margin: auto;
  padding: 6px;
  cursor: pointer;
}

.selected-avatar {
    margin: auto;
    font-size: 30px;
    font-weight: bold;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;           /* kích thước khung tròn */
    height: 50px;
    border-radius: 50%;    /* làm tròn */
    background: #c8e6c9;   /* nền xanh nhạt */
}


.avatar-popup {
    display: none;
    position: fixed;
    top: 10%;               /* hạ thấp 1 chút để có chỗ header */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 2px solid #ffb74d;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
max-width: 550px;
    max-height: 70vh;       /* giới hạn chiều cao popup */
    overflow-y: auto;       /* bật cuộn dọc nếu tràn */
    width: 90%;             /* chiếm 90% chiều ngang màn hình điện thoại */
    box-sizing: border-box; /* tránh tràn padding */
}


.avatar-list span {
  display: inline-block;
  margin: 6px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.avatar-list span:hover {
  background: #ffecb3;
}

/* Toast */
.toast {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg,#ff6b6b,#ff8e53);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast .emoji { font-size: 20px; }

/* Kiểu khác nếu cần */
.toast.success { background: linear-gradient(135deg,#2ecc71,#27ae60); }
.toast.info    { background: linear-gradient(135deg,#3498db,#7286ff); }

/* Rung ô nhập tên */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.input-warn {
  border: 2px dashed #e74c3c !important;
  animation: shake .35s;
  background: #fff3f3 !important;
}


.history-avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 20px;
  background: #ffecb3;
  border-radius: 50%;
  margin-right: 6px;
}

/* result avatar (đã thêm) */
.result-avatar {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 22px;
  background: #c8e6c9;
  border-radius: 50%;
  margin-right: 8px;
}


.play-btn {
  background: linear-gradient(135deg, #9450ed, #2ecc71);
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.play-btn:hover {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}


@media (max-width: 600px) {
    body {
        background: linear-gradient(180deg, #ffecb3, #ffe082);
    }

	.number-popup {
	
	position: fixed;
    top: 55%;

	}

    .number-popup button {
        width: 80px;
        height: 70px;
		font-size: 2.2em;
    }


}


/* Gom tất cả thành phần cần font mập mạp */
#playerNameInput,
#answerInput,
.number-display,
.number-popup button,
.tabs .tab,
.bang h3, .bang li,
button,
#intro-controls button,
#submitBtn,
#advancedSettingsBtn,
#reviewIncorrectBtn,
#playAgainBtn,
.toast,
.mode-selection label,
.mode-selection2 label,
.range-selection label,
.results-box h2,
.results-box p,
.result-item,
#finalMessage {
    font-family: 'Roboto', sans-serif;
}



/* Bố cục 2 cột cho máy tính */
@media (min-width: 768px) {
    .quiz-container {
        max-width: 1200px;
    }
    .two-column-layout {
        display: flex;
        gap: 20px;
    }
    .main-column, .info-column {
        flex: 1;
        background-color: #fffce5;
        border-radius: 20px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        padding: 10px 10px 30px;
    }
    .main-column {
        min-height: 600px; /* Đảm bảo chiều cao tối thiểu */
    }
}


/* Style chung cho ô chọn */
.input-wrapper select {
  appearance: none;            /* bỏ style mặc định */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fffce5;   /* nền vàng nhạt */
  border: 1px solid #f39c12;   /* viền cam */
  border-radius: 12px;         /* bo tròn */
  padding: 10px 15px;
  font-size: 1.1em;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: 0.25s;
  width: 250px;                 /* full chiều ngang khung */
  text-align: center;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}






@media (max-width: 600px) {
  #defaultInfo {
    display: none !important;
  }

.input-wrapper select {
width:100%;
}


.quiz-container{
  	padding: 1px 10px 20px;

	}
}

/* Ẩn lịch sử khi đang chơi trên giao diện di động */
@media (max-width: 767px) {
  #historyScreen {
   padding-top: 40px;
   border-top: 1px dashed;
  }
}


/* Popup cho mobile */
.mobile-popup {
  display: none; /* mặc định ẩn */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: #fffce5;
  border-radius: 12px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e74c3c;
  border: none;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* Chỉ hiện popup trên di động */
@media (min-width: 768px) {
  .mobile-popup {
    display: none !important;
  }
}

#mainTitle img {
    height: auto;
    width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0px 1px 3px #7f8c8d;
    border: 1px dashed #598157;
}

.anh img {
    height: auto;
    width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0px 1px 3px #7f8c8d;
    border: 1px dashed #598157;
}

/* Mặc định hiển thị banner desktop */
.banner-desktop {
    display: block;
}
.banner-mobile {
    display: none;
}

/* Khi màn hình nhỏ hơn hoặc bằng 768px (di động) */
@media screen and (max-width: 768px) {
    .banner-desktop {
        display: none !important;
    }
    .banner-mobile {
        display: block !important;
    }
}


        /* Progress Bar Styles */
        .progress-container {
            width: 90%;
            height: 10px;
            background-color: #ffecb3;
            border-radius: 6px;
            margin: 15px auto;
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        .progress-bar {
            height: 100%;
            width: 0%;
            background-color:#598157;
            border-radius: 6px;
            transition: width 0.5s ease-in-out;
        }








.custom-popup {
  display: none; /* Ẩn mặc định */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 5000;
  align-items: center;
  justify-content: center;
}

.popup-box {
  background: #fffce5;
  border: 2px solid #f39c12;
  border-radius: 12px;
  padding: 20px;
  margin:20px;
  max-width: 400px;
  text-align: center;
  font-size: 1.2em;
  color: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  animation: popup-anim 0.3s ease-out;
}

.popup-box p {
  margin-bottom: 20px;
  line-height: 1.4em;
}

.popup-box button {
  background: #f39c12;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 600;
}

.popup-box button:hover {
  background: #e67e22;
}

@keyframes popup-anim {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}





#startRange,#endRange {
       font-size: 1.1em;
    border: 1px solid #e67e22;
    background: #7dd378;
    outline: none;
    padding: 5px;
    border-radius: 10px;
}



