@charset "UTF-8";
/* CSS Document */
  :root {
    --header-bg: url('../../assets/img/header-bg-2.gif');
    --page-bg: url('../../assets/img/page-bg.jpg');
    --card-bg: url('../../assets/img/card-bg-2.jpg');
  }
  /* ========== BODY & GLOBAL ========= */
  body {
    background: var(--page-bg) center/cover no-repeat fixed;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
  }

  a {
    text-decoration: none;
  }

  /* ========== HEADER ========= */
  header {
    background: var(--header-bg) center/cover no-repeat;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: background 0.3s;
  }

  header img {
    max-height: 45px;
  }

  header h5 {
    margin: 0;
    font-weight: 600;
    color: #DAFF00;
	  -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: blue;
	  text-shadow: 2px 2px #ff0000
  }

  /* ========== ANIMATION ========== */
  .fade-in-up {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: fadeInUp 0.6s ease forwards;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* ========== APP ICON CARD ========= */
  .app-icon {
    background: var(--card-bg) center/cover no-repeat;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
	-webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: blue;
  }

  .app-icon:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }

  .app-icon img {
    width: 84px;
    height: 64px;
    margin-bottom: 10px;
    object-fit: contain;
  }

  .app-icon div {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
  }

  /* ========== TOOLTIP TÙY CHỈNH ========= */
  .app-icon[data-bs-toggle="tooltip"]::after {
    content: attr(data-bs-title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
	  	text-shadow: 2px 2px #ff0000
  }

  .app-icon:hover[data-bs-toggle="tooltip"]::after {
    opacity: 1;
  }

  /* ========== FOOTER ========= */
 .footer-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 200, 200, 0.2);
  transition: all 0.3s ease;
}

.footer-box:hover {
  background: rgba(255, 255, 255, 0.85);
}

.footer-text {
  font-size: 0.85rem;
  color: #555;
  transition: color 0.3s ease;
}

  footer small {
    font-size: 0.85rem;
    color: #666;
  }

  /* ========== DARK MODE ========= */
  body.dark-mode {
    background: #111 !important;
    color: #eee;
  }

  body.dark-mode header {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
  }

  body.dark-mode .app-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  }

 body.dark-mode .footer-box {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-box:hover {
  background: rgba(0, 0, 0, 0.75);
}

body.dark-mode .footer-text {
  color: #ccc;
}

  body.dark-mode .app-icon[data-bs-toggle="tooltip"]::after {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  /* ========== RESPONSIVE ========= */
  @media (max-width: 576px) {
    .app-icon img {
      width: 48px;
      height: 48px;
    }

    header h5 {
      font-size: 1rem;
	  
    }
  }
/* Cho nút Danh mục */
.btn-gradient {
  background: linear-gradient(to right, #FFFF99, #ebedee);
  color: #060665;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.btn-gradient:hover {
  background: linear-gradient(to right, #ffffff, #dfe4ea);
  color: #000;
}
/* Cho nút Mini game */
.btn2-gradient {
  background: linear-gradient(to right, #FF9900, #66FF00);
  color: #060665;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.btn2-gradient:hover {
  background: linear-gradient(to right, #ffffff, #dfe4ea);
  color: #000;
}
/* Cho nút donate */
.btn-danger:hover {
  background-color: #c82333 !important;
  transform: scale(1.05);
  transition: 0.2s ease;
}

/* Dropdown menu sáng, bo góc đẹp cho Danh mục */
.dropdown-custom {
  background: #B0FFA1;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 0;
    z-index: 1055 !important; /* Cao hơn z-index mặc định của các icon */
  position: absolute !important;
}

.dropdown-custom .dropdown-item {
  padding: 10px 16px;
  font-weight: 500;
  color: #333;
  transition: background 0.2s, color 0.2s;
}

.dropdown-custom .dropdown-item:hover {
  background: #FBFF74;
  color: #1B0671;
}
/* MINI GAME menu */
.dropdown-minigame-menu {
  background-color: #fff5f5;
  border-left: 4px solid #dc3545;
    z-index: 1055 !important; /* Cao hơn z-index mặc định của các icon */
  position: absolute !important;
}
/* 🎮 Dropdown MINI GAME - giao diện riêng */
.dropdown-minigame-menu {
  background: #FFE1F1;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0;
    z-index: 1055 !important; /* Cao hơn z-index mặc định của các icon */
  position: absolute !important;
}

.dropdown-minigame-menu .dropdown-item {
  padding: 10px 16px;
  font-weight: 500;
  color: #6f1e51;
  transition: background 0.2s, color 0.2s;
}

.dropdown-minigame-menu .dropdown-item:hover {
  background: #FFD6EC;
  color: #b3005e;
}

@media (max-width: 576px) {
  .app-icon {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .app-icon div {
    font-size: 0.85rem;
    font-weight: 500;
  }

  .col-6.col-sm-4.col-md-3.col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .main-header {
    padding: 0.5rem 1rem;
  }

  header img {
    max-height: 36px;
  }

  header h5 {
    font-size: 1.5rem;
  }

  .dropdown .btn {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .modal-content {
    font-size: 0.9rem;
  }

  .modal-body ul {
    padding-left: 1rem;
  }
}
.modal-body a:hover img {
  transform: scale(1.05);
  transition: 0.3s ease;
}