/* Game24h palette and original artwork on the CloudArcade catalog. */
:root {
  --g24-ink: #173454;
  --g24-blue: #155989;
  --g24-turquoise: #35a9d1;
  --g24-paper: #f1f8fc;
  --g24-border: #c7dfef;
  --g24-warm: #a4480b;
  --g24-leaf: #2c6d37;
}

body#page-top {
  background-color: var(--g24-paper);
  color: var(--g24-ink);
}

#page-top > .container,
#mainNav > .container,
.nav-categories > .container {
  max-width: 1160px;
}

@media (min-width: 1200px) {
  body#page-top:has(#home-game-container) {
    background: var(--g24-paper) url("../images/game24h/bg.jpg") center 76px / auto no-repeat;
  }
}

#mainNav {
  background: var(--g24-turquoise) url("../images/game24h/header-bg.png") repeat-x center top / auto calc(100% + 3px);
  padding: 9px 12px;
}

#mainNav .navbar-brand {
  padding: 0;
}

.site-logo {
  display: block;
  width: clamp(145px, 24vw, 248px);
  height: auto;
  padding: 0;
}

nav.greedy button:focus-visible {
  outline: 2px solid var(--g24-ink);
  outline-offset: 2px;
}

#mainNav .game24h-top-links { margin-inline-start: auto; }

#mainNav .navbar-nav li.nav-item a.nav-link {
  color: #fff;
  border-radius: 999px;
}
#mainNav .navbar-nav li.nav-item a.nav-link:hover,
#mainNav .navbar-nav li.nav-item a.nav-link:focus-visible {
  background-color: #262653;
  text-decoration: none;
}

.search-bar .form-control { border-color: #268cb4; }
.search-bar .btn-search {
  width: 42px;
  background: var(--g24-blue);
  border-color: var(--g24-blue);
}

.nav-categories {
  background: #eff9ff;
  box-shadow: none;
  padding: 5px 0;
}

.greedy .list-categories li {
  margin: 4px 5px 4px 0;
  padding: 7px 12px;
  border: 1px solid #acd8ec;
  border-radius: 8px;
  background: #d5effb;
  color: #154a69;
  font-size: .92rem;
  font-weight: 700;
}

.greedy .list-categories a:nth-child(3n + 2) li {
  background: #e2f3cc;
  border-color: #c6e1a8;
  color: #2b561d;
}

.greedy .list-categories a:nth-child(3n) li {
  background: #fff0c3;
  border-color: #efd589;
  color: #654415;
}

.greedy .list-categories a:hover li,
.greedy .list-categories a:focus-visible li {
  background: var(--g24-blue);
  border-color: var(--g24-blue);
  color: #fff;
}

nav.greedy button {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid #abd2e6;
  border-radius: 8px;
  color: #154a69;
  background: #e2f3fb;
  font-weight: 700;
  font-size: .875rem;
}

nav.greedy button:hover,
nav.greedy button[aria-expanded="true"] {
  background: #d1eaf7;
}

nav.greedy button::after {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0 0 0 .35rem;
  background: #c1e1f1;
  color: #154a69;
  font-size: .75rem;
}

nav.greedy ul.hidden-links {
  z-index: 20;
  max-height: min(57vh, 360px);
  overflow: auto;
}

#home-game-container,
.game-container-archive,
.game-container-search,
.bottom-container {
  background: #fff;
  border: 1px solid var(--g24-border);
  border-radius: 15px;
  padding: clamp(12px, 2.3vw, 24px);
  box-shadow: 0 4px 16px #215d7b0c;
}

#home-game-container { margin-top: 20px; }

h2.item-title, h3.item-title {
  color: #fff;
  background: var(--g24-blue);
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

#home-game-container > .item-title:nth-of-type(2) { background: var(--g24-warm); }
#home-game-container > .item-title:nth-of-type(3) { background: var(--g24-leaf); }
.bottom-container > .item-title:first-child { margin-top: 0; }

.list-game {
  background: #fff;
  border: 1px solid #dce9f1;
  border-radius: 9px;
  box-shadow: 0 2px 5px #24557914;
}
.item-grid a:hover { text-decoration: none; }
.item-grid a:hover .list-game { border-color: #5ca5cc; }
.list-thumbnail img { display: block; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }

.list-title {
  color: var(--g24-ink);
  font-weight: 700;
}

.btn-load-more-games,
.pagination .active .page-link {
  background: var(--g24-blue);
  border-color: var(--g24-blue);
}

.footer { background: #217faa; }
.copyright { background: #144b71; }

@media (max-width: 991.98px) {
  #mainNav .navbar-brand { margin-right: auto; }
  #mainNav .user-avatar { margin-inline: 0; }
  #mainNav .search-bar { order: 2; width: 100%; margin-inline: 0; }
  #mainNav #navb { margin: 0; }
  #mainNav #navb .navbar-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 575px) {
  .item-grid { padding-inline: 5px; }
  .list-game { margin-bottom: 10px; }
  .list-title { font-size: .875rem; }
}


.catalog-intro { margin-bottom: 18px; }
.catalog-intro h1 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
.catalog-intro p { max-width: 75ch; margin-bottom: .5rem; }
.catalog-count { font-size: .9rem; }
main .seo-breadcrumb {
  margin: 0 0 12px;
  color: #506477;
  font-size: .82rem;
  line-height: 1.45;
}
main .seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
main .seo-breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
main .seo-breadcrumb li + li::before { content: "›"; margin-inline-end: .5rem; color: #64798b; }
main .seo-breadcrumb a { color: #285c80; text-decoration: none; }
main .seo-breadcrumb a:is(:hover, :focus-visible) { text-decoration: underline; }
main .seo-breadcrumb [aria-current="page"] { font-weight: 600; }
.play-main > .seo-breadcrumb { margin-bottom: 0; }

.player-menu { position: relative; flex: none; margin-inline-start: 8px; z-index: 35; }
.player-menu summary {
  display: grid; place-items: center; width: 44px; height: 44px;
  cursor: pointer; list-style: none; border: 2px solid #d1f1ff;
  border-radius: 50%; background: #e6f6ff;
}
.player-menu summary::-webkit-details-marker { display: none; }
.player-menu summary img { border-radius: 50%; object-fit: cover; }
.player-menu[open] summary, .player-menu summary:focus-visible { outline: 2px solid #1466a5; outline-offset: 2px; }
.player-menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  display: grid; width: min(240px, 88vw); padding: 6px;
  border: 1px solid #c3dcec; border-radius: 17px;
  background: #fff; box-shadow: 0 9px 28px #174f782b;
  color: #1a3550; text-align: start;
}
.player-menu-identity { display: grid; gap: 2px; padding: 10px 12px; margin-bottom: 4px; background: #edf7fe; border-radius: 12px; overflow-wrap: anywhere; }
.player-menu-identity span { color: #50677c; font-size: .82rem; }
.player-menu-panel a { padding: 10px 12px; min-height: 44px; border-radius: 8px; color: #194363; font-weight: 600; text-decoration: none; }
.player-menu-panel a:is(:hover,:focus-visible) { background: #eef7ff; color: #0754a8; }
.player-menu-panel .player-menu-logout { color: #953844; }
