/* ============================================
   Friday Night Funkin Theme - Light & Clean
   ============================================ */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;

    --accent: #f43f5e;
    --accent-light: #fb7185;

    --success: #22c55e;
    --warning: #f59e0b;

    --bg-body: #0297C4;
    --bg-white: #2e6d95;
    --bg-light: rgba(0, 0, 0, 0.5);
    --bg-card: #2e6d95;

    --text-dark: #ffffff;
    --text-normal: #ffffff;
    --text-light: rgba(255,255,255,0.7);

    --border-color: rgba(255,255,255,0.2);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0297C4;
    font-family: 'Comfortaa', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 {
    margin: 0;
}

h2 {
    font-size: 22px;
    margin: 30px 0 15px 0;
}

h3 {
    font-size: 18px;
    margin: 25px 0 12px 0;
}

h4 {
    font-size: 16px;
    margin: 20px 0 10px 0;
}

/* Content headings inside .contents */
.contents h2 {
    font-size: 22px;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    /*    border-bottom: 1px solid var(--border-color);*/
    text-transform: uppercase;
}

.contents h3 {
    font-size: 18px;
    margin: 25px 0 12px 0;
    text-transform: uppercase;
}

.contents h4 {
    font-size: 16px;
    margin: 20px 0 10px 0;
    text-transform: uppercase;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container-s {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.Overr {
    padding: 20px;
}

/* ============================================
   Header Navigation
   ============================================ */
.section-top {
    padding-left: 0;
    margin-bottom: 10px;
    box-shadow: 1px 2px 30px 3px rgba(0,0,0,0.5);
    overflow: hidden;
}

.section-top::after {
    clear: both;
    content: "";
    display: block;
}

.section-top a.label {
    background-color: #002531;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 2px solid rgba(255,255,255,0.3);
    /*    margin-right: 10px;*/
}

.section-top .label img {
    width: 30px;
}

.section-top h1.label {
    display: block;
    margin-left: 0;
    padding-left: 10px;
    text-decoration: none;
    background-color: #002531;
    font-size: 15px;
}

.section-top .left-arrow {
    border: 25px solid #002531;
    border-top: 25px solid transparent;
    border-right: 25px solid transparent;
    position: relative;
/*    bottom: -1px;*/
}

.nav-rate {
    float: right;
    padding: 5px 15px;
}

/* Fullscreen Button */
.fullscreen-btn {
    float: right;
    padding: 13px;
    text-transform: capitalize;
    color: #fff;
    cursor: pointer;
}

#expand span {
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: lighter;
    /* background: #005f7f; */
    color: white;
    background-color: #002531;
    text-transform: uppercase;
    font-size: 14px;
}

#expand:hover span {
    background: #004d66;
}

/* ============================================
   Game Player
   ============================================ */
.box-player {
    margin-bottom: 20px;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.hesd {
    background: var(--bg-white);
    /*    border-top-left-radius: 16px;
        border-top-right-radius: 16px;*/
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hesd iframe {
    display: block;
    border: none;
}

.fullscreen-btn-bottom {
    text-align: center;
/*    padding: 15px;
    background: var(--bg-white);*/
    /*    border-radius: 0 0 var(--radius-lg) var(--radius-lg);*/
    /*    margin: 15px 0;*/
}

.fullscreen-btn-bottom a {
    display: inline-block;
    cursor: pointer;
}

.fullscreen-btn-bottom span {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 400;
    color: white;
    background-color: #002531;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
}

.fullscreen-btn-bottom span:hover {
    background: #004d66;
}

/* ============================================
   Main Layout
   ============================================ */
.more-puzzle {
    padding: 20px 0;
}

.over::after {
    clear: both;
    content: "";
    display: block;
}

.L {
    float: none;
    width: 100%;
}

.R {
    float: none;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Section Header */
.section-header {
    margin-bottom: 0;
    overflow: hidden;
}

.label {
    font: 16px / 50px 'Comfortaa', Lato, Arial;
    text-align: left;
    color: white;
    padding: 0 10px;
    background-color: rgba(0, 0, 0, 0.5);
    float: left;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 15px;
}
.p span{
    font-weight: bold;
}

.left-arrow {
    display: block;
    float: left;
    height: 0;
    width: 0;
    border: 25px solid rgba(0,0,0,0.5);
    border-top: 25px solid transparent;
    border-right: 25px solid transparent;
}

/* ============================================
   Games Grid
   ============================================ */
.new {
    background-color: var(--bg-white);
    padding: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.N {
    padding: 5px;
    overflow: hidden;
}

.N::after {
    clear: both;
    content: "";
    display: block;
}

/* Game Card */
.hover {
    position: relative;
}

.box-three {
    width: 20%;
    padding: 10px;
    float: left;
    transition: all 0.3s ease;
}

.box-three:hover {
    transform: scale(1.05);
}

.box-three img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.box-three:hover img {
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
}

.game-name {
    padding: 12px;
    /*    background: var(--bg-light);*/
    /*    border-top: 1px solid var(--border-color);*/
}

.font {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
    transition: var(--transition);
}

.box-three:hover .font {
    color: #00d4ff;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-content {
    background-color: var(--bg-white);
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.info-box {
    margin-top: 5px;
}

.p {
    text-align: center;
    background-color: rgba(0,0,0,0.3);
    padding: 2px 5px;
    color: rgba(255,255,255,0.8);
    border-radius: 0 0 3px 3px;
    display: block;
    text-transform: uppercase;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.contents {
    color: var(--text-normal);
    padding: 5px;
    text-align: left;
    background: var(--bg-white);
}

/* ============================================
   Advertisement
   ============================================ */
.ad-label {
    text-align: center;
    color: var(--text-light);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
    margin-bottom: 20px;
    /*    background: var(--bg-light);
        border-radius: var(--radius);
        border: 1px dashed var(--border-color);*/
}

.ad-label span {
    display: block;
    margin-bottom: 10px;
}

.ad-box {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
    border: 1px dashed var(--border-color);
}

/* ============================================
   Pagination
   ============================================ */
.paging {
    margin: 30px 0;
}

#pages {
    width: 100%;
}

.pagination.justify-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    /*    background: var(--bg-light);*/
    border-top: 2px solid var(--border-color);
    border-radius: var(--radius);
    margin: 0 5px;
    list-style: none;
}

#pages ul li {
    margin: 0 5px;
}

#pages ul li a {
    display: inline-block;
    min-width: 50px;
    height: 45px;
    line-height: 45px;
    padding: 0 15px;
    text-align: center;
    background: var(--bg-white);
    color: var(--text-normal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
}

#pages ul li a:hover {
    background: #002531;
    color: white;
    border-color: #002531;
}

#pages span {
    display: inline-block;
    min-width: 50px;
    height: 45px;
    line-height: 45px;
    padding: 0 15px;
    text-align: center;
    background: #002531;
    color: white;
    border: 1px solid #002531;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin: 0 5px;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Comments
   ============================================ */
.comment {
    margin-top: 30px;
}

.comment-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comment-content {
    padding: 20px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 9999;
}

.back-to-top span {
    display: block;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 400;
    color: white;
    background-color: #002531;
    text-transform: uppercase;
    font-size: 11px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.back-to-top:hover span {
    background: #004d66;
}

.views span {
    color: var(--text-light);
    font-size: 13px;
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 1200px) {
    .box-three {
        width: 25%;
    }
}

@media screen and (max-width: 992px) {
    .L {
        width: 100%;
    }

    .R {
        width: 100%;
        margin-top: 10px;
    }
}

@media screen and (max-width: 768px) {
    .Overr {
        padding: 5px;
    }

    .container-s {
        padding: 0 5px;
    }

    .box-player {
        padding: 0 5px;
    }

    .fullscreen-btn {
        display: none;
    }

    .box-three {
        width: 33.333%;
    }

    .new {
        /*        padding: 15px;*/
    }

    .font {
        font-size: 12px;
    }

    .L {
        width: 100%;
        float: none;
    }

    .R {
        width: 100%;
        float: none;
        margin-top: 20px;
    }

    .label {
        font: 16px/50px 'Comfortaa', Lato, Arial;
        text-align: left;
        color: white;
        padding: 0 10px;
        background: none;
        float: left;
        text-transform: uppercase;
        text-align: center;
        font-weight: bold;
    }

    .left-arrow {
        display: none;
    }

    .rate {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .Overr {
        padding: 0;
    }

    .container-s {
        padding: 0;
    }

    .box-player {
        padding: 0;
    }

    .box-three {
        width: 50%;
    }

    .section-top {
        display: flex;
        flex-direction: column;
    }

    .section-top a.label {
        width: 100%;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .section-top h1.label {
        width: 100%;
        float: none;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }

    .section-top .left-arrow {
        display: none;
    }

    .section-top .fullscreen-btn {
        display: none;
    }

    #pages ul li {
        margin: 0 3px;
    }

    #pages ul li a {
        min-width: 40px;
        height: 38px;
        line-height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }

    #pages span {
        min-width: 40px;
        height: 38px;
        line-height: 38px;
        padding: 0 10px;
        font-size: 14px;
        margin: 0 3px;
    }
}

/* ============================================
   Utilities
   ============================================ */
.clear-all {
    clear: both;
}

input:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: white;
}
