/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom right, #000000, #ea2cff); /* Black to yellow gradient for both desktop and mobile */
    color: white;
    min-height: 100vh; /* Make sure the body takes the full height */
    padding-top: 80px; /* Adjust this to the header height */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Disable horizontal scrolling */
}

.main-content {
    width: 100%;
    padding: 20px; /* Adjust the padding inside the main content */
}

header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure the header stays above other content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111;
    padding: 15px 30px;
    height: 80px; /* Ensure the header has a fixed height */
    width: 100%; /* Ensure it stretches across the page */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visibility */
}


.logo img {
    height: 50px;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.menu.hidden {
    display: none;
}

/* Menu Drawer Styles */
.menu {
    background-color: rgba(51, 51, 51, 0.6); /* 50% transparent background */
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    z-index: 1100; /* Ensure menu is on top */
}


.menu ul {
    list-style-type: none;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    display: block;
}

/* Main Content Layout */
.main-content {
    flex: 1; /* Takes up remaining space and pushes the footer down */
    display: flex; /* Flexbox for content layout */
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Make the wrapper take full viewport height */
}

.left-section {
    width: 25%;
}

/* Promo Carousel Styles */
.promo-carousel {
    position: absolute; /* Instead of fixed, making it stay relative to its container */
    top: 85px; /* Position relative to the top of its container */
    left: 20px; /* Position relative to the left of its container */
    width: 500px; /* Set width for the carousel */
    height: 220px; /* Set height for the carousel */
    overflow: hidden; /* Hide overflow to keep it neat */
    border-radius: 10px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0); /* Optional: Add shadow */
    z-index: 100; /* Ensure it stays on top */
    display: flex; /* Use flexbox to arrange images */
}

.promo-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.promo-carousel img.active {
    opacity: 1;
}

/* Live Transactions Table */
.live-transactions {
    position: sticky; /* Make the element stick to its position while scrolling */
    top: 220px; /* The element will stay 220px from the top of the viewport */
    margin-top: 220px;
    margin-bottom: 30px;
    background-color: rgba(34, 34, 34, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10; /* Ensure it stays above other content when scrolled */
}


.live-transactions h3 {
    text-align: center;
    color: #ff2cf8;
    margin-bottom: 15px;
    font-size: 19px;
    text-shadow: 1px 1px 5px black;
}

.live-transactions th, 
.live-transactions td {
    font-size: 12px; /* Adjust the font size for table headers and data cells */
}


.live-transactions table {
    width: 100%;
    color: white;
    border-collapse: collapse;
}

.live-transactions th, .live-transactions td {
    border: 1px solid #555;
    padding: 12px;
    text-align: left;
    transition: background-color 0.3s;
}

.live-transactions th {
    background-color: #444;
    font-weight: bold;
}

.live-transactions tr:hover {
    background-color: rgba(235, 35, 249, 0.2);
}

/* Jackpot Section */
.jackpot {
    background-color: rgba(34, 34, 34, 0.8);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.jackpot h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #ff37ee;
    text-shadow: 1px 1px 5px black;
}

/* Jackpot Amount Styling */
.jackpot-amount {
    font-size: 2.5em;
    color: rgb(255, 255, 255);
    position: relative;
    text-align: center;
}

/* Games Section */
.games-section {
    width: 50%;
    text-align: center;
}

.games-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

/* Category Button Styles */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-header {
    background-color: rgb(255, 255, 255);
    color: rgb(119, 4, 137);
    width: 140px;
    height: 40px;
    padding: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-header:hover {
    background-color: #e000cd;
}

/* Game Boxes */
.games-container {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.game-box {
    width: 130px;
    height: 130px;
    background-color: #fee4ff;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.game-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.game-box p {
    margin-top: 15px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.3;
}

/* Right Section */
.right-section {
    width: 20%;
    text-align: center;
    padding: 20px;
}

/* Button Click Effects */
button {
    transition: transform 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

button:active {
    transform: scale(0.95);
    background-color: #e000d8;
}

/* Article Section */
.article-section {
    margin-top: 20px;
    background-color: #333;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.article-section h1 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: #ff37ee;
}

.article-section h2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    color: #ff37ee;
}

.article-section p {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Login/Register Buttons */
.login-register {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.login-btn, .register-btn {
    background-color: #ff67fc;
    color: black;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.login-btn:hover, .register-btn:hover {
    background-color: #d300e7;
    transform: scale(1.05);
}

/* Footer Styles */
.footer {
    width: 100%; /* Make footer span the full width */
    background-color: rgba(34, 34, 34, 0.9); /* Semi-transparent background */
    color: white;
    text-align: center;
    padding: 15px 0;
    position: relative; /* Normal flow on mobile */
    bottom: 0; /* Align to the bottom */
    left: 0; /* Align to the left */
    box-sizing: border-box; /* Ensure padding is included within the width */
    margin: 0;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.icon-box {
    text-align: center;
}

.icon-box img {
    width: 50px;
    height: auto;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #eb23f9;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column; /* Stack all sections vertically */
        padding: 10px;
        padding-bottom: 120px; /* Increased space for footer */
    }

    .left-section {
        order: 1; /* First section */
        width: 100%; /* Full width for mobile */
    }

    .login-register {
        order: 2; /* Second section */
        width: 100%;
        justify-content: center;
        margin-top: 10px; /* Space between elements */
    }

    .live-transactions {
        order: 3; /* Third section, moved above jackpot */
        width: 100%;
        margin-top: 10px; /* Space between elements */
    }

    .jackpot {
        order: 4; /* Fourth section, after live-transactions */
        width: 100%;
    }

    .article-section {
        order: 5; /* Fifth section */
        width: 100%;
    }

    .games-section {
        order: 6; /* Last section before footer */
        width: 100%;
        margin-bottom: 20px; /* Add more space before the footer */
    }

    /* Footer Styles */
    .footer {
        order: 7; /* Ensure footer is last */
        position: relative; /* Change to relative for mobile */
        bottom: 0; /* Align at the bottom of content */
        width: 100%;
        background-color: rgba(34, 34, 34, 0.9); /* Semi-transparent background */
        color: white;
        text-align: center; /* Centered text */
        padding: 15px 0; /* Padding for top and bottom */
        z-index: 100;
        box-sizing: border-box; 
    }

    /* Adjust game category layout for mobile: 3 in first row, 2 in second */
    .categories {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
        flex-wrap: wrap;
    }

    .category-header {
        width: 140px;
        height: 40px;
        flex: 1 1 30%; /* Responsive sizing */
    }

    /* Game boxes 80x80 for mobile with more space between them */
    .game-box {
        width: 80px;
        height: 80px;
        margin: 5px 10px; /* Space between game boxes */
    }
    .game-box p {
        font-size: 12px; /* Smaller text for mobile */
    }
    .games-container {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
    }

    /* Promo Carousel Styles */
    .promo-carousel {
        bottom: 300px; /* Position it above the footer */
        right: 100px; /* Align to the right */
        width: 120px; /* Set a smaller width for mobile */
        height: auto; /* Let height adjust automatically */
        overflow: hidden; /* Hide overflow to keep it neat */
        z-index: 100; /* Ensure it stays on top */
        display: flex; /* Flexbox for images */
        flex-direction: column; /* Stack images vertically */
    }

    .promo-carousel img {
        width: 100%; /* Make images fill the carousel width */
        height: auto; /* Maintain aspect ratio */
        object-fit: contain; /* Ensure images are fully visible without cropping */
        transition: opacity 0.5s ease-in-out; /* Smooth transition for opacity */
    }
}
@media (min-width: 769px) {
    .footer {
        position: relative; /* Relative for normal document flow */
    }
}
    
/* Mobile Small Screen Adjustments */
@media (max-width: 480px) {
    .main-content {
        flex-direction: column;
        padding: 10px;
    }

    .left-section, .live-transactions, .login-register, .right-section, .games-section {
        width: 100%;
    }

    .categories {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .category-header {
        width: 140px;
        height: 40px;
    }

    .game-box {
        width: 80px;
        height: 80px;
    }
}
/* For Desktop (Width greater than 768px) */
@media (min-width: 769px) {
    html, body {
        overflow: hidden; /* Disable scrolling on desktop */
    }
    
    .footer {
        position: absolute; /* Stick to the bottom of the viewport */
    }
}

/* For Mobile (Width less than or equal to 768px) */
@media (max-width: 768px) {
    html, body {
        overflow: auto; /* Allow scrolling on mobile */
    }

    .footer {
        position: relative; /* Footer remains in normal flow */
    }
}

@media (min-width: 484px) and (max-width: 1461px) {
    .main-content {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap; /* Prevent items from wrapping */
        padding: 20px; /* Adjust padding */
    }

    .left-section {
        width: 30%; /* Adjust width of the left section */
        position: relative; /* Ensure content stays properly positioned */
    }

    .promo-carousel {
        width: 100%; /* Full width for carousel in the left section */
        height: auto; /* Maintain aspect ratio */
    }

    .live-transactions {
        margin-top: 20px; /* Adjust spacing for live transactions */
    }

    .games-section {
        width: 60%; /* Adjust games section width */
        margin: 0 20px; /* Add margin for spacing */
    }

    .games-container {
        justify-content: space-between; /* Spread out game boxes */
    }

    .game-box {
        width: 150px; /* Adjust game box size */
        height: 150px; /* Adjust height */
    }

    .right-section {
        width: 20%; /* Adjust right section width */
        margin-left: 20px; /* Add margin */
    }

    .jackpot {
        padding: 20px; /* Add padding for larger screens */
    }

    /* Footer adjustments */
    .footer {
        display: flex;
        justify-content: space-between; /* Spread footer content horizontally */
        padding: 15px; /* Add padding */
    }

    .footer-icons {
        flex-direction: row; /* Horizontal layout for icons */
        gap: 20px; /* Spacing between icons */
    }

    .footer p {
        margin: 0; /* Remove margins for tighter layout */
    }
}