@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed');

:root {
    --canvas-color: #f3f3f3;
    --theme-color1: #76c7c0;
    --theme-color2: #e2534b;
}

/* temporarily hide the drop-downs on mobile until they are collapsible */
@media all and (max-width: 700px) {
    nav ul ul { display: none !important; }
}

body {
    background: var(--canvas-color);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
}

h1, h2, h3, h4, h5 {
    padding-top: 15px;
    padding-bottom: 2px;
}

h2 {
    font-size: 18px;
    color: var(--theme-color1);
}

h3 { font-size: 16px; }

h4 { font-size: 14px; }

h5 { font-size: 12px; }

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

footer .wrapper {
    flex-wrap: wrap;
	justify-content: space-between;
}

header {
    background-color: var(--theme-color1);
    padding: 10px 0;
}

header, footer {
    color: white;
    clear: both;
    font-size: 18px;
}

.sidebar ul, .sidebar ol { padding-left: 1em; }

#title {
    text-decoration: none;
    font-size: 40px;
    font-weight: bold;
}

.slogan {
    padding: 5px;
    font-size: 25px;
}

#navstuff { flex: 1; }

nav {
    text-align: right;
    font-size: 16px;
}

nav li {
    display: inline-block;
    margin: 0 1px;
}

nav ul ul ul { margin-right: -5px; }

nav a {
    border-radius: 5px;
    position: relative;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 5px;
    text-align: left;
}

nav li > a::before {
    font-family: 'Material Design Icons';
    content: '\F0140'; /* down-chevron */
    font-size: 1.65em;
    font-weight: bold;
    line-height: 0;
    vertical-align: middle;
    margin-left: -5px;
}

nav ul ul li a::before { display: none; }

nav li > a:only-child::before { content: none; }

nav > ul > li:hover > a { background: var(--theme-color2); }

nav a.current { background-color: rgba(0,0,0,0.2); }

nav > ul > li > a.current,
nav > ul > li:hover a { border-bottom: 3px solid rgba(0,0,0,0.15); }

nav ul ul li:first-of-type::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--theme-color2);
    position: absolute;
    left: 20px;
    top: -8px;
}

nav ul ul::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid transparent;
    position: absolute;
    left: 0;
    top: -18px;
    width: 120px;
    padding-top: 10px;
    cursor: pointer;
}

nav ul ul {
    display: none;
    transition: all;
    transition-delay: 0.2s;
}

nav ul li:hover ul {
    display: block;
    position: absolute;
    background: var(--theme-color2);
    z-index: 999999;
    padding: 5px;
    border-radius: 5px;
}

nav > ul > li > ul { margin-top: 15px; }

nav ul ul ul {
    position: static !important;
    margin-bottom: -5px;
}

nav ul ul ul li::before { display: none; }

nav ul ul a {
    text-decoration: none;
    box-sizing: border-box;
    border-top: none;
    position: relative;
    min-width: 150px;
    left: 0;
    transition: all;
    transition-duration: 0.2s;
    background-color: rgba(255, 255, 255, 0.15)
}

nav ul ul li {
    display: block;
    border: none;
    color: white;
    padding: 2px;
    margin-right: 0;
}

nav ul ul a:hover { background-color: var(--theme-color1); }

#mobile_button {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
}

#mobile_button::before {
    display: block;
    font-size: 40px;
}

#mobile_button.active { color: var(--theme-color2); }

#account_menu {
    text-align: right;
	margin-top: 5px;
    color: var(--theme-color2);
}

#slideshow { text-align: center; }

#slideshow .nivo-caption, #photocaption {
    text-transform: uppercase;
    background-color: var(--theme-color2);
    padding: 15px 30px;
    border-radius: 4px;
    bottom: 50%;
    font-size: 4vw;
    width: auto;
    left: 50%;
    transform: translate(-50%, 50%);
    font-family: 'Roboto Condensed', sans-serif;
}

#slideshow .nivo-directionNav a {
    background-color: var(--theme-color2);
    width: 40px;
    height: 50px;
    opacity: 1 !important;
    border: none;
    border-bottom: 3px solid rgba(0,0,0,0.15);
}

#slideshow .nivo-directionNav a::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

#slideshow a.nivo-prevNav {
    left: 0;
    border-radius: 0 5px 5px 0 !important;
}

#slideshow a.nivo-nextNav {
    right: 0;
    border-radius: 5px 0 0 5px !important;
}

#slideshow .nivo-directionNav a::before {
    font-size: 50px;
    position: relative;
    right: 10px;
    top: 10px;
}

#slideshow a.nivo-prevNav::before { content: '\F013D'; } /* chevron-double-left */

#slideshow a.nivo-nextNav::before { content: '\F013E'; } /* chevron-double-right */

.marquee {
    text-align: center;
    background-color: rgba(0,0,0,0.03);
    margin-bottom: 15px;
    padding: 15px;
    font-size: 24px;
}

.marquee::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin-top: -20px;
    border: 20px solid transparent;
    border-top-color: rgba(0,0,0,0.03);
    position: absolute;
    left: calc(50% - 20px);
    bottom: -40px;
}

#searchbar {
    width: 100%;
    text-align: center;
}

#searchbar input {
    width: 80%;
    border: thin solid var(--theme-color2);
    color: var(--theme-color2);
    padding-left: 5px;
}

#searchbar button {
    background-color: var(--theme-color2);
    color: white;
    margin-left: 5px;
    height: 27px;
    border-bottom: 3px solid rgba(0,0,0,0.15);
    margin-top: -2px;
}

.mdi-magnify::before {
    position: relative;
    top: -5px;
}

#main {
    display: table;
    width: 100%;
}

#sidebars {
    display: table-cell;
    vertical-align: top;
}

.has-sidebar #sidebars { width: 300px; }

.sidebar { width: 300px; }

.sidebar ul { list-style-type: none; }

.sidebar ul li::before {
    font-family: 'Material Design Icons';
    content: '\F0142'; /* chevron-right */
    font-weight: bold;
    color: var(--theme-color1);
    margin-right: 5px;
}

.sidebar a, .page a, footer a {
    color: var(--theme-color2);
    text-decoration: none;
    transition: all;
    transition-duration: 0.2s;
}

.sidebar a:hover, .page a:hover {
    color: var(--theme-color1);
    text-decoration: none;
}

.page, .sidebar {
    padding: 10px;
    color: #738380;
}

.page { display: table-cell; }

.page h1, .sidebar h1 {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
}

.box .content {
    padding: 2em;
    background-color: white;
}

.custom_button {
	padding: 10px 20px;
	font-family: 'Raleway', Helvetica, sans-serif;
}

blockquote {
    background-color: rgba(0,0,0,0.03);
    border-radius: 5px;
    padding: 20px;
}

footer {
    background-color: var(--theme-color1);
    margin-top: 100px;
    padding: 30px 0;
    clear: both;
}

#footer-contact {
    float: left;
    padding-bottom: 1em;
}

#footer-copy, #social { float: right; }

#footer-final {
    clear: both;
    padding-top: 1em;
    width: 100%;
}

@media all and (max-width: 767px) {

    header { padding: 20px; }

    .slogan { font-size: 20px; }

    #mobile_button { display: block; }

    #site-identity { margin: auto; }

    nav {
        display: none;
        position: absolute;
        top: 0;
        right: 10px;
        margin-top: 50px;
        background: var(--theme-color2);
        z-index: 999;
        padding: 5px 10px 10px 10px;
        border-radius: 5px;
    }

    nav a {
        padding-left: 5px;
        border-radius: 5px;
        background: rgba(255,255,255,0.1);
        min-width: 200px;
        margin-top: 5px;
    }

    nav ul ul a { margin-left: 20px; }

    nav li {
        display: inline;
        position: relative;
    }

    nav > ul > li:hover > a,
    nav > ul > li.current:hover > a { background-color: var(--theme-color1); }

    nav ul ul::before {
        display: none;
        top: 0;
        padding-top: 0;
    }

    nav ul ul li:first-of-type::before {
        display: none;
        position: static;
        top: 0;
    }

    nav ul li:hover ul {
        display: block;
        position: static;
        background-color: none;
        z-index: 999999;
        padding: 0;
        border-radius:0;
        margin-top: 0;
    }

    nav ul ul { display: inline; }

    nav li > a::before { display: none; }

    nav ul ul li {
        transition: none;
        margin-top: 5px;
    }

    .page { margin-left: 0; }

    #main, #sidebars, .page {
        display: block;
        width: 100%;
    }

    #social {
        float: none;
        text-align: center;
        margin-bottom: 10px;
	}

    #account_menu {
        text-align: center;
        margin-top: 20px;
    }
	
	header .wrapper { display: block; }
}

@media all and (max-width: 450px) {
	.slogan { font-size: 14px; }
}
