@font-face {
    font-family: 'NewOne';
    src: url('NewOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.background-image {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background-image: url('montrealmap-compressed.png');
    background-size: 100% 100%; /* Stretch the image to fill the area */
    background-position: center;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 2s forwards; /* Fade in the background */
    z-index: -1; /* Place background image behind all content */
    pointer-events: none; /* Disable pointer events on the background image */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: .6;
    }
}

.container {
    position: relative;
    z-index: 1; /* Ensure the container is above the background */
    width: 100%;
    height: 100%;
}

.icon-container {
    position: relative; /* Icons positioned relative to the container */
    z-index: 2; /* Ensure icons are above the background image */
}

.disable-hover .icon {
    pointer-events: none; /* Disables hover interactions */
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 90px; /* Increased width to accommodate larger text */
    background-color: rgba(255, 255, 255, 0.8); /* Lighter background with slight transparency */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 10;
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    border-radius: 0 0 10px 0; /* Rounded bottom right corner */
}

.nav-item {
    width: 100%;
    padding: 5px 0;
    color: #333; /* Darker grey text for contrast */
    text-align: center;
    text-decoration: none;
    font-family: 'NewOne';
    font-size: 45px; /* Increased font size */
    transition: background-color 0.3s, color 0.3s;
    background-color: transparent;
}

.nav-item:hover {
    background-color: rgba(200, 200, 200, 0.3); /* Subtle grey background on hover */
    color: #000; /* Dark text on hover */
}

/* Active link styling */
.nav-item.active {
    color: #d9534f; /* Red color for active link */
    background-color: transparent; /* No background on active */
}

/* Responsive styles for smaller screens */
@media (max-width: 600px) {
    .navbar {
        width: 70px; /* Narrower width for smaller screens */
        padding: 15px 0; /* Adjusted padding */
    }

    .navbar .icon-space {
        width: 40px; /* Smaller icon space */
        height: 40px;
    }

    .nav-item {
        padding: 10px 0; /* Reduced padding for smaller screens */
        font-size: 30px; /* Slightly smaller font size for readability */
    }
}

@media (max-width: 400px) {
    .navbar {
        width: 60px; /* Further reduced width for very small screens */
        padding: 10px 0; /* Adjusted padding */
    }

    .navbar .icon-space {
        width: 30px; /* Even smaller icon space */
        height: 30px;
    }

    .nav-item {
        padding: 8px 0; /* Reduced padding for very small screens */
        font-size: 20px; /* Smaller font size for readability */
    }
}
