body {
    /* overflow-x: hidden; Prevent horizontal scrolling */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    font-family: "Montserrat", sans-serif;
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden; /* Prevents any overflow from the video */
}

.hero video {
    position: relative;
    top: 50%;
    left: 50%;
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    z-index: -1; /* Send the video behind the content */
    transform: translate(-50%, -50%); /* Center the video */
}

.hero .call-action {
    position: absolute;
    bottom: 10px; /* Always stick to the bottom */
    left: 5%; /* Align left in mobile view */
    text-align: left; /* Align text to the left */
}

.call-action h3 {
    position: relative;
    color: white;
    font-family: monospace, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 200;
    text-align: left;
    padding: 10px 5px; /* Adjust padding for mobile */
    z-index: 1; /* Ensures text is on top */
    max-width: 50%; /* Set max width for mobile */
    word-wrap: break-word; /* Ensure words wrap correctly */
}
/* Pseudo-element for blurred background */
.call-action h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    z-index: -1;
}

.call-action-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

.call-action-btns button {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 500;
    padding: 10px;
    margin-bottom: 10px;
    font-size: .85rem;
    border-radius: 0px 10px 0 5px;
    background-color: #FFD6BA; /* Original color */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition */
}

/* Darken the button when clicked */
.call-action-btns button:active {
    background-color: #FFBC99; /* Darkened color */
}

.call-action-btns .about-us-btn {
    background-color: #740808;
    color: #FFBC99;
}

.call-action-btns .about-us-btn:active {
    background-color: #8B0000; /* Dark Red for active state */
}

.heading-home {
    margin: 10px 0;
}


/* Middle Section */

.middle-section h3 {
    font-size: 1.3rem;
    text-align: center;
    background-color: #FFBC99;
    padding: 5px;
}


.events-section, 
.current-weather-panel,
.weather-forecast-panel {
    height: 250px;
    background-color: rgb(185, 185, 185);
    margin: 10px 0;
}

.middle-section,
.heading-home,
.business-section {
    margin-left: 15px;
    margin-right: 15px;
}

.events-section {
    margin-bottom: 20px;
}

.current-weather-details {
    display: flex;
}

.current-weather-details img {
    margin: 0;
    height: 100%;
    width: 150px;
    margin-top: -20px;
}

.current-weather-details div {
    font-family: "Roboto Condensed", sans-serif;
    margin: 20px;
    line-height: 25px;
}


.current-weather-details div .main-temp {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.current-weather-details div .weather-descr {
    margin: 5px 0;
    font-family: "Montserrat", sans-serif;
}

.weather-forecast-panel p {
    font-family: "Montserrat", sans-serif;
    padding-top: 22px;
    padding-left: 10px;
}


/* Business Section */

.business-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 20px;
    text-align: center;
}

.business-section .company-name {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    padding: 5px;
}

.membership-tag {
    display: inline-block;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.membership-tag.gold-member {
    background-color: gold;
    color: rgb(6, 29, 6);
}

.membership-tag.silver-member {
    background-color: silver;
    color: black;
}

.card {
    background-color: #a49bdb;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-radius: 10px 10px 0 0;
}

.card-information {
    border-top: 1px dotted black;
    padding-top: 15px;

}

.business-section .card-information {
    display: flex;
    gap: 10px;
    margin: 10px;
}

.card-information img {
    width: 120px;
    height: 80px;
    border: 1px solid #c8ced3;
    background-color: white;
}

.card-information .business-contacts {
    text-align: left;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.8rem;
    line-height: 25px;

}

.url-links {
    color: indigo;
}



/* Keyframes for the fade-in and slide effect */
@keyframes fadeInSlide {
    0% {
        opacity: 0; /* Start hidden */
        transform: translateY(-500%); /* Start off-screen */
    }
    100% {
        opacity: 1; /* Fully visible */
        transform: translateY(0%); /* End at original position */
    }
}

/* Apply the animation to the elements */
.call-action h3,
.call-action-btns {
    animation: fadeInSlide 1s ease-out forwards; /* Animation applied */
}

/* Adjust button container animation timing */
.call-action-btns {
    animation-delay: 0.2s; /* Delay for button animation */
}

/* Ensure initial state is set for opacity */
.call-action h3,
.call-action-btns {
    opacity: 0; /* Start hidden */
}









/* Media Queries for Responsive Design */
@media only screen and (min-width: 38rem) { /* For larger screens */
    main {
        margin: 0 10vw;
    }

    /* Hero */
    .hero .call-action {
        top: 50%; /* Center vertically */
        left: 5%; /* Align to the left */
        transform: translateY(-50%); /* Center vertically in larger views */
        text-align: left; /* Keep text aligned to the left */
    }

    .call-action-btns {
        align-items: flex-start; /* Keep buttons aligned to the left */
        margin-top: 10px; /* Ensure consistent margin */
    }

    /* Ensure buttons stack vertically */
    .call-action-btns button {
        margin-left: 0; /* Remove any left margin */
    }

    

    .middle-section h3 {
        text-align: left;
    }

    .middle-section {
        display: grid;
        grid-template-columns: 0.9fr 1fr;
        gap: 15px;
    }
    
    .middle-section, .weather-section {
        gap: 15px;
    }

    .events-section, 
    .current-weather-panel,
    .weather-forecast-panel {
        height: 320px;
    }


    .weather-section {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
    }
    



    @media (min-width: 1280px) {
        .events-section, 
        .current-weather-panel,
        .weather-forecast-panel {
        height: 250px;
        }
    }
    
    
}
