@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

html{
    font-family: "Nunito Sans", sans-serif;
    height: auto;
}

body{
    margin: 0;
    height: auto;
    background-color: #F4F4F4  ;
}

.banner{
    width: auto;
    text-align: center;
    background-color: #153243;
    color: #F4F9E9;
    margin: 2vh 1vw 2vh 1vw;
    border-radius: 10px;
}

.banner > h1{
    font-weight: 900;
    font-size: 2.5vw;
    padding: 1vh 0 1vh 0;
    margin: 0;
}

.sections_container{
    display: flex
}

.left_section, .right_section{
    width: 15%;
}

.main_section{
    width: 70%;
    border-color: #153243;
    background-color: #E9E9E9;
    color: #153243;
    border-radius: 10px;
    padding: 2vh 5vw 2vh 5vw;
    max-height: 65vh;
    overflow-x: scroll;
}

.option_container > h2{
    font-weight: 900;
    font-size: 2vw;
    text-align: center;
    display: inline-flex;

}

.main_menu_option{
    background-color: #153243;
    max-width: 11vw;
    padding: 1vw;
    border-color: #F4F4F4;
    width: 100%;
}


.footer{
    width: 98%;
    left: 0;
    bottom: 0;
    position: fixed;
    text-align: center;
    background-color: #153243;
    color: #F4F9E9;
    margin: 1.5vh 1vw 1.5vh 1vw;
    border-radius: 10px;
}

.footer > h4{
    font-size: 1.25vw;
    margin: 1vh 0 1vh 0;
    padding: 0;
}

.box_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.box_container > a {
    text-decoration: none;
}

.box {
    background-color: #153243;
    border-radius: 10px;
    margin: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
    flex: 1 1 200px;
    max-width: 300px;
}

.inner_box {
    border-radius: 10px;
    border: 2px solid white;
    margin: 1rem;
    padding: 1rem;
    display: grid;
    place-items: center;
    color: white;
    transition: all 0.15s ease;
}


.box:hover {
    background-color: white;
    border-style: solid;
    border-color: #153243;
}

.box:hover .inner_box {
    border-color: #153243;
    color: #153243;
}

.text_container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1vw;
    font-size: 1vw;
}

.text_box1{
    grid-column: span 4 / span 4;
}
.text_box2{
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-row-start: 2;
}
.text_box3{
    grid-column: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 2;
}
.text_box6{
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 4;
}
.text_box7{
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 4;
}
.text_box8{
    grid-column: span 2 / span 2;
    grid-column-start: 3;
    grid-row-start: 3;
}

.gallery_container{
    display: flex;
    flex-wrap: wrap;
}
.gallery_image{
    flex: 30%;
    padding: 2%;
}
.gallery_image > img{
    width: 100%;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

fieldset {
    border: 2px solid #153243;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    background-color: #F4F4F4;
    flex: 1 1 45%;
    min-width: 350px;
}

legend {
    font-weight: 800;
    font-size: 1.2rem;
    color: #153243;
    padding: 0 0.5rem;
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.5rem 0;
}

label {
    font-weight: 700;
    width: 30%;
    text-align: right;
}

input, select, textarea {
    flex: 1;
    padding: .6rem .8rem;
    border: 1.5px solid #153243;
    border-radius: 6px;
    background-color: #fff;
    color: #153243;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
    flex: 1;
}

.categories label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.submit-btn, .reset-btn {
    background-color: #153243;
    color: #F4F9E9;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.reset-btn {
    background-color: #888;
}

.submit-btn:hover {
    background-color: #1e4c5c;
}

.reset-btn:hover {
    background-color: #666;
}


@media (max-width: 800px) {
    .box_container {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 80%;
        max-width: none;
    }

    .gallery_image{
        flex: 100%;
    }

    .sections_container {
        flex-direction: column;
        align-items: center;
    }

    .main_section {
        width: 90%;
    }

    form {
        flex-direction: column;
    }

    fieldset {
        width: 100%;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    label {
        width: 100%;
        text-align: left;
    }

    .button-container {
        flex-direction: column;
    }
}
