body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #8296a5;
  text-align: left;
  background-color: #080618;
}

*,
::before,
::after {
  box-sizing: border-box;
}

a {
  color: #6c9cc6;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: #9cc5e8;
}

/*
Grid Start
True Masonry by balazs_sziklai
https://codepen.io/balazs_sziklai
*/

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-gap: 10px;
  grid-auto-rows: minmax(140px, auto);
  grid-auto-flow: dense;
}

.span-2 {
  grid-column-end: span 2;
  grid-row-end: span 2;
}

.span-3 {
  grid-column-end: span 3;
  grid-row-end: span 3;
}

/* End Grid */

.install-body,
.login-body {
  background-color: #080618;
}

.install-form,
.login-form,
.register-form {
  background-color: #120e31;
}

.site-content {
  background-color: #120e31;
  /*width: 100%;*/
}

.site-container {
  /*width: 100% !important;*/
  max-width: none !important;
}

.container {
  /*width: 100% !important;*/
  max-width: none !important;
  padding: 0 !important;
}

.top-nav {
  font-weight: bold;
  background-color: #120e31;
  padding: 0;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-expand-lg {
  flex-flow: row nowrap;
  justify-content: flex-start;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

a.nav-link {
  color: #d1dbe3 !important;
}

li.nav-item:hover {
  background-color: #29254f;
  border-radius: 10px;
}

.text-white {
  color: #fff !important;
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
  display: block;
}

.copyright {
  background-color: #120e31;
}

.text-center {
  text-align: center !important;
}

.footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-color: #29254f;
}

img.small-thumb {
  width: 100%;
  border-radius: 10px;
}

.list-content {
  padding: 0;
}

.list-game {
  border-radius: 5px;
}

.grid-layout .list-title {
  overflow: hidden;
  margin: .35714em;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  position: relative;
  bottom: 65px;
  margin-bottom: -53px;
  opacity: 0;
  font-weight: bold;
}

@media(hover: hover) and (pointer: fine) {
  .grid-layout .list-game:hover > .list-title {
    opacity: 1;
    transition: all 0.5s ease;
  }

  .list-thumbnail:hover {
    opacity: 0.5;
    transition: all 0.5s ease;
  }
}

.grid-wrapper {
  margin-bottom: 30px;
  padding: 0 !important;
}

.game-container {
  margin: 0 !important;
  padding: 0 !important;
}

.list-category {
  position: absolute;
  bottom: 5px;
}

h1.single-title {
  font-size: 1.75rem;
}

.single-title {
  margin-top: 20px;
  padding-bottom: 10px;
  font-weight: bold;
  color: #cbdbe3;
}

.single-info-container {
  padding-bottom: 5px;
  border-bottom: 1px solid #29254f;
  margin-bottom: 20px;
}

.single-icon {
  background-color: #29254f;
  margin-right: 10px;
  padding: 8px 16px;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 10px;
}

.social-share {
  position: relative;
  top: -2px;
  margin-right: 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
}

.sidebar {
  display: block;
}

.sidebar .list-game,
.footer .list-game {
  margin-bottom: 8px;
}

.page-title {
  font-weight: bold;
  margin-top: 20px;
}

h1.singlepage-title {
  font-size: 1.75rem;
}

.singlepage-title {
  padding-bottom: 10px;
  font-weight: bold;
}

.page-content,
.game-content {
  margin-bottom: 30px;
}

.site-logo {
  padding: 5px;
}

.nav-categories {
  background-color: #29254f;
  white-space: nowrap;
}

h3.item-title {
  font-weight: bold;
  font-size: 1.3rem;
  margin: 20px 0;
  display: inline-block;
  background-color: #29254f;
  color: #cbdbe3;
  padding: 10px 20px;
  border-radius: 10px;
}

.item-title i,
.single-icon i,
h4 i {
  margin-right: 9px;
}

ul.list-categories {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.list-categories li {
  float: left;
  display: block;
  text-align: center;
  padding: 8px 16px;
  text-decoration: none;
}

.list-categories li:hover {
  background-color: #6190bf;
  color: #fff;
}

nav.greedy {
  position: relative;
  display: flex;
  align-items: center;
}

nav.greedy button {
  padding: 6px 16px;
  text-decoration: none;
  border: none;
  background-color: #6190bf;
  color: #fff;
}

nav.greedy button.hidden {
  transition: none;
  border-right: 0.5rem solid #b6b6b6;
  width: 0;
  padding: 0;
  overflow: hidden;
  display: none;
}

nav.greedy button::after {
  content: attr(count);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: #ab31d7;
  color: #f2f2f2;
  border-radius: 50%;
  font-size: 14px;
  line-height: 14px;
  margin-left: 1rem;
  margin-right: calc(-1rem + -8px);
}

ul.links {
  display: flex;
  flex: 1;
  overflow: hidden;
}

ul.links li {
  flex: none;
}

ul.hidden-links {
  position: absolute;
  background: #fff;
  right: 0;
  top: 100%;
  z-index: 1;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: .25rem;
  padding-left: 0;
  box-shadow: 0 4px 12px 0 rgba(43, 43, 43, 0.1);
}

ul.hidden-links li {
  padding: 1rem;
  min-width: 220px;
}

ul.hidden-links a {
  color: #2c3e50;
}

ul.hidden-links.hidden {
  display: none;
}

.cat-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cat-link {
  padding: 4px 14px;
  background-color: #29254f;
  margin-right: 8px;
  margin-top: 8px;
  border-radius: 8px;
}

h4.widget-title {
  font-weight: bold;
  padding-bottom: 10px;
  font-size: 1.3rem;
  border-bottom: 1px solid #29254f;
  margin-bottom: 20px;
  color: #cbdbe3;
}

.sidebar .row {
  margin-right: 0;
  margin-left: 0;
}

.game-tag-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag-item {
  padding: 4px 14px;
  background: #29254f;
  margin-right: 8px;
  margin-top: 8px;
  border-radius: 8px;
}

.color-red {
  color: #bb4d4d;
}

i.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.load-more-games-wrapper {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* NEW COMMENT SYSTEM */

#tpl-comment-section {
  margin-top: 30px;
  margin-bottom: 20px;
}

#comment-form {
  display: flex;
  margin-bottom: 30px;
  border-bottom: 1px solid #29254f;
}

.comment-profile-avatar {
  margin-right: 20px;
}

.comment-profile-avatar img {
  border-radius: 50%;
  float: left;
  width: 3.6rem;
  height: 3.6rem;
  max-width: 50px;
  max-height: 50px;
}

.comment-form-wrapper {
  background: #332F5B;
  margin-bottom: 30px;
  box-shadow: 0px 4px 8px 0px rgba(50, 50, 50, 0.1);
  border: 1px solid #6F69A4;
  border-radius: 12px;
  padding: 15px;
  width: 100%;
}

textarea.tpl-comment-input {
  background: #332F5B;
  color: #8296a5;
}

textarea.tpl-comment-input:focus {
  background: #332F5B;
  color: #8296a5;
}

.comment-form-wrapper textarea {
  padding: 0;
  border: 0;
}

.post-comment-btn-wrapper {
  float: right;
  margin-top: 15px;
}

textarea#comment-input {
  height: 100px;
}

.user-comment-wrapper {
  display: flex;
}

.tpl-user-comment {
  border-bottom: 1px solid #29254f;
  margin-bottom: 30px;
}

.tpl-comment-children .tpl-user-comment:last-child {
  border-bottom: none;
}

img.tpl-user-comment-avatar {
  border-radius: 50%;
  float: left;
  width: 3.6rem;
  height: 3.6rem;
  max-width: 50px;
  max-height: 50px;
  margin-right: 20px;
}

.tpl-comment-children img.tpl-user-comment-avatar {
  max-width: 40px;
  max-height: 40px;
}

.tpl-comment-author {
  font-weight: bold;
}

.tpl-user-comment .comment-content {
  margin-bottom: 20px;
  width: 100%;
}

.tpl-comment-timestamp {
  margin-top: 3px;
  font-size: 15px;
  color: #938fb5;
}

.tpl-comment-text {
  margin-top: 13px;
  white-space: unset;
}

.comment-actions {
  margin-top: 15px;
}

.comment-action-right {
  float: right;
}

.comment-action-left {
  float: left;
}

/* Navbar */

.navbar-nav .nav-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* LTR / RTL */

[dir="rtl"] .wgt-list-game-vertical .wgt-list-content {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .navbar,
[dir="rtl"] .container {
  direction: rtl;
}

[dir="rtl"] #toggler {
  float: left;
}

[dir="rtl"] .navbar-brand {
  margin-right: auto;
}

[dir="rtl"] .nav-categories,
[dir="rtl"] .nav-categories .container {
  direction: rtl;
}

[dir="rtl"] #home-game-container,
[dir="rtl"] .bottom-container,
[dir="rtl"] .sidebar .widget-title,
[dir="rtl"] .info-the-game,
[dir="rtl"] .tpl-comment-input,
[dir="rtl"] .user-page,
[dir="rtl"] .footer,
[dir="rtl"] .singlepage-post,
[dir="rtl"] .page-title,
[dir="rtl"] .blog-list,
[dir="rtl"] .game-container-archive,
[dir="rtl"] .game-container-search,
[dir="rtl"] .game-container-tag {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .comment-date {
  text-align: left !important;
}

[dir="rtl"] .single-game,
[dir="rtl"] .single-page {
  direction: rtl;
}

[dir="rtl"] .item-title i,
[dir="rtl"] .single-icon i,
[dir="rtl"] h4 i {
  margin-left: 9px;
}

[dir="rtl"] .comment-profile-avatar {
  margin-left: 20px;
}

[dir="rtl"] .nav-categories .hidden-links {
  left: 0;
  right: unset;
}

[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0;
  margin-right: 0.255em;
}

[dir="rtl"] nav.greedy button::after {
  margin-left: calc(-1rem - 10px);
  margin-right: 1rem;
}

[dir="rtl"] ul.hidden-links {
  text-align: right;
  padding-inline-start: 0;
}

[dir="rtl"] .nav-item .dropdown-menu {
  text-align: right;
}

[dir="rtl"] .dropdown-submenu .dropdown-menu {
  right: 100%;
  left: auto;
}

/* Multiple dropdown */

.nav-item.dropdown .dropdown-menu {
  position: absolute;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -9px;
  margin-left: -1px;
}

.dropdown-submenu-left .dropdown-menu {
  right: 100%;
  left: auto;
}

.dropdown-menu[data-bs-popper] {
  left: unset !important;
}

@media (min-width: 577px) {
  .single-info-container .header {
    display: flex;
    gap: 30px;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    max-width: 60%;
    margin-right: 0;
  }

  .user-avatar {
    margin-left: 0;
  }

  .nav-item.dropdown .dropdown-menu {
    position: unset;
  }

  .dropdown-submenu .dropdown-menu {
    position: unset;
    margin-top: 12px;
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .wgt-list-game-vertical .wgt-list-category,
  .wgt-list-game-vertical .wgt-list-title {
    color: #6c9cc6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 30ch;
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .wgt-list-game-vertical .wgt-list-category,
  .wgt-list-game-vertical .wgt-list-title {
    color: #6c9cc6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 15ch;
  }
}

/* Search */

input.search {
  background-color: #332f5b;
  border-color: unset;
}

.btn-search {
  background-color: #6f69a4;
  border-radius: 0;
}

.stats-vote {
  text-align: right;
  margin-top: 20px;
}

.stats-vote i {
  font-size: 30px;
  padding: 6px;
}

.stats-vote i:hover {
  color: #1abc9c;
  cursor: pointer;
}

.header-left {
  display: inline-block;
}

.header-right {
  display: inline-block;
  flex-shrink: 0;
}

.vote-status {
  font-size: 18px;
  font-weight: bold;
}

/* Post list */

.post-item {
  margin-bottom: 3rem !important;
}

.post-media {
  display: flex;
  align-items: flex-start;
}

.blog-list .post-thumb {
  width: 120px;
  height: 120px;
  margin: 10px;
}

.post-thumb {
  display: flex;
  margin-right: 1rem;
}

.post-thumb img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.post-title {
  margin-bottom: .25rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.post-meta .date {
  color: #8f8f8f;
  font-size: 0.8125rem;
}

.post-meta {
  color: #8f8f8f;
}

.blog-list {
  margin-top: 30px;
}

@media (max-width: 576px) {
  .blog-list .post-thumb {
    display: none;
  }
}

.dropdown-menu {
  position: absolute;
  background: #fff;
  background-clip: border-box;
  right: 0;
  top: 100%;
  z-index: 2;
  text-align: left;
  list-style: none;
  font-weight: normal;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: .25rem;
  padding-left: 0;
  box-shadow: 0 4px 12px 0 rgba(43, 43, 43, 0.1);
  margin-top: 10px;
}

.dropdown-icon {
  margin-left: 10px;
}

.nav-item {
  position: relative;
}

.nav-item-child {
  padding: 0.6rem 1rem;
  color: #2c3e50;
}

.nav-link-child {
  color: #2c3e50;
}

.nav-item-child:hover {
  background-color: #cddbe8;
}

/* =========================================================
   FINAL RESPONSIVE WIDTH SYSTEM
   ========================================================= */

/* Full page background stays edge-to-edge */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Outer site wrapper stays full width */
.site-container,
.site-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/*
  Important:
  Bootstrap .container is used throughout the theme.
  Keep the background full width, but make the actual page
  content 10px away from both viewport edges.
*/
.site-content > .container,
.site-container > .container,
body > .container {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Header content */
.top-nav .container,
.top-nav > .container {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Category navigation content */
.nav-categories .container,
.nav-categories > .container {
  width: calc(100% - 20px) !important;
  max-width: none !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Main content */
.game-container,
#home-game-container {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* All inner page content */
.single-game,
.single-page,
.game-container-archive,
.game-container-search,
.game-container-tag,
.page-content,
.game-content,
.blog-list {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Grid must never exceed its parent */
.grid-layout,
.grid-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Images cannot create horizontal overflow */
img,
video,
iframe {
  max-width: 100%;
}

/* Responsive */
@media (max-width: 1440px) {
  .site-container,
  .site-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .site-content > .container,
  .site-container > .container,
  body > .container,
  .top-nav .container,
  .nav-categories .container {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 576px) {
  .site-content > .container,
  .site-container > .container,
  body > .container,
  .top-nav .container,
  .nav-categories .container {
    width: calc(100% - 20px) !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}






/* =========================================================
   FINAL FIX — HEADER + NAV + ALL INNER PAGES
   ========================================================= */

html,
body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* =========================================================
   HEADER
   ========================================================= */

body#page-top .top-nav {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

body#page-top .top-nav .navbar {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* =========================================================
   CATEGORY NAV
   ========================================================= */

body#page-top .nav-categories {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

body#page-top .nav-categories nav {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* =========================================================
   MAIN SITE
   ========================================================= */

body#page-top .site-container,
body#page-top .site-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* =========================================================
   ALL MAIN PAGE CONTAINERS
   ========================================================= */

body#page-top .site-content .container {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* =========================================================
   GAME / SINGLE PAGE CONTENT
   ========================================================= */

body#page-top .game-container,
body#page-top .single-game,
body#page-top .single-page,
body#page-top .page-content,
body#page-top .game-content,
body#page-top .game-container-archive,
body#page-top .game-container-search,
body#page-top .game-container-tag {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* =========================================================
   GRID
   ========================================================= */

body#page-top .grid-layout,
body#page-top .grid-wrapper {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* =========================================================
   IMAGES / MEDIA
   ========================================================= */

body#page-top img,
body#page-top video,
body#page-top iframe {
    max-width: 100%;
}

/* =========================================================
   REMOVE BOOTSTRAP FIXED MAX WIDTH
   ========================================================= */

body#page-top .container,
body#page-top .container-sm,
body#page-top .container-md,
body#page-top .container-lg,
body#page-top .container-xl,
body#page-top .container-xxl {
    max-width: none !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1440px) {

    body#page-top .top-nav,
    body#page-top .nav-categories {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body#page-top .site-content .container {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}


/* Category title - full width and left aligned */
.category-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}