:root {
    --main-bg-color: #141619;
    --primary-text-color: #2E3A59;
    --secondary-text-color: #6C757D;
    --secondary2-text-color: #d9d9d9;
    --highlight-color: #FF5722;
    --gate-color: #d5be03;
    --primary-bg-color: #121212;
    --secondary-bg-color: #FFFFFF;
    --accent-color: #17A2B8;
    --button-bg-color: #007BFF;
    --font-family-1: Motiva-sans, sans-serif;
    --font-family-2: 'Roboto', sans-serif;
    --font-family-3: 'Montserrat', sans-serif;
    --font-family-4: 'Poppins', sans-serif;
    --font-family-5: 'YayHoliday';
    --font-family-6: "Bahnschrift", Arial, sans-serif;
    --font-family-7: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--main-bg-color);
    height: 100%;
}

body {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    font-family: var(--font-family-1);
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    min-height: 100vh;
    margin: 0px;
}

/* Pages */
.contentView-A {
    max-width: 900px;
    margin: 120px auto;
    padding: 0 20px;
    text-align: left;
}

.contentView-A.alt {
    margin: 20px auto;
}

.contentView-A h2 {
    color: #8e94ad;
    margin-top: 30px;
}

.contentView-A ul {
    padding-left: 20px;
}

.contentView-A a {
    color: #8e94ad;
    text-decoration: none;
}

.contentView-A a:hover {
    text-decoration: underline;
}

.adsense-placeholder {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 40px;
    margin: 40px 0;
    background-color: rgba(34, 34, 34, 0.1);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.adsense-placeholder::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "ADS";
}

.cta-section {
    padding: 20px;
    color: #222;
    text-align: left;
    border-radius: 8px;
    width: 80%;
    margin: 45px auto;
}

.cta-section h2 {
    color: #8e94ad;
}

.cta-button {
    display: inline-block;
    color: #8e94ad;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

.cta-button:hover {
    color: #00c3ff;
}

.th-banner {
    background: url('../images/background2.jpg?v=000') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #333;
    padding: 30px;
}

/* NavBar */
.navbar {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0px;
    width: 100%;
    top: 0px;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    padding: 20px 0px;
    font-family: var(--font-family-6);
}

.navbar a {
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    margin-right: 100px;
    text-decoration: none;
}

.navbar a:hover {
    color: var(--highlight-color);
}

.logo {
    color: var(--secondary-bg-color);
    font-family: var(--font-family-5);
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
    letter-spacing: 4px;
    transition: transform 350ms ease-out;
}

.logo:hover {
    transform: scale(1.1) translate(10px, 5px);
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo img {
    width: 42px;
    height: auto;
    margin: 0px;
    padding: 0px 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0px;
    padding: 10px 30px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--secondary-bg-color);
    text-decoration: none;
    font-size: 18px;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

.home {
    background: url("../images/background1.jpg?v=000") center center / cover no-repeat;
    height: 150vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-bg-color);
    position: relative;
    animation: 5s ease-in-out 0s infinite normal none running firelight;
}

.home h1 {
    font-family: var(--font-family-3);
    font-size: 48px;
    margin-bottom: 20px;
    color: rgb(132, 149, 201);
    text-shadow: 2px 2px 2px black;
}

.home p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--secondary2-text-color);
    text-shadow: 1px 1px 1px black;
}

.wrapper {
    flex: 1 1 0%;
    background-color: var(--secondary-bg-color);
}

.home-content {
    color: rgb(40, 40, 40);
    background: color(srgb 0 0 0 / 0.5);
    width: 100%;
    height: 100%;
}

.warp-home {
    position: relative;
    top: 25%;
    transform: translate(0px, -30%);
}

.logoBg {
    width: 100%;
    height: 400px;
    text-align: center;
}

.logoBg img {
    height: 300px;
    width: auto;
    margin-top: 100px;
}

.btn {
    display: inline-block;
    background-color: var(--gate-color);
    color: var(--primary-bg-color);
    padding: 25px 50px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 32px;
    font-family: var(--font-family-6);
    transition: 350ms ease-out;
}

.btn:hover {
    transform: scale(1.2);
    background-color: var(--highlight-color);
}

.games,
.about,
.contact {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--secondary-bg-color);
}

.games h2,
.about h2,
.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-text-color);
}

.game-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.game-card {
    position: relative;
    background-color: rgb(255, 255, 255);
    overflow: hidden;
    margin: 10px;
    padding: 0px;
    width: 300px;
    height: 400px;
    text-align: center;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 20px;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card h3 {
    position: absolute;
    bottom: 70px;
    left: 0px;
    right: 0px;
    margin: 0px;
    padding: 0px;
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: bold;
    text-shadow: rgba(0, 0, 0, 0.6) 0px 2px 5px;
    z-index: 1;
}

.game-card p {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    margin: 0px;
    padding: 0px;
    color: rgb(255, 255, 255);
    font-size: 14px;
    text-shadow: rgba(0, 0, 0, 0.6) 0px 2px 5px;
    z-index: 1;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: max-height 0.3s;
}

.game-card:hover p {
    background: rgba(0, 0, 0, 0.5);
    max-height: 200px;
    overflow-y: auto;
    white-space: normal;
    position: absolute;
    width: 100%;
    left: 0px;
    bottom: 0px;
    font-size: 16px;
}

.game-card:hover h3 {
    display: none;
}

.game-card a {
    position: absolute;
    inset: 0px;
    z-index: 2;
    text-decoration: none;
    color: inherit;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0px;
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7));
    z-index: 1;
    border-radius: 12px;
}

.scroll-down-btn {
    padding: 40px 80px;
    background-color: rgb(0, 83, 187);
    color: rgb(238, 238, 238);
    border: none;
    border-radius: 4px;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    left: 50%;
    width: 280px;
    transform: translateX(-50%);
    font-family: var(--font-family-7);
    text-shadow: black 1px 1px 1px;
    text-transform: uppercase;
}

.scroll-down-btn:hover {
    background-color: rgb(61, 132, 221);
}

.hamburger {
    z-index: 997;
    display: none;
}

.burger {
    position: fixed;
    display: flex;
    flex-direction: column;
    inset: 0px 0px 0px 30%;
    padding: min(30vh, 10rem) 2em;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.83);
}

.burger a,
.burger p {
    font-size: 25px;
    padding: 30px 10px;
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.burger.active {
    transform: translateX(0%);
}

.burgerIcon {
    position: fixed;
    top: 0px;
    left: calc(-3rem + 100vw);
    font-size: 40px;
    z-index: 99999;
    color: white;
}

.message-box {
    padding: 20px;
    margin: 20px 0px;
    border-radius: 5px;
    font-size: 16px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
    font-family: var(--font-family-3) !important;
}

.message-box.warn {
    background-color: rgb(255, 243, 205);
    color: rgb(133, 100, 4);
    border: 1px solid rgb(255, 238, 186);
}

.message-box.default {
    background-color: rgb(209, 236, 241);
    color: rgb(12, 84, 96);
    border: 1px solid rgb(190, 229, 235);
}

.message-box.success {
    background-color: rgb(212, 237, 218);
    color: rgb(21, 87, 36);
    border: 1px solid rgb(195, 230, 203);
}

.message-box.error {
    background-color: rgb(248, 215, 218);
    color: rgb(114, 28, 36);
    border: 1px solid rgb(245, 198, 203);
}

footer {
    background-color: rgb(51, 51, 51);
    color: var(--secondary-bg-color);
    padding: 20px 0px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
}

.footer-left {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-right {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
    margin: 0px 0px 0px 20px;
    padding: 0px;
}

.footer-links li {
    margin-left: 10px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

.social-media {
    list-style: none;
    display: flex;
    margin: 0px;
    padding: 0px;
}

.social-media li {
    margin-left: 10px;
}

.social-media img {
    width: 48px;
    height: 48px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    text-decoration: none;
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.718);
    min-width: 160px;
    z-index: 1;
    margin-left: -15px;
    margin-top: 29px;
    border-width: initial;
    border-top-style: solid;
    border-image: initial;
    border-color: orange transparent transparent;
    border-left-style: initial;
    border-right-style: initial;
    border-bottom-style: initial;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: white;
}

.dropbtn:hover+.dropdown-content,
.dropdown-content:hover {
    display: block;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar {
        display: none;
    }

    .logo {
        margin-left: -40px;
    }

    .logo img {
        width: 64px;
        height: auto;
    }

    .home {
        padding: 0px;
        min-height: 130vh;
    }

    .home h1 {
        font-size: 36px;
    }

    .home p {
        font-size: 16px;
    }

    .logoBg {
        width: 100%;
        height: 320px;
        text-align: center;
    }

    .logoBg img {
        margin-top: 100px;
        height: 200px;
        width: auto;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .social-media {
        display: inline-block;
    }

    .social-media img {
        width: 64px;
        height: 64px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        flex: 0 0 auto;
        margin: 10px 0px;
    }

    .social-media {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        margin: 10px 0px;
    }

    .video-container {
        zoom: 1;
    }

    .video-container iframe {
        width: 80%;
        height: 250px;
    }

    .top-bar {
        position: fixed;
        height: 4rem;
        background-color: black;
        width: 100vw;
        opacity: 0.75;
        z-index: 999;
    }

    .scroll-down-btn {
        padding: 40px 20px;
        font-size: 24px;
        width: 280px;
    }
    
    .burger .logo-img{
        width:64px;
        position:absolute;
        top:5px;
        left:5px;
    }
}

.home {
    animation: 3s ease-in-out 0s infinite normal none running firelight;
}

@keyframes firelight {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }
}