@font-face {
    font-family: 'Roboto Mono';
    src: url('./fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Đây là font variable, hỗ trợ nhiều trọng số */
    font-style: normal;
}

body {
    font-family: 'Roboto Mono', sans-serif;
    background-color: #f0f8ff;
    text-align: center;
    padding: 20px;
    font-weight: 400;
    font-style: normal;
    word-spacing: -3px; /* Thu hẹp khoảng cách giữa các chữ */
}
.center{
    text-align:center
}
.left{
    text-align: left;
}
.qrcode{
    width:250px;
    margin: 0px auto;
    display: block;
}
.lambaikhac{
    color: #f44336;
    font-weight: 600;
}
.lamlai{
    color: #2196f3;
    font-weight: 600;
}
.firework{
    font-size: 22px;
    border: 2px solid green;
    background-color: #c8e6c9;
    color: red;
    padding: 8px;
    text-align: center;
}
.noibat{
    font-weight:bold;
    font-size: 18px;
    color: #4CAF50;
}
.step{
    width:100%;
}
.mienphi{
    color: #E91E63;
    font-weight: 600;
}
.container {
    max-width: 550px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: auto;
}
.container ul{
    padding-left: 30px;
}
.container ul li{
    line-height: 25px;
}
h1{
    color: #ff5733;
    font-size: 38px;
    margin: 0px;
    margin-bottom: 20px;
    font-weight: normal;
}
h2 {
    color: #ff5733;
    font-size: 32px;
    margin: 0px;
    margin-bottom: 20px;
    font-weight: normal;
}
label{
    font-size: 25px;
}
select, input {
    font-size: 25px;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #4caf50;
}
button {
    font-family: 'Roboto Mono', sans-serif;
    font-size: 25px;
    padding: 12px;
    margin: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}
button:hover{
    opacity: 0.8;
}
.btn-start {
    background-color: #4caf50;
    color: white;
}
.btn-check {
    background-color: #ff9800;
    color: white;
}
.btn-retry {
    background-color: #2196f3;
    color: white;
}
.btn-new {
    background-color: #f44336;
    color: white;
}
.question {
    font-size: 35px;
    margin: 15px 0;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 10px;
    border: 3px solid #2196f3;
    display: flex;
    justify-content: center;
    gap: 10px;
}
input.answer {
    font-size: 30px;
    font-family: 'Roboto Mono', sans-serif;
    width: 80px;
    text-align: center;
    border: 2px solid #333;
    border-radius: 5px;
    padding: 5px;
}
.correct {
    border: 4px solid green;
    background-color: #c8e6c9;
}
.incorrect {
    border: 4px solid red;
    background-color: #ffcdd2;
}
.incorrect span{
  color: green;
}
.result-message {
    font-size: 22px;
    font-weight: bold;
    color: #ff5722;
    margin-top: 20px;
}
.hidden {
    display: none;
}
.setupbox{
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.btn-group .active{
  background-color: #4caf50; /* Viền xanh lá */
  color: #fff;
}

.btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Hiển thị 2 cột */
    gap: 20px; /* Khoảng cách giữa các nút */
    width: 100%;
    margin: auto;
}

.btn-group button{
  width: 100%;
  margin: 0px;
  min-height: 65px;
  padding: 10px;
}

.setup_row{
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.setup_row label{
  font-size: 25px;
}

.menubox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin: auto;
    margin-top: 25px;
}
.menubox a{
    height: 155px;
    font-family: 'Roboto Mono', sans-serif;
    font-size: 28px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-direction: column;
    transition: background 0.3s ease, transform 0.2s ease;
    line-height: 33px;
    text-align: center;
    padding: 10px;
}
.menubox a:hover{
    opacity: 0.8;
}
.menubox a span {
    font-size: 32px; /* Kích thước cố định cho emoji */
    transition: none; /* Ngăn chặn emoji thay đổi */
}
.menubox a.menu1{
    background-color: #4CAF50;
}
.menubox a.menu2{
    background-color: #2196F3;
}
.menubox a.menu3{
    background-color: #FF9800;
}
.menubox a.menu4{
    background-color: #E91E63;
}
.trangchu .desc{
    font-size: 22px;
    border-radius: 10px;
    margin: 0px
}

.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    margin-top: 35px;
}
.footer ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding: 0px;
}
.footer ul li a{
    font-size: 16px;
    color: #333;
}
.footer ul li a:hover,.footer ul li a.active{
    color:#4caf50;
}
@media (max-width: 600px) {
    .footer ul{
        flex-wrap: wrap;
    }
    .footer{
        font-size: 14px;
    }
    h2{
        font-size: 25px;
        margin-bottom: 20px;
    }
    .menubox,.btn-group {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        width:100%;
    }
    .btn-group button{
      width:100%;
    }
    .question{
        flex-direction: column;
        align-items: center;
    }
}