table { 
	width: 687px; 
	border-collapse: collapse; 
	margin: 20px auto;
	}
.table1 {
	width: 1067px;
	margin-top: 5px;
}
.table3 {
	width: 967px;
	margin-top: 5px;
}

.table2 {
	width: 1067px;
}

/* Zebra striping */
tr:nth-of-type(odd) { 
	background: #eee; 
	}

th { 
	background: #fba82b; 
	color: white; 
	font-weight: bold; 
	}

td, th { 
	padding: 10px; 
	border: 1px solid #ccc; 
	text-align: left; 
	font-size: 18px;
	}
/* ===================================
   Navbar Navbar luôn cố định ở trên cùng
====================================== */
.navbar {    
    position: fixed; 
    top: -1%;
    z-index: 999; 
    width: 100%;
}

/* ===================================
   Tránh Navbar che mất nội dung đầu trang
====================================== */
body {
    padding-top: 6%; 
    background: #dedede;
    }

/* ===================================
   Nut back to top
====================================== */
.back-to-top {
    position: fixed;
    right: 6%;    bottom: 35%;     display: none;
    width: 50px;     height: 50px;
    line-height: 50px;     text-align: center;    
    color: #FF8C00;     border: 2px solid #FF8C00;    border-radius: 50%;    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);    z-index: 1000;    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease; /}

.back-to-top:hover {
    background-color: #FF8C00;
    color: white;
    transform: translateY(-3px);
}

.back-to-top i {
    font-size: 24px;
}


/*dfm strat*/
	.dfm-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  
}

/* ảnh nền */
.dfm-bg {
  width: 100%;
  height: auto;
  display: block;
}
.container img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}
/* nút đè lên */
.dfm-btn {
  line-height: 145%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #black;
  font-weight: bold;
  font-size: 1.1vw;
  border-radius: 3px;  
  box-shadow: 0 1px 5px rgba(0,0,0,0.3);
  padding: 0.5% 0.2%; 
  cursor: pointer;
  transition: 0.3s;
  z-index: 10; /* nằm trên hình */
  background-color: #6cbf4d; 
  background: linear-gradient(to right, #4CAF50, #CCFFCC, #4CAF50);
  white-space: nowrap;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2), /* Đổ bóng phía dưới */
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* hover / active */
.dfm-btn:hover,
.dfm-btn.active {
  background-image: linear-gradient(
    to bottom,
    #aceb91 0%,
    #7bc95f 50%,
    #62b54a 100%
  );
}

/* phần text & số */
.dfm-text {
  flex: 1;
  text-align: center;
}

/* vị trí từng nút (tùy chỉnh theo ảnh nền) */
.btn4 {top: 89%; left: 8%; width: fit-content;}
.btn7 {top: 81%; left: 77%; width: fit-content;}
.btn1 {top: 21%; left: 8%; width: fit-content;}
.btn6 {top: 30%; left: 77%; width: fit-content;}
.btn9 {top: 89%; left: 52%; width: fit-content;}
.btn5 {top: 21%; left: 77%; width: fit-content;}
.btn2 {top: 30%; left: 8%; width: fit-content;}
.btn3 {top: 81%; left: 8%; width: fit-content;}
.btn8 {top: 89%; left: 77%; width: fit-content;}
/*
@media (max-width: 992px) {
  .dfm-btn {
    width: 260px;
    font-size: 100%;
    padding: 6px 10px;
  }
}*/	


/* Khối chứa ảnh nền và các nút */
    .dfm-overlay-section {
      position: relative;
      text-align: center;
      margin: 0 auto;
    }

    .dfm-overlay-section img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
    }

    /* Container của các nút nằm đè lên */
    .overlay-buttons {
    position: absolute;
    top: 18%;
    left: 67%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 90%;
    max-width: 60%;
    }

    /* Nút bấm */
    .ring-row {
	margin-bottom:2%;
    display: flex;
    align-items: center;
     /*background: rgba(255, 255, 255, 0.9);*/
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .ring-row:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }   

    .ring-text {
      flex: 1;
      text-align: left;
      font-size: 19px;
      color: #333;
    }

    /* Khung hiển thị mô tả */
    #ring-detail {
      margin: 20px auto;
      background: #fff;
      padding: 15px 20px;
      border-radius: 8px;
      font-size: 16px;
      max-width: 800px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Đảm bảo responsive */
    @media (max-width: 768px) {
      .overlay-buttons {
        top: 5%;
        width: 95%;
      }
      .ring-text {
        font-size: 14px;
      }
    }
	
	
	
/* Giới hạn chiều cao và bật thanh cuộn khi có nhiều hơn 6 nút */
	.scrollable-list {
	  max-height: 83%; /* tuỳ chỉnh theo layout của bạn */
	  overflow-y: auto;
	  padding-right: 8px;
	}

	/* Làm thanh cuộn đẹp hơn một chút */
	.scrollable-list::-webkit-scrollbar {
	  width: 8px;
	}

	.scrollable-list::-webkit-scrollbar-thumb {
	  background-color: #3bb0ff;
	  border-radius: 6px;
	}

	.scrollable-list::-webkit-scrollbar-track {
	  background: #f1f1f1;
	}
	
/*dfm end*/

/*begin nút backto dfm*/
.back-dfm-btn {
  display: inline-block;
  margin:10px;
  color:#30840e;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.back-dfm-btn:hover {
  background-color: #ff8533;
  color:white;
  transform: scale(1.05);
}
/* end nút backto dfm*/
}
