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

body {
    font-family: 'WebsiteFont', sans-serif;
    background-color: #D1F5FF;
    color: #244f26;
    line-height: 1.6;
    overflow: auto;
    cursor: none; /* Hide the default mouse cursor */
}

/* Bubble Styles */
#bubble {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #EEF8FF; /* Default bubble color */
    pointer-events: none; /* Ensures the bubble doesn't interfere with clicks */
    box-shadow: 0 0 15px #EEF8FF; /* Glowing effect */
    transition: transform 0.1s ease-out, background 0.3s ease; /* Smooth background color change */
    transform: translate(-50%, -50%);
    z-index: 9999; /* Ensure the bubble stays on top */
}

/* @font-face rule to load custom .ttf font */
@font-face {
    font-family: 'WebsiteFont'; /* Custom name for the font */
    src: url('./Website.ttf') format('truetype'); /* Path to the .ttf file */
    font-weight: normal;
    font-style: normal;
}



/* Keyframe Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bubblePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); } /* Increase size in the middle of animation */
    100% { transform: scale(1); }
}

/* Animation on hover */
.bubble-hover {
    animation: bubblePulse 0.8s infinite ease-out;
}

/* Section Styling */
section {
    font-family: 'WebsiteFont', sans-serif;
    background: linear-gradient(135deg, #256D1B, #424342); /* Gradient background */
    color: #EEF8FF;
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Game Entries */
.game-link {
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: center;
}

.game {
    background-color: #EEF8FF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column; /* Stack the image, heading, and paragraph vertically */
    align-items: center; /* Center everything inside the .game div */
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /*width: 250px; /* Set a fixed width for the game card */
}

/* Hover Effect for Game Cards */
.game:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.game img {
    width: 420px;
    height: 220px;
    border-radius: 8px;
    margin-bottom: 15px; /* Space between image and text */
    object-fit: cover;
}

.game h3 {
    font-size: 1.5rem;
    color: #34f6f2;
    margin-bottom: 10px;
}

.game p {
    font-size: 1rem;
    color: #256d1b;
    text-align: center;
}

.game a {
    color: #34f6f2;
    text-decoration: none;
}

.game a:hover {
    text-decoration: underline;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #244f26, #256d1b); /* Gradient */
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.navbar .menu {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
}

.navbar .menu li {
    margin: 0 20px;
}

.navbar .menu a {
    color: #34f6f2;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px 12px;
    transition: 0.3s ease;
    border-radius: 4px;
}

.navbar .menu a:hover {
    background-color: #b92978;
    transform: scale(1.1); /* Slightly enlarges when hovered */
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu {
        display: none;
        width: 100%;
        text-align: center;
        background: #2c3e50;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding-top: 60px;
        transition: transform 0.3s ease;
    }

    .menu.active {
        display: block;
        transform: translateY(0);
    }

    .menu li {
        margin: 20px 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
    }
}

/* Main Section Styles */
main {
    margin-top: 120px; /* To account for the fixed navbar */
    padding: 2rem;
}

h1, h2, h3 {
    color: #34f6f2;
    margin-bottom: 1rem;
    font-family: 'WebsiteFont', sans-serif;
}

h1 {
    font-size: 4rem;
    text-align: center;
    color: #34f6f2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6); /* Adds depth */
    animation: fadeIn 2s ease-out; /* Text fade-in animation */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.7rem;
    color: #34f6f2;
    margin-top: 1rem;
    line-height: 1.8;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
    animation: fadeInText 2.5s ease-out 1s forwards; /* Paragraph text fade-in with delay */
}

button {
    background: linear-gradient(135deg, #34f6f2, #7d53de); /* Gradient effect */
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px; /* Rounded corners */
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth transition for hover and focus */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

button:hover {
    background: linear-gradient(135deg, #7d53de, #34f6f2); /* Reverse gradient on hover */
    transform: translateY(-3px); /* Lift the button slightly */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

button:active {
    transform: translateY(1px); /* Slightly depress the button on click */
}

button:focus {
    outline: none; /* Remove default outline */
    box-shadow: 0 0 0 3px rgba(61, 118, 214, 0.5); /* Add focus ring with soft blue */
}