body {
    margin: 0;
    display: flex;
    min-height: 100vh;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;

}

.index-header {
    width: 100vw;
}

.form-header {
    width: 80vw;
    text-align: center;
    background-color: #738f52;
    color: white;
    border-radius: 10px;
    padding: 0 20px;
}

main {
    text-align: center;
    margin: 20px;
}

.logo-div {
    width: 100vw;
    height: 90%;
    display: flex;
    justify-content: center;
}

.logo {
    width: 60%;
    height: auto;
}

nav .links{
    background-color: #738f52;
    overflow: hidden;
}

nav li {
    float: left;
}

nav a {
    text-decoration: none;
    padding: 20px;
    font-size: 1.3em;
    background-color: #738f52;
    color: white;
    display: block;
    text-align: center;
}

nav a:hover {
    background-color: #4b5320;
}

.home-photo-div {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 20px; 
   padding: 20px;
}

.photo-size-div {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.home-photos {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.survey-form {
    width: 60vw;
    max-width: 600px;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

fieldset {
    border-radius: 10px;
    padding: 40px;
}

.contact-info {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
   
}

.fence-info {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submit {
    background-color: #738f52;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.submit:hover {
    background-color: #4b5320;
}

.form-list {
    list-style: none;
}

.form-link {
    background-color: #738f52;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: block;
    margin-bottom: 10px;
}

.form-link:hover {
    text-decoration: none;
    background-color: #4b5320;
}

.contact-card {
    width: auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

li {
    list-style: none;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.fence-card-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.fence-card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

.fence-card {
    width: auto;
    box-sizing: border-box;
    max-width: 400px;
    background-color: #738f52;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.fence-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
    margin-bottom: 10px;
}