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

html, body {
    height: 100%; /* Ensure the body and html take full height */
    overflow-x: hidden; /* Prevent horizontal overflow */
    overflow-y: auto;
}

body {
    background: black; /* Black background for space effect */
    overflow-y: auto; /* Allow vertical scrolling */
}

.favicon {
    width: 50px; /* Decrease the size as needed */
    height: 50px; /* Maintain aspect ratio */
    display: inline-block;
    margin: 10px; /* Add margin if needed */
    transition: opacity 0.3s ease; /* Smooth hover effect */
}

#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10; /* Place behind all other elements */
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ensure container takes at least full viewport height */
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add padding for better spacing on smaller screens */
    box-sizing: border-box; /* Ensure padding and borders are included in the element's total width and height */
}

.overlay {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px; /* Reduced padding for smaller screens */
    background: rgba(0, 0, 0, 0.7); /* Slightly darker background for contrast */
    border-radius: 10px; /* Rounded corners for overlay */
    width: 100%;
    max-width: 800px; /* Max width to avoid stretching on larger screens */
    box-sizing: border-box;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Border for separation */
    border-radius: 10px;
    transition: transform 0.3s ease, border 0.3s ease;
    background: rgba(255, 255, 255, 0.1); /* Background for button */
    margin: 10px; /* Add margin between buttons */
    text-align: center; /* Center text */
    box-sizing: border-box; /* Ensure padding and borders are included in the element's total width and height */
}

.category-item i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.category-item span {
    font-size: 1.2rem;
    color: white;
}

/* Hover effect */
.category-item:hover {
    transform: scale(1.1); /* Slight enlargement on hover */
    border-color: rgba(255, 255, 255, 0.8); /* Border color change on hover */
    background: rgba(255, 255, 255, 0.2); /* Slight background change on hover */
}

.social-media {
    margin-top: 30px;
}

.social-media a {
    margin: 0 10px;
    font-size: 2rem;
    color: white;
}

.social-media a:hover {
    color: #ccc;
}

.image-frame {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Add space between the image and h1 */
}

.image-frame img {
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Keep height equal to width for a perfect circle */
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fits the frame properly */
    border: 4px solid white; /* Optional: Add a white border around the image */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Optional: Add shadow for depth */
}

/* Responsive Design */
@media (max-width: 768px) {
    .overlay {
        padding: 15px;
        font-size: 0.9em; /* Adjust font size for smaller screens */
    }

    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.2rem;
    }

    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-item i {
        font-size: 2rem;
    }

    .category-item span {
        font-size: 0.9rem;
    }

    .social-media {
        margin-top: 20px;
    }

    .social-media a {
        font-size: 1.3rem;
    }

    .image-frame img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .overlay {
        padding: 10px;
        font-size: 0.8em; /* Further adjust font size */
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .category-container {
        grid-template-columns: 1fr;
    }

    .category-item {
        padding: 10px;
    }

    .category-item i {
        font-size: 1.5rem;
    }

    .category-item span {
        font-size: 0.8rem;
    }

    .social-media a {
        font-size: 1.2rem;
    }

    .image-frame img {
        width: 80px;
        height: 80px;
    }
}
