/* Useful stuff that applies generally */

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: black;
}

a:visited {
    color: black;
}

p {
    line-height: 1.5;
}

p a {
    color: steelblue;
    font-weight: bold;
}

p a:visited {
    color: steelblue;
}

p a:hover {
    text-decoration: underline;
}

li {
    list-style: none;
}

body {
    font-family: Georgia, serif;
    margin: 0;
}

#please {
    color: dodgerblue;
    font-weight: bold;
    font-family: sans-serif;
}

#please2 {
    color: indianred;
    font-weight: bold;
    font-family: sans-serif;
}

#link {
    color: steelblue;
}

#link:hover {
    text-decoration: underline;
}

#important {
    color: darkslategrey;
    font-weight: bold;
    font-family: sans-serif;
}

.anchorNav a {
    color: steelblue;
}

/* header */
header {
    padding: 80px;
    text-align: center;
    background-image: url("waterNew.JPG");
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    height: 300px;
}

header h1 {
    font-size: 40px;
    color: whitesmoke;
    text-shadow: -1px 1px 0 #000,
        1px 1px 0 #000,
        1px -1px 0 #000;
    -1px -1px 0 #000;
}

/* nav */

#fixNav {
    margin: auto;
    width: 100%;
    background-color: #333;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
}

/* rest of nav */

nav {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

nav a {
    color: white;
    padding: 1em;
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
}

nav a:hover {
    color: #333;
    background-color: lightgrey;
}

nav a:visited {
    color: white;
}

nav a:hover:visited {
    color: #333;
}

nav a.current:visited {
    color: #333;
}

nav .current {
    color: #333;
    background-color: whitesmoke;
}

nav .current a:hover {
    background-color: lightgrey;
}

.right {
    float: right;
}

/* mobile nav */

#mobileButton {
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    display: none;
    background-color: whitesmoke;
    color: #333;
    padding: 1em;
    border: .25em solid whitesmoke;
    border-radius: .5em;
    cursor: pointer;
}

#mobileButton:hover,
#mobileButton:focus {
    opacity: 0.9;
}

#mobileDrop {
    position: relative;
    display: inline-block;
    float: right;
    padding: 0.25em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: grey;
    min-width: 10em;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
}

.dropdown-content a {
    font-family: sans-serif;
    color: #333;
    font-weight: bold;
    padding: 1em 1.25em;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
}

.dropdown-content a:visited {
    color: #333;
}

.dropdown-content .currentDrop {
    background-color: whitesmoke;
}

.dropdown-content a:hover {
    background-color: lightgrey;
}

.show {
    display: block;
}

/* home page structure */

main {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4em;
    margin-bottom: 2em;
    padding: 0 1em;
}

#content {
    display: -ms-flexbox;
    /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap;
    /* IE10 */
    flex-wrap: wrap;
}

section {
    -ms-flex: 70%;
    /* IE10 */
    flex: 70%;
    background-color: white;
    padding-right: 4em;
}

aside {
    -ms-flex: 30%;
    /* IE10 */
    flex: 30%;
    background-color: whitesmoke;
    padding: 0 1em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* home content */

#frontMain {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 2em;
}

#frontMainVideo {
    margin-bottom: 2em;
}

#frontImg,
#frontImg2,
#frontImg3,
#frontImg4,
#frontImg5,
#frontImg6,
#frontImg7,
#frontImg8,
#frontImg9,
#frontImg10,
#frontImg21,
#frontImg22,
#frontImg33 {
    height: 250px;
}

#frontImg {
    background: url("lagoonWide.JPG") no-repeat center;
    background-size: cover;
}

#frontImg21 {
    background: url("winterImgJUD.JPG") no-repeat center;
    background-size: cover;
}

#frontImg22 {
    background: url("imagineWater.JPG") no-repeat center;
    background-size: cover;
}

#frontImg33 {
    background: url("oneWater.jpg") no-repeat center;
    background-size: cover;
}

#frontImg2 {
    background: url("metersImgJUD.JPG") no-repeat center;
    background-size: cover;
}

#frontImg3 {
    background: url("2%20Water%20Meters.jpg") no-repeat center;
    background-size: cover;
}

#frontImg2:hover {
    opacity: 0.5;
}

#frontImg21:hover {
    opacity: 0.5;
}

/* home news */

#news05Container,
#news1Container,
#news2Container {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 5px;
    margin: 0 0 1em 0;
}

#news05,
#news1,
#news2 {
    height: 6em;
    border-radius: 5px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

#news05Container:hover,
#news1Container:hover,
#news2Container:hover,
#boardMinutes:hover,
#archivedNews:hover {
    opacity: 0.5;
}

#news05 {
    background: url("waste.JPG") no-repeat center;
    background-size: cover;
}

#news1 {
    background: url("news1.JPG") no-repeat center;
    background-size: cover;
}

#news2 {
    background: url("licenseImgJUD.JPG") no-repeat center;
    background-size: cover;
}

#news05Container p,
#news1Container p,
#news2Container p {
    text-align: center;
    font-family: sans-serif;
    font-size: large;
    background-color: aliceblue;
    padding: 0.25em;
    margin: 0;
    border-top: dashed 1px rgba(149, 165, 166, 1);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

#boardMinutes {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
    font-family: sans-serif;
    font-size: large;
    background-color: aliceblue;
    padding: 0.5em;
    margin: 0;
    margin-bottom: 1em;
    border-radius: 5px;
}

#archivedNews {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
    font-family: sans-serif;
    font-size: large;
    font-style: italic;
    background-color: aliceblue;
    padding: 0.5em;
    margin: 0;
    margin-bottom: 1em;
    border-radius: 5px;
}

#moreNews {
    text-align: center;
}

/* about */

#frontImg4 {
    background: url("staffAward.JPG") no-repeat center;
    background-size: cover;
}

#frontImg5 {
    background: url("district%20rainbow.jpg") no-repeat center;
    background-size: cover;
}

#frontImg6 {
    background: url("snow.jpg") no-repeat center;
    background-size: cover;
}

#frontImg7 {
    background: url("bogwoodWatershed.jpg") no-repeat center;
    background-size: cover;
}

#frontImg8 {
    background: url("building.JPG") no-repeat center;
    background-size: cover;
}

#frontImg9 {
    background: url("sludge.jpg") no-repeat center;
    background-size: cover;
}

#frontImg10 {
    background: url("dumping.jpg") no-repeat center;
    background-size: cover;
}

#aboutAside {
    height: 1500px;
}

/* customer service page */

#customerSection {
    width: 100%;
    margin-bottom: 2em;
    width: 75%;
}

#customerAside {
    height: 1300px;
    margin-bottom: 2em;
}

.customerMain {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 2em;
    border-radius: 5px;
}

#customerImg1,
#customerImg2,
#customerImg3,
#customerImg4 {
    height: 300px;
}

#customerImg1 {
    background: url("lagoonClouds.jpg") no-repeat center;
    background-size: cover;
}

#customerImg2 {
    background: url("drop%20box.jpg") no-repeat center;
    background-size: cover;
}

#customerImg3 {
    background: url("Rates2.png") no-repeat center;
    background-size: cover;
    border-radius: 5px;
}

#customerImg4 {
    background: url("example.JPG") no-repeat center;
    background-size: cover;
    border-radius: 5px;
}

.customerServiceText {
    width: 75%;
}

#customerDocuments {
    width: 100%;
    background-color: whitesmoke;
    padding: 0 1em 2em 1em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-top: 1em;
}

.document {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: inline-block;
    width: 23%;
    margin: 0.5em;
    border: solid 1px #333;
    border-radius: 5px;
}

.document:hover {
    opacity: 0.5;
}

.document h4 {
    text-align: center;
    color: #333;
    background-color: aliceblue;
    margin: 0;
    padding: 1em;
    font-family: sans-serif;
    border-top: dashed 1px #333;
    border-radius: 5px;
}

#doc1,
#doc2,
#doc3,
#doc4,
#doc5,
#doc6,
#doc7,
#doc8,
#doc9 {
    border-radius: 5px;
    height: 250px;
}

#doc1 {
    background: url("welcomeLetter.JPG") no-repeat center;
    background-size: cover;
}

#doc2 {
    background: url("appForService.JPG") no-repeat center;
    background-size: cover;
}

#doc3 {
    background: url("termsAndConditions.JPG") no-repeat center;
    background-size: cover;
}

#doc4 {
    background: url("sewerRules.JPG") no-repeat center;
    background-size: cover;
}

#doc5 {
    background: url("crossConnect.JPG") no-repeat center;
    background-size: cover;
}

#doc6 {
    background: url("waterBuild.JPG") no-repeat center;
    background-size: cover;
}

#doc7 {
    background: url("sewerBuild.JPG") no-repeat center;
    background-size: cover;
}

#doc8 {
    background: url("waterMeter.JPG") no-repeat center;
    background-size: cover;
}

#doc9 {
    background: url("meterRead.jpg") no-repeat center;
    background-size: cover;
}

/* faq page */

#faqSection {
    width: 100%;
    background-color: whitesmoke;
    padding: 2em 4em 2em 4em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.frequent {
    background-color: lightsteelblue;
    color: #333;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 5px;
    margin-bottom: 0.5em;
    outline: none;
    transition: 0.4s;
}

.active,
.frequent:hover {
    background-color: cornflowerblue;
}

.frequent:after {
    content: '\02795';
    font-size: 13px;
    color: #333;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2796";
}

.answer {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-radius: 5px;
    margin-bottom: 0.5em;
}

/* more faq */

#faqMain {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: auto;
    margin-top: 2em;
    width: 75%;
    border-radius: 5px;
}

#faqImg {
    background: url("fishing.jpg") no-repeat center;
    background-size: cover;
    height: 250px;
    border-radius: 5px;
}

#faqDrains {
    width: 25%;
    margin: 0.5em;
}

#faqShutoff {
    width: 25%;
    margin: 0.5em;
}

/* contact */

#contactSection {
    background-color: whitesmoke;
    padding: 1em 1em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: 100%;
    font-size: larger;
}

#contactSection h2 {
    text-align: center;
}

#contactMain {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: auto;
    margin-bottom: 1em;
    width: 75%;
}

#contactImg {
    background: url("road.jpg") no-repeat center;
    background-size: cover;
    height: 250px;
}

.contactInfo {
    display: inline-block;
    width: 45%;
    text-align: center;
    margin-left: 1em;
}

/* news */

#newsSection {
    width: 100%;
    background-color: whitesmoke;
    padding: 2em 4em 2em 4em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#newsSection p {
    margin: auto;
    width: 75%;
    margin-top: 1em;
    margin-bottom: 1em;
}

.newsMain {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: auto;
    margin-top: 2em;
    width: 75%;
    border-radius: 5px;
}

#newsImg {
    background: url("manhole%20adjustment%20201%20.jpg") no-repeat center;
    background-size: cover;
    height: 275px;
    border-radius: 5px;
}

#newsImg2 {
    background: url("hydrants.jpg") no-repeat center;
    background-size: cover;
    height: 275px;
    border-radius: 5px;
}

#newsImg3 {
    background: url("winterImgJUD.JPG") no-repeat center;
    background-size: cover;
    height: 275px;
    border-radius: 5px;
}


/* above footer */

#aboveAboveFooter {
    background-color: #333;
    height: .25em;
}

#aboveFooter {
    background: url("blueForestPaint.jpeg") no-repeat center;
    background-size: cover;
    opacity: 0.25;
    height: 250px;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    background: #333;
    color: white;

    display: -ms-flexbox;
    /* IE10 */
    display: flex;
    -ms-flex-wrap: wrap;
    /* IE10 */
    flex-wrap: wrap;
}

.footerCol {
    -ms-flex: 30%;
    /* IE10 */
    flex: 30%;
    padding: 20px;
    text-align: left;
}

.footerCol ul {
    padding-left: 0;
}

footer li {
    margin-bottom: 0.5em;
}

footer a {
    color: white;
    font-size: larger;
    font-family: sans-serif;
}

footer a:visited {
    color: white;
}

footer a:hover {
    color: steelblue;
}

footer a.current {
    color: steelblue;
}

footer a.current:hover {
    color: lightgrey;
}

.footerBreak {
    width: 50%;
}

#footerStaff {
    background: url("staff.JPG") no-repeat center;
    background-size: cover;
    height: 175px;
    border: solid 2px white;
    width: 75%;
}

#copy {
    text-align: center;
    padding-top: .5em;
    padding-bottom: .5em;
    line-height: 1.5;
}

#copy a {
    color: steelblue;
}

#copy a:hover {
    color: cadetblue;
}

/* media */
@media screen and (max-width: 1400px) {
    .document {
        width: 30%;
    }
}

@media screen and (max-width: 1250px) {
    main {
        width: 75%;
    }

    #content {
        flex-direction: column;
    }

    section {
        padding-right: 0;
    }

    #aboutAside {
        height: auto;
    }

    .faqCol {
        display: block;
        width: 100%;
        padding: 1em 0 1em 0;
    }

    #newsSection p {
        width: 100%;
    }

    .newsMain {
        width: 100%;
    }
}

@media screen and (max-width: 1000px) {
    .document {
        width: 45%;
    }
}

@media screen and (max-width: 900px) {
    .big {
        display: none;
    }

    #mobileButton {
        display: block;
    }

    #customerMain {
        width: 100%;
    }

    .customerServiceText {
        width: 100%;
    }

    .contactInfo {
        display: block;
        width: 100%;
        margin: 0;
    }

    #footerStaff {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    nav a {
        float: none;
        width: 100%;
    }

    main {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .footerCol {
        -ms-flex: 100%;
        /* IE10 */
        flex: 100%;
        text-align: center;
    }

    .footerBreak {
        width: 50%;
        margin: auto;
    }
}
