@media only screen
and (-min-moz-device-pixel-ratio: 1)
and (min-width: 1024px)
and (max-width: 1070px),
only screen 
and (-o-min-device-pixel-ratio: 1/1)
and (min-width: 1024px)
and (max-width: 1070px),
only screen 
and (min-device-pixel-ratio: 1)
and (min-width: 1024px)
and (max-width: 1070px),
only screen 
and (in-resolution: 72dpi)
and (min-width: 1024px)
and (max-width: 1070px),
only screen 
and (min-resolution: 1dppx)
and (min-width: 1024px)
and (max-width: 1070px),
only screen
and (min-width: 1024px)
and (max-width: 1070px) {
    #topnav .container, .container {
        width: 98%;
        margin: 0 1%;
    }

    #topnav li {
        font-size: 0.95em;
    }
}

/* Landscape and big portrait devices - general styling */
@media only screen
and (-min-moz-device-pixel-ratio: 1)
and (max-width: 1024px),
only screen 
and (-o-min-device-pixel-ratio: 1/1)
and (max-width: 1024px),
only screen 
and (min-device-pixel-ratio: 1)
and (max-width: 1024px),
only screen 
and (in-resolution: 72dpi)
and (max-width: 1024px),
only screen 
and (min-resolution: 1dppx)
and (max-width: 1024px),
only screen
and (max-width: 1024px) {
    img {
        max-width: 100%;
    }

    #topnav .container, .container {
        width: 96%;
        height: unset;
    }

    #topnav ul {
        width: 100%;
        margin: unset;
        padding: 6px 0;
        float: none;
        background-color: #333;
    }

    #topnav li {
        font-size: 0.95em;
        float: none;
        display: inline-block;
        width: unset;
        text-align: center;
        padding: 0 1.2%;
    }

    #topnav li a {
        padding: 0;
        line-height: unset;
    }

    #topnav .social {
        display: none;
    }

    #header {
        height: unset;
    }

    #header .logo {
        float: left;
    }

    #header img {
        max-width: 42%;
        height: auto;
    }

    #nav {
        height: 102px;
    }

    #nav li {
        width: 50%;
        height: unset;
        margin: 0;
        text-align: center;
    }

    #nav li a {
        padding: 8px 0;
        position: static;
        bottom: unset;
    }

    #sticky-social {
        z-index: 10;
    }

    #slideshow_holder {
        max-width: 64%;
        min-height: 340px;
    }

    #slide_holder, #slide_holder img {
        min-width: 100%;
        min-height: 100%;
        width: 100%;
        width: 56vw;
        height: 320px;
        height: 33vw;
    }

    .one_third_col {
        width: 32%;
        margin-right: 1.5%;
    }

    .two_third_col {
        width: 65%;
    }

    .one_third_col:last-child {
        margin-right: 0;
    }

    .dir_example {
        margin-left: 10px;
    }

    #footer .one_third_col {
        width: 48%;
        margin-right: 4%;
        margin-left: 0;
    }

    #footer #signup {
        margin-right: 0;
    }

    #services.one_third_col {
        display: none;
    }
}

/* 920px screen width (retina converted to 1x) */
@media only screen
and (-min-moz-device-pixel-ratio: 1)
and (max-width: 920px),
only screen 
and (-o-min-device-pixel-ratio: 1/1)
and (max-width: 920px),
only screen 
and (min-device-pixel-ratio: 1)
and (max-width: 920px),
only screen 
and (in-resolution: 72dpi)
and (max-width: 920px),
only screen 
and (min-resolution: 1dppx)
and (max-width: 920px),
only screen
and (max-width: 920px) {
    #sticky-social {
        display: none;
    }

    #topnav li {
        font-size: 0.9em;
        padding: 0 0.8%;
    }
}

/* 920px screen width (retina converted to 1x) */
@media only screen
and (-min-moz-device-pixel-ratio: 1)
and (max-width: 850px),
only screen 
and (-o-min-device-pixel-ratio: 1/1)
and (max-width: 850px),
only screen 
and (min-device-pixel-ratio: 1)
and (max-width: 850px),
only screen 
and (in-resolution: 72dpi)
and (max-width: 850px),
only screen 
and (min-resolution: 1dppx)
and (max-width: 850px),
only screen
and (max-width: 850px) {
    #topnav li {
        font-size: 0.85em;
        padding: 0 0.7%;
    }

    #nav li {
        font-size: 0.9em;
    }
}

/* Portrait devices (and landscape mobiles) - general styling */
@media only screen 
and (-webkit-min-device-pixel-ratio: 1)
and (max-width: 800px)
and (orientation: portrait),
only screen 
and (-min-moz-device-pixel-ratio: 1)
and (max-width: 800px)
and (orientation: portrait),
only screen 
and (-o-min-device-pixel-ratio: 1/1)
and (max-width: 800px)
and (orientation: portrait),
only screen 
and (min-device-pixel-ratio: 1)
and (max-width: 800px)
and (orientation: portrait),
only screen 
and (in-resolution: 72dpi)
and (max-width: 800px)
and (orientation: portrait),
only screen 
and (min-resolution: 1dppx)
and (max-width: 800px)
and (orientation: portrait),
only screen
and (max-width: 800px)
and (orientation: portrait),
only screen 
and (-webkit-min-device-pixel-ratio: 1)
and (max-width: 768px)
and (orientation: landscape),
only screen 
and (-min-moz-device-pixel-ratio: 1)
and (max-width: 768px)
and (orientation: landscape),
only screen 
and (-o-min-device-pixel-ratio: 1/1)
and (max-width: 768px)
and (orientation: landscape),
only screen 
and (min-device-pixel-ratio: 1)
and (max-width: 768px)
and (orientation: landscape),
only screen 
and (in-resolution: 72dpi)
and (max-width: 768px)
and (orientation: landscape),
only screen 
and (min-resolution: 1dppx)
and (max-width: 768px)
and (orientation: landscape),
only screen
and (max-width: 768px)
and (orientation: landscape) {
    body {
        font-size: 0.9285em;
    }

    h1 {
        font-size: 2.857em;
        padding-bottom: 0.785em;
        line-height: 1.2em;
    }

    h1 img {
        margin-bottom: -0.785em;
    }

    h2 {
        font-size: 1.785em;
        padding: 0.357em 0px 0.714em 0px;
    }

    h2.pink, h2.green, h2.orange, h2.brown, h2.red, h2.purple, h2.blue {
        padding: 0.5em 0.25em;
    }

    h3 {
        font-size: 1.285em;
        padding-top: 0.714em;
    }

    h4 {
        font-size: 1em;
    }

    h5 {
        font-size: 1.285em;
        padding: 1.071em 0px 0.714em 0px;
    }

    p {
        padding: 0.714em 0px 0.714em 0px;
    }

    #content ul, #content ol {
        margin: 2.142em 0px 2.142em 4.285em;
    }

    #content ul ul, #content ul ol, #content ol ol, #content ol ul {
        margin: 0.285em 0 0.357em 2.142em;
        font-size: 0.9em;
    }

    #content ul ul li, #content ul ol li, #content ol ol li, #content ol ul li {
        margin-bottom: 0.428em;
    }

    #content li {
        line-height: 1.285em;
        margin-bottom: 0.857em;
    }

    button, input[type="submit"], input[type="reset"], input[type="button"] {
        padding: 1.071em 1.428em;
        margin-top: 1.071em;
    }

    input[type="radio"] {
        margin-top: 2.142em; 
    }

    input[type="text"], input[type="password"], input[type="tel"], textarea, select {
        padding: 0.4285em 0.714em;
        margin-bottom: 0.714em;
        margin-top: 0.714em;
    }
    
    input[type="email"], input[type="tel"], textarea {
        padding: 0.4285em 0.714em;
        max-width: calc(100% - 1.428em);
        margin-bottom: 0.714em;
        margin-top: 0.714em;
    }

    .dir_example {
        margin-bottom: 20px;
    }

    #topnav {
        position: relative;
        height: 18.4em;
        max-height: 0px;
        padding-top: 35px;
        overflow: hidden;
        -webkit-transition: all 500ms ease-in-out;
        -moz-transition: all 500ms ease-in-out;
        -o-transition: all 500ms ease-in-out;
        transition: all 500ms ease-in-out;
    }

    #topnav.openMenu {
        max-height: 18.2em;
    }

    #menuIcon {
        display: block;
        position: absolute;
        top: 4px;
        right: 2%;
        height: 27px;
        width: 27px;
        background: -webkit-linear-gradient(bottom, rgb(51, 51, 51) 0%, rgb(51, 51, 51) 5%, rgb(255, 255, 255) 5%, rgb(255, 255, 255) 25%, rgb(51, 51, 51) 25%, rgb(51, 51, 51) 40%, rgb(255, 255, 255) 40%, rgb(255, 255, 255) 60%, rgb(51, 51, 51) 60%, rgb(51, 51, 51) 75%, rgb(255, 255, 255) 75%, rgb(255, 255, 255) 95%, rgb(51, 51, 51) 95%, rgb(51, 51, 51) 100%);
        background: -moz-linear-gradient(bottom, rgb(51, 51, 51) 0%, rgb(51, 51, 51) 5%, rgb(255, 255, 255) 5%, rgb(255, 255, 255) 25%, rgb(51, 51, 51) 25%, rgb(51, 51, 51) 40%, rgb(255, 255, 255) 40%, rgb(255, 255, 255) 60%, rgb(51, 51, 51) 60%, rgb(51, 51, 51) 75%, rgb(255, 255, 255) 75%, rgb(255, 255, 255) 95%, rgb(51, 51, 51) 95%, rgb(51, 51, 51) 100%);
        background: -o-linear-gradient(bottom, rgb(51, 51, 51) 0%, rgb(51, 51, 51) 5%, rgb(255, 255, 255) 5%, rgb(255, 255, 255) 25%, rgb(51, 51, 51) 25%, rgb(51, 51, 51) 40%, rgb(255, 255, 255) 40%, rgb(255, 255, 255) 60%, rgb(51, 51, 51) 60%, rgb(51, 51, 51) 75%, rgb(255, 255, 255) 75%, rgb(255, 255, 255) 95%, rgb(51, 51, 51) 95%, rgb(51, 51, 51) 100%);
        background: linear-gradient(bottom, rgb(51, 51, 51) 0%, rgb(51, 51, 51) 5%, rgb(255, 255, 255) 5%, rgb(255, 255, 255) 25%, rgb(51, 51, 51) 25%, rgb(51, 51, 51) 40%, rgb(255, 255, 255) 40%, rgb(255, 255, 255) 60%, rgb(51, 51, 51) 60%, rgb(51, 51, 51) 75%, rgb(255, 255, 255) 75%, rgb(255, 255, 255) 95%, rgb(51, 51, 51) 95%, rgb(51, 51, 51) 100%);
    }
    
    #topnav li {
        display: block;
        padding: 3px 0;
        border-bottom: 1px solid rgb(255, 255, 255);
    }

    #nav {
        height: 200px;
    }

    #nav li {
        width: 100%;
        height: unset;
        margin: 0;
        text-align: center;
    }

    #slideshow_holder {
        max-width: 100%;
        min-height: 49vw;
        margin: auto;
    }

    #slide_holder, #slide_holder img {
        min-width: 100%;
        max-width: 100%;
        min-height: 100%;
        width: 100%;
        height: 326px;
        height: 49vw;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="tel"],
    textarea,
    select {
        min-width: calc(100% - 15px);
        max-width: 100%;
	}

    .one_third_col, .quarter p {
        width: 100%;
        margin-right: 0;
        float: none;
        text-align: center;
    }

    .bus_dir {
        max-width: 100%;
    }

    .one_third_col h2, .one_third_col a, .inner, #help_box .inner div, #news_box .inner div {
        text-align: center;
    }

    .inner form input, #wrap {
        margin: 0 auto 10px;
    }

    #footer input {
        margin: 10px auto 10px;
    }

    #wrap {
        width: 245px;
    }

    .adbox img, #wrap {
        float: none;
    }

    #help_box .inner div, #news_box .inner div {
        width: 100%;
        left: 0;
    }

    .one_third_col a {
        display: block;
    }

    .two_third_col {
        width: 100%;
        float: none;
    }

    #footer .one_third_col {
        width: 100%;
        margin-right: 0%;
        margin-left: 0;
    }

    #footer a {
        display: inline
    }

    #footer #signup {
        margin-top: 0;
    }
}