@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:#cba829;
    --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;
}

#settings-open{
    cursor:pointer;
}


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

.settings-menu{
    width:470px;
    height:530px;
    padding:30px;
    background-color:var(--bg);
    border:var(--accent) 1px solid;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    pointer-events:none;
    opacity:0;
    border-radius:8px;
    z-index:324987432798798324987;
    transition:all 0.1s ease-in-out;
}

.settings-menu h2{
    text-decoration:underline;
    text-decoration-thickness:2px;
}

.settings-menu div{
    display:flex;
    justify-content:left;
    align-items:left;
    flex-direction:column;
    width:100%;
    margin-top:20px;
}

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

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

.settings-menu div input{
    margin-top:10px;
}

.settings-buttons{
    display:flex;
    gap:10px;
    width:100%;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:row !important;
}

.settings-buttons button{
    width:50%;
    height:40px;
    font-size:20px;
    background:#111;
    border:1px solid var(--border);
    border-radius:7px;
    color:white !important;
}

.provided-icons{
    display:flex;
    gap:10px;
    width:100%;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:row !important;
}

.provided-icons img{
    width:28px;
    height:28px;
}

.provided-icons img:hover{
    cursor:pointer;
}

.settings-menu-title{
    display:flex;
    flex-direction:row !important;
    justify-content:space-between !important;
    align-items:center !important;
    margin-top:0px !important;
}

.close-settings-menu{
    cursor:pointer;
}

.settings-menu.active{
    opacity:1;
    pointer-events:all;
}


/* ==========================
        FULLSCREEN
========================== */

.game-page.fullscreen .game-container{
    width:100vw !important;
    height:calc(100vh - 61px) !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    border-radius:0 !important;
    z-index:9999 !important;
}

.game-page.fullscreen .game-header div p{
    display:none !important;
}

.game-page.fullscreen .game-header div img{
    width:45px !important;
    height:45px !important;
    border-radius:7px !important;
}

.game-page.fullscreen .game-header{
    width:100vw !important;
    height:60px !important;
    border-radius:0 !important;
    transform:translateY(-1px) !important;
    position:fixed !important;
    bottom:0 !important;
    left:0 !important;
    z-index:10000 !important;
}

.game-page.fullscreen body{
    overflow:hidden !important;
}


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

.settings-overlay{
    position:fixed;
    inset:0;
    background:rgba(0, 0, 0, 0.45);
    z-index:999;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity 0.2s ease;
}

.settings-overlay.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.settings-menu{
    position:fixed;
    z-index:1000;
}

body.settings-active{
    overflow:hidden;
}


/* ==========================
        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;
    justify-content:space-between;
    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{
    position:absolute;
    left:50%;
    transform:translate(-50%, -50%);
    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:7px;
    cursor:pointer;
    border:1px solid var(--border);
    transition:.2s;
    color:white;
    position:relative;
    text-decoration:none !important;
}

.game-card:hover::after{
    content:"";
    position:absolute;
    inset:0;
    border:1px solid var(--accent);
    pointer-events:none;
    border-radius:7px;
}

.game-card:hover{
    transform:translateY(-5px);
}

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

.game-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    overflow:hidden;
    border-top-left-radius:7px;
    border-top-right-radius:7px;
    transition:.25s;
}

.game-title{
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#181818;
    font-size:19px;
    border-bottom-left-radius:7px;
    border-bottom-right-radius:7px;
    font-weight:700;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    min-width:0;
}


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

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


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

.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:8px;
    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:30px;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:8px;
    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:8px;
    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{
    max-width:920px;
    width:100%;
    margin:20px auto;
    position:relative;
}

.game-container{
    width:100%;
    height:500px;
    background:#000;
    overflow:hidden;
    border-top-left-radius:8px !important;
    border-top-right-radius:8px !important;
}

.game-container iframe{
    width:100%;
    height:100%;
    display:block;
    border:0;
}

.game-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px;
    background:var(--surface);
    border-bottom-left-radius:8px;
    border-bottom-right-radius:8px;
    height:81px;
}

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

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

.fullscreen-btn{
    width:36px;
    height:36px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    background-color:var(--bg);
    color:white;
    cursor:pointer;
    font-size:18px;
    border-radius:6px;
    transition:all 0.05s ease-in-out;
}

.fullscreen-btn:hover{
    background-color:rgba(52, 52, 52, 0.482);
}

.fullscreen-btn i{
    pointer-events:none;
}

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

.game-search{
    width:200px;
}

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

.sort-bar button i{
    margin-right:8px;
}


/* ==========================
        NEW GAME TAG
========================== */

.new-game-tag{
    background-color:var(--accent);
    color:black !important;
    border-radius:5px;
    display:flex;
    justify-content:center;
    align-items:center;
    width:auto;
    height:fit-content;
    padding:5px;
    font-size:16px !important;
    cursor:default;
    position:absolute;
    transform:translateX(-8px) translateY(-8px);
    z-index:10;
    font-weight:bolder;
}


/* ==========================
        MINI GAME CARDS
========================== */

.mini-game-card{
    width:83px;
    height:83px;
    overflow:hidden;
    border-radius:6px;
    cursor:pointer;
    border:1px solid var(--border);
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:auto;
    transition:all 0.15s ease-in-out;
}

.mini-game-card:hover{
    border:1px solid var(--accent);
    transform:translateY(-5px);
}

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

.mini-game-card img{
    width:83px;
    height:83px;
    transition:all 0.15s ease-in-out;
}

.mini-game-card p{
    position:absolute;
    bottom:0;
    width:100%;
    margin:0;
    padding:5px;
    text-align:center;
    text-shadow:2px 2px 4px #000;
    background-color:#00000080;
    color:white !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    opacity:0;
    transform:translateY(10px);
    transition:.15s ease;
}

.mini-game-card:hover p{
    opacity:1;
    transform:translateY(0);
}

.mini-game-container{
    display:grid;
    grid-template-columns:repeat(auto-fill, 83px);
    max-width:1300px;
    margin-left:auto;
    margin-right:auto;
    gap:10px;
    margin-bottom:50px;
    justify-content:center;
}


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

.settings-buttonputs{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:row;
    gap:10px;
}

.settings-inputs input[type="text"]{
    max-width:140px;
}

.settings-buttonputs button{
    margin:10px 0px;
}


/* ==========================
        STAFF
========================== */

.staff-image-container{
    display:flex;
    flex-direction:row;
    gap:20px;
    justify-content:center;
}

.staff-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    cursor:pointer;
}

.staff-container:hover p{
    text-decoration:underline;
}

.staff-image{
    width:100px;
    height:100px;
    border:1px solid #aaa;
    border-radius:7px;
    margin-bottom:8px;
    object-fit:cover;
}

.staff-container p{
    margin:0;
    text-align:center;
}


/* ==========================
        RESPONSIVE
========================== */

@media(max-width:1366px){

    .game-page{
        max-width:800px;
    }

}

@media(max-height:800px){

    .game-container{
        height:450px;
    }

}