/*strip page default margins*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
}

body {
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */

}

/*Main*/
main {
    padding: 20px;
    background-color: #f5f5f5; /* Light background for the main content area */
    min-height: 500px; /* Ensures the main area has a minimum height */
    margin-top: 100px; /* Adds space below the fixed header */
}

.main-row {
    display: flex;
    flex-wrap: wrap; /* Allows the columns to stack on smaller screens */
    width: 100%;
    max-width: 1200px;
    margin-bottom: 10px; /* Adds space below the main content */
    margin: 0 auto; /* Centers the row horizontally */
    gap: 20px; /* Adds space between the columns */
    margin-top: 10px; /* Adds space above the main content */
    
}


/* Main Container styling */
.contact-container {
    flex: auto; /* Takes up the remaining space in the row */
}


/* facebook container */
.facebook-container {
    flex: 0 0 500px; /* Takes up half the width of the row */
    
}

    .facebook-container iframe {
        width: 100%;
        max-width: 100%;
       
    }


/* Footer */
footer {
    margin-top: 10px; /* Pushes the footer away from the page content */
    background-color: #d9d4d4; /* Dark background for the bottom text bar */
    width: 100%;
    box-sizing: border-box; /* Ensures padding and border are included in the width */
} 

/* Map Container styling */
.map-container,
.oscr-container,
.donate-container {

    flex: 1 1 30%;
}

/* Makes the map scale perfectly to the edges of the screen */
.footer-map {
    width: 95%;
    height: 250px; /* Adjust height as needed to fit the page style */
    border: 0;
    display: block;
}

/* Bottom copyright bar styling */
.footer-copyright {
    background-color: #1E578A;
    text-align: center;
    padding: 20px;
    width: 100%;
    clear: both;
}

    .footer-copyright p {
        color: #aad;
        font-size: 0.9rem;
        margin: 0;
    }

/* Sets up the side-by-side layout */
.footer-row {
    display: flex;
    flex-wrap: wrap; /* Allows the columns to stack on smaller screens */
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2px; /* Adds space below the main content */
    margin: 0 auto; /* Centers the row horizontally */
    gap: 5px; /* Adds space between the columns */
}


/*Styling the logo*/
.logo2 {
    width: 350px;
    height: 108px;
    display: block;
    margin-left: 0;
    margin-right: auto;
}

/*Styling the header*/
header {
    background-color: #1E578A;
    border-radius: 0.5%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow for depth */
    position: fixed; /* Keeps the header fixed at the top */
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensures the header stays above other content */
}

.header-row {
    color: #fff; /* Light text color for contrast */
    text-align: right;
    display: flex;
    flex-wrap: wrap; /* Allows the header content to wrap on smaller screens */
    align-items: center;
    font-size: 1.2rem;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto; /* Centers the header content horizontally */
    width: 100%;
}

/*Style the OSCR logo*/
.oscr {
    width: 180px; /* Adjust the size as needed */
    height: auto; /* Maintain aspect ratio */
    margin-left: 0; /* Space between the logo and the text */
    margin-top: 5px; /* Space above the logo */
}

.footer-donate {
    width: 95%;
    height: 250px;
    border:0;
    display:block;
   
}
/*style plea-donate*/
.plea-donate {
    font-size: 1.05rem;
    font-weight: bold;
    color: #0b99e6;
}

.footer-oscr {
    width: 95%;
    height: 180px;
    border: 0;
    display: block;
}

/*add nav to target the navigation links*/
.nav-container nav {
    display: flex;
    gap: 0px; /* Adds space between the navigation links */
    align-items: center;
}

    .nav-container nav a {
        text-decoration: none;
        color: #fff;
        display: inline-block;
        padding: 40px 15px; /* Adds padding around the links */
        border-right: 1px solid #2202f0; /* Adds a right border to each link */
        transition: transform 0.2s ease-in-out; 
    }

        .nav-container nav a:hover {
            background-color: #2202f0; /*background colouron hover */
            transform: scale(1.02); /* 105% bigger on hover */
        }

            .nav-container nav a:last-child {
                border-right:none;
            }


/*Style the homepage -DURNESS*/

.welcome-container2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url('durness.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 95vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}

.welcome-container2 h1 {
    color: #fff;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.welcome-container2 p {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    max-width: 800px; /* Limits the width of the paragraph for better readability */
    margin-bottom: 40px;
}

.welcome-container2 .button-worship {
    background-color: #1E578A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

.welcome-container2 .button-about {
    background-color: #1E578A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

.welcome-container2 .button-contact {
    background-color: #1E578A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}


/*Style the homepage*/

.welcome-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)), url('church.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 95vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top:80px;
}

.welcome-container h1 {
    color: #fff;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}
.welcome-container p {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    max-width: 800px; /* Limits the width of the paragraph for better readability */
    margin-bottom: 40px;
}
.welcome-container .button-worship {
    background-color: #1E578A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

.welcome-container .button-about {
    background-color: #1E578A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}
.welcome-container .button-contact {
    background-color: #1E578A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

/*minister styling*/
.minister-photo {
    width: 300px; /* Adjust the size as needed */
    height: 300px; /* Maintain aspect ratio */
    border-radius: 50%; /* Makes the image circular */
    margin-bottom: 20px; /* Space below the image */
    position: relative;
}

    .minister-message {
        border-radius: 5px;
        background-color: lightgray;
        box-shadow: 0 4px 6px rgba(30, 87, 138, 1.00);
        padding: 10px 20px;
        position:absolute;
        top:250px;
        right:200px;
    }
    .church-history {
        position: absolute;
        top: 500px;
        left: 200px;
    }

/*worship styling*/
.worship-title {
    margin-top: 150px;
    border-radius: 5px;
    background-color: #1E578A;
    color: #fff;
    padding: 5px 25px;
    max-height: 55px;
}

.worship-activities {
    border-radius: 5px;
    background-color: lightgray;
    box-shadow: 0 4px 6px rgba(30, 87, 138, 1.00);
    padding: 10px 20px
}

.contact-container {
    border-radius: 5px;
    background-color: lightgray;
    box-shadow: 0 4px 6px rgba(30, 87, 138, 1.00);
    padding: 10px 20px
}

.facebook-container {
    border-radius: 5px;
    background-color: lightgray;
    box-shadow: 0 4px 6px rgba(30, 87, 138, 1.00);
    padding: 10px 20px
}

/*Donate*/
.button-donate {
    background-color: #1E578A;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top:10px;
}