@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&display=swap');

:root{
    --bg:#111111;
    --surface:#181818;
    --card:#1c1c1c;
    --border:#303030;
    --accent:#ffc942;
    --accent-dark:#d9b224;
    --text:#f2f2f2;
    --muted:#888;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Barlow Condensed";
}

body{
    min-height:100vh;
    background:var(--bg);
    color:var(--text);
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
}

a {
    text-decoration: none;
}

.main{
    flex:1;
    max-width:1450px;
    width:100%;
    margin-left:auto;
    margin-right:auto;
}

/* ==========================
        TOP BAR
========================== */

.topbar{
    width:100%;
    max-width:1398px;
    height:60px;
    margin-left:auto;
    margin-right:auto;
    background:#151515;
    border-left:1px solid var(--border);
    border-right:1px solid var(--border);
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    padding:0 20px;
}

footer{
    width:100%;
    max-width:1398px;
    height:120px;
    margin-left:auto;
    margin-right:auto;    margin-top:auto;
    background:#151515;
    border-left:1px solid var(--border);
    border-right:1px solid var(--border);
    border-top:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-around;
    padding:0 20px;
    cursor: default;
}

footer a:hover{
    color:var(--accent);
    text-decoration:underline;
    cursor: pointer;
}

footer a {
    color: white;
    text-decoration: none;
}

footer div {
    display: flex;
    justify-content: top;
    align-items: left;
    height: 98px;
    gap: 5px;
    flex-direction: column;
    
}

footer div p {
    color: #666;
    text-decoration: underline;
}

.logo{
    font-size:30px;
    font-weight:800;
    letter-spacing:.5px;
    color:white;
    text-decoration:none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.logo img {
    width: 40px;
}

.logo span{
    color:var(--accent);
}

.top-links{
    display:flex;
    gap:22px;
    margin-left:35px;
}

.top-links a{
    font-size:18px;
    font-weight:700;
    color:white;
    text-decoration:none;
    transition:.2s;
}

.top-links a:hover{
    color:var(--accent);
}

/* Search */

.game-search{
    margin-left:auto;
    width:220px;
    height:36px;
    background:#111;
    border:1px solid var(--border);
    border-radius:7px;
    color:white;
    padding:0 15px;
    font-size:16px;
}

.game-search:focus{
    outline:none;
    border-color:var(--accent);
}

/* Discord */

.top-button{
    margin-left:15px;
    color:white;
    font-size:20px;
    transition:.2s;
}

.top-button:hover{
    color:var(--accent);
}

/* ==========================
        CATEGORIES
========================== */

.categories{
    display:flex;
    max-width:1400px;
    width: 100%;
    margin-left:auto;
    margin-right:auto;
    flex-wrap:wrap;
    gap:8px;
    padding:20px 15px 15px;
    
}

.categories a{
    padding:8px 15px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:7px;
    color:white;
    font-size:17px;
    font-weight:700;
    transition:.15s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration: none !important;
}

.categories a span{
    display:inline-block;
    transition:.15s;
}

.categories a:hover span{
    transform:translateY(-2px);
}

.categories a:hover{
    cursor:pointer;    
    border-color:var(--accent);
}

.categories .active{
    background:var(--accent);
    border-color:var(--accent);
    color:#111;
}

/* ==========================
        SORT
========================== */

.sort-bar{
    max-width:1400px;
    margin-left:auto;
    margin-right:auto;
    width: 100%;
    display:flex;
    align-items:space-between;
    gap:10px;
    padding:10px 15px 20px;
}

.sort-bar > span{
    font-size:17px;
    color:var(--muted);
}

.sort-bar button{
    background:var(--surface);
    border:1px solid var(--border);
    color:white;
    padding:7px 14px;
    border-radius:7px;
    font-size:15px;
    font-weight:700;
    transition:.15s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.sort-bar button:hover{
    cursor:pointer;
    border-color:var(--accent);
}

.sort-bar .selected{
    background:var(--accent);
    border-color:var(--accent);
    color:#111;
}

.sort-bar p{
    margin-left:auto;
    color:var(--muted);
    font-size:18px;
}

/* ==========================
        GAME GRID
========================== */

.game-card-container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:10px;
    padding:0 15px 30px;
}

.game-card{
    background:var(--card);
    border-radius:10px;
    overflow:hidden;
    cursor:pointer;
    border:1px solid var(--border);
    transition:.2s;
    color:white;
    text-decoration:none !important;
}

.game-card:hover{
    border-color:var(--accent);
    transform:translateY(-4px);
    box-shadow:0 12px 25px rgba(0,0,0,.35);
}

.game-img-container{
    width:100%;
    height:150px;
    overflow:hidden;
}

.game-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.25s;
}

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

.game-title{
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#181818;
    font-size:19px;
    font-weight:700;
    overflow:hidden;
}

/* ==========================
        FOOTER
========================== */

.credits-footer{
    text-align:center;
    padding:40px;
    color:#666;
}

/* ==========================
        SETTINGS
========================== */

.settings-title{
    text-align:center;
    font-size:42px;
    font-weight:700;
    color:white;
    margin:30px 0;
}

.settings-container{
    max-width:900px;
    margin-left:auto;
    margin-right:auto;
    padding:0 15px;
}

.settings-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:10px;
    padding:20px;
    margin-bottom:10px;
    text-align:center;
}

.settings-card h2{
    font-size:24px;
    font-weight:700;
    color:#aaa;
    margin-bottom:15px;
}

.settings-card input[type="text"]{
    background:#111;
    border:1px solid var(--border);
    border-radius:7px;
    padding:8px 12px;
    color:white;
    width:220px;
    font-size:16px;
}

.settings-card input[type="text"]:focus{
    outline:none;
    border-color:var(--accent);
}

.settings-card button{
    display:block;
    margin:10px auto;
    padding:8px 16px;
    border-radius:7px;
    background:var(--surface);
    border:1px solid var(--border);
    color:white;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.15s;
}

.settings-card button:hover{
    border-color:var(--accent);
}

.settings-card p{
    font-size:18px;
}

.settings-card small{
    color:var(--muted);
    font-size:15px;
}

.cloak-icons{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:15px;
}

.cloak-icons img{
    width:45px;
    height:45px;
    object-fit:cover;
}

.toggle-card label{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    color:#aaa;
    font-size:18px;
}

.toggle-card input{
    accent-color:var(--accent);
}

/* ==========================
        LEGAL PAGES
========================== */

.legal-container{
    max-width:900px;
    margin:40px auto;
    padding:0 15px;
}

.error-page {
    max-width:900px;
    margin:40px auto;
    padding:0 15px;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:10px;
    padding:30px;
    font-size: 30px;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.legal-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:10px;
    padding:30px;
}

.legal-title{
    text-align:center;
    font-size:42px;
    font-weight:800;
    color:white;
    margin-bottom:10px;
}

.legal-updated{
    text-align:center;
    color:var(--muted);
    font-size:16px;
    margin-bottom:35px;
}

.legal-card h2{
    font-size:26px;
    font-weight:700;
    color:var(--accent);
    margin-top:30px;
    margin-bottom:10px;
}

.legal-card p{
    color:#ddd;
    font-size:18px;
    line-height:1.5;
    margin-bottom:15px;
}

.legal-card ul{
    margin:10px 0 20px 25px;
    color:#ddd;
    font-size:18px;
}

.legal-card li{
    margin-bottom:8px;
}

.legal-card a{
    color:var(--accent);
    text-decoration:none;
}

.legal-card a:hover{
    text-decoration:underline;
}

/*
GAME PAGE ITSELF .php
*/

.game-page {
    padding-top: 20px;
    padding-bottom: 20px;
    max-width: 1400px;
    width:100%;
    margin-left: auto;
    margin-right: auto;
}


.game-container {
    width: 100%;
    height: 700px;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
}


.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 15px;
    background: var(--surface);
    border-radius: 12px;
}


.game-info {
    display: flex;
    align-items: center;
    gap: 15px;
}


.game-page-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}


.fullscreen-btn {
    padding: 12px 22px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


.fullscreen-btn:hover {

    opacity: .85;

}




.search-form {
    flex: 1;
    display: flex;
}


.game-search {
    width: 200px;
}

.panel-exmaple {
    width: 100%;
    margin-top: 20px;
}