/*
	Author: Tyler Roswold
	filename: styles.css
	Comet palm farm web application project
	9, 10, 2024             C:\Users\student\Desktop\html\top.jpg
*/

/*reset*/
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
}
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-image: url('images/top.jpg');
    background-size: cover; /* Ensure the image covers the entire page */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent repeating */
}
.content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    height: 100vh; /* Full viewport height */
    color: #fff; /* White text for better contrast */
    text-align: center; /* Center text */
    padding: 20px; /* Optional padding */
}

header {
    background-color: #50ab48c8;
    height: 50px;
    width: atuo;
}

.topHeading {
    text-align: center;
    color: rgb(9, 9, 9);
    position: absolute; /* Position it absolutely within the navbar */
    left: 50%;
    transform: translateX(-50%); /* Center it horizontally */
    font-size: 28px; /* Size of the centered text */
}
.title-image {
    display: inline-block;
    justify-content: center;
    text-align: center;
}

.welcome {    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: rgba(0, 0, 0, 0.65);  /* Semi-transparent background */
    padding: 2rem;
    width: 75%;
    /*max-width: 1000px;  /* Limit max width */
    
    max-height: 75vh;  /* Limit the height to 90% of the viewport */
    overflow-y: auto;  /* Enable vertical scrolling if content overflows */
    
    text-align: center;
    color: whitesmoke;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);  /* Add shadow */
    margin: 30px;
}
main {
    position: relative;
    display: flex;  /* Flexbox properties */
    flex-direction: column;
    flex: 1;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*height: 50px;*/
    opacity: 0.75;
    padding: 10px;
    position: relative;
    z-index: 1000;
}
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    align-items: center;
    position: relative;
    /*width: 40px;
    height: 30px;*/
}

/*new bar not combined with menu toggle*/
.bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;;
}

/* Animation for hamburger to X */
.menu-toggle.active #bar1 {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active #bar2 {
    opacity: 0;
}
.menu-toggle.active #bar3 {
    transform: rotate(-45deg) translate(5px, -6px);
}
/*end of new code*/

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center; /* Center links horizontally */
}
.nav-list a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease; /* Smooth color transition */
}
.nav-list a:hover {
    color: rgb(65, 127, 234); /* Color change on hover */
}


/* Responsive styles */
@media (max-width: 768px) {
    /* {
        overflow-x: hidden;
    }*/
    header {
        height: auto;
        width: auto;
    }
    .topHeading {
        text-align: center;
        color: rgb(9, 9, 9);
        position: absolute; /* Position it absolutely within the navbar */
        left: 50%;
        transform: translateX(-50%); /* Center it horizontally */
        font-size: 24px; /* Size of the centered text */
    }
    .title-image {
        display: flex;
        justify-content: center;
        text-align: center;
    }
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 50px;
        left: 0;
        padding-top: 10px;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        margin: 0;
        padding: 10px;
        text-align: center;
    }
    .welcome {    
        position: absolute;
        top: 50%;
        /*left: 50%;*/
        transform: translate(-50%, -50%);
        
        background-color: rgba(0, 0, 0, 0.65);  /* Semi-transparent background */
        padding: 4rem;
        width: 100%;
        max-width: 100%;  /* Limit max width */
        
        max-height: 70vh;  /* Limit the height to 90% of the viewport */
        overflow-y: auto;  /* Enable vertical scrolling if content overflows */
        overflow-x: hidden;
        
        text-align: center;
        color: whitesmoke;
        border-radius: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);  /* Add shadow */
        margin: 30px;
    }
}

footer {
    background-color: #f1f1f1; /* Light gray background for footer */
    text-align: center; /* Center text horizontally */
    padding: 10%vh; /* Padding for footer */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.left-foot, .center-foot, .right-foot {
    flex: 1; /*sections equal spqcing*/
}
.left-foot {
    text-align: left;
}
.center-foot {
    text-align: center;
    padding: 0 30px;
}
.right-foot {
    text-align: right;
}

/*new css for gallery*/
.slideshow-container {
    max-width: 500px;
    position: relative;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.5) !important;
}
.slides {
    display: none;
}
img {
    width: 100%;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/*about page main content div box*/
.about-us {    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: rgba(0, 0, 0, 0.65);  /* Semi-transparent background */
    padding: 2rem;
    width: 75%;
    /*max-width: 1000px;  /* Limit max width */
    
    max-height: 75vh;  /* Limit the height to 90% of the viewport */
    overflow-y: auto;  /* Enable vertical scrolling if content overflows */
    
    text-align: center;
    color: whitesmoke;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);  /* Add shadow */
    margin: 30px;
}
.about-us img.about-us-image {
    margin-top: 20px; /* Adds space between the text and the image */
    max-width: 100%; /* Ensures the image doesn't overflow the container */
    height: auto; /* Maintains the aspect ratio of the image */
    display: block; /* Makes the image behave like a block element */
    margin-left: auto;
    margin-right: auto; /* Centers the image horizontally */
    border-radius: 10px; /* Optional: adds rounded corners to the image */
}



/*appointment page form centering*/
.appointmentForm {
    border: 1px solid #ccc; /* Optional for visual effect */
    padding: 20px; /* Optional for spacing */
    border-radius: 5px; /* Optional for rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional for shadow */
    justify-content: center;
}

.appointment-form {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-items: center;
}