/* Define CSS Variables */
:root {
    --main-bg-color: #141619;
    --primary-text-color: #2E3A59;
    --secondary-text-color: #6C757D;
    --highlight-color: #FF5722;
    --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;
}

/* Main */
html {
    margin: 0;
    padding: 0;
    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-7);
    position: relative;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    min-height: 100vh;
    margin: 0;
}

/* Pages */
.contentView-A {
    max-width: 900px;
    margin: 120px auto;
    padding: 0 20px;
    text-align: left;
}

.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: 90px;
    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;
}

.news-item{
    padding: 20px 10px;
    background:#bcc6d96e;
    margin: 14px 0;
    border-radius:6px;
}

.news-title{
    font-size:21px;
    font-weight:bold;
    padding:5px 0;
}
/* Navbar */
.navbar {
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0;
    width: 100%;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    padding: 20px 0;
    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: #ccd6ff;
}

.logo {
    color: var(--secondary-bg-color);
    font-family: var(--font-family-5);
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    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: 0;
    padding: 0 10px;
}

.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;
}

/* Home Section */
.home {
    background: url('../images/background4.jpg?v=000') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    height: 150vh;
}

.home h1 {
    color: rgb(255 182 3);
    font-family: var(--font-family-6);
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 2px black;
}

.home p {
    font-size: 18px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 1px black;
}

.flexPage {
    display: flex;
}

.flexCenter {
    justify-content: center;
    align-items: center;
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    zoom: 2;
}

.video-container iframe {
    max-width: 100%;
    height: auto;
    border: none;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--secondary-bg-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.social-media {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.social-media li {
    margin-left: 10px;
}

.social-media img {
    width: 48px;
    height: 48px;
}

.downloads-top img {
    width: 320px;
    height: 150px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.downloads-2>img {
    width: 320px;
    height: 150px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.wrapper {
    flex: 1;
    background-color: var(--secondary-bg-color);
}

.home-content {
    color: #ffffff;
    background: color(srgb 0 0 0 / 0.5);
    width: 100%;
    height: 100%;
}

.warp-home {
    position: relative;
    top: 25%;
    transform: translate(0, -30%);
}

.logoBg {
    width: 100%;
    height: 300px;
    text-align: center;
}

.logoBg img {
    height: 300px;
    width: auto;
}

.logoBg img {
    height: 300px;
    width: auto;
    position: relative;
    z-index: 1;
    animation: glowbh 2s infinite;
}

@keyframes glowbh {
    0% {
        -webkit-filter: drop-shadow(0 0 10px rgb(255 206 0 / 50%));
        filter: drop-shadow(0 0 10px rgb(255 206 0 / 50%));
    }

    50% {
        -webkit-filter: drop-shadow(0 0 20px rgb(255 206 0));
        filter: drop-shadow(0 0 20px rgb(255 206 0));
    }

    100% {
        -webkit-filter: drop-shadow(0 0 10px rgb(255 206 0 / 50%));
        filter: drop-shadow(0 0 10px rgb(255 206 0 / 50%));
    }
}

.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: solid;
    border-top-color: #ccd6ff;
    border-left: transparent;
    border-right: transparent;
    border-bottom: transparent;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: white;
}

.dropbtn.hovered::after {
    content: "";
    position: absolute;
    width: 90px;
    top: 20px;
    left: 0;
    right: 0;
    height: 100px;
}

.dropbtn:hover+.dropdown-content,
.dropdown-content:hover {
    display: block;
}

.scroll-down-btn {
    padding: 30px 80px;
    background-color: #000000;
    color: #eeeeee;
    border: none;
    border-radius: 4px;
    font-size: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; /* Keep it in a fixed position */
    left: 50%;
    width:200px;
    transform: translateX(-50%);
    font-family: var(--font-family-5);
}

.scroll-down-btn:hover {
    background-color: #171717;
}

/* Burger Menu */
.hamburger {
    z-index: 997;
    display: none;
}

.burger {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    inset: 0 0 0 30%;
    padding: min(30vh, 10rem) 2em;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 9999;
    background: #000000d4;
}

.burger a,
.burger p {
    font-size: 25px;
    padding: 30px 10px;
    text-decoration: none;
    color: #ffffff;
}

.burger.active {
    transform: translateX(0%);
}

.burgerIcon {
    position: fixed;
    top: 0;
    left: calc(100vw - 3rem);
    font-size: 40px;
    z-index: 99999;
    color: white;
}

/* MessageBox */
.message-box {
    font-family: var(--font-family-3) !important;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message-box.warn {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message-box.default {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--secondary-bg-color);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-left {
    flex: 1;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-left: 20px;
}

.footer-links li {
    margin-left: 10px;
}

.footer-links a {
    color: var(--primary-text-color);
    text-decoration: none;
    color: inherit;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

/* Responsive */
@media (max-width: 768px) {
    .contentView-A {
        width:85%;
    }
    
    .hamburger {
        display: block;
    }

    .navbar {
        display: none;
    }

    .logo {
        margin-left: -40px;
    }

    .logo img {
        width: 64px;
        height: auto;
    }

    .warp-home {
        top: 30%;
    }

    .home {
        padding: 0;
        min-height: 130vh;
    }

    .home h1 {
        font-size: 36px;
    }

    .home p {
        font-size: 16px;
    }

    .logoBg {
        width: 100%;
        height: 200px;
        text-align: center;
    }

    .logoBg img {
        margin-top: 100px;
        height: 100px;
        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: none;
        margin: 10px 0;
    }

    .social-media {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        margin: 10px 0;
    }

    .video-container {
        zoom: 1;
    }

    .video-container iframe {
        width: 80%;
        height: 250px;
    }

    .top-bar {
        position: fixed;
        height: 4rem;
        background-color: black;
        width: 100vw;
        opacity: .75;
        z-index: 999;
    }

    .burger .logo-img{
        width:64px;
        position:absolute;
        top:5px;
        left:5px;
    }
}

/* Effect */
.spark-container {
    position: fixed;
    animation: spark-movement 5s ease-in-out infinite;
    pointer-events: none;
    --horizontal-drift: calc(50vw + (random() * 100vw - 50vw));
    --vertical-drift: calc(100vh);
    top: var(--vertical-drift);
    left: var(--horizontal-drift);
}

.spark {
    width: 2px;
    height: 15px;
    background: linear-gradient(180deg, rgba(255, 140, 0, 1) 0%, rgba(255, 69, 0, 0.8) 50%, rgba(255, 0, 0, 0) 100%);
    border-radius: 5px;
    transform-origin: center;
    animation: spark-rotation 1s linear infinite, spark-glow 0.2s linear infinite;
}

@keyframes spark-movement {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(0, -120vh);
        opacity: 0;
    }
}

@keyframes spark-rotation {
    0% {
        transform: rotate(0deg) scale(0.8);
    }

    50% {
        transform: rotate(30deg) scale(1);
    }

    100% {
        transform: rotate(-30deg) scale(0.5);
    }
}

@keyframes spark-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 140, 0, 0.8);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 69, 0, 0.8);
    }
}

.home {
    animation: firelight 5s ease-in-out infinite;
}

@keyframes firelight {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }
}