/* ===== GLOBAL STYLES ===== */

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #000000;
    color: white;
}

h1, h2, h3 {
    font-family: 'Press Start 2P', cursive;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    color: #ffffff;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ===== LAYOUT / GRID ===== */

.row {
    width: 100%;
    display: block;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
}

.videocontainer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.videocontainer iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* ===== HEADER ===== */

.header-row {
    background-color: #0e0e0e;
    border-bottom: 2px solid #ffffff;
}

.header-content {
    padding: 20px 15px;
}

.headercolumn1 {
    float: left;
    width: 70%;
}

.headercolumn2 {
    float: left;
    width: 30%;
    text-align: right;
}

.siteheader {
    font-family: 'Press Start 2P', cursive;
    font-weight: bold;
    font-size: 50px;
    position: relative;
    top: 20px;
    left: 20px;
    margin: 0;
}

.logo {
    max-width: 100px;
    height: auto;
}

/* ===== NAVBAR ===== */

.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #000000;
    border-bottom: 2px solid #ffffff;
}

.navbar {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #000000;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0;
}

.navbar a {
    display: block;
    padding: 15px 20px;
    font-size: 14px;
    transition: 0.3s;
    color: white;
}

.navbar a:hover {
    background-color: #ff0000ce;
}

.close-btn {
    font-size: 30px;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    text-align: right;
}

.close-btn:hover {
    color: red;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger button hidden by default */
.menu-toggle {
    display: none;
    background-color: #000000;
    color: white;
    border: none;
    font-size: 32px;
    padding: 10px 15px;
    cursor: pointer;
}

/* ===== MAIN CONTENT ===== */

.main-content {
    padding: 20px;
}

/* ===== GAME CARDS ===== */

.gamescontainer {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.gamecardlink {
    display: block;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.pgameblock {
    background-color: red;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    height: 100%;
}

.pgameblock:hover {
    transform: scale(1.04);
}

.cgameblock {
    background-color: white;
    margin: 12px;
    padding: 12px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    height: calc(100% - 24px);
}

.cgameblock h3 {
    color: black;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.1;
}

.cgameblock h5 {
    color: black;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
}

.cgameblock p {
    color: black;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.25;
}

.gameimage {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.learnmore {
    position: absolute;
    left: 0;
    bottom: -50px;
    width: 100%;
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    transition: bottom 0.3s ease;
    z-index: 2;
}

.pgameblock:hover .learnmore {
    bottom: 0;
}

/* ===== GAMES PAGES ===== */

.fadein-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.appstore-btn {
    display: block;
    margin: 40px auto;
    width: 250px; /* adjust size */
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appstore-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ===== FOOTER ===== */

.footer-row {
    background-color: #0e0e0e;
    border-top: 2px solid #ffffff;
    margin-top: 20px;
}

.footer-content {
    padding: 15px;
}

.footercolumn {
    float: left;
    width: 33.33%;
    text-align: center;
    font-size: 14px;
}

.footercolumn p {
    margin: 0;
}

.footerlinks {
    display: inline-block;
    padding: 10px 18px;
    background-color: #ff0000;
    color: #020617;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footerlinks:hover {
    background-color: #ffffff;
    color: white;
    transform: translateY(-2px);
}

.ytfooter-icon {
    width: 50px;
    padding: 6px;
    border-radius: 6px;
    transition: 0.3s;
    position: relative;
    left: 20px;
    bottom: 20px;
}

.ytfooter-icon:hover {
    transform: scale(1.1);
}

.infooter-icon {
    width: 50px;
    padding: 6px;
    border-radius: 6px;
    transition: 0.3s;
    position: relative;
    bottom: 28px;
}

.infooter-icon:hover {
    transform: scale(1.1);
}

.tkfooter-icon {
    width: 50px;
    padding: 6px;
    border-radius: 6px;
    transition: 0.3s;
    position: relative;
    right: 20px;
    bottom: 20px;
}

.tkfooter-icon:hover {
    transform: scale(1.1);
}

/* ===== CUSTOM HR ===== */

.custom2-hr {
    border: none;
    height: 2px;
    background-color: #ff0000;
    margin: 0;
}

/* ===== MOBILE ===== */

@media only screen and (max-width: 600px) {
    .headercolumn1 {
        width: 100%;
        text-align: center;
        float: none;
    }

    .headercolumn2 {
        display: none;
    }

    .siteheader {
        font-size: 32px;
        top: 0;
        left: 0;
    }

     .nav-wrapper {
        position: sticky;
        top: 0;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 220px;
        height: 100%;
        flex-direction: column;
        justify-content: flex-start;
        background-color: #111111;
        border-right: 2px solid #ffffff;
        padding-top: 70px;
        transition: left 0.3s ease;
        z-index: 1001;
    }

    .navbar li {
        width: 100%;
    }

    .navbar a {
        text-align: left;
        border-bottom: 1px solid #333333;
        padding: 18px 20px;
    }

    .navbar.show-menu {
        left: 0;
    }

    .gamecardlink {
        width: 100%;
    }

    .footercolumn {
        width: 100%;
        float: none;
        margin-bottom: 10px;
    }
}

/* ===== TABLET ===== */

@media only screen and (min-width: 601px) and (max-width: 900px) {
    .headercolumn1 {
        width: 100%;
    }

    .headercolumn2 {
        display: none;
    }

    .siteheader {
        font-size: 40px;
        top: 10px;
        left: 10px;
    }

    .gamecardlink {
        width: 50%;
    }

    .footercolumn {
        width: 33.33%;
    }

    .close-btn {
    display: none; /* hidden on desktop/tablet */
}
}

/* ===== DESKTOP ===== */

@media only screen and (min-width: 901px) {
    .headercolumn1 {
        width: 70%;
    }

    .headercolumn2 {
        width: 30%;
        display: block;
    }

    .siteheader {
        font-size: 50px;
        top: 20px;
        left: 20px;
    }

    .gamecardlink {
        width: 33.333%;
    }

    .footercolumn {
        width: 33.33%;
    }

    .close-btn {
    display: none; /* hidden on desktop/tablet */
}

}


/* ===== CONTACT FORM ===== */

.contact-section {
    width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
}

.contact-panel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #000000;
    padding: 20px;
    box-sizing: border-box;
}

.contact-panel h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-panel p {
    margin-bottom: 20px;
    line-height: 1.4;
}

.contact-status {
    margin: 20px 0;
    padding: 12px;
    background-color: #111111;
    border: 1px solid #ffffff;
}

.contact-form {
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    color: white;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    box-sizing: border-box;
    border: 2px solid #cccccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    width: auto;
    background-color: #ff0000;
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    font-weight: bold;
    transition: 0.3s;
}

.contact-form input[type="submit"]:hover {
    background-color: #cc0000;
}

.direct-email {
    margin-top: 20px;
}

/* ===== MOBILE ===== */
@media only screen and (max-width: 600px) {
    .contact-panel {
        padding: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        padding: 10px;
    }
}

/* ===== CONTACT FORM TABLET ===== */
@media only screen and (min-width: 601px) and (max-width: 900px) {

    .contact-panel {
        max-width: 700px;
    }

    .contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Make message full width */
    .contact-form textarea {
        grid-column: span 2;
    }

    /* Make submit button full width */
    .contact-form input[type="submit"] {
        grid-column: span 2;
        width: 100%;
    }

    /* Labels align nicely */
    .contact-form label {
        margin-top: 10px;
    }
}