﻿.flex-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%; 
    align-content: center;
}

.flex-containerPropertySearch {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    align-content: center;
    justify-content: space-between;
}
    .flex-containerPropertySearch > input {
        width: 100%;
        width: -moz-available; /* WebKit-based browsers will ignore this. */
        width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
    }

.flex-containerPropertySearch > label {
    margin-top: 5px;
}

.flex-itemPropertySearchLarge {
    width: 55%;
    padding: 2px 0px;
}

    .flex-itemPropertySearchLarge > input {
        width: 100%;
        width: -moz-available; /* WebKit-based browsers will ignore this. */
        width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */


        border: 1px solid #8A8A8A;
        background-color: #ffffff;
        height: 28px;
        margin-bottom: 8px;
        padding: 0px 4px;
        border-radius: 2px;
    }

    .flex-itemPropertySearchLarge > label {
        margin-top: 5px;
    }

.flex-itemPropertySearchSmall {
    width: 35%;
    padding: 2px 0px;
}

    .flex-itemPropertySearchSmall > input {
        width: 100%;
        width: -moz-available; /* WebKit-based browsers will ignore this. */
        width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */


        border: 1px solid #8A8A8A;
        background-color: #ffffff;
        height: 28px;
        margin-bottom: 8px;
        padding: 0px 4px;
        border-radius: 2px;
    }

    .flex-itemPropertySearchSmall > label {
        margin-top: 5px;
    }


.flex-containerQuickPropertySearch {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-content: center;
    justify-content: space-between;
}

    .flex-containerQuickPropertySearch > input {
        width: 100%;
        width: -moz-available; /* WebKit-based browsers will ignore this. */
        width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
    }

    .flex-containerQuickPropertySearch > label {
        margin-top: 5px;
    }

.flex-itemQuickPropertySearchLarge {
    width: 55%;
    padding: 2px 0px;
}

    .flex-itemQuickPropertySearchLarge > input {
        width: 100%;
        width: -moz-available; /* WebKit-based browsers will ignore this. */
        width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
    }

    .flex-itemQuickPropertySearchLarge > label {
        margin-top: 5px;
    }

.flex-itemQuickPropertySearchSmall {
    width: 35%;
    padding: 2px 0px;
}

    .flex-itemQuickPropertySearchSmall > input {
        width: 100%;
        width: -moz-available; /* WebKit-based browsers will ignore this. */
        width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
    }

    .flex-itemQuickPropertySearchSmall > label {
        margin-top: 5px;
    }


.flex-containerMainPage {
    display: flex;
    flex-flow: row wrap;
    text-align: center;
}

    .flex-containerMainPage > * {
        flex: 1 100%;
    }

.header {
    padding-bottom: 26px;
    display:block;
}


.main {
    text-align: left;
    padding-right: 4%;
}

.aside-1 {
}


@media all and (min-width: 501px) {
    .main {
        flex: 2 0px;
    }

    .quicklinks {
        order: 4;
        text-align: left;
    }

    .aside {
        margin-top: 50px;
        order: 4;
    }
}


@media all and (max-width: 999px) {


    .flex-itemQuickPropertySearchLarge {
        width: 100%;
        padding: 2px 0px;
    }

    .flex-itemQuickPropertySearchSmall {
        width: 100%;
        padding: 2px 0px;
    }

    .flex-itemPropertySearchLarge {
        width: 100%;
        padding: 2px 0px;
    }

        .flex-itemPropertySearchLarge > input {
            width: 100%;
            width: -moz-available; /* WebKit-based browsers will ignore this. */
            width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */


            border: 1px solid #8A8A8A;
            background-color: #ffffff;
            height: 28px;
            margin-bottom: 8px;
            padding: 0px 4px;
            border-radius: 2px;
        }

        .flex-itemPropertySearchLarge > label {
            margin-top: 5px;
        }

    .flex-itemPropertySearchSmall {
        width: 100%;
        padding: 2px 0px;
    }

        .flex-itemPropertySearchSmall > input {
            width: 100%;
            width: -moz-available; /* WebKit-based browsers will ignore this. */
            width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */


            border: 1px solid #8A8A8A;
            background-color: #ffffff;
            height: 28px;
            margin-bottom: 8px;
            padding: 0px 4px;
            border-radius: 2px;
        }

        .flex-itemPropertySearchSmall > label {
            margin-top: 5px;
        }


    /* Responsive layout - makes a one column layout instead of a two-column layout */
    .flex-container {
        flex-direction: column;
    }
    
    .flex-containerQuickPropertySearch {
        flex-direction: row;
    }

    .appt-flex-item {
        width: 100%;
        margin-bottom: 10px;
        margin-left: 60px;
    }

        .appt-flex-item:nth-child(3) {
            width: 100%;
            margin-bottom: 10px;
            margin-left: 10px;
            text-align: center;
            align-content: center;
        }


    .flex-item {
        width: 100%;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .address-flex-item {
        width: 100%;
        margin-bottom: 5px;
    }

    .parcel-search-flex-item {
        width: 100%;
        margin: 2px;
        padding: 3px 0px 2px;
    }
    
    .parentContainer {
       
        flex-direction: column;
    }

    .item {
        flex: 1 1 auto;
        position: relative;
        text-align: center;
        width: 98%;
        min-height: 60px;
        vertical-align: middle;
        padding-top: 20px;
    }

    .item + .item {
        border-top: solid 1px lightgray;
        width: 100%;
    }

    .itemAddAndLegal {
        width: 100%;
        margin: 0px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .itemAddAndLegal + .itemAddAndLegal {
        border-top: solid 1px lightgray;
        width: 100%;
    }
}



@media all and (min-width: 1000px) {

    .main {
        flex: 2 0px;
    }

    .quicklinks {
        order: 3;
        text-align: left;
        flex: 0 0 30em;
    }

    .aside {
        margin-top: 0px;
        flex: 1 0 0;
    }

    .appt-flex-item {
        width: auto;
        margin-bottom: 10px;
        margin-right: 15px;
    }

        .appt-flex-item:first-child {
            margin-left: 30px;
            margin-top: 5px;
            margin-right: 10px;
        }

        .appt-flex-item:nth-child(3) {
            margin-top: 2px;
        }

    .flex-item {
        width: 46%;
        margin: 0px 10px 10px;
        padding: 2px;
        font-weight: bold;
    }

    .address-flex-item {
        width: 30%;
        margin: 0px;
        margin: 0px 5px 25px;
        padding: 2px;
    }


    .parcel-search-flex-item {
        width: 47%;
        margin: 0px;
        padding: 2px;
        font-weight: bold;
    }

    .parcel-search-flex-itemRow {
        width: 100%;
        margin: 0px;
        padding: 2px 0;
    }


    .parentContainer {
        margin: 0 auto;
        padding: 5px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        flex: 1 1 auto;
    }

    .item {
        flex: 1 1 auto;
        position: relative;
        text-align: center;
        line-height: 20px;
        width: 100%;
    }

        .item + .item {
            border-top: solid 1px lightgray;
            width: 100%;
        }

    .itemAddAndLegal {
        /*  position: relative;*/
        text-align: left;
        width: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
    }

        .itemAddAndLegal + .itemAddAndLegal {
            border-top: solid 1px lightgray;
            width: 100%;
        }
}


@media all and (max-width: 500px) {
    .header {
        display: none;
    }

    .main {
        max-width: 90%;
    }

    .aside {
        max-width: 80%;
    }
