html {
  box-sizing: border-box;
  font-size: 62.5%; /* using rem unit */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*:before, *:after {
  box-sizing: border-box;
}
input,
textarea,
select,
button {
  outline: none;
  border: none;
  resize: none;
  font-size: 1.5rem;
}
input {
  line-height: normal;
}
label,
button {
  cursor: pointer;
}
a {
  text-decoration: none;

}
img {
  display: block;
  max-width: 100%;
}
body {
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  line-height: 1;
  padding: 25px;
  margin: 0;
  height: 100%;
}

/* Avatar & Text Box */
.avatar-img {
  width: 70;
  height: 70px;
  border-radius: 50%;
}
.text-box {
  width: 300px;
  height: 56px;
}

/* Hidden elements */
.hidden {
  display: none;
}

/* Dropdown sections */
#dots-options, #corners-square-ptions, #corners-dot-options, #background-options {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
}

/* Layout */
main {
  display: flex;
  margin-top: 70px;
  padding: 20px;
}
.display {
  margin-left: 100px;
}

.input-wrap {
  align-items: flex-start;
  display: flex;
  text-align: left;
  padding-bottom: 10px;
}
.text-box {
  width: 100%;
}
label {
  width: 30%;
}

/* Button styles */
.button {
  display: block;
  width: 150px;
  background-color: red;
  color: white;
  padding: 15px;
  margin: 15px auto;
  border-radius: 5px;
  text-align: center;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s linear;
}
.modal-content {
  max-width: 600px;
  padding: 170px 250px 350px 250px;
  border-radius: 20px;
  background-color: white;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee;
  border-radius: 10rem;
  cursor: pointer;
  color: #999;
}

/* Navigation Menu */
.menu {
  width: 300px;
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  background-color: white;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  list-style: none;
  transform: translateX(100%);
  transition: transform 0.25s linear;
}
.menu.is-show {
  transform: translateX(0);
}
.menu-link {
  display: block;
  padding: 20px 15px;
  color: #333;
  border-bottom: 1px solid #eee;
}



.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* Login button */
.button {
  background-color: white;
  color: #4CAF50;
  border: 1px solid #4CAF50;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.display{
  margin-left: 100  px;
}

.input-wrap{
  align-items: flex-start;
  display: flex;
  text-align: left;
  padding-bottom: 10px;
}

.text-box{
  width: 100%;
}

label{
  width: 30%;
}

textarea, select, input, button{
  border: none;
  resize: none;
  font-size: 1.5rem;
}

select, textarea, input, button{
  border: 1px solid #e7e7e7;
  border-radius: 5px;
  padding: 5px;
}

main{
  display: flex;
}


 /*footer*/
 *{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
footer {
  width: 100%;
  position: relative;
  background-color: #B5E3E0;
  padding: 5px 0;
  text-align: center;
  box-shadow: 0px -4px 6px rgba(255, 255, 255, 0.1);
}

.footerContainer{
  width: 100%;
  padding: 5px 5px 2px;
}
.socialIcons{
  display: flex;
  justify-content: center;
}
.socialIcons a{
  text-decoration: none;
  padding: 5px;
  background-color: rgb(0, 0, 0);
  margin: 5px;
  border-radius: 50%;
}
.socialIcons a i{
  font-size: 1.5em;
  color: rgb(255, 255, 255);
  opacity: 0.9;
}

.socialIcons a:hover{
  background-color: #111;
  transition: 0.5s;
}
.socialIcons a:hover i{
  color: white;
  transition: 0.5s;
}
.footerNav{
  margin: 10px 0;
}
.footerNav ul{
  display: flex;
  justify-content: center;
  list-style-type: none;
}
.footerNav ul li a{
  color:rgb(0, 0, 0);
  margin: 10px;
  text-decoration: none;
  font-size: 1em;
  opacity: 0.7;
  transition: 0.5s;
}
.footerNav ul li a:hover{
  opacity: 1;
}
.footerBottom{
  background-color: #f9f9f9;
  padding: 3px;
  text-align: center;
}
.footerBottom p{
  color: rgb(0, 0, 0);
}
.designer{
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 0px 5px;
}
@media (max-width: 700px){
  .footerNav ul{
      flex-direction: column;
  } 
  .footerNav ul li{
      width:100%;
      text-align: center;
      margin: 10px;
  }
  .socialIcons a{
      padding: 5px;
      margin: 4px;
  }
}

@media (max-width: 768px) {
  main {
      flex-direction: column;
      align-items: center;
  }
}

.modal-content {
  width: 90%;
  max-width: 400px;
  padding: 20px;
}

@media (max-width: 500px) {
  .menu {
      width: 100%;
  }
}

@media (max-width: 600px) {
  .footerNav ul {
      flex-direction: column;
      padding: 0;
  }
}




.btn-download {
  display: inline-block;
  background: #4CAF50; /* Màu xanh lá */
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hiệu ứng hover */
.btn-download:hover {
  background: #45a049; /* Màu xanh lá đậm hơn */
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Hiệu ứng khi bấm */
.btn-download:active {
  transform: translateY(1px);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hiệu ứng nền lan tỏa khi bấm */
.btn-download::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  top: 50%;
  left: 50%;
  transition: all 0.5s ease-in-out;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
}

.btn-download:active::after {
  transform: translate(-50%, -50%) scale(1);
  transition: 0s;
}
#saveBtn {
  display: inline-block;
  background: #007BFF; /* Màu xanh dương */
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hiệu ứng hover */
#saveBtn:hover {
  background: #0056b3; /* Màu xanh đậm hơn */
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Hiệu ứng khi bấm */
#saveBtn:active {
  transform: translateY(1px);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hiệu ứng nền lan tỏa khi bấm */
#saveBtn::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  top: 50%;
  left: 50%;
  transition: all 0.5s ease-in-out;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
}

#saveBtn:active::after {
  transform: translate(-50%, -50%) scale(1);
  transition: 0s;
}
.login-button:active::after {
  transform: translate(-50%, -50%) scale(1);
  transition: 0s;
}

/* Responsive: Điều chỉnh khi màn hình nhỏ */
@media (max-width: 768px) {
  .login-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}
/*header*/
/* Reset cơ bản */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header cơ bản */
header {
  background-color: #B5E3E0;
  color: #333;
  padding: 1.5%;
  position: relative;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  height: 100px;
  overflow: visible;
  z-index: 10;
}

/* Header Title */
.header-title {
  flex-grow: 1;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: #1D3557;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #457B9D, #1D3557);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}

/* Header Logo */
.header-logo {
  width: 5vw;
  height: 5vw;
  max-width: 70px;
  max-height: 70px;
  min-width: 50px;
  min-height: 50px;
  border: 0.4vw solid #1D3557;
  border-radius: 50%;
  padding: 0.4vw;
  background: white;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login Button */
.login-button {
  background-color: #010101;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 16px 32px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
  background-color: #d44179;
  transform: scale(1.1);
}

.login-button:active {
  transform: scale(0.97);
}

/* Circles Animation */
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: moveCircles 6s infinite ease-in-out alternate;
  z-index: 1;
}

.circle1 { width: 60px; height: 60px; background: #89C2D9; top: 20px; left: 10%; animation-delay: 0s; }
.circle2 { width: 100px; height: 100px; background: #61A5C2; top: 20px; right: 15%; animation-delay: 1s; }
.circle3 { width: 80px; height: 80px; background: #A9D6E5; bottom: 30px; left: 30%; animation-delay: 2s; }
.circle4 { width: 120px; height: 120px; background: #BFD7EA; bottom: 60px; right: 10%; animation-delay: 3s; }
.circle5 { width: 100px; height: 100px; background: #457B9D; top: 40px; left: 5%; animation-delay: 4s; }

@keyframes moveCircles {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

/* Responsive Design */

/* Màn hình dưới 768px (Tablet và Mobile) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .header-title {
    font-size: 24px;
    margin: 10px 0;
    letter-spacing: 2px;
  }

  .header-logo {
    width: 60px;
    height: 60px;
    min-width: 40px;
    min-height: 40px;
    border: 2px solid #1D3557;
    padding: 2px;
  }

  .login-button {
    font-size: 16px;
    padding: 12px 24px;
    margin-top: 10px;
  }

  .circle {
    display: none; /* Ẩn các vòng tròn trên màn hình nhỏ để tránh lộn xộn */
  }

  .user-menu {
    margin-top: 10px;
  }
}

/* Màn hình dưới 480px (Mobile nhỏ) */
@media (max-width: 480px) {
  header {
    padding: 0.8rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .header-title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .header-logo {
    width: 50px;
    height: 50px;
    min-width: 35px;
    min-height: 35px;
    border: 1.5px solid #1D3557;
  }

  .login-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .user-menu .avatar-img2 {
    width: 50px;
    height: 50px;
  }

  .avatar-dropdown {
    min-width: 120px;
    right: 5px;
    top: 70px;
  }
}

/* Màn hình trên 1024px (Desktop lớn) */
@media (min-width: 1024px) {
  header {
    padding: 2%;
  }

  .header-title {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .login-button {
    font-size: 22px;
    padding: 18px 36px;
  }
}
.login-button {
  background-color: #010101;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 16px 32px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
  background-color: #d44179;
  transform: scale(1.1); /* Phóng to hơn khi hover */
}

.login-button:active {
  transform: scale(0.97); /* Giảm hiệu ứng co nhỏ khi nhấn */
}

/* restricted until login */
.restricted-content.restricted {
  pointer-events: none; /* Disables clicks */
  opacity: 0.5; /* Visual cue for disabled state */
  position: relative;
}

.restricted-content.restricted::before {
  content: "Please log in to access this content";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  border-radius: 5px;
  z-index: 10;
}


/* Avatar Button Styles */
.avatar-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  position: relative;
}

.avatar-img2 {
  width: 70px; /* Adjust size to match your image */
  height: 70px;
  border-radius: 50%; /* Circular shape */
  object-fit: cover;
  border: 2px solid #ffffff; /* Optional: Add border for contrast */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.avatar-button:hover .avatar-img {
  transform: scale(1.1);
}

.avatar-button:focus .avatar-img {
  outline: none;
  box-shadow: 0 0 0 3px #d44179; /* Highlight on focus */
}

/* Avatar Dropdown Styles */

/* Avatar Dropdown Styles */
.avatar-dropdown {
  display: none;
  position: fixed;
  right: 10px;
  top: 60px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.avatar-dropdown.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  margin-top: 2.5%;
}

.avatar-dropdown .dropdown-button {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.avatar-dropdown .dropdown-button:last-child {
  border-bottom: none;
}

.avatar-dropdown .dropdown-button:hover {
  background-color: #f5f5f5;
  color: #d44179;
}

.avatar-dropdown .logout-button {
  color: #d44179;
}

.avatar-container {
  position: relative;
  display: inline-block;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

.avatar-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  min-width: 120px;
  margin-top: 80px;
  margin-right: 30px;
}

.avatar-container:hover .avatar-dropdown {
  display: flex;
}

.dropdown-button {
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.dropdown-button:hover {
  background: #f0f0f0;
}




.text-box {
  width: 100%;
  max-width: 400px;
  height: 150px;
  padding: 12px;
  font-size: 16px;
  font-family: "Comic Sans MS", cursive, sans-serif;
  border: 2px solid #ffafcc;
  border-radius: 12px;
  background: #fff0f3;
  box-shadow: 4px 4px 10px rgba(255, 175, 204, 0.3);
  transition: all 0.3s ease-in-out;
  outline: none;
}

.text-box:focus {
  border-color: #ff85a2;
  background: #ffe5ec;
  box-shadow: 4px 4px 15px rgba(255, 133, 162, 0.5);
}

.text-box::placeholder {
  color: #ff85a2;
  opacity: 0.8;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: #c4e5e7;
  color: #444;
  padding: 20px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
input, select, button {
  padding: 3px;
  border-radius: 8px;
  border: 2px solid #4db6ac;
  outline: none;
}
button
{
  padding: 7px;
}
button {
  background: #00897b;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 8px;
}
button:hover {
  background: #00695c;
}


/* QR Code vẫn di chuyển khi cuộn */
.qr-container {
  position: sticky;
  top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 10px;
  display: flex;
  margin-bottom: 20px; /* Thêm khoảng cách để tránh chồng lấn với footer */
}

/* Nút luôn nằm dưới QR code */
.button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px; /* Để tạo khoảng cách với QR code */
}

.btn-download, #saveBtn {
  position: relative; /* Đảm bảo không bị đẩy lên khi cuộn */
  padding: 10px 20px;
}
.switch {
  margin-top: 15px; /* Điều chỉnh khoảng cách */
}
/* Accordion styles */
.accordion {
  border: 1px;
  background: #c4e5e7;
  border-radius: 15px; /* Khôi phục bo góc */
  box-shadow: 0px 1% 3% rgba(0, 0, 0, 0.2);
  padding: 1%;
  max-width: 80%;
  margin-bottom: 2.5%;
  margin-left: 20%;

}

/* Accordion Header */
.accordion-header {
  background: #62d6cb;
  color: white;
  border-radius: 10px; /* Khôi phục bo góc */
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6%;
  transition: background 0.3s ease-in-out, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 1% 3%;
}

/* Hover effect */
.accordion-header:hover {
  background: #00897b;
  transform: scale(1.02);
  box-shadow: 0px 1% 4% rgba(0, 0, 0, 0.3);
}

/* Disable pointer events for child elements */
.accordion-header * {
  pointer-events: none;
}

/* Accordion Content */
.accordion-content {
  border-top: 0;
  color: #333;
  font-size: 90%;
  font-weight: 300;
  line-height: 1.6;
  background-color: white;
  height: 0;
  overflow: hidden;
  transition: all 0.25s linear;
  border-radius: 0 0 15px 15px; /* Bo tròn góc dưới khi mở nội dung */
}

/* Inner Content */
.accordion-content-inner {
  padding: 4%;
  border: 0.2% solid #eee;
  border-radius: 10px; /* Bo góc cho nội dung bên trong */
}

/* Active state */
.accordion-content.is-active {
  height: auto;
}
#error-message {
  color: red;
  text-align: center;
  margin-bottom: 10px;
}
#button-cancel 
{
  width: 62px;
}
/*font*/
@media (max-width: 600px) {
  body {
    font-size: 14px; /* Nhỏ hơn trên điện thoại */
  }
  h1 {
    font-size: 1.5rem;
  }
}