/* General Body Styles */
body {
    background-color: #1a1a1a; /* Dark background */
    color: #00ffcc; /* Sci-fi teal color */
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    text-align: center;
    background-image: url('/static/imagery/background_image.jpg'); /* Optional: Add a background image */
    background-size: cover;
    background-position: center;
}

/* Heading Styles */
h1 {
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Search Input Styles */
.search-input {
    width: 250px;
    padding: 10px;
    font-size: 1.2em;
    color: #333;
    background-color: #fff;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    transition: all 0.3s ease;
}

/* Search Button Styles */
.search-btn {
    padding: 10px 20px;
    background-color: #00ffcc;
    color: #1a1a1a;
    font-size: 1.2em;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button Hover Effect */
.search-btn:hover {
    background-color: #00cc99;
}

/* Navbar Container */
.main-navbar {
    background-color: rgba(51, 51, 51, 0.8); /* Dark background with 80% opacity */
    width: 100%;
    height: 60px; /* Fixed height for the navbar */
    position: fixed; /* Fix the navbar at the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure navbar stays on top */
    border-bottom: 2px solid #00ffcc; /* Accent border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    display: flex; /* Use flexbox for layout */
    justify-content: space-around; /* Distribute navbar items evenly */
    align-items: center; /* Center navbar items vertically */
}

/* Navbar List Styling */
.main-navbar ul {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    display: flex; /* Use flexbox to arrange navbar items */
    width: 100%;
    justify-content: space-around; /* Evenly space items */
}

/* Navbar Items (Links) */
.main-navbar li {
    margin: 0 15px; /* Space out the items evenly */
}

/* Navbar Links Styling */
.main-navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

/* Navbar Hover Effect */
.main-navbar a:hover {
    background: linear-gradient(to top left, rgb(0, 255, 204, .5), rgb(0, 204, 255, .5));
    border-radius: 5px; /* Round the corners a little */
}

/* Overlay Styling */
.overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure overlay appears above the navbar */
}

/* Paragraph Styles */
p {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    /* Heading adjustments for smaller screens */
    h1 {
        font-size: 2em; /* Smaller heading for smaller screens */
    }

    /* Search input and button adjustments */
    .search-input {
        width: 200px; /* Adjust width for smaller screens */
        font-size: 1em; /* Smaller font size */
    }

    .search-btn {
        font-size: 1em; /* Smaller button font */
        padding: 8px 16px; /* Smaller padding */
    }

    /* Navbar adjustments for smaller screens */
    .main-navbar {
        height: 50px; /* Smaller navbar height */
        flex-direction: column; /* Stack navbar items vertically */
        justify-content: flex-start; /* Align navbar items to the top */
    }

    .main-navbar ul {
        flex-direction: column; /* Stack navbar items vertically */
        width: 100%;
    }

    .main-navbar li {
        margin: 10px 0; /* More space between navbar items */
    }

    .main-navbar a {
        font-size: 16px; /* Smaller font size for mobile */
        padding: 8px 15px; /* Reduced padding for mobile */
    }

    /* Overlay adjustments for smaller screens */
    .overlay {
        padding: 20px; /* Reduced padding */
        width: 80%; /* More flexible width for smaller screens */
        max-width: 500px; /* Ensure overlay doesn't stretch too much */
    }
}

/* Extra small screen devices (portrait mode, below 480px) */
@media (max-width: 480px) {
    /* Heading adjustments */
    h1 {
        font-size: 1.8em; /* Even smaller heading */
    }

    /* Search input and button adjustments */
    .search-input {
        width: 180px; /* Adjust for very small screens */
        font-size: 0.9em; /* Smaller font size */
    }

    .search-btn {
        font-size: 0.9em; /* Even smaller button font */
        padding: 6px 12px; /* Reduced padding for very small screens */
    }

    /* Navbar adjustments for extra small screens */
    .main-navbar {
        height: 45px; /* Even smaller navbar height */
    }

    .main-navbar a {
        font-size: 14px; /* Even smaller font for very small screens */
    }

    /* Overlay adjustments for very small screens */
    .overlay {
        padding: 15px; /* Less padding */
        width: 90%; /* Full width */
        max-width: 100%;
    }
}