/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General Styles */
body {
  font-family: sans-serif;
  background-color: #181818;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Header & Navigation */
/* Fix Navbar to the Top */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures it's above other content */
    background: linear-gradient(90deg, #2d2d2d, #181818); /* Keeps same background */
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Ensure Page Content Doesn't Overlap with Fixed Header */
body {
    padding-top: 60px; /* Adjust based on header height */
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px; /* Aligns with fixed header */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #252525;
        display: none;
        padding: 15px 0;
        z-index: 1000;
        border-bottom: 2px solid #f31a00;
    }

    /* When active, show the menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 12px 0;
    }
}


nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links li a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f31a00;
}

/* Page Header */
.page-header {
  text-align: center;
  margin: 40px 20px;
}

.page-header h1 {
  font-size: 32px;
}

.page-header p {
  font-size: 18px;
  max-width: 800px;
  margin: 10px auto;
  opacity: 0.8;
}

/*********** Game Grid Layout ************/


.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ensures uniform sizes */
    gap: 20px;
    margin: 20px auto; /* Centers grid */
    justify-content: center; /* Ensures centering */
    max-width: 1000px;
    padding: 0 20px; /* Adds padding to prevent cutting off */
}

/* Ensure Game Items Are Centered */
.game-item {
    text-align: center;
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 5px;
    max-width: 300px; /* Ensures all game items have a consistent width */
    min-height: 450px; /* Adjust height to match */
    margin: auto; /* Ensures game items are centered */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}


/* Buy Buttons - Ensure Centering */
.buy-buttons {
    display: flex;
    justify-content: center; /* Centers buttons */
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
}

/* Shared Button Styling */
.buy-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f31a00;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    width: 120px; /* Keep button sizes consistent */
}

/* Hover Effect */
.buy-link:hover {
    background-color: #d11700;
}

/* Ensure Game Items Are Uniform in Height & Centered */
.game-item {
    text-align: center;
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 5px;
    max-width: 250px; /* Ensures all game items have a consistent width - was 300 */
    height: 480px; /* Force all game items to be the same height */
    margin: auto; /* Centers the game items */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures spacing between elements */
}

/* Game Title */
.game-title {
    font-size: 18px;
    font-weight: bold;
}

/* Description - This Fixes Uneven Heights */
.game-description {
    font-size: 14px;
    color: #ccc;
    flex-grow: 1; /* Makes descriptions take up equal space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* Buy Buttons - Ensure Bottom Alignment */
.buy-buttons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between buttons */
    margin-top: auto; /* Ensures buttons stay at the bottom */
    padding-top: 10px; /* Adds spacing above buttons */
}

/* Button Styling */
.buy-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f31a00;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    width: 120px;
}

.buy-link:hover {
    background-color: #d11700;
}


/* Responsive Adjustments */



@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }
}
@media (max-width: 767px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}
@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    }
}




/*********** Tabs Art ***************/
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Style for Tab Buttons */
.tab {
    display: inline-block;
    padding: 8px 12px;
    background-color: #2d2d2d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* Hover & Active Effect */
.tab:hover,
.tab.active {
    background-color: #d11700; /* Darker red for hover effect */
}

.tab-content {
    display: none; /* Hides inactive tabs */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.tab-content.active {
    display: block !important;  /* Ensures active tab content shows */
    opacity: 1;
    transform: translateY(0);
}


/* Grid Layout */
.gif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center; /* Ensures centering */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.gif-item {
    text-align: center;
}
.gif-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 5px;
    border: 2px solid #f31a00;
}
.gif-title {
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
}

@media (min-width: 768px) {
    .gif-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    }
}
@media (max-width: 767px) {
    .gif-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}
@media (max-width: 480px) {
    .gif-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    }
}

/* Center if there is only one item */
@media (min-width: 768px) {
    .gif-grid:has(.gif-item:nth-child(1):last-child) {
        display: flex;
        justify-content: center;
    }
}

/* Fix the logo to the left edge */
.logo {
    margin-left: 10px; /* Padding from the absolute left */
}

/* Logo Image */
.logo img {
    height: 48px;
    width: auto;
}

/* Navigation Container */
.container {
    width: 100%; /* Ensures full width */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Keeps items aligned */
    padding: 0 20px;
}

/* Hamburger Menu (Hidden by Default) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hamburger Bars */
.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #f0f0f0;
    margin: 5px 0;
    transition: 0.4s;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100; /* Ensure it stays on top */
}

/* Hamburger Bars */
.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #f0f0f0;
    margin: 5px 0;
    transition: 0.4s;
}

/* Change hamburger to 'X' when menu is active */
.hamburger.change .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.change .bar2 {
    opacity: 0;
}

.hamburger.change .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* Mobile Menu */

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #252525; /* Darker but more visible than black */
        display: none;
        padding: 15px 0;
        z-index: 1000; /* Ensure it stays above other elements */
        border-top: 2px solid #f31a00; /* Optional: Adds a slight top border */
        border-bottom: 2px solid #f31a00; /* NEW: Red line at the bottom */
    }

    .nav-links li {
        text-align: center;
        padding: 12px 0;
    }

    .nav-links a {
        color: #f0f0f0; /* Keeps the text clear */
        font-size: 18px;
        text-decoration: none;
        display: block;
        padding: 10px;
        transition: background 0.3s ease-in-out;
    }

    .nav-links a:hover {
        background-color: #383838; /* Slight highlight on hover */
        color: #f31a00; /* Matches your red highlight */
    }

    /* When active, show the menu */
    .nav-links.active {
        display: flex;
    }
}


@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger menu on small screens */
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #181818;
        display: none; /* Hidden until toggled */
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #242424; /* Ensure background color */
        display: none;
        padding: 10px 0; /* Add padding for better spacing */
        z-index: 1000; /* Ensure menu is above other content */
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }

    .nav-links.active {
        display: flex;
    }
}



/* Make sure the footer stays at the bottom */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/************* Footer Styling ************/
/* Footer Styling */
footer {
    background-color: #2d2d2d;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

/* Social Icons Container */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between icons */
    padding: 10px 20px; /* Adds padding to the sides */
    max-width: 90%; /* Prevents icons from touching edges */
    margin: 0 auto; /* Centers the icons */
}

/* Social Links */
.social-link {
    text-decoration: none;
    display: inline-block;
}

/* Ensure Icons Stay White */
.social-link i {
    font-size: 24px;
    color: #ffffff !important;
    transition: color 0.3s ease-in-out;
}

/* Hover Effect */
.social-link:hover i {
    color: #f31a00 !important;
}

/* Custom SVG Icons (Bluesky & Mastodon) */
.custom-icon {
    width: 32px; /* Ensures SVGs match FontAwesome size */
    height: 32px;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

/* Ensure image-based icons don't stretch */
.custom-icon {
    filter: invert(1); /* Makes them white */
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Hover effect for SVGs */
.social-link:hover .custom-icon {
    filter: brightness(0) invert(16%) sepia(91%) saturate(5690%) hue-rotate(2deg) brightness(97%) contrast(119%);
    transform: scale(1.1);
}


.page-content {
    text-align: center;
    padding: 50px 20px;
}

.about-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* More Info Link */
.more-info-link {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #f31a00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.more-info-link:hover {
    color: #f31a00;
    text-decoration: underline;
}

/* Buy Buttons Container */
.buy-buttons {
    display: flex;
    justify-content: center; /* Center both buttons */
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
}

/* Shared Button Styling */
.buy-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f31a00; /* Matches "Buy Now" button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    width: 120px; /* Keep size consistent */
}

/* Hover Effect (Both Buttons) */
.buy-link:hover {
    background-color: #f31a00; /* Darker shade for hover */
}



/* Tools Section - Centers the Title */
.tools-section {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Add more spacing between the title and icons */
.tools-section h2 {
    margin-bottom: 30px; /* Increases space between title and icons */
}

/* Centers Icons & Text in a Grid */
.tools-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Ensures responsiveness */
    gap: 40px; /* Adjust spacing between icons */
    width: 100%;
}

/* Center Each Tool's Icon & Text */
.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #f0f0f0;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
}

/* Center the Images */
.tool img {
    width: 50px; /* Adjust icon size */
    height: auto;
    margin-bottom: 10px;
}

/* Hover Effect */
.tool:hover {
    transform: scale(1.1);
}


/********** Game info *************/


.game-container {
    display: flex;
    flex-direction: column; /* Stack game content vertically */
    gap: 20px; /* Add spacing between game sections */
}

.main-image-container img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.screenshot-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.screenshot-gallery img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    cursor: pointer;
}

.gameInfo-description {
    padding: 20px;
    background-color: #2d2d2d;
    border-radius: 5px;
}

.buy-section {
    text-align: center;
}

.buy-link:hover {
    background: #e01800;
}

.update-section {
    padding: 20px;
    background-color: #2d2d2d;
    border-radius: 5px;
}

.update-features,
.features {
    list-style-type: disc;
    text-align: left;
    margin-left: 20px;
}



/*  If Less Than 4 Games, Center Them */
@media (min-width: 768px) {
    .game-grid:has(.game-item:nth-child(1):last-child),
    .game-grid:has(.game-item:nth-child(2):last-child),
    .game-grid:has(.game-item:nth-child(3):last-child) {
        display: flex;
        justify-content: center;
    }
}


/*  Game Item Image */
.game-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 5px;
    border: 2px solid #f31a00;
}

/*  Game Title */
.game-title {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/*  Game Description */
.game-description {
    font-size: 14px;
    color: #ccc;
    margin-top: 5px;
    padding: 0 10px;
}

/*  Buy Buttons (Centered) */
.buy-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/*  Buy Button Styling */
.buy-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f31a00;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    width: 120px;
}

.buy-link:hover {
    background-color: #d11700;
}

/******** Media for game page ***********/


/* Main Media (Image or Video) */
.main-media-container {
    text-align: center;
    margin: 20px 0;
    width: 100%;
}

/* Ensure images and videos match the same size */
.main-media-container img, 
.main-media-container video {
    width: 60%;
    max-width: 600px;
    height: 338px; /* Ensures all media stays the same height */
    border-radius: 10px;
    object-fit: contain; /* Prevents images from being cropped */
    background-color: #181818; /* Fallback background */
}

/* Screenshot & Video Gallery */
.screenshot-gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: auto;
}

/* Scrollable Screenshot Gallery */
.screenshot-gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    max-width: 600px;
    padding: 10px;
    white-space: nowrap;
}

/* Hide Scrollbar */
.screenshot-gallery::-webkit-scrollbar {
    display: none;
}

/* Thumbnails (Images & Videos) */
.thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid #f31a00;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Navigation Arrows */
.gallery-arrow {
    background: #2d2d2d;
    color: white;
    font-size: 24px;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 5px;
}

.gallery-arrow:hover {
    background: #f31a00;
}

/******************** contact page *******************/

/* Contact Page Layout */
.contact-container,
.contact-message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    gap: 50px;
}

/* Ensure Contact Sections Stack on Mobile */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center them */
        text-align: center; /* Center the text */
        gap: 20px; /* Reduce spacing */
    }

    .contact-left {
        width: 100%; /* Make text take full width */
    }

    .contact-right {
        width: 100%;
        display: flex;
        justify-content: center; /* Center the logo */
    }

    .contact-right img {
        max-width: 200px; /* Adjust logo size */
        height: auto;
    }
}


.contact-section {
    margin-bottom: 20px;
}

.contact-section h2 {
    font-size: 20px;
    color: #f31a00;
}

.contact-section a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 18px;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Right Side (Logo) */
.contact-right {
    flex: 1;
    text-align: right;
}

.contact-right img {
    max-width: 200px;
}

/******* Prevent horizontal scrolling *******/
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure all elements stay within the viewport */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Make sure containers don’t overflow */
.container {
    max-width: 100%;
    padding: 0 10px; /* Adds padding without affecting width */
}

/* Ensure images & videos fit within the screen */
img, video {
    max-width: 100%;
    height: auto;
}

/* Prevent flex elements from overflowing */
.screenshot-gallery, .nav-links {
    flex-wrap: wrap;
    justify-content: center;
}

/* Prevent navigation menu from being too wide */
.nav-links {
    max-width: 100%;
    overflow-x: hidden;
}
/******* Prevent horizontal scrolling *******/

/******* Links ******/

/** For unvisted **/
a:link{
    color: white
}

/** For visted **/
a:visited {
    color: #2e7f79
}

.data-collect {
    list-style-type: disc;
    text-align: left;       /* Keep left-aligned bullets */
    margin: 0 auto;         /* Center the list horizontally */
    display: block;         /* Ensure it behaves like a block element */
    width: fit-content;     /* Shrinks to fit content width */
}

.data-bullets {
    display: flex;
    justify-content: center;
}

.button-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    gap: 10px;
    margin: 20px 0; /* optional spacing from other content */
}

.Steam {
    background-color: #00adee;
    border-radius: 8px;
    padding: 4px 10px;
    text-decoration: none;
    height: 40px;
    display: flex;
    align-items: center;
}


.Steam img {
    height: 100%;
    width: auto;
    display: block;
}

.itch {
    background-color: #ee0000;
    border-radius: 8px;
    padding: 4px 10px;
    text-decoration: none;
    height: 40px;
    display: flex;
    align-items: center;
}

.itch img {
    height: 100%;
    width: 75;
    display: block;
}

.StoreButton {
    height: 40px;
    display: flex;
    align-items: center;
}

.StoreButton img {
    height: 100%;
    width: auto;
    display: block;
}

/* QR CODE */
.stripe-style-card {
  background: #383838;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.stripe-style-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

.stripe-style-card p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #ccc;
}

.styled-stripe-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #f31a00;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.styled-stripe-button:hover {
  background-color: #d11700;
}
