/* Reset and Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Body styles for the background image */
body {
    background-image: url('./bg.jpg'); /* Path to your image */
    background-size: cover;           /* Ensures the image scales properly */
    background-position: center;      /* Centers the image */
    background-repeat: no-repeat;     /* Prevents tiling */
    min-height: 100vh;                /* Ensures it takes at least the full viewport height */
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(4, 240, 244, 0.5); Overlay effect */
    z-index: -1;
}

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.navbar img {
    width: 80px;
    border-radius: 50%;
}

.menu {
    position: relative;
}

.menu-button {
    background-color: #555;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.menu-button:hover {
    background-color: #666;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 150px;
    z-index: 10;
}

.dropdown-menu li {
    border-bottom: 1px solid #555;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #555;
}

/* Show Dropdown */
.menu:hover .dropdown-menu {
    display: block;
}

/* Content Styles */
.content {
    text-align: center;
    margin-top: 100px;
}

.jumbotron {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    text-align: left;
    color: white;
}

.jumbotron h1 {
    margin: 0 0 10px;
}

.jumbotron p {
    margin: 10px 0;
}

.btn {
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.btn:hover {
    background-color: #0056b3;
}
/* Hide Dropdown by Default */
.dropdown-menu {
    display: none;
}

/* Hover for Larger Screens */
@media (min-width: 769px) {
    .menu:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static; /* Ensure dropdown stays visible */
        width: 100%;     /* Full width for mobile */
        background-color: #444; /* Match desktop styling */
    }

    .menu-button {
        width: 100%; /* Button spans the container */
        text-align: left;
    }

    .menu.active .dropdown-menu {
        display: block;
    }
}


/* Additional tweaks for smaller devices */
@media (max-width: 768px) {
    body {
        background-size: contain;    /* Fit the image within the container */
        background-position: top;   /* Align the image to the top */
    }
}

@media (max-width: 480px) {
    body {
        background-size: cover;     /* Maintain full coverage on very small screens */
        background-position: center;
    }
}
