/* Giochi.Gratis overrides on top of the Kizi template */
body { background: #0f75a5 !important; padding-bottom: 40px; font-family: "Droid Sans", "Noto Sans", Arial, sans-serif; }
a { text-decoration: none; }
.logo a.gg-logo {
  background: none; width: auto; height: 77px; top: 0; display: flex; flex-direction: column;
  justify-content: center; line-height: 1; text-indent: 0; font-family: Oswald, sans-serif;
}
.gg-logo .gg-l1 { font-size: 34px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.gg-logo .gg-l1 b { display: inline-block; text-shadow: 0 3px 0 #043856, 0 0 1px #043856; transition: transform .2s; }
.gg-logo:hover .gg-l1 b:nth-child(odd) { transform: translateY(-3px) rotate(-4deg); }
.gg-logo:hover .gg-l1 b:nth-child(even) { transform: translateY(2px) rotate(4deg); }
.gg-logo .gg-l2 { font-size: 15px; color: #fff; font-weight: 700; letter-spacing: 3px; margin-top: 3px; text-align: right; text-shadow: 0 2px 0 #043856; }
#header .menu { margin-left: 175px; }
#header .menu-ul > li { position: relative; }
#header .menupopup { z-index: 1000; }
.kizi-mobile-menu { z-index: 1000; }
.kizi-mobile-menu .gg-msearch { grid-column: 1 / -1; }
.kizi-mobile-menu .search-form { position: static !important; width: auto !important; height: auto !important; display: flex; gap: 6px; margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
.kizi-mobile-menu .search-form .txt { flex: 1; min-width: 0; height: 42px; border-radius: 8px; border: 0; padding: 0 12px; font-size: 15px; float: none; width: auto; }
.kizi-mobile-menu .search-form .btn { flex: 0 0 auto; width: auto; height: 42px; padding: 0 16px; border-radius: 8px; border: 0; background: #fc0; color: #043856; font: 700 15px Oswald, sans-serif; }

.post a, .post .game-item { position: relative; display: block; }
.post img { display: block; object-fit: cover; }
#content.gg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; max-width: 1400px; padding: 0 10px; }
.gg-badge { position: absolute; top: 6px; left: 6px; z-index: 3; background: #fc0; color: #043856; font: 700 10px/1 Oswald, sans-serif; padding: 3px 6px; border-radius: 4px; text-transform: uppercase; }
.gg-fav { position: absolute; top: 6px; right: 6px; z-index: 4; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(4,56,86,.75); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 12px; }
.post:hover .gg-fav, .gg-fav.on { display: flex; }
.gg-fav.on { color: #ff5a8a; }

.splide { position: relative; }
.splide:hover .splide__arrow { opacity: .55 !important; }
.splide__arrow:hover { opacity: .85 !important; }
.splide__arrow--prev svg { transform: scaleX(-1); }
.splide__list { display: flex; gap: 0; padding: 10px 0 !important; }
.splide .slider_item { flex: 0 0 auto; height: 130px; }
.splide-header a:hover { color: #fc0; }
.gg-rails { padding: 10px 0 0; }

.gg-loadmore { display: block; margin: 10px auto 30px; background: #043856; color: #fff; border: 2px solid #fff; border-radius: 30px; padding: 10px 30px; font: 700 16px Oswald, sans-serif; cursor: pointer; letter-spacing: 1px; }
.gg-loadmore:hover { background: #fc0; color: #043856; }
.gg-empty { color: #fff; text-align: center; font-size: 18px; padding: 60px 20px; }
.gg-empty a { color: #fc0; }
.category-section-top a { color: #fff; }
.gg-h1 { display: inline; color: #fc0; font-size: 22px; font-weight: 700; margin: 0; }
.gg-intro { color: #fff; font-size: 15px; margin: 8px auto 0; max-width: 760px; line-height: 1.5; }
.gg-seo-text { padding: 24px 28px; width: 90%; max-width: 1100px; margin: 20px auto 30px; color: #fff; line-height: 1.7; box-sizing: border-box; }
.gg-seo-text h2 { font: 700 22px Oswald, sans-serif; color: #fc0; margin-bottom: 10px; }
.gg-seo-text p { margin-bottom: 12px; font-size: 15px; }
.category-section-top a:hover { color: #fc0; }

.gg-ad { text-align: center; margin: 10px auto; overflow: hidden; }

.home-categories-tags-container { max-width: 1180px; margin: 20px auto; padding: 0 16px; }
.home-categories, .home-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.home-categories li a, .home-tags li a { display: inline-block; background: #043856; color: #fff; padding: 8px 14px; border-radius: 8px; font: 700 14px "Droid Sans", sans-serif; transition: background .2s, color .2s; }
.home-categories li a { background: #fc0; color: #043856; }
.home-categories li a:hover, .home-tags li a:hover { background: #fff; color: #0f75a5; }

#Gameinner.gg-list { max-width: 1180px; margin: 20px auto; padding: 20px; }
#Gameinner.gg-list .partners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.taglink .tag { display: flex; align-items: center; gap: 10px; width: 260px; background: #043856; border-radius: 10px; padding: 8px; color: #fff; transition: background .2s; }
.taglink:hover .tag { background: #0073dd; }
.taglink .tagpic img { width: 80px !important; height: 60px !important; object-fit: cover; border-radius: 8px; border: 2px solid #fff; display: block; }
.taglink .tagpic { width: auto !important; height: auto !important; }
.taglink .taginfo .pl { font: 700 16px Oswald, sans-serif; color: #fff; }
.taglink .taginfo .num { font-size: 12px; color: #85D2FF; margin-top: 3px; }

/* game page */
.gametitle { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.gamename { margin: 0; float: none !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.game-share { float: none !important; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.play-info-blue { display: flex; align-items: center; gap: 8px; color: #32bbf9; font-weight: 700; font-size: 12px; white-space: nowrap; }
.vote-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: none; border-radius: 14px; padding: 8px 8px; color: #32bbf9; cursor: pointer; font-weight: 700; transition: background .2s, color .2s; }
.vote-btn:hover { background: rgba(77,163,255,.12); color: #7fc0ff; }
.vote-btn.on { color: #fc0; }
.vote-btn[data-type="favorite"].on { color: #ff5a8a; }
.vote-btn i { font-size: 18px; }
.game-zoom { display: flex; align-items: center; margin-left: 4px; }
#game-box { width: 100%; height: 100%; }
#game-box iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
#gamePlay-content { cursor: pointer; overflow: hidden; }
.gamePlay-icon { position: absolute; left: 50%; margin-left: 0; top: 42%; width: 241px; height: 181px; transform: translate(-50%, -50%); border: 4px solid #fff; border-radius: 16px; background-repeat: no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .25s; }
#gamePlay-content:hover .gamePlay-icon { transform: translate(-50%, -50%) scale(1.04); }
.gamePlay-button { position: absolute; left: 50%; margin-left: 0; width: auto; height: auto; line-height: 1.2; top: calc(42% + 120px); transform: translateX(-50%); background: #fc0; color: #043856; font: 700 24px Oswald, sans-serif; padding: 10px 40px; border-radius: 40px; border: 3px solid #fff; box-shadow: 0 6px 0 #c79f00; letter-spacing: 1px; white-space: nowrap; animation: gg-pulse 1.6s ease-in-out infinite; }
.gamePlay-title { position: absolute; left: 0; right: 0; height: auto; line-height: 1.3; bottom: auto; top: calc(42% + 190px); color: #fff; font: 700 20px Oswald, sans-serif; text-shadow: 0 2px 4px rgba(0,0,0,.6); padding: 0 10px; }
@keyframes gg-pulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }
.relategames ul { list-style: none; }
.relategames li a { display: block; position: relative; }
.relategames li .post-name { bottom: 2px; font-size: 11px; line-height: 1.3; padding: 14px 0 4px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gg-related-right { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; width: 245px !important; }
.game-left .gg-related-right { margin-right: 10px; }
@media screen and (max-width: 1024px) { .game-left { display: none !important; } }
.game-walkthrough, #game-bottom { color: #fff; }
.game-tags ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.game-tags li a { display: inline-block; background: #043856; color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 13px; }
.game-tags li a:hover { background: #fc0; color: #043856; }
.d-text { line-height: 1.6; white-space: pre-line; }
.gg-instr { margin-top: 12px; color: #85D2FF; font-size: 14px; }
.flex-similar-games .gg-sim { display: flex; flex-wrap: wrap; gap: 0 16px; justify-content: center; margin-top: 12px; }
.flex-similar-games h2 { color: #fff; font: 700 22px Oswald, sans-serif; }
.gg-toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); background: #043856; color: #fff; border: 2px solid #fff; padding: 10px 20px; border-radius: 30px; z-index: 99999999999; font-weight: 700; }
.gg-mobile-play { display: none; }

.gg-static { max-width: 900px; margin: 30px auto; padding: 30px; color: #fff; line-height: 1.7; }
.gg-static h1 { font: 700 30px Oswald, sans-serif; margin-bottom: 16px; color: #fc0; }
.gg-static h2 { font: 700 20px Oswald, sans-serif; margin: 20px 0 8px; }
.gg-static p, .gg-static li { margin-bottom: 10px; }
.gg-static a { color: #fc0; }
.gg-static input, .gg-static textarea { width: 100%; border-radius: 8px; border: 0; padding: 10px; margin-bottom: 10px; font-size: 15px; color: #000; }

#BackTop { position: fixed; right: 20px; bottom: 50px; width: 50px; height: 50px; cursor: pointer; z-index: 100; }
.gg-mfooter { display: none; }

@media screen and (max-width: 960px) {
  #header .menu { margin-left: 0; }
}
@media screen and (max-width: 600px) {
  .logo a.gg-logo { height: 62px; width: auto; }
  .gg-logo .gg-l1 { font-size: 26px; }
  .gg-logo .gg-l2 { font-size: 12px; }
  .splide .slider_item { width: 120px; height: 90px; margin-right: 10px; }
  .splide .slider_item img { width: 120px; height: 90px; }
  .splide-header { margin-left: 1em; }
  .splide__track { padding: 0 10px !important; }
  #content.gg-grid { gap: 0 10px; }
  #game-bottom { display: block !important; margin: 10px; box-sizing: border-box; width: auto !important; }
  #game-bottom .thumb { display: none; }
  #game-bottom .fn-right, #game-bottom .game-tags { display: block !important; }
  .game-dec .description { width: 100% !important; margin: 0 !important; height: auto; float: none; }
  .game-dec { float: none !important; }
  .game-tags { width: auto !important; height: auto !important; }
  #gameDiv { height: auto; }
  #ava-game_container { height: 62vh; min-height: 380px; }
  .gamePlay-icon { width: 180px; height: 135px; }
  .gamePlay-button { top: calc(42% + 90px); font-size: 20px; }
  .gamePlay-title { top: calc(42% + 150px); }
  .gg-mobile-play { display: flex; justify-content: center; gap: 8px; padding: 8px; flex-wrap: wrap; }
  .gg-mfooter { display: block; text-align: center; padding: 20px 10px 60px; color: #fff; font-size: 13px; }
  .gg-mfooter a { color: #fff; margin: 0 6px; }
  body { padding-bottom: 0; }
  .taglink .tag { width: 100%; box-sizing: border-box; }
}
