﻿/* Global styles */
body {
    font-family: 'Roboto', sans-serif;
    background-image: url("Images/v748-toon-103.webp");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    height: 100vh;
    margin: 0; /* Reset default margin */

}

.container {
    margin-top: 10px;
    text-align: center;
}
/* Custom CSS for section height */
.full-height-section {
    min-height: 100vh; /* Set the minimum height to 100% of the viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 50px; /* Adjust as needed */
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px; /* Adjust padding to create space on the right */
    background-color: transparent; /* Set background color to transparent */
    transition: background-color 0.3s ease;
    z-index: 100; /* Ensure the menu stays on top */
    display: flex;
    justify-content: flex-end; /* Align items to the right */
    align-items: center;
}

    header.scrolled {
        background-color: transparent;
    }

/* Update the navbar styling */
.navbar {
    background-color: #000;
    transition: background-color 0.3s;
}

    /* Update the color of navbar links */
    .navbar .navbar-nav .nav-link {
        color: #fff;
        text-decoration: none;
        margin-left: 10px;
        transition: opacity 0.3s ease;
        position: relative;
        padding-right: 16px;
    }

        .navbar .navbar-nav .nav-link:hover {
            color: darkred;
            opacity: 0.8;
        }

        .navbar .navbar-nav .nav-link.active {
            color: #ff0000;
        }

/* Update the site logo */
.navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .navbar-brand img {
        width: 100px;
        height: auto;
    }

/* Update the navbar links alignment to the right */
.navbar-nav {
    white-space: nowrap;
    justify-content: flex-end; /* Align items to the right */
}

.nav-item {
    margin: 0 10px;
}

/* Ensure each section is the height of the device display */


    section h2 {
        margin-top: 60px; /* Adjust the value as needed */
    }



/* CSS styling for the "home" section */
#home {
    background-color: #f9f9f9;
    text-align: center;

}

    #home h2 {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    #home p {
        font-size: 18px;
    }

/* Carousel styles */
.carousel-inner {
    height: 100vh; /* Set the height to 100% of the viewport height */
}
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    margin: 10px; /* Add margin for spacing */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
    border-radius: 5px; /* Add border radius for rounded corners */
}

    .carousel-caption h3 {
        color: #fff;
        font-size: 24px;
        font-weight: bold;
    }

    .carousel-caption p {
        color: #fff;
        font-size: 16px;
        font-weight: normal;
        margin-bottom: 10px;
        text-align: center;
    }

.carousel-item img {
    max-height: 100%; /* Ensure the image fills the height of the carousel inner */
    object-fit: cover;
}

/* Services section styles */
#services {
    min-height: 100vh;
    padding: 80px 0;
}

    #services h2 {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 30px;
    }

.service {
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .service:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .service img {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
        border-radius: 5px;
    }

    .service h3 {
        display: flex;
        flex-direction: column;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
        align-items: center;
        text-align: center;
    }

    .service p {
        font-size: 16px;
        margin-bottom: 0;
    }

/*The about section styling*/

.about-content {
    margin: 20px auto; /* Adjust the margin as needed */
    padding: 20px; /* Adjust the padding as needed */
    max-width: 100%; /* Allow text to fill the container's width */
    box-sizing: border-box; /* Include padding and border in the element's total width */
}


/* Resources section styles */
.resource-grid {
    display: grid;
    gap: 20px;
}

.resource-item {
    color: black;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

    .resource-item:hover {
        color: red;
    }

.resource-icon {
    margin-right: 10px;
}

.resource-title h3 {
    font-size: 16px;
    margin: 0;
}

/* Adjust the size of the images in the modal */
.resource-icon img {
    width: 60px; /* Adjust the width as needed */
    height: 60px; /* Adjust the height as needed */
    border-radius: 50%;
    object-fit: cover;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Enable vertical scrollbar if content exceeds viewport */
}

.modal-backdrop {
    /* bug fix - no overlay */
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 800px; /* Adjust the maximum width as needed */
    width: 80%;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-height: 80vh; /* Adjust the value as needed to leave some space at the bottom */
    overflow-y: auto; /* Enable vertical scrollbar if content exceeds modal's max height */
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

/* Resource item in the modal */
.resource-item-modal {
    color: black;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

    .resource-item-modal:hover {
        color: red;
    }

.resource-icon-modal {
    margin-right: 10px;
}

.resource-title-modal h3 {
    font-size: 18px;
    margin: 0;
}

/* Styling for the modal's header */
.modal-header {
    background-color: #333;
    color: white;
    padding: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

/* Styling for the modal's body */
.modal-body {
    padding: 20px;
}

/* Styling for the modal's footer */
.modal-footer {
    background-color: #f9f9f9;
    padding: 15px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

    /* Custom button style for modal footer */
    .modal-footer .btn-primary {
        background-color: #333;
        border-color: #333;
        transition: background-color 0.3s ease;
    }

        .modal-footer .btn-primary:hover {
            background-color: #a1d6e2;
            border-color: #a1d6e2;
        }

/* Styles for the Contact form button */
.btn-primary-send {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .btn-primary-send:hover {
        background-color: darkred;
    }


/* Back to top button styles */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: red;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    line-height: 1; /* Adjust line-height to center content */
    text-align: center; /* Center the arrow horizontally */
}

    #back-to-top i {
        padding-top: 8px; /* Add top padding to center the arrow */
    }

    #back-to-top:hover {
        background-color: darkred;
    }

/* Footer styles */
footer {
    background-color: black; /* Set the background color to black */
    padding: 20px 0;
    color: white; /* Set text color to white */
}

.site-map a {
    color: red; /* Set the link color to red */
    font-size: 12px; /* Adjust the font size as needed */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

    .site-map a:hover {
        color: darkred; /* Change the hover color to a darker red */
    }

/* Footer styles */
.site-map a {
    color: red; /* Set the link color to red */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

    .site-map a:hover {
        color: darkred; /* Change the hover color to a darker shade of red */
    }






/* Adjust responsiveness for phones */
@media (max-width: 767px) {

    /* Navbar adjustments */
    header {
        padding: 10px;
        justify-content: center;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .navbar-brand {
        justify-content: center;
        margin-bottom: 10px;
    }

    .nav-item {
        margin: 5px 0;
    }

    /* Header adjustments */
    header {
        padding: 10px;
        justify-content: center;
    }

    /* Home section adjustments */
    #home h2 {
        font-size: 24px;
    }

    /* Carousel adjustments */
    .carousel-inner {
        height: 100vh; /* Set the height to 100% of the viewport height */
    }

    .carousel-item {
        height: 100vh; /* Set the height of each carousel item to 100% of the viewport height */
    }

        .carousel-item img {
            height: 100%; /* Ensure the image fills the height of the carousel item */
            object-fit: cover;
        }

    .carousel-caption {
        /* Adjust caption styles if needed */
    }

    .carousel-caption h3 {
        font-size: 16px;
    }

    /* Services section adjustments */
    #services h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .service img {
        /* Adjust image size for phones */
        max-width: 80%; /* Allow images to scale within their container */
        margin: 0 auto; /* Center images horizontally */
        display: block; /* Ensure images do not break layout */
    }

    .service {
        padding: 10px;
        margin-bottom: 20px;
    }

        .service img {
            max-width: 80%;
        }

        .service h3 {
            font-size: 20px;
            margin-bottom: 10px;
        }

    /* Resources section adjustments */
    .resource-item,
    .resource-item-modal {
        font-size: 14px;
    }

    /* Modal styles */
    .modal-content {
        max-height: 80vh; /* Adjust the value as needed */
        width: 80%;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: scroll; /* Enable vertical scrollbar */
    }

    /* About section adjustments for phones */
    #about {
        flex-direction: column; /* Stack content vertically */
        align-items: center; /* Center items horizontally */
    }

        /* About section adjustments */


        #about p {
            text-align: center; /* Center text */
        }

    .about-content {
        margin: 10px auto; /* Adjust the margin as needed for smaller screens */
        padding: 10px; /* Adjust the padding as needed for smaller screens */
    }


    /* Contact section adjustments */
    #contact h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .form-control {
        width: 100%;
    }

    /* Footer adjustments */
    .site-map a {
        font-size: 10px;
    }

    /* Back to Top button adjustments */
    #back-to-top {
        font-size: 14px;
        width: 32px;
        height: 32px;
    }

    .full-height-section {
        margin-bottom: 20px; /* Adjust as needed */
    }

    .section-content {
        padding-bottom: 20px; /* Adjust as needed */
    }
}


/* Adjust responsiveness for tablets */
@media (min-width: 768px) and (max-width: 991px) {
    /* Carousel adjustments */
    .carousel-caption h3 {
        font-size: 18px;
    }

}

/* Adjust responsiveness for larger screens */
@media (min-width: 992px) {
    /* ... Your existing media queries ... */
}

/* Additional flex properties for Android */
@media only screen and (max-width: 575px) {
    .full-height-section {
        align-items: center; /* Center content horizontally on smaller screens */
    }
}

/* Adjust space on smaller screens */
@media (max-width: 575px) {
    .section-content {
        padding-bottom: 30px; /* Increase the padding value */
    }
}

/* Adjust space on smaller screens */
@media (max-width: 575px) {
    #home .section-content {
        padding-top: 50px; /* Increase the padding value */
        padding-bottom: 30px; /* Increase the padding value */
    }
}