/*
Theme Name: Oyunoyna
Author: oyunoyna
Description: fast and clean html5 game portal theme.
Version: 1.9
*/
:root{--color-primary: #008c93;}
/*init*/
body {display: flex;flex-direction: column;min-height: 100vh;margin: 0;padding: 0;font-family: Arial, sans-serif;font-style: normal;background: #f9f9f9;color: #222;font-size: 1rem;line-height: 1.5rem;}
main {flex: 1;}
.custom-logo-link{line-height:0;}
.ads{display:flex;justify-content:center;}
.ad-header-one-row{display:block;width:100%;height:247px;}
.ad-header{display:block;width:100%;min-height:487px;}
.ad-desktop {display: block;width:100%;}
.ad-mobile {display: none;width:100%;}
@media (max-width: 768px) {
.ad-desktop {display: none;}
.ad-mobile {display: block;}
.ad-header{height:auto;min-height:828px;}
}
table {width: 100%;border-collapse: collapse;margin-bottom: 1rem;font-size: 1rem;color: #333;overflow-x: auto;display: block;}
thead {background-color: #f4f4f4;}
th, td {padding: 0.75rem;text-align: left;border: 1px solid #ddd;min-width: 120px;}
a {color: var(--color-primary);text-decoration: none;}
h1 {font-size: 1.5rem;line-height: 2rem;}
h2 {font-size: 1.3rem;line-height: 1.8rem;}
.container {display:block;position:relative;max-width: 1200px;margin: 0 auto;padding:0 10px;}
.container-s {display:block;position:relative;max-width: 900px;margin: 0 auto;padding:0 10px;}
.grid {display: grid;grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));gap: 7px;margin:15px 0;justify-content:center;grid-auto-rows: auto;}
@media (max-width: 768px) {
.grid {grid-auto-rows: auto;}
}
@media (max-width: 480px) {.grid {grid-template-columns: repeat(1, 1fr);grid-auto-rows: auto;}}
/*
.grid {display:flex;flex-wrap:wrap;gap:7px;margin:15px 0;justify-content:center;}
*/
/*header*/
header{background-color: var(--color-primary);}
.header {display: flex;align-items: center;justify-content: space-between;color: white;position: relative;}
.header .logo {font-weight: bold;font-size: 1.25rem;}
.logo a {display:block;}
.logo img{-webkit-filter: brightness(0) invert(1);filter: brightness(0) invert(1);width:105px;height:40px;}
.header-search {display: block;width:100%;background: #f1f5f9;color: #000;z-index: 9999;}
.header-search form{position: relative;}
.header-search input{width:100%;height: 100%;color:#000;outline: 0;padding: .8rem 0;font-size: 1.3rem;font-weight: 400;line-height: 1.5;background-color: transparent;border:0;margin:0;}
.header-search button{position:absolute;top:0;right:0;height: 100%;padding: 0 1rem;cursor: pointer;font-size: .875rem;font-weight: 400;line-height: 1.5;background-color: #fff;border:0;margin: 0;}
.logo-link{color:#fff;font-size:30px;font-weight:600;}
/*new menu*/
.menu {list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; font-size: 1rem;}
.menu li {position: relative;}
.menu > li {border-right: 1px solid #005c61;}
.menu > li:last-child {border-right: 0;}
.menu a {display: block; font-weight: 600;font-size: 17px;padding: 10px 20px; color: #fff; text-decoration: none; position: relative;}
.menu a:hover {background: #005c61;}
.menu li ul {list-style:none;padding:0;display: block; position: absolute; top: 100%; right: 0; background: #001830; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.98); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; z-index: 999; pointer-events: none;}
.menu li:hover > ul {opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto;}
.menu li ul li ul {top: 0; left: 100%;}
.menu li.menu-item-has-children > a::after {content: '▼'; position: absolute; right: 10px; font-size: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; transition: transform 0.3s ease;}
.menu li:hover > a::after {transform: translateY(-50%) rotate(180deg);}
.menu-toggle {display: none; background: none; border: none; font-size: 17px; font-weight: 600; color: white; cursor: pointer; padding: 0;}
.menu-toggle span {font-size: 1.5rem;}
.menu-close {display: none; background: #001830; color: #fff; border: none; padding: 15px 20px; font-size: 18px; cursor: pointer; width: 100%; text-align: left;}
@media (max-width: 768px) {
.menu-toggle {display: block;}
.mobile-nav {position: fixed; top: 0; right: -100%; width: 250px; height: 100%; background: #1e293b; transition: right 0.3s ease; z-index: 1000; overflow-y: auto; display: flex; flex-direction: column;}
.mobile-nav.open {right: 0;}
.menu {flex-direction: column; font-size: 1rem;}
.menu-close {display: block;}
.menu li ul {position: relative; list-style: none; padding: 0; font-size: 0.9rem; top: 0; left: 0; transform: none; background: #001830; display: none; opacity: 1; visibility: visible; pointer-events: auto;}
.menu li ul li ul {position: relative; top: 0; left: 0; margin-left: 15px;}
.menu li.open > ul {display: block;}
.menu li.menu-item-has-children > a::after {content: '▶'; position: absolute; right: 10px; font-size: 10px; top: 50%; transform: translateY(-50%);}
.menu li.open > a::after {transform: translateY(-50%) rotate(90deg);}
.menu li:hover > ul {opacity: 1; visibility: visible; transform: none; pointer-events: auto;}
}
/*footer*/
footer{background: #f1f5f9;}
.footer-inner{font-size: 0.875rem;display:flex;flex-direction: row;align-items: center;justify-content: space-between;}
.footer-nav{list-style: none;padding: 0;}
.footer-nav li{float:left;}
.footer-nav li a{padding:0 10px;}
.footer-nav li:first-child a{padding-left:0;}
/*gamebox*/
.gamebox-meta{display: flex;align-items: center;justify-content: space-between;background: #fff;padding: 10px;}
.gamebox-meta-col-1{display:flex;align-items: center;}
.gamebox-meta-title{display: -webkit-box;font-weight: 600;font-size: 20px;overflow: hidden;-webkit-line-clamp: 1;-webkit-box-orient: vertical;}
.gamebox-meta-author{display: -webkit-box;font-size:14px;color:#858585;overflow: hidden;-webkit-line-clamp: 1;-webkit-box-orient: vertical;}
/*
.game {aspect-ratio: 1 / 1;width: 100%;border-radius: 16px;overflow: hidden;position: relative;box-shadow: 0px 7px 10px 4px #5d6b844d;display: block;transition: transform .6s cubic-bezier(.25,.1,.25,1);}
.game:hover{transform: scale(1.04) translateY(-4px);transition-duration: .3s;}
.game::before {content: "";position: absolute;inset: 0;border-radius: 25px;transition: box-shadow 0.3s ease;z-index: 2;pointer-events: none;}
.game:hover::before {box-shadow: 0 -38px 30px 3px #00000063 inset;}
.game img {object-fit: cover;object-position: center;width: 100%;height: 100%;display: block;position: relative;z-index: 1;}
.game-title {position: absolute;background-color: rgba(0, 0, 0, 0.6);bottom: 0;left: 0;right: 0;padding: 10px;color: white;font-size: .8rem;text-align: center;opacity: 1;z-index: 3;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
.game:hover .game-title {opacity: 1;}
*/
/*
.game {flex:1 1 250px;max-width:calc(100% - 14px);height:230px;box-sizing:border-box;background-color:#fff;}
@media (max-width:768px){.game{height:auto;}}
@media (max-width:480px){.game{flex:1 1 100%;max-width:100%;height:auto;}}
*/
.game {box-sizing: border-box;width: 100%;position: relative;display: block;background-color:#fff;overflow:hidden;}
.game-img {display:block;position:relative;width:100%;aspect-ratio: 1.91 / 1;background-color:#f5f5f5;overflow:hidden;}
.game-img img {object-fit: cover;object-position: center;width:100%;height:100%;display: block;position: relative;z-index: 1;}
/*
.game-title {padding-top: 5px;color: #000;font-size: 17px;font-weight: 600;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
.game-title-new {margin: 8px 4px 0 4px;color: #000;font-size: 17px;line-height:1.2;font-weight: 600;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;}
*/
.game-body {display:block;position:relative;padding:7px;}
.game-title {color: #000;font-size: 17px;line-height: 1.2;font-weight: 600;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;width: 100%;}
.game-desc {font-size:12px;line-height:17px;color:#000;display:block;}
.game-cat {margin-top:10px;color: #000;font-size: .8rem;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
.single-cats{display: block;margin-top:5px;}
.single-tags{display: block;margin-top:5px;}
.single-tags a{display: inline-block;margin-right:5px;}
/*comments*/
.comments-area {margin-top: 10px;background: #fff;padding: 20px;border-radius: 8px;border: 1px solid #ccc;}
.comments-area h2.comments-title {font-size: 1.5rem;margin:0 0 15px 0;padding: 0;color: #333;}
.comment-list {list-style: none;padding: 0;margin: 0;}
.comment-list .comment {margin-bottom: 20px;padding-bottom: 15px;background-color: #f1f5f9;padding: 10px;border-radius: 5px;}
.comment-author {font-weight: bold;font-size: 16px;color: #1e293b;}
.comment-metadata {font-size: 0.85rem;margin-left:10px;color: #666;}
.comment-text {display: block;margin: 0;padding: 0;color: #444;}
.comment-list .children {list-style: none;border-left: 2px solid #ccc;padding:0;margin-left: 30px;}
.comment-list .children li {background-color: #f9f9f9;padding: 10px;border-radius: 5px;}
.comment-reply-link {font-size: 0.85rem;color: #0d6efd;text-decoration: none;}
.comment-reply-link:hover {text-decoration: underline;}
#reply-title {font-size: 1.25rem;margin-bottom: 10px;}
.comment-form textarea, .comment-form input {width: 100%;border: 1px solid #ccc;border-radius: 4px;font-size:.8rem;box-sizing: border-box;}
.comment-form textarea{padding:10px;}
.comment-form input{padding:10px;}
#wp-comment-cookies-consent{width:auto;margin-right:5px;}
.comment-form .form-submit input {background: #1e293b;color: #fff;padding: 10px 20px;font-weight: 500;font-size:.8rem;display: block;width:auto;border: none;border-radius: 4px;cursor: pointer;}
.comment-form .form-submit input:hover {background: #0f172a;}
.comment-awaiting-moderation {display: block;margin-bottom: 10px;color: #9501c4;font-style: italic;}
/*pagination*/
.pagination{display:table;margin: 15px auto;}
.page-numbers {display: inline-block;margin: 0 4px;padding: 8px 16px;background: white;border: 1px solid #e5e7eb;border-radius: 16px;color: var(--color-primary);text-decoration: none;}
.pagination .current {background: var(--color-primary);color: white;font-weight: bold;}
/*misc*/
.iframe-wrapper {position: relative;width: 100%;max-height: 100vh;background: #000;border: 0;margin: 0;padding: 0;overflow: hidden;}
.iframe-placeholder {position: absolute;inset: 0;display: flex;align-items: center;justify-content: center;z-index: 2;flex-direction: column;}
.placeholder-bg {position: absolute;inset: 0;width: 100%;height: 100%;object-fit: cover;filter: blur(10px);z-index: -1;}
.play-btn {background: rgba(0, 0, 0, 0.7);color: white;font-size: 25px;padding: 12px 24px;border: none;border-radius: 10px;cursor: pointer;z-index: 2;transition: background 0.3s;}
.play-btn:hover {background: rgba(255, 255, 255, 0.2);}
.fullscreen {position: fixed !important;top: 0;left: 0;width: 100vw !important;height: 100vh !important;z-index: 1055;background: #000;}
.exit-fullscreen-btn{z-index: 1060;width: 44px;height: 40px;position: absolute;top: 5px;left: 5px;font-size: 19px;background: rgb(0 0 0 / 60%);color: #fff;border: none;border-radius: 5px;cursor: pointer;}
.gamebox-meta-col-2{display: flex;align-items: center;}
.fs-button{display:flex;font-size:30px;border:0;color: var(--color-primary);background: none;cursor: pointer;}
.vote-buttons {display: flex;gap: 10px;align-items: center;margin-right:10px;}
.vote-btn {padding: 6px 12px;border: none;border-radius: 4px;cursor: pointer;font-size: 14px;color: #fff;font-weight: bold;display: flex;align-items: center;gap: 5px;transition: background-color 0.3s ease;}
.vote-btn[data-vote="like"] {background-color: #28a745;}
.vote-btn[data-vote="like"]:hover:not(:disabled) {background-color: #218838;}
.vote-btn[data-vote="unlike"] {background-color: #dc3545;}
.vote-btn[data-vote="unlike"]:hover:not(:disabled) {background-color: #c82333;}
.vote-btn:disabled {opacity: 0.6;cursor: not-allowed;}
.total-votes {font-size: 14px;font-weight: 500;color: #555;}
.alphabet-filter {display: grid;grid-template-columns: repeat(auto-fill, minmax(30px, 30px));gap: 10px;margin:20px 0;place-items: center;}
.alphabet-filter a {display: block;padding: 5px 10px;background: #f3f3f3;color: #333;text-decoration: none;border-radius: 4px;}
.alphabet-filter a:hover {background: var(--color-primary);color: #fff;}
.breadcrumbs{padding: 15px 0;font-size: 14px;}
.cf-turnstile { margin: 1em 0; }
.my-15{margin-top:15px;margin-bottom:15px;}
.my-10{margin-top:10px;margin-bottom:10px;}
.mt-15{margin-top:15px;}
.mb-15{margin-bottom:15px;}
.px-15{padding-left:15px;padding-right:15px;}
.links{font-size: 12px;display: flex;flex-direction: row;gap: 10px;justify-content: center;}