/* Ensure the navbar doesn't overlap content */
.nav-container {
    margin-bottom: 5%;
}

/* Remove flexbox centering from body and html */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
    helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
    background: #000;
    background-size: cover; /* Ensure the background image covers the entire area */
    background-repeat: no-repeat; /* Ensure the background does not repeat */
    background-attachment: fixed; /* Ensure the background stays fixed during scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Background layers */
.stars, .twinkling, .clouds {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Ensure the background is behind other content */
}

.stars {
    background: #000 url('https://i.imgur.com/YKY28eT.png') repeat top center;
}

.twinkling {
    background: transparent url('https://i.imgur.com/XYMF4ca.png') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

.clouds {
    background: transparent url('https://i.imgur.com/mHbScrQ.png') repeat top center;
    animation: move-clouds-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

@keyframes move-clouds-back {
    from { background-position: 0 0; }
    to { background-position: 10000px 0; }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cover-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh; /* Make sure it takes the full viewport height */
    color: white;
    margin-top: 12.5%;
    max-width: 1200px;
}

.container {
    flex: 1;
    margin-top: 80px; /* Adjust this value based on the height of your navbar */
    padding-bottom: 100px; /* Add padding to the bottom to make space for the footer */
}

.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.view-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card-hover:hover .view-label {
    opacity: 1;
}

.card {
    max-width: 500px; /* Set the maximum width of the card */
}

.card-img-top {
    max-width: 100%; /* Ensure the image does not exceed the card's width */
    height: 200px;
    object-fit: cover; /* Maintain aspect ratio while covering the area */
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

#page {
    margin-top: 10px;
}

.form-container {
    max-width: 1000px; /* Increase max width */
    width: 90%; /* Add width to make it responsive */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

textarea {
    resize: vertical;
    min-height: 200px;
}

/* Add responsiveness */
@media (max-width: 576px) {
    .form-container {
        margin-top: 55px; /* Increase top margin for mobile */
        padding: 15px;
        width: 95%; /* Make form container wider on mobile */
    }

    .cover-container {
        margin-top: 25%;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .card {
        max-width: 100%; /* Ensure cards are responsive */
    }
}

.dropdown-menu .dropdown-item:hover {
    background-color: #343a40; /* Change this to your desired background color */
}
