/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.header {
    background: #76b947;
    padding: 20px;
    min-height: 200px;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    background-image: url('images/fm1.jpg');
    background-size: cover;
    background-position: center;
}

.logo {
    position: absolute;
    top: 20px; /* Aligns with the padding of the header */
    left: 20px; /* Aligns with the padding of the header */
    background-image: url('images/bfm-logo.webp');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 300px;
    height: 200px;
    text-indent: -9999px; /* Hides the text if present */
}
.announcements {
    background: #f4f4f4;
    padding: 15px;
    text-align: center;
}

.nav {
    display: flex;
    justify-content: space-around;
    background: #333;
    padding: 10px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
}

.nav a:hover {
    background: #76b947;
    color: white;
}

.main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.block1 {
    background: #d4edda;
    text-align: center;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #76b947;
    border-radius: 5px;
    background-image: url('images/fm2.jpg');
    background-size: cover;
    background-position: center;
}

.video-block video {
    width: 100%;
    height: auto;
}

.block3 {
    background: #d4edda;
    text-align: center;
    padding: 20px;
    min-height: 200px;
    border: 2px solid #76b947;
    border-radius: 5px;
    position: relative;
    background-image: url('images/dfm-map.png');
    background-size: cover;
    background-position: center;
}

.map-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Makes the link span the full block */
    text-indent: -9999px; /* Hides any text in the link */
    z-index: 1; /* Ensures the link is clickable */
}

.block4 {
    background: #d4edda;
    text-align: center;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #76b947;
    border-radius: 5px;
    background-image: url('images/fm4.jpg');
    background-size: cover;
    background-position: center;
}

.block5 {
    background: #d4edda;
    text-align: center;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #76b947;
    border-radius: 5px;
    background-image: url(images/fm5.jpg);
    background-size: cover;
    background-position: center;
}

.block6 {
    background: #d4edda;
    text-align: center;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #76b947;
    border-radius: 5px;
    background-image: url(images/snap-logo.jpg);
    background-size: cover;
    background-position: center;
}

.overlay-text {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
}

.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

@media (max-width: 1200px) {
    .main {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 800px) {
    .main {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 200px;
        height: 150px;
}

@media (max-width: 500px) {

    .logo {
        width: 200px;
        height: 100px;
}

    .nav {
        flex-direction: column; /* Stack the nav links vertically */
        align-items: center; /* Center the nav items */
    }

    .nav a {
        display: block; /* Make each link take full width */
        width: 90%; /* Set the width to 90% of the container */
        margin-bottom: 5px; /* Add some spacing between buttons */
        text-align: center; /* Center the text */
    }

    .nav a:hover {
        background: #76b947; /* Maintain hover effect */
        color: white;
    }


}


