html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent scrolling */
    font-family: 'Open Sans', sans-serif;
}

body {
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

canvas#starry-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 2;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; /* Ensure main content takes full viewport height */
    z-index: 3; /* Ensure content is above overlay and stars */
    position: relative;
    padding: 20px; /* Add padding to avoid content touching the edges */
    box-sizing: border-box;
}

.site-buttons, .management-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.management-buttons {
    display: none; /* Hide by default */
    margin-top: 20px;
}

.site-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(44, 47, 51, 0.85); /* Adjusted to be less see-through */
    padding: 20px;
    border-radius: 10px;
    width: 200px; /* Set fixed width for all buttons */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.site-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.site-image {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.btn {
    display: block;
    padding: 10px 20px;
    font-size: 20px; /* Increased font size */
    font-weight: 600; /* Semi-bold font */
    color: white;
    text-decoration: none;
    background-color: #2A6EBB; /* Darker blue background color */
    border-radius: 5px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
    text-shadow: 2px 2px 4px #000000; /* Black outline for the text */
}

.btn:hover {
    background-color: #1E4F8A; /* Even darker blue on hover */
}

.big-btn {
    font-size: 22px; /* Further increased font size for big buttons */
    padding: 12px 25px;
}

/* Media Queries for Mobile */
@media (max-width: 600px) {
    body {
        overflow: auto; /* Allow scrolling */
    }

    .main-content {
        justify-content: flex-start;
        height: auto; /* Allow main content to adjust height */
        padding: 20px 0;
    }

    .site-buttons, .management-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .site-button {
        width: 90%; /* Ensure all buttons take the same width */
        max-width: 300px; /* Set a max-width to keep the buttons consistent */
    }
    
    .btn {
        font-size: 18px; /* Adjust button text size for mobile */
        padding: 10px 20px;
    }
    
    .big-btn {
        font-size: 20px;
        padding: 10px 20px;
    }
}
