
html, body {
    margin:0;
    height:100%;
}

.services-img {
    width:100%;
    max-width:500px; 
    height:auto;
    display:block;
    margin: 0 auto; /*center image*/
    padding:20px;
}

.right-column img{
    width:100%;
    max-width:100%;
    height:auto;
    display:block;
    padding-right:40px;
    padding-top:60px;
}


.hero-fam{
    max-width:40%;
    height:auto;
    display:block;
    padding-top:60px;
    padding-left:40px;
    z-index:3;
}

body {
    background-color:black;
    color:white;
    font-family: Inter, sans-serif;
}

.container {
    display:flex;
    flex-direction:column;
    min-height:100vh; /*occupy full viewport height*/
}

main {
    flex:1; /*grows to push the footer down*/
}

p {
    font-size: 1rem;
    padding:20px;
}

h1 {
    font-size: 3.5rem;
    padding-left:20px;
}

h2 {
    padding-left:20px;
}

nav {
    display:flex;
    width:100%;
    box-sizing:border-box;/*prevent padding from causing overflow/horizontal scroll*/
    background-color:#257B61;
    padding: 2rem 2.5rem;
    position:relative;
    z-index: 1000;
}

ul {
    list-style-type:none;
    margin: 0;
    margin-left:auto;
    padding: 0;  
    display: flex;
   
}

ul li a {
    display:block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;   
}

ul li a:hover {
    text-decoration:underline;
}

.logo img {
    height:80px;
    width:auto;
    display:block;
}

@media only screen and (max-width:768px){
  .flex-container {
    flex-direction:column;
  }
  
  .right-column img{
    max-width:400px;
    margin:0 auto;
    padding-top:20px;
    padding-right:20px;
  }
  
    nav {
    flex-direction:column;
    align-items:center;
   } 

   ul {
    margin-left:0; /*resets auto margin to prevent it pushing off-screen*/
    flex-wrap:wrap;
    justify-content: center;
    width:100%;
   }
}

li.dropdown {
    position:relative;
    display: inline-block;
}

.dropbtn {
    cursor:pointer;
}

.dropdown-content {
    display:none;
    position:absolute;
    background-color:#257B61;
    color:white;
}

.dropdown-content a {
    color:white;
    background-color:black;
    text-decoration: none;
    display:block;
    border: 1px solid white;
}

.dropdown-content a:hover {
    background-color:black;
    color:white;
    text-decoration: underline;
    border: 1px solid white;
}

/*change dropdown link color on hover*/
.dropdown-content a:hover{
    background-color:black;
    color:white;
    border: 1px solid white;
}

/*show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display:block;}

/*change color of dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    color:white;}

    footer{
        background-color:#257B61;
        color:white;
        width:100%;
        height:10%;
        padding-top:20px;
        padding-left:10px;
    }

    /*<weight>: Use a value from 100 to 900
<uniquifier>: Use a unique and descriptive class name*/

.inter-font {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.hero-container {
    position:relative;
    width:100%;
    height:70vh; 
    overflow:hidden;
    display:flex;
    align-items:flex-start;
    justify-content:flex-start;
    box-sizing:border-box;
}

.hero-image {
    position:absolute;
    top:0;
    left:0;
    /*width:100%;
    height:100%;*/
    object-fit:cover; /*ensures proper scaling*/
    z-index:1;
}

.hero-text{
    position:relative;
    z-index:2;
    text-align:start;
    color:white;
    padding: 0 20px;
    max-width:800px;
    padding-left:20px;
}

.flex-container {
    display:flex;
    gap:20px;
}

.left-column{
    flex:2;
}

.right-column{
   flex:1;
}

@media (max-width:768px){
    .flex-container{
        flex-direction:column; /*stacks columns vertically on smaller screens */
    }
}


a {
    text-decoration: none;
    color:white;
}

a:hover {
    text-decoration: underline;
}

.green-box {
    background-color:#257B61;
    padding:10px;
    margin:20px;
}

.image {
    padding-top:50px;
    padding-right:40px;
}

#piggy-bank {
    padding-top:192px;
    width:100%;
    max-width:500px;
    padding-right:20px;
    height:auto;
    display:block;
}

#hero-green-box{
    margin-left:20px;
    background-color:#257B61;
}

/* I altered an example from w3schools:*/
div.gallery {
    border:1px solid #ccc;

}

div.gallery:hover {
    border:1px solid #777;
}

div.gallery img {
    width: 100%;
    height:auto;
    transition: opacity 0.3s ease;
    opacity:1;
}

div.gallery img:hover {
    opacity:0.5;
}


div.desc {
    padding:15px;
    text-align:center;
}



* {
    box-sizing: border-box;
}

.responsive {
    padding: 0 6px;
    float:left;
    width: 24.99999%;
}

@media only screen and (max-width:700px){
    .responsive{
        width:100%;
    }

    /*the following code was written with ai assistance*/
    /*allow container to expand on mobile*/
    .hero-container{
        height:auto;
        flex-direction:column;
        align-items:center;
        padding-bottom:30px;
    }

/*family image grows on mobile*/

.hero-fam {
    max-width:90%;
    width:100%;
    padding-left:0;
    padding-top:20px;
    margin:0 auto; /*centers image*/
}

.hero-text{
    max-width:100%;
    padding-left:0;
}

#hero-green-box {
    margin-left:0;
}

}

#services {
    padding:20px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    border-radius:20px;
}

@media (min-width:769px){
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea{
    width:50%;
    }

    .services-img {
    max-width:40%;
    width:100%;
    height:auto;
    display:block;
    margin: 0 auto; /*center image*/
    padding:20px;
}

}


.clearfix:after {
    content: "";
    display:table;
    clear:both;
}

/* Ensure Font Awesome brand icons use their native font family */
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}

fieldset {
    padding:20px;
    margin:20px;
}

legend {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width:100%; /*fit parent container*/
    max-width:100%; /*prevents stretching past parent*/
    padding:15px;
    margin:10px 0;
    box-sizing:border-box;
    border-radius: 20px;
}

input[type="submit"] {
    display:block;
    background-color: #000000;
    color:white;
    padding: 16px 32px;
    margin:20px auto;
    width:100%;
    max-width:250px;
    border-radius: 20px;
    cursor:pointer;
}

