/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.20.3
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
  body {

      font-family: Arial, sans-serif!important;
	  color: #fff;
   
    }

    /* Thanh thông báo */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #1b0000;
      padding: 21px 7px;
      font-size: 14px;
    }

    /* Vùng tin tức bên trái */
    .news {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      overflow: hidden;
    }

    .news i {
      color: red;
    }

    .news strong {
      color: #ff2b2b;
      flex-shrink: 0; /* không co lại */
    }

    /* khung chữ chạy */
    .news-marquee {
      position: relative;
      overflow: hidden;
      flex: 1;
      height: 20px;
    }

    .news-content {
      position: absolute;
      white-space: nowrap;
      will-change: transform;
      animation: scrollText 15s linear infinite;
		color:#fff;
    }

    @keyframes scrollText {
      from {
        transform: translateX(100%);
      }
      to {
        transform: translateX(-100%);
      }
    }

    /* Nút bên phải */
    .auth-buttons {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
    }

    .btn {
      border: 1px solid #ff2b2b;
      border-radius: 6px;
      padding: 6px 12px;
      cursor: pointer;
      font-weight: bold;
      transition: all 0.3s;
    }

    .btn-register {
      background-color: transparent;
      color: #fff3d6;
    }

    .btn-login {
      background-color: #ff0000;
      color: white;
    }

    .btn:hover {
      transform: scale(1.05);
    }

/* ------------------ menu trai ------------------ */

  
    /* Sidebar */
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 70px;
      background-color: #5a0000;
      transition: width 0.3s;
      overflow: hidden;
		z-index: 999;
		border-right: 1px solid #e55353;
    }

widget>ul>li+li, ul.menu>li+li {
    border-top: none!important;
}

    .sidebar.expanded {
      width: 220px;
    }

    /* Logo + Toggle */
    .sidebar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #7a0000;
      padding: 10px;
      position: relative;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo img {
      width: 80px;
      height: 80px;
      transition: opacity 0.3s;
    }

    /* Hình nhỏ hiển thị khi menu thu gọn */
 .mini-logo {
    position: absolute;
    left: 10px;
    top: 40px;
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s;
}

    .sidebar:not(.expanded) .mini-logo {
      opacity: 1;
    }

    .sidebar.expanded .mini-logo {
      opacity: 0;
    }

   .toggle-btn {
    margin-left: 26px;
    /* background-color: #a00000; */
    border: none;
    margin-top: 23px;
    margin-bottom: 5px;
    color: white;
    font-size: 18px;
    border-radius: 50%;
    /* width: 30px; */
    /* height: 30px; */
    cursor: pointer;
    z-index: 9999;
}

    /* Menu Items */
    .menu {
    list-style: none;
    padding: 0;
    margin-top: 9px;
    margin-left: 7px;
}

    .menu-item {
      display: flex;
      align-items: center;
      padding: 18px 15px;
      transition: background 0.3s;
      cursor: pointer;
      white-space: nowrap;
    }

    .menu-item:hover {
      background-color: #8b0000;
    }

    .menu-item i {
      font-size: 20px;
      width: 30px;
      text-align: center;
    }

    .menu-item span {
      opacity: 0;
      transition: opacity 0.3s;
    }

    .sidebar.expanded .menu-item span {
      opacity: 1;
      margin-left: 10px;
    }


.bg-sc-1 {
   background: #580000 url(https://a865c0.swuacktu.net/system-requirement/Web.PortalNew/TF144-01/46405b710a/images/44a955fe497d2a32bcc4c38b517b5a07.jpg) no-repeat center top; }


.game-container {
  display: flex;
  gap: 55px;
  flex-wrap: wrap;
  justify-content: center;
}

.game-card {
  width: 200px;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.game-card img {
  width: 100%;
  display: block;
}

.game-title {
  padding: 10px 0;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Màu nền mặc định */
.game-title.red {
  background: #b80000;
}

/* Hover effect: chuyển nền text thành vàng */
.game-card:hover .game-title {
  background: linear-gradient(to top, #ffb400, #ffd65a);
  color: #000;
}

/* tab 8 o duoi */
.container {
  width: 90%;
  max-width: 1200px;
}

/* ---- Tabs ---- */
.tab-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.tab {
    background: #4b0000;
    border: 1px solid #ffb400;
    color: white;
    padding: 0px 18px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
    background: #4b0000;
    border: 1px solid #ffb400;
    color: white;
    padding: 4px 17px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.tab:hover,
.tab.active {
  background: #ffb400;
  color: #000;
}

.arrow {
 
  color: #ffb400;
  font-size: 20px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.arrow:hover {
  background: #ffb400;
  color: #000;
}

/* ---- Game Grid ---- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.game-card img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.game-card p {
  background: rgba(139, 0, 0, 0.9);
  margin: 0;
  padding: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-card:hover p {
  background: linear-gradient(to top, #ffb400, #ffd65a);
  color: #000;
}

/* ---- Tab panes ---- */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.game-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.game-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 193, 7, 0.8); /* Màu vàng nhạt mờ */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-button {
  background: #fff;
  color: #d40000;
  font-size: 32px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.game-card:hover .overlay {
  opacity: 1;
}

.game-card:hover .play-button {
  transform: scale(1);
}

.game-card:hover img {
  transform: scale(1.05);
}


.ve-chungtoi ul {
    margin: 0px auto;
    padding: 5px 0;
    text-align: center;
    list-style: none;
    text-transform: uppercase;
    border: 1px solid hsla(0, 0%, 100%, .2);
    border-left: none;
    border-right: none;
}
.ve-chungtoi ul  li {
display: inline-block;
}
.ve-chungtoi ul  li a {
color: #fff;
    font-size: 15px;
}

.ve-chungtoi ul li+li:before {
    content: "|";
    display: inline-block;
    margin: 10px;
    color: #fff;
}

.gach-bottom {
    border-bottom: 1px solid hsla(0, 0%, 100%, .2);
}

._2tvtEmkL5pbRNpc4Cy11m- {
    text-align: center;
}
._2tvtEmkL5pbRNpc4Cy11m- img {
    width: 120px;
}
	
.text-container {
    position: relative;
    /* max-width: 600px; */
    background: white;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.text-content {
    overflow: hidden;
    position: relative;
    transition: max-height 0.6s ease;
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
    padding: 40px;
    background: #f7f7f7;
    color: #333;
}

  .fade-out {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4em;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), white 90%);
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .show-more-btn {
    display: inline-block;
    margin-top: 16px;
    background: #5a0000;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 3px 34px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s, transform 0.2s;
}

  .show-more-btn:hover {
    background: #7a0000;
    transform: translateY(-1px);
  }

  .expanded .fade-out {
    opacity: 0;
  }
p.text-hinh {
    text-align: center;
    margin-bottom: 2px;
    background: #f7f7f7;
}
 
