@import 'https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Lato:300,400,400i,700,900';

/******html overrides and defaults**********/
body {
    margin: 0;
    font-size: 15px;
    font-family: 'lato', sans-serif;
    color: #555;
    overflow-x: hidden;
}
img{ max-width: 100%; }
input,textarea,select{ font-family: inherit; }

a{ color: #555; }
a:hover{ color: #777; }

h1,h2,h3,h4{
    margin: 0px;
    margin-bottom: 8px;
    font-weight: 400;
    color: #1c1c1c
}
h1{ font-size: 24px; }
h2{ font-size: 20px; }
h3{ font-size: 18px; }
h4{ font-size: 16px; }

.button{ 
    padding: 6px 10px;
    margin: 4px;
    border-radius: 2px; 
    background: #999; 
    border: 1px solid #777; 
    color: #fff;
    box-shadow: none;
    transition-duration: 0.5s;
}
.button:hover{ color: #333; background: #ccc; }
a.button{ text-decoration: none; margin: auto; display: inline-block; }
input.default,button.default,.buttonDefault{ background: #333; color: #fff; border: 1px solid #777; }
input.default:hover,button.default:hover,.buttonDefault:hover{ color: #fff; background: #555; }

.fieldInput{ 
    box-sizing: border-box;
    border-radius: 4px; 
    background: #fff; 
    box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.10);
    border: 1px solid #ddd;  
    padding: 8px 4px;
}
select.fieldInput{ padding: 7px 4px; }
.fieldFocus{ border: 1px solid #5CA0D1; }
.fieldError{ background: rgba(255,150,150,0.2); }

.clearBoth{ clear: both; height: 0px; overflow: hidden; }

.accentColor{ color: #919191; }
.accentBg{ background: #919191; } 
.accentBgFade{ background: rgba(150,150,150,0.75); } 

.blockHeader{ background: #efefef; height: 12px; overflow: visible; margin-bottom: 26px; }
.blockHeader span{ 
    display: table; 
    margin: auto;
    background: #3498DB; 
    font-size: 24px;
    color: #fff; 
    padding: 5px 15px; 
    position: relative; 
    top: -15px; 
}
.secondFont{ font-family: 'Playfair Display'; }

/***************************layout & Sticky Behavior*************************************/
.container{ padding-left: 10px; padding-right: 10px;  }

header{ background: #3777b5; color: #fff; padding-top: 10px; padding-bottom: 10px; position: relative; z-index: 3; }
header a{ color: #fff; }
header a:hover{ color: #ccf; }

nav{ position: relative; z-index: 2; background: rgba(255,255,255,0.85); box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25); }
nav .logo{ text-align: left; padding: 6px 0px 3px 0px; }
nav .logo a{display: block; }

/* Sticky Logic */
.stickyNav { padding-top: 1px; }
.stickyNav nav { position: fixed; top: 0px; left: 0px; right: 0px; z-index: 100; }

/* Logo Transition & Shrink */
nav .logo img { 
    height: 5px; 
    margin: 0px; 
    transition: height 1.1s ease-in-out; 
}
.stickyNav nav .logo img { 
    height: 35px !important; 
}

nav .mobileMenu{ 
    position: fixed; right: 0px; 
    text-align: center;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    background: #999;
    color: #fff;
}
nav .mobileMenu .open{ display: inline-block; }
nav .mobileMenu .close{ display: none; }
.activeMenu nav .mobileMenu .open{ display: none; }
.activeMenu nav .mobileMenu .close{ display: inline-block; }

#menu li{ list-style: none; display: block; white-space: nowrap; }
#menu ul{ display: block; margin: 0px; padding: 0px; box-sizing: border-box; font-size: 16px; }
#menu > ul a{ display: block; color: #fff; padding: 10px 10px; text-decoration: none; border-bottom: 1px solid #555; }
#menu > ul a:hover{ background: #1c1c1c; }
#menu > ul {
    display: none;
    position: fixed;
    top: 190px;
    bottom: 0px; 
    right: 0px;
    max-width: 80%;
    min-width: 200px;
    background: rgba(50,50,50,0.85);
    overflow: auto;
    overflow-x: hidden;
}
.stickyNav #menu > ul{ top: 53px; }
.activeMenu #menu > ul{ display: block; }
#menu > ul > li > ul a{ padding-left: 25px; }


#wrapper{ position: relative; z-index: 1; }

#title{ 
    position: relative;
    padding: 20px 0px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    color: #fff;
}
#title .title{ font-size: 24px; text-shadow: 0px 0px 20px #000; text-align: center; }
#title a{ color: #ccc; text-decoration: none; }
#title a:hover{ color: #ffc; }

#content{ min-height: 300px; padding-top: 20px; }

footer{ background: #1C1C1C; color: #fff; padding-top: 10px;  text-align: center; line-height: 18px; }
footer a{ color: #fff; }
footer .copy{ background: #777; padding: 15px; margin-top: 10px; }

/************media query going up*******************/
@media (min-width: 480px) {
    nav .logo{ text-align: center; }
}



@media (min-width: 992px) {
    nav .mobileMenu{ display: none; }
    nav .logo{ display: block; float: left; vertical-align: bottom; padding: 10px 0px 5px 0px; }
    
    /* Desktop Logo Sizes */
    nav .logo img { height: 70px; }
    .stickyNav nav .logo img { height: 65px !important; }

    #menu > ul{ 
        font-size: 14px;
        text-transform: uppercase;
        display: block;
        float: right;
        position: relative;
        top: 0px; 
        bottom: 0px; 
        right: 0px; 
        left: 0px;
        width: auto;
        max-width: none;
        min-width: none;
        background: transparent;
        overflow: visible;
    }
    .stickyNav #menu > ul{ top: 0px; }
    #menu > ul > li{ float: left; position: relative; }
    #menu > ul > li{ border-bottom: 3px solid #fff; }
    #menu > ul > li > a{ color: #1c1c1c; background: transparent; border: 0px;  padding: 26px 12px 23px 12px; border: 0px; transition: padding 0.3s ease; }
    
    .stickyNav #menu > ul > li > a { padding: 30px 20px; }

    #menu > ul > li:hover{ border-bottom: 1px solid #999; }
    #menu > ul > li:hover > a{ color: #555; background: transparent; }
    #menu > ul > li > ul{ display: none; background: #999; position: absolute; top: 100%; left: 0px; margin-top: 3px;  }
    #menu > ul > li:hover > ul{ display: block; }
    #menu > ul > li > ul > li a{ border-bottom: 1px solid #777; }
    #menu > ul > li > ul > li:hover a{ background: #555; }
}
