/* Common styles */

/* Ensure the footer stays at the bottom of the page with flexbox layout */
html, body {
    height: 100%;                   /* Full height for both html and body */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f4f8;      /* Light grey background */
    color: #004733;                 /* Dark green text */
    box-sizing: border-box;
}

/* Wrapper ensures content takes full height of page */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;              /* minimum height of 100% viewport height */
/*    background-color: #eefbff; */
    background-color: #efefef;
}


/* Header section */
.header {
    display: flex;
    justify-content: space-between; /* space out the logo and login links */
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* drop bpx shadow */
}

/* place header text centered next to the image */
.heading-section img {
    vertical-align: middle;
}

/* place header text centered next to the image */
.heading-section span {
    vertical-align: middle;
}

.logo-section .text-section h1 {
    margin: 0;
    color: #004733;
    font-family: "Segoe UI Black", "Brush Script MT", "Lucida Handwriting", "Comic Sans MS", cursive;
    font-style: italic;
    font-size: 34px; /* 27px; */
    padding-bottom: 7px;
    transition: transform 0.5s ease, font-size 0,5s ease;   /* Add smooth transition to the text */
}

.logo-section .text-section p {
    margin: 0pc;
    color: #04a777;
    font-size: 15px;
    font-family: Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);       /* Subtle shadow effect */
}

.logo-section {
    display: flex;
    align-items: center;
    flex-grow: 1;                                   /* This ensures the top logo section takes as much space as possible */
}

/* place auth-links text centered next to the image */
.auth-links a img {
    vertical-align: middle;
}

/* place auth-links text centered next to the image */
.auth-links a span {
    vertical-align: middle;
}

.text-section {
    display: flex;
    flex-direction: column;
}

.logo {
    width: flex;
    flex-direction: column;
}

.auth-links {
    display: flex;
    justify-content: flex-end; /* Align the links to the right */
    flex-shink: 0; /* prevent links from shrinking */
    vertical-align:middle
}

.auth-links a {
    margin: 0px 10px;   /* Add spacing between the links */
    color: #007bff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}


/* horizontal line */
hr {
    border: 0;
    height: 2pc;
/*    background-color: #ff9c05;  /* Orange line separating header */
    background-color: #004733;  /* Orange line separating header */
}

/* home header */
.home-header {
    margin: 2vw;
    position: relative;
    margin-bottom: 20px;
    text-align: justify;
}


/* home header heading */
.home-header h2 {
    color: #0f515c;
}

/* float the image to the left */
.home-header-image {
    float: left;
    width: 150px;
    height: auto;
    margin-right: 20px; /* space between image and text */
    margin-bottom: 20px; /* clear space at the bottom if text is shorter */
}

/* Text next tot he floating image */
.home-header-text {
    text-align: justify;
}

/* Footer styles */
footer {
    background-color: #063519;  /* dark green */
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;   /* Push footer to the bottom if content is less */
}

footer p {
    color: #e4fbf4;
}


/* features section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 40px 0;
    padding: 30px;
}

.feature-item {
    width: 100%;    /* full width on mobile */
    margin-bottom: 30px;
    margin-right: 20px;
    text-align: center;
/*    border: 2px solid #f0d6af;      /* softer orange than hr */
    border: 2px solid #004733;      /* softer orange than hr */
    border-radius: 15px;    /* rounded corners */
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* slight shadow for depth */
}

.feature-item:hover {
/*    background-color: #e6f7f9;  /* light blue background on hover */
    background-color: #ffffff;  /* light blue background on hover */
/*    border: 2px solid #ffb84d;  /* deepen the orange */
    border: 2px solid #03AD7E;  /* deepen the orange */
    transform: scale(1.02);     /* slight scale up on hover */
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

.feature-item img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #0f515c;
}

.feature-item-highlight {
    color: #04559d;
    font-weight: bold;
    transition: transform 0.5s ease, font-size 0.5s ease;   /* add smooth transition to the text */
}

.feature-item:hover .feature-item-highlight {
    transform: scale(1.2);  /* grow the text when hovering over the feature item */
    font-size: 18px;        /* increase the font size */
    transition: transform 0.5s ease, font-size 0.5s ease; /* Smooth transition when hover ends */
}

.feature-item div.feature-item-text {
    text-align: justify;
    padding: .7vw;
}

/* responsive adjustments for larger screens */
@media (min-width: 768px) {

    .container {
        width: calc(100% - 20px);  /* adjust the width for the side bar */
        margin: 0 auto;
    }

    .home-header {
        margin: 15px;
    }

    .features {
        flex-wrap: nowrap;
    }

    .feature-item {
        width: 30%;
    }

    /* header adjustment for larger screens */
    .logo {
        margin-left: 0;
    }

    .auth-links {
        margin-right: 100px;    /* align links with padding */
    }
}


/* for flash messages */
.flash-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);     /* sublte shadow for depth */
    transition: all 0.3s ease-in-out;
}

.flash-alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.flash-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.flash-alert:hover {
    transform: scale(1.02);      /* slightly larger on hover */
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.15);   /* slightly stronger shadow */
}

.client-alert {
    text-align: left;
    margin-bottom: 20px;
    padding-left: 10px;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.10);
}

.client-alert .error-heading {
    text-align: left;
    color: #721c24;
    font-size: 18px;
    font-weight: bold;
}

.client-alert ul li {
    font-family: monotype;
    margin-top: 5px;
}

/* error styling */
.error-message {
    color: #721c24;
    font-size: 0.9em;
    margin-top: 5px;
}

/* responsive adjustment for mobile screens */
@media (max-width: 768px) {

    .header .text-section h1 {
        font-size: 20px;
    }

    .logo-section .text-section p {
        font-size: 11px;
    }

}
































