html, body {
    height: 100%; /* Ensure the body and html elements take up full height */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* White text */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header {
    padding: 20px;
    background-color: #000000; /* Black background for header */
    text-align: center;
    z-index: 2; /* Ensure header is above the canvas */
    position: relative;
}

.logo img {
    height: 50px;
}

main {
    flex: 1; /* Allows the main content to grow and push the footer down */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    z-index: 2; /* Ensure main content is above the canvas */
    position: relative;
}

.hero h1 {
    margin: 0;
    color: #ffffff; /* White text */
    font-size: 36px;
}

.download-button-container {
    margin-top: 50px;
}

.download-link {
    background-color: #ffffff; /* White button */
    border: 2px solid #ffffff; /* White border */
    color: #000000; /* Black text on button */
    padding: 15px 30px;
    text-decoration: none; /* Remove underline from link */
    font-size: 20px;
    cursor: pointer;
    z-index: 2; /* Ensure the link is clickable */
    position: relative;
}

.invite-code-container {
    margin-top: 30px;
    color: #ffffff; /* White text for invite code */
    font-size: 24px;
    z-index: 2; /* Ensure the invite code is clickable */
    position: relative;
}

.invite-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50; /* Fresh green background to highlight invite code */
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    z-index: 2; /* Ensure the invite code is clickable */
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.invite-code-label {
    margin: 0;
    padding-right: 10px;
    color: #ffffff; /* White text */
}

.invite-code {
    margin: 0;
    color: #ffffff; /* White text */
    padding-right: 10px;
}

.copy-button {
    background-color: #ffffff; /* White background */
    color: #4CAF50; /* Green text */
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.copy-button:hover {
    background-color: #ffcc00; /* Yellow hover effect */
    color: #000000; /* Black text on hover */
}

.invite-instruction {
    margin-top: 10px;
    font-size: 16px;
    color: #4CAF50; /* Matching green color for instruction text */
    z-index: 2; /* Ensure the instruction text is visible */
    position: relative;
}

.invite-prompt {
    margin-top: 20px;
    font-size: 20px;
    color: #ffcc00; /* Yellow color to make the prompt stand out */
    font-weight: bold;
    z-index: 2; /* Ensure the prompt is visible */
    position: relative;
    padding: 10px;
    border: 2px solid #ffcc00;
    border-radius: 5px;
}

#particles-js {
    position: fixed; /* Use fixed positioning to prevent overflow */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Ensure canvas is behind everything */
    overflow: hidden; /* Ensure the canvas does not cause overflow */
}

footer {
    background-color: #000000; /* Black background for footer */
    color: #ffffff; /* White text */
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    flex-shrink: 0; /* Prevents the footer from shrinking */
    z-index: 2; /* Ensure footer is above the canvas */
}
