@font-face {
  font-family: "SVN-Nolan";
  src: url("../fonts/SVN-Nolan Next Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: "SVN-Nolan";
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #897a46 #121e2f;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #121e2f;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #897a46;
  border-radius: 10px;
  border: 2px solid #121e2f;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
main[role="main"] {
  flex: 1;
  background-image: url("../images/bg_page.jpg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  padding: 0 1.5rem;
  background: black;
}

.navbar a {
  color: white;
}

.nav-item {
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.navbar-brand {
  width: 100%;
  height: 100%;
  max-width: 136px;
  min-width: 84px;
}

.navbar-brand img {
  width: 100%;
  object-fit: contain;
}

.nav-item:hover {
  background: linear-gradient(to top, rgba(204, 204, 204, 0.5), transparent);
}

.nav-item .nav-link {
  text-transform: uppercase;
  color: white !important;
}

.oauth-box .user-actions a {
  text-transform: uppercase;
}

.oauth-box .user-info {
  color: white;
}

.oauth-box .username {
  color: #79abff;
}

.navbar-toggler-icon {
  background-image: url("../images/ic_menu_mobile.png");
  width: 24px;
  height: 24px;
}

.navbar-toggler {
  border: 1px solid #ccc;
  background-color: white;
}

.page-container {
  width: 1280px;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: clamp(1rem, 2vw, 3rem) clamp(1rem, 4vw, 4rem);
  /* background-color: #fff; */
}

.page-title {
  width: 75%;
  margin: 0 auto 1.5rem;
  pointer-events: none;
}

.page-title img {
  width: 100%;
  object-fit: contain;
  animation: flashTicTocToe 3s ease infinite;
}

@keyframes flashTicTocToe {
  5%,
  15%,
  90% {
    filter: brightness(1.2);
  }
  10%,
  20%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2);
  }
}

.page-content {
  width: 100%;
  background-image: url("../images/bg_login.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  padding: 1.375rem 2rem;
}

.grid-gift {
  width: 98%;
  margin: 0 auto 0 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.gift-box {
  width: fit-content;
  aspect-ratio: 1/1;
  position: relative;
  z-index: revert-layer;
}

.gift-box:has(.gift-detail) .gift-thumb {
  animation: flash 1s ease infinite;
}

@keyframes flash {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

.gift-box[data-status="1"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(204, 204, 204, 0.5);
  background: url("../images/ic_checked.png"), rgba(0, 0, 0, 0.35);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size:
    50% 50%,
    100% 100%;
  z-index: 1;
}
.gift-box:not(:has(.gift-detail)) {
  pointer-events: none;
}
.gift-box .gift-detail {
  width: 275%;
  height: 100%;
  z-index: 99;
  position: absolute;
  top: 0;
  right: 100%;
  display: none;
}

.gift-box.tooltip-right .gift-detail {
  right: 0%;
  left: 100%;
}

.gift-box .gift-detail img,
.gift-box .gift-thumb img {
  width: 100%;
}

.gift-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  /* pointer-events: none; */
}

.gift-thumb:hover + .gift-detail {
  display: block;
}

@media (max-width: 992px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }

  .nav-item {
    padding: 0.25rem 0rem;
  }

  .page-content {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding: 0.5rem 0.75rem;
  }
}

.modal-content {
  background-color: transparent;
  background-image: url("../images/bg_notice.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border: none;
  box-shadow: none;
}

.modal-content .modal-body {
  color: white;
  text-align: center;
  padding: 2.5rem 1.5rem 1rem;
}

.modal-content .modal-footer {
  border: none;
  justify-content: center;
  padding: 0;
}

.modal-content .modal-footer .btn-confirm {
  min-width: 180px;
  aspect-ratio: 180/46;
  background-image: url("../images/btn_xacnhan.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border: none;
  background-color: transparent;
  transform: translateY(35%);
}
