header{
    background-color: #Caf0f8;
    display: grid;
    grid-template-rows: 2;
    width: 100%;
}

nav a {
    text-decoration: none;
    color:black;
    justify-self: center;
    font-size: 2em;
}

nav{ 
    border: 7px solid black;
    width: 100%;
    display:grid;
    grid-row: 1;
    grid-template-columns: repeat(5, 1fr);
    justify-content: space-evenly;
    background-color: #Caf0f8;
    text-decoration: none;
    justify-self: center;
    background-color: lightgray;
    margin-left: 0;
    margin-right: 0;
}
nav :hover{
    background-color: white;
}
#wrapper {
    grid-template-columns: 150px 3fr;
    grid-template-rows: 150px 1fr;
    grid-row: 2;
    display: grid;
    height: 200px;
    max-height: 200px;
    width: 90%;
    max-width: 90%;
    justify-self: center;
}

#wrapper h1{
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}
#wrapper h3{
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 75px;
}

#wrapper img{
    margin: auto;
    width: 125px;
    height: 125px;
    grid-row: 1;
    border-radius: 50%;
    justify-self: auto;
}

body{
    display: grid;
    background-color: #Caf0f8;
    width: 100%;
    height: 100%;
    justify-content: center;
    justify-items: center;

}
body img{
    max-height: 300px;
    max-width: 400px;
    border: 7px solid black;
}

main{
    background-color: #Caf0f8;
    justify-self: center;
}


main{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 175px 1fr 1fr 1fr;
    gap: 20px;
}
#banner{
    grid-row: 1;
    grid-column: 1/3;
    width: 95%;
    height: 100%;
    max-width: 2000px;
    margin-left:10px;
    margin-right: 10px;
    justify-self: center;
}



#Hiking {
    grid-column: 1;
    grid-row: 2;
    border: 7px solid #03045e;
    background-color: lightgray;
    justify-self: center;
    width: 80%;
    border-radius: 10px;
}
main h2{
    padding-left: 20px;
}
#soccer{
    grid-column: 1;
    grid-row: 3;
    border: 7px solid #03045e;
    background-color: lightgray;
    justify-self: center;
    width: 80%;
    border-radius: 10px;
}
#Craftsman {
    grid-column: 2;
    grid-row: 3;
    border: 7px solid #03045e;
    background: lightgray;
    justify-self: center;
    width: 80%;
    border-radius: 10px;
}
#Foundation{
    grid-column: 2;
    justify-items: center;
    grid-row: 2;
    display: grid;
    border: 7px solid #03045e;
    background-color: lightgray;
    width: 80%;
    border-radius: 10px;
    justify-self: center;
}

#Foundation img{
    grid-column: 2;
    grid-row: 2;
    width: 80%;
}
#Foundation p{
    grid-column: 2;
    grid-row: 3;
    width: 80%;
}
footer {
    background-color: #Caf0f8;
    position: relative;
    min-height: 100px;
}

footer p {
    position: fixed;
    bottom: 20px;
    left: 20px;
    margin: 0;
}

footer form {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: lightgray;
    border: 7px solid #03045e;
    border-radius: 10px;
    padding: 15px;
    max-width: 400px;
    transition: all 0.3s ease;
    transform-origin: bottom right;
    transform: scale(0.2);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer form:hover {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

footer form input {
    width: 100%;
    height: 25px;
    padding: 5px;
    margin: 0;
    box-sizing: border-box;
    transition: none;
    flex-shrink: 0;
}

footer form textarea {
    width: 100%;
    height: 80px;
    padding: 5px;
    margin: 0;
    box-sizing: border-box;
    resize: none;
    transition: none;
    flex-shrink: 0;
}

footer form button {
    padding: 8px;
    background-color: #03045e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

footer form button:hover {
    background-color: #0077b6;
}

/* Add a trigger button that's always visible */
footer::after {
    content: "Contact Me";
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #03045e;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
}

footer:hover form {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

footer #ContactForm :hover{
height:200px; 
transition: height 0.85s ease-in;
}
