/* BASE */

body {
  font-family: Nunito, sans-serif;
  background-color: #0c0d14;
  color: #f3f4f6;
}

body, html {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  max-width: 1600px;
  padding: 0 1rem;
}

* {
  margin: 0;
  padding: 0;
}

ul, li {
  /*list-style: none;*/
}

/* HEADER */

.logo {
  height: 40px;
  width: auto;
}

/* NAVBAR */

.navbar {
  /*height: 80px;*/
  padding: 15px 0;
}

.navbar-nav {
  flex: 1;
}

/* SEARCH */

.search-container {
  display: flex;
  align-items: center;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  overflow: hidden;
}

@media (min-width: 991px) {
  .search-container {
    width: 320px;
  }
}

.search-container:focus-within {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-button {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.btn:first-child:active {
  border: none;
}

.search-input {
  flex: 1;
  padding: 0 10px 0px 10px;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* NAVBAR SEARCH MOBILE */

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991px) {
  .navbar-collapse {
    display: grid;
    grid-template-rows: 50px;
    margin-top: 15px;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    grid-row: 2;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .search-container {
    margin-left: 0;
  }
}

/* GAME SECTION */

.game-section {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
  margin-bottom: 25px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.section-view-all {
  font-size: 14px;
  color: #a684ff;
  text-decoration: none;
  padding: 0 1rem;
}

.section-view-all:hover {
  color: #c4b4ff;
}

/* GRID GAME */

/* GRID 6 */

.grid {
  display: grid;
  gap: 0.5rem;
}

.game-section-6 .grid-game {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .game-section-6 .grid-game {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .game-section-6 .grid-game {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* GAME CARD THUMB */

.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.game-card-thumb {
  border-radius: 12px;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.game-card-thumb img {
  object-fit: cover;
  aspect-ratio: 3/4;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.game-card-info {
  position: absolute;
  width: 100%;
  bottom: 0;
  z-index: 1000;
  padding: 0.75rem;
}

.game-section-6 .game-card-title {
  white-space: nowrap;
}

.game-card-title {
  color: white;
  font-weight: 500;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 0;
}

.game-card-meta {
  margin-top: 0.5rem;
}

.game-card-rating {
  color: #fdc700;
  font-size: 12px;
  margin-right: 0.5rem;
}

.game-card-rating svg {
  margin-right: 0.25rem;
}

.game-card-plays {
  color: #99a1af;
  font-size: 0.75rem;
}

.overlay {
  position: absolute;
  background: linear-gradient( to top, rgba(0,0,0,0.8), transparent);
  width: 100%;
  top: 0;
  bottom: 0;
}

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

.game-card:hover .game-card-title {
  color: #a684ff;
  transition: 0.3s;
}

/* GRID 7 */

.game-section-7 .grid-game {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .game-section-7 .grid-game {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .game-section-7 .grid-game {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* GAME CARD THUMB */

.overlay-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient( to top, rgba(76, 29, 149, 0.9), transparent );
  position: absolute;
  bottom: 0;
  top: 50px;
  width: 100%;
  opacity: 0;
}

.game-section-7 .game-card-thumb, .game-section-7 .game-card-thumb img {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
}

.game-section-7 .game-card:hover .game-card-thumb img {
  transform: scale(1);
}

.game-section-7 .game-card:hover .overlay-hover {
  opacity: 100%;
}

.game-section-7 .game-card:hover .game-card-title {
  color: white;
}

.game-section-7 .game-card-info {
  opacity: 0;
}

.game-section-7 .game-card:hover .game-card-info {
  opacity: 100%;
}

.bg-surface-1 {
  background-color: #13141e !important;
}

.bg-surface-2 {
  background-color: #1a1b28 !important;
}

/* CATEGORIES SECTION */

.categories-section {
  padding: 2rem 0;
}

.categories-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.category-card {
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.category-card:hover {
  background: #7f22fe !important;
}

.category-card-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  width: 30px;
}

.category-card-title {
  color: #d1d5dc;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.category-card-count {
  color: #99a1af;
  font-size: 0.75rem;
}

@media (min-width: 640px) and (max-width: 1200px) {
  .grid-7-home .grid-game > *:nth-child(n + 13) {
    display: none;
  }
}

@media (max-width: 639px) {
  .grid-7-home .grid-game > *:nth-child(n + 10) {
    display: none;
  }
}

/* CONTENT SECTION */

.content-section {
  padding: 2rem 0;
}

.content-container {
  border-radius: 0.5rem;
}

.content-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.content-section p {
  color: #d1d5dc;
}

.full-description h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.full-description p {
  margin-bottom: 2rem;
}

.full-description ul {
  margin-bottom: 2rem;
}

.full-description ul li {
  list-style-type: disc;
}

.full-description ul li a {
  color: #a684ff;
  text-decoration: none;
}

.full-description ul li a:hover {
  color: #c4b4ff;
}

/* FOOTER */

footer {
  padding-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* COLUMN */

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col--brand .footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-text {
  color: #94a3b8;
}

/* HEADINGS */

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

/* LIST */

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list__item {
  margin-bottom: 10px;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #ffffff;
}

/* SOCIAL */

.footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-social__link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.25s ease;
}

.footer-social__link:hover {
  color: #ffffff;
}

/* BOTTOM */

.footer-bottom {
  text-align: center;
  margin: 25px 0;
}

.footer-copyright {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

/* ========================   RESPONSIVE======================== */

/* Tablet */

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile */

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .footer-bottom {
    margin-top: 30px;
  }
}

/* CATEGORIES PAGE */

.pt-40 {
  padding-top: 10rem;
}

.category-hero-inner {
  padding: 4.5rem 0;
}

.category-hero-icon {
  font-size: 3.75rem;
}

.category-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .category-hero-title {
    font-size: 3rem;
  }
}

.category-hero-meta {
  display: inline-flex;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  background-color: rgba(139, 92, 246, 0.1);
  color: #c4b4ff;
}

.category-hero-description {
  max-width: 42rem;
  margin-top: 2rem;
  margin-inline: auto;
}

/* DETAIL PAGE */

.detail-page {
  padding-top: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

@media (min-width: 992px) {
  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .lg-col-span-3 {
    grid-column: span 3 / span 3;
  }
}

@media (min-width: 992px) {
  .lg-col-span-1 {
    grid-column: span 1 / span 1;
  }
}

/* GAME PLAYER */

.game-detail-player {
  background: #1E2A45;
  border-radius: 1rem;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.game-iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 600px;
}

@media (max-width: 768px) {
  .game-iframe-container {
    min-height: auto;
    aspect-ratio: 16/9;
  }
}

.game-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.game-detail-actions {
  background: #212233;
  padding: 0.5rem;
}

.game-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
}

.game-action-title {
  width: calc(100% - 235px);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
}

.game-actions-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-action {
  padding: 0.375rem 0.75rem;
  background: #2f3148;
  border-radius: 20px;
  color: white;
  text-decoration: none;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-like {
  border-radius: 20px 0px 0 20px;
  margin-right: -0.25rem;
}

.btn-dislike {
  border-radius: 0px 20px 20px 0px;
}

.btn-action:hover {
  transition: 0.3s;
  background: #3f415c;
}

.btn-like:hover, .btn-dislike:hover {
  background: #fdc700 !important;
}

.btn-like.active {
  background: #22c55e !important;
}

.btn-dislike.active {
  background: #ef4444 !important;
}

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

@media (max-width: 500px) {
  .game-actions {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .game-detail-actions {
    padding: 1rem;
  }
}

/* GAME-DETAIL-INFO */

.game-detail-info {
  padding: 1.5rem;
  border-radius: 1rem;
}

.breadcrumb a {
  text-decoration: none;
  color: #fdc700;
  font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: var(--bs-breadcrumb-divider, "»");
  color: #6a7282;
}

.game-title {
  font-size: 1.875rem;
  font-weight: 900;
}

.share {
  padding: 0.5rem 1rem;
  background: #2f3148;
  border-radius: 25px;
  border: none;
  font-weight: 700;
}

.share:hover {
  transform: scale(1.05);
  transition: 0.3s;
  background: #3f415c;
}

.game-meta {
  color: #d1d5dc;
  margin-top: 1rem;
}

.meta-item {
  display: flex;
  gap: 0.5rem;
  height: 29px;
  align-items: center;
}

.meta-label {
  color: #6a7282;
  width: 105px;
}

.text-yl {
  color: #fdc700;
}

.star svg:hover {
  transform: scale(1.1);
}

.rating {
  --percent: 0%;
  font-size: 20px;
  letter-spacing: 1px;
  background: linear-gradient( 90deg, #facc15 var(--percent), #ddd var(--percent) );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-xs {
  font-size: 0.75rem;
}

/* TAG */

.tag {
  color: #d1d5dc;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.375rem 1rem;
  background: #212233;
  border-radius: 0.375rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.tag:hover {
  background: #894b00;
  transition: 0.3s;
  transform: scale(1.1);
}

/* GAME-CONTENT TXT */

.game-content p {
  color: #989bae;
}

.game-content .heading {
  color: white;
  font-weight: 900;
  font-size: 1.25rem;
}

.game-content li, .game-content a {
  color: #989bae;
}

.game-related {
  padding: 1.5rem;
  border-radius: 1rem;
}

/* GRID GAME RELATED */

.game-related .grid-game {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .game-related .grid-game {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .game-related .grid-game {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* GRID GAME SIMILAR */

.similar-games {
  padding: 1.5rem;
  border-radius: 1rem;
}

.similar-games .grid-game {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .similar-games .grid-game {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .similar-games .grid-game {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* PAGE TEXT */

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
}

