html, body { color: #333; font-family: 'Montserrat', sans-serif; -webkit-font-smoothing: antialiased; height: 100%; width: 100%; }
.container { height: 100%; padding: 0; width: 100%; }

/* Links */
a { transition: background-color .2s, color .2s; }
a:hover,
a:focus { text-decoration: none; }

/* Headers */
h1 { font-size: 3.3em; margin: 30px 0 22px; }
h2 { font-size: 2.2em; margin: 12px 0 0; }
h3 { font-size: 1.8em; margin: 28px 0 0; }
h4 { font-size: 1.6em; margin: 28px 0 0; }
h5 { font-size: 1.4em; margin: 26px 0 0; }
h6 { font-size: 1.3em; margin: 26px 0 0; }

/* Paragraphs & Lists */
p { line-height: 1.5em; margin: 16px 0 6px; }
ul, ol { margin: 16px 0 10px; }
li {  line-height: 1.4em; margin-bottom: 8px; }

/* Forms */
form { margin: 18px 0; }
label { display: block; margin: 10px 0 8px; width: 100%; }
input[type="text"] { margin-bottom: 8px; padding-left: 3px; width: 100%; }
textarea { height: 80px; margin-bottom: 8px; padding: 3px 5px; resize: none; width: 100%; }
input[type="checkbox"],
input[type="radio"] { margin: 0 4px 0 2px; }
input[type="checkbox"] + label,
input[type="radio"] + label { display: inline-block; margin-right: 14px; position: relative; top: -1px; width: auto; }
input[type="submit"],
input[type="reset"] { background-color: #FFC222; border-radius: 3px; border: 0; color: #111A21; font-weight: bold; letter-spacing: .05em; margin-top: 14px; padding: 8px 16px; transition: background-color .2s;}
.button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover { background-color: #E4A602; color: #111A21; }


/* Map Specific */
#intro-screen { background-image: url("../images/brampton-bg.jpg"); background-size: cover; background-position: center; height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 4000; }
#intro-screen > div { background: rgba(0,42,105,.9); color: #fff; margin: 0 auto; padding: 26px 20px 38px; text-align: center; width: 60%; }
#intro-screen img { height: 32px; }
#intro-screen h1 { font-size: 2em; font-weight: 700; }
#intro-screen p { margin: 10px auto 30px; width: 80%; }
#intro-screen.started { left: -100%; top: -100%; transition: left 0s ease-in .8s, top .8s; }

.btn { background: #D6DD21; color: #002a69; font-size: 1em; font-weight: 700; padding: 3px 28px; }
.btn:hover { background: #a8ad0e; }

#title-bar { background: #002A69; color: #fff; height: 58px; padding: 14px 24px 0; position: relative; z-index: 1; }
#title-bar img { display: inline-block; height: 28px; vertical-align: middle; }
#title-bar h2 { display: inline-block; font-size: 1.4em; font-weight: 700; margin: 0 0 0 22px; vertical-align: middle; }
#title-bar .btn { float: right; padding: 3px 12px; }

#map-area { height: 100%; overflow: hidden; padding-top: 58px; position: absolute; top: 0; width: 100%; }
#map { height: 100%; width: 100%; }
#flash { background-color: transparent; border-radius: 50%; height: 350px; left: 50%; margin: -195px 0 0 -175px; position: absolute; top: -100%; transition: background-color .3s, height .3s, width .3s, margin .3s, top 0s ease-in-out .3s; width: 350px; }
#flash.go { background-color: rgba(125,0,0,.6); height: 250px; margin: -145px 0 0 -125px; top: 50%; transition: 0s; width: 250px; }

#form-area { background-color: rgba(0,0,0,.8); height: 100%; overflow: auto; padding: 12px 30px; position: absolute; right: 0; top: -100%; transition: top .8s; width: 100%; z-index: 2; }
#form-area.showing { top: 0; transition: top 1.1s; }
#form-area form { background-color: #eee; box-shadow: 2px 68px 84px 0 #000; height: 80%; margin: -66px auto 0; overflow: auto; padding: 18px 38px 24px; transition: 1.3s ease-in-out .3s; width: 60%; }
#form-area.showing form { box-shadow: 2px 18px 44px 0 #000; margin-top: 36px; }
#form-area form input[type="submit"] { float: left; font-size: 1.2em; margin-bottom: 18px; }

#thank-you { background-color: #fff; border: 2px solid #0066B3; border-radius: 8px; box-shadow: 3px 8px 24px 0 #444; padding: 6px 34px 6px 26px; position: absolute; top: -264px; transition: top .8s; left: 28px; z-index: 10;}
#thank-you span { cursor: pointer; font-size: 1.4em; line-height: .6em; padding: 8px; position: absolute; right: 0; top: 0; }
#thank-you p { margin-top: 8px; }
#thank-you.showing { top: 248px; }

#buttons { top: 54px; height: 80px; padding: 28px; position: absolute; z-index: 100; }
#buttons button { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-color: #0066B3; border: 0; box-shadow: 0 0 11px -1px #333; color: #fff; cursor: pointer; float: left; font-size: .8em; font-weight: 700; height: 100px; letter-spacing: .07em; line-height: 1.2em; position: absolute; text-align: center; top: 84px; transition: background-color .2s, top .6s ease-in-out 0s; width: 104px;  }
#buttons button:hover { background-color: #003D6B; }
#buttons button img { display: block; height: 30px; margin: 14px auto 11px; }
#buttons #view-comment-button { left: 146px; transition: background-color .2s, top .6s ease-in-out .15s; }
#buttons #cancel-add-button,
#buttons #cancel-view-button { background-color: #CF4727; left: 42px; top: -220px; transition: background-color .2s, top .6s; }
#buttons #cancel-add-button:hover,
#buttons #cancel-view-button:hover { background-color: #B12706; }
#buttons #cancel-form-button { background-color: #FFC222; left: 160px; top: -220px; }
#buttons #cancel-form-button:hover { background-color: #E4A602; }
.gm-style-iw-d div { padding: 5px; font-size: 16px; font-weight: 700; text-align: center;}
.gm-style-iw-d div a { background-color: #0066B3; border-radius: 6px; color: #fff; display: block; font-weight: 700; margin: 0 auto; padding: 4px 0; text-align: center; width: 150px; }
.gm-style-iw-d div a:hover { background-color: #003D6B; color: #fff; }
.poi-info-window a:link { color: #333; }

#buttons.adding #add-comment-button,
#buttons.viewing #add-comment-button { top: -220px; transition: background-color .2s, top .6s ease-in-out .15s; }
#buttons.adding #view-comment-button,
#buttons.viewing #view-comment-button { top: -220px; transition: background-color .2s, top .6s ease-in-out 0s; }
#buttons.adding #cancel-add-button { top: 32px; transition: background-color .2s, top .8s ease-in-out .4s; }
#buttons.viewing #cancel-view-button { top: 88px; transition: background-color .2s, top .8s ease-in-out .4s; }
#buttons.commenting #cancel-add-button { top: 0; }
#buttons.commenting #cancel-form-button { top: 0; }

/*********************************************/
/******   Custom CSS  ************************/
/*********************************************/
#search input { background-color: #fff; border: #0066B3 solid 2px; color: #333; margin: 0; padding: 6px 4px; width: 220px; }
::placeholder { color: #333; }
:-ms-input-placeholder { color: #333; }
::-ms-input-placeholder { color: #333; }

.adding #search { display: none;  }


/*********************************************/
/****** Media Queries ************************/
/*********************************************/
@media screen and (max-width: 1270px) {
     #form-area form { margin: -66px 0 0 34%; width: 56%; }   
 }

@media screen and (max-width: 1000px) {
   #intro-screen > div { width: 94%; }
   #intro-screen img { height: 24px; }
   #intro-screen h1 { font-size: 1.6em; }
}
 
 @media screen and (max-width: 790px) {
     #form-area { padding: 0; }
     #form-area form { height: 79%; margin: -66px auto 0; padding: 6px 12px; width: 88%; }
     #form-area.showing form { margin-top: 78px; }
     label { font-size: .9em; margin: 4px 0 3px; }
     input[type="text"],
     textarea { font-size: .9em; }
     #form-area form input[type="submit"] { font-size: .8em; margin: 2px 0 12px;  }
     #thank-you { left: 14px; padding: 2px 14px 5px; width: 210px; }
     #thank-you p { font-size: .85em; line-height: 1.2em; }
     #thank-you.showing { top: 154px; }
     #back-to-site-link { font-size: .9em; height: 26px; padding: 4px 8px; }

     #title-bar { height: 44px; padding: 8px 10px 0; }
     #title-bar img { height: 20px; }
     #title-bar h1 { font-size: 1.1em; margin-left: 12px; }
     #title-bar .btn { font-size: .85em; padding: 3px 6px; }
     #map-area { padding-top: 44px; }
 
     #splash-page img[src*="bg"] { left: -50%; width: 200%;  }
     #splash-page img[src*="logo"] { left: 50%; margin-left: -90px; top: 24px; width: 180px; }
     #blue-bg { font-size: .85em; padding-top: 12px; padding-bottom: 18px;  }
     #blue-bg h1 { font-size: 2em; padding: 0 14px; }
     #blue-bg p { line-height: 1.2em; margin: 14px auto 16px; width: 90%;  }
     #blue-bg a { line-height: 1.22em; padding: 6px 14px; width: 80%; }

     #buttons { padding: 0 6px; top: 50px; }
     #buttons button { box-shadow: 0; font-size: .7em; height: 60px; left: 6px; line-height: 1.1em; top: 40px; width: 90px; }
     #buttons button img { display: block; height: 16px; margin: 2px auto 5px; }
     #buttons #view-comment-button,
     #buttons #cancel-form-button { left: 100px; }
     #buttons #cancel-add-button, #buttons #cancel-view-button { left: 6px; }
     #buttons.adding #cancel-add-button { top: 0; }
     #buttons.viewing #cancel-view-button { top: 40px; }
     #buttons.commenting #cancel-form-button { top: 0; }
     .gm-style-iw-d div { font-size: .95em; padding: 1px; min-width: 0; }
     .gm-style-iw-d div a { font-size: 1.2em; line-height: 1em; margin-top: 10px; padding: 6px 6px; width: 90%; }
}

@media screen and (max-width: 540px) {
    #intro-screen > div { font-size: .8em; padding: 14px 22px;}
    #intro-screen h1 { margin: 18px 0 12px; }
    #intro-screen p { width: 94%; }
    #title-bar h2 { display: none; }
}

@media screen and (max-width: 420px) {
    #search input {  width: 150px; }
}