/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('/assets/images/backgroundd.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px;
    background: rgba(0, 0, 0, 0.8);
}

.logo img {
    height: 130px;
    width: auto;
    padding: 8px 15px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: #007bff;
    color: #ffffff;
}

nav ul li a.active {
    background-color: #0056b3;
}

/* General Mobile Styles */
@media (max-width: 768px) {
    #hero {
        min-height: 100vh; /* Ensure hero fills screen on mobile */
        padding: 60px 20px; /* Adjust padding for smaller screens */
    }

    #fun-zone {
        margin-top: 20px; /* Add space between sections */
    }
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('images/hero-background.jpg') no-repeat center center/cover;
    height: auto; /* Automatically adjust height based on content */
    min-height: 50vh; /* Set minimum height to fill the viewport */
    padding: 10px 20px; /* Ensure enough space */
    color: #fff;
    overflow: hidden; /* Prevent content from spilling out */
    box-sizing: border-box; /* Include padding in height calculation */
}

.hero-content {
    text-align: center; /* Center child elements */
    max-width: 800px;
    margin: 0 auto;
}

#hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

#hero .hero-description {
    margin: 20px 0 40px; /* Add bottom margin for spacing */
    padding: 10px;
    border-radius: 10px;
    color: #ddd;
}


#hero .hero-description p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

.cta-button {
    display: inline-block; /* Keep inline for sizing */
    margin-top: 20px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none; /* Remove underline */
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 200px;
    width: auto;
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInDown 1.5s ease-in-out;
}

#hero h1 span {
    color: #007bff;
    animation: pulse 2s infinite;
}

#hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Fun Zone Section */
#fun-zone {
    padding: 60px 20px;
    margin-top: 0; /* Ensure no overlap caused by margins */
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
    text-align: center;
    position: relative; /* Ensure stacking is correct */
}


#fun-zone h2 {
    font-size: 29px;
    margin-bottom: 20px;
    color: #007bff;
    animation: fadeIn 1.5s ease-in-out;
}

#fun-zone p {
    margin-bottom: 30px;
    font-size: 18px;
    color: #ddd;
}

/* Fun Grid */
.fun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.fun-card {
    position: relative;
    background: rgba(51, 51, 51, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.fun-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.fun-card p {
    font-size: 16px;
    color: #ddd;
}

.fun-card:hover {
    transform: translateY(-10px);
    background-color: #007bff;
    color: #fff;
}

.fun-card:hover i {
    transform: scale(1.2);
    color: #fff;
}

/* Hover Effect for Text */
.fun-card::before {
    content: attr(data-hover);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.fun-card:hover::before {
    opacity: 1;
}

/* Special Fun Section */
.special-fun {
    margin-top: 40px;
}

.special-fun h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #007bff;
}

.special-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.special-card {
    background: rgba(51, 51, 51, 0.9);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.special-card i {
    font-size: 35px;
    color: #007bff;
    margin-bottom: 10px;
}

.special-card p {
    font-size: 14px;
    color: #ddd;
}

.special-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    background-color: #007bff;
    color: #fff;
}

.special-card:hover i {
    color: #fff;
}




/* Section */
section {
    padding: 5px 40px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
}

section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Intro Section */
.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none; /* This removes the underline */
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Features Page */
#features-page {
    padding: 20px 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
}

#features-page h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #007bff;
}

#features-page h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #007bff;
}

.features-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(51, 51, 51, 0.9);
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent; /* Default border is transparent */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-color: #007bff; /* Border turns blue on hover */
}

.feature-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #dddddd;
}


/* General Games Page Styles */
#games-page {
    padding: 10px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

#games-page h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #007bff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Create 4 columns */
    gap: 20px; /* Maintain spacing between cards */
    margin: 0 auto;
    max-width: 1600px; /* Adjust the maximum width for four cards */
}

/* Responsive Design for Smaller Screens */
/* Ensure the chat widget does not take up the full screen on mobile */
@media (max-width: 768px) {
    #tawkchat-container {
        width: 90% !important;
        height: 70% !important;
        bottom: 10px !important;
        right: 5% !important;
    }

    #tawkchat-minified {
        bottom: 10px !important;
        right: 5% !important;
    }
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr); /* Show 3 cards per row */
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr); /* Show 2 cards per row */
    }
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr; /* Show 1 card per row */
    }
}

/* Game Card Flip Effect */
.game-card {
    perspective: 1000px; /* Create 3D perspective */
    position: relative;
    width: 100%;
    height: 400px; /* Set consistent height for the card */
    overflow: hidden; /* Prevent content from spilling out */
    border-radius: 10px; /* Optional, match your design */
}

/* Inner Card */
.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* Preserve 3D effect */
    transition: transform 0.6s ease; /* Smooth flip transition */
}

.game-card:hover .game-card-inner {
    transform: rotateY(180deg); /* Flip on hover */
}

/* Front and Back of Card */
.game-card-front,
.game-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide back side initially */
    border-radius: 10px;
    overflow: hidden;
}

.game-card-front {
    display: flex;
}

.game-card-front img {
    width: 100%; /* Cover the full width of the card */
    height: 100%; /* Cover the full height of the card */
    object-fit: fill; /* Ensure the image fills the card without gaps */
    border-radius: 10px 10px 0 0; /* Match card's border radius */
}

.game-card-back {
    background: #333333; /* Back card color */
    transform: rotateY(180deg); /* Rotate back side */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-card-back h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #fff;
}

.game-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 15px;
}

.game-card-back li {
    margin: 5px 0;
    font-size: 16px;
    color: #fff;
}

.game-card-back .cta-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.game-card-back .cta-button:hover {
    background-color: #003d80;
    transform: translateY(-2px);
}


/* Game Card Styles */
.game-card {
    display: flex;
    height: 400px;
    flex-direction: column;
    background: rgba(51, 51, 51, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border: 2px solid #007bff;
}

/* Game Image */
.game-image img {
    width: 100%;
    height: 200px; /* Set a consistent height */
    object-fit: cover; /* Ensures the image fills the box without distortion */
    transition: transform 0.3s ease;
    border-bottom: 2px solid #4d4d4d;
    object-position: 20% 30%;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

/* Button Alignment */
.cta-button {
    margin-top: auto; /* Push the button to the bottom */
    padding: 10px 10px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 14px;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


/* Animation for Pricing Details */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select Plan Button in Game Cards */
.games-grid .game-card .cta-button {
    display: inline-block;
    margin-top: 0px !important; /* Increase margin to push the button down */
    padding: 12px 25px !important; /* Smaller padding for better height control */
    background-color: #007bff !important;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px !important;
    font-size: 12px !important; /* Smaller font size */
    height: 30px !important; /* Explicit height */
    line-height: 30px !important; /* Align text vertically */
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: auto; /* Keep button width dynamic */
}

.games-grid .game-card .cta-button:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px);
}


/* Contact Page */
#contact-page {
    padding: 10px 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    min-height: auto; /* Remove forced height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content closer to the top */
    align-items: center;
}

#contact-page h2 {
    font-size: 36px;
    margin-bottom: 15px; /* Reduce space below the heading */
    color: #007bff;
}

#contact-page p {
    font-size: 18px;
    margin-bottom: 15px; /* Reduce space below the description text */
    color: #cccccc;
}

#contact-form {
    max-width: 600px;
    width: 100%;
    background: rgba(51, 51, 51, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    text-align: left;
}

#contact-form .form-group {
    margin-bottom: 15px;
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #dddddd;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    box-sizing: border-box;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
    background: #ffffff;
}

#contact-form button.cta-button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Add space above the button */
}

#contact-form button.cta-button:hover {
    background-color: #0056b3;
}

/* FAQ Page */
#faq-page {
    padding: 10px 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

#faq-page h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #007bff;
}

.faq-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-card {
    background: rgba(51, 51, 51, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent; /* Default border is transparent */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-color: #007bff; /* Border turns blue on hover */
}

.faq-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #007bff;
}

.faq-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #dddddd;
}



/* Login Page */
#login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 20vh;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    text-align: center;
    color: #ffffff;
}

#login-page h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #007bff;
}

#login-page p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cccccc;
}

#login-form {
    background: rgba(51, 51, 51, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: left;
    box-sizing: border-box; /* Ensures padding is included in the form dimensions */
}

#login-form .form-group {
    margin-bottom: 20px; /* Space between form fields */
    width: 100%; /* Prevent overflow */
}

#login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #dddddd;
}

#login-form input {
    width: 100%; /* Ensure input fields fit within the form box */
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    color: #333;
    box-sizing: border-box; /* Includes padding in width calculations */
    transition: box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#login-form input:focus {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.8);
    outline: none;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    color: #ffffff;
    background: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px; /* Adds space above the button */
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}


.login-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #cccccc;
}

.login-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #0056b3;
}

/* Register Page */
#register-page {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

#register-page h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #007bff;
}

#register-page p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cccccc;
}

#register-form {
    background: rgba(51, 51, 51, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: left;
    box-sizing: border-box;
}

#register-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

#register-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #dddddd;
}

#register-form input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#register-form input:focus {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.8);
    outline: none;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    color: #ffffff;
    background: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.register-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #cccccc;
}

.register-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.register-footer a:hover {
    color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
}

footer .social-icons img {
    width: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

footer .social-icons img:hover {
    transform: scale(1.2);
}

/* General mobile styles */
@media (max-width: 768px) {
    body {
        padding: 0 10px; /* Add padding for smaller screens */
    }

    header {
        flex-direction: column; /* Stack logo and navigation vertically */
        text-align: center;
    }

    nav ul {
        flex-direction: column; /* Stack navigation links */
        gap: 10px; /* Add spacing between links */
    }

    section {
        padding: 10px 15px; /* Reduce padding for sections */
    }

    .games-grid, .features-grid, .faq-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 15px;
    }

    .game-card, .feature-card, .faq-card {
        text-align: center; /* Center-align card content */
    }

    .game-card img, .feature-card img, .faq-card img {
        max-width: 100%; /* Ensure images fit within their container */
        height: auto; /* Maintain aspect ratio */
    }

    .cta-button {
        width: 100%; /* Make buttons stretch across the card width */
        padding: 12px; /* Adjust button size */
        font-size: 14px; /* Reduce font size */
    }

    footer {
        padding: 15px; /* Adjust footer padding */
        font-size: 14px; /* Reduce font size */
    }
}

@media (max-width: 768px) {
    h1, h2, h3 {
        font-size: 20px; /* Reduce font sizes */
    }

    p {
        font-size: 14px; /* Adjust paragraph text size */
    }
}


#form-message {
    color: #0056b3; /* You can change this color as needed */
    margin-top: 10px;
    text-align: center; /* Centers the text */
    font-weight: bold; /* Makes the text bold for better visibility */
}


/*Tawk.to Live Chat Box */

#tawkchat-container {
    right: 100px !important; /* Adjust this value to move it to the left */
    bottom: 20px !important; /* Optional: Adjust the bottom position if needed */
}


/* Responsive Design */
@media (max-width: 768px) {
    .features-container,
    .games-grid {
        flex-direction: column;
        gap: 10px;
    }
}
