html {
    position: relative;
    min-height: 100%;
}
body {
	font-family: proxima-nova, sans-serif;
	font-style: normal;
    margin-bottom: 300px; /* Margin bottom to leave room for footer height */
    border-top: 12px solid #08c;
}
h1 {
    line-height: 1;
    font-weight: 700;
}
h2 {
	font-weight: 700;
	}
h2.type {
    text-transform:uppercase;
    font-size:.9em;
    color:#888;
}
h5 {
	font-size: 1.4rem;
	font-weight: 700;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 20px;
	}
p {
	font-size: 1.2rem;
    line-height: 1.4em;
}
p i	{
	font-size: .8rem;
    color: #888;
    vertical-align: top;
}
a {
    color:#08c;
}
a:hover {
	color:#23527c;
	text-decoration: none;
}

    .axis path,
    .axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
    }

    .axis text {
        font: 10px sans-serif;
    }

    .cells path {
        fill: none;
        pointer-events: all;
    }

    .cells circle {
        stroke-width: .4;
        stroke:lightgray;
    }
    svg .annotation {
        stroke-dasharray:4;
        stroke:rgb(99, 99, 99);
    }
    svg text {
        fill:rgb(99, 99, 99);
        font-family:sans-serif;
        font-size:.8em;
    }

/* HEADER */
.no-padding-left {
    padding-left: 0;
}
.icon {
    height:175px;
    background: url(https://eldercare-vt-static.s3.amazonaws.com/img/eldercare-navigator.png) no-repeat;
    background-size:100% auto;
    background-position: center;
    margin-top: 20px;
}
.icon-link {
    display:block;
    height:100%;
    width:100%;
}
.header {
    padding-bottom:20px;
    margin-top:20px;
    margin-bottom:20px;
}

/* FILTERS PAGE */

.filters {
	padding: 20px 0;
    background-color: #333;
    border-radius: .25rem;
    color: #fff;
    margin-bottom: 20px;
}
.facility-name a {
	color:#212529;
	}
.facility-name a:hover {
	color:#888;
	}



/* ------- FACILITY PAGE */

.intro {
	font-weight: 700;
	}
.story-link i {
	font-size: inherit;
	color: #08c;
	vertical-align: baseline;
	}

.facility-header,
.facility-details,
.facility-scores,
.facility-complaints,
.facility-inspections {
    padding: 25px 0 0;
}
.facility-header {
	text-align: center;
}
.facility-header,
.facility-details,
.facility-scores {
	background-color: #f9f9f9;
}
.facility-scores {
	padding-bottom: 25px;
}
.modal-link {
	color: #08c !important;
    float: right;
    font-size: .8em;
    background: #f9f9f9;
    padding: 5px 10px 0;
    border-radius: 4px 4px 0 0;
}
a:not([href]):not([tabindex]):hover { /*hover for modal links*/
	cursor: pointer;
	color: #23527c !important;
}
.facility-status {
	font-size: 50%;
    display: block;
    clear: both;
    padding: 5px 0 0 0;
    text-transform: uppercase;
	}

.facility-status.open, .facility-status.formername {
    color:rgb(85, 85, 85);
}

.facility-status.closed {
    color: #b84326;
}

#facilityScores {
	background: #fff;
	border-radius: 4px;
    margin-top: 5px;
}
.facility-name {
    font-weight:bold;
    font-size:1.1em;
    line-height:1.2;
}
.facility-town {
    line-height:1.2;
}
.data-header {
    font-size:.9em;
    text-transform:uppercase;
    color:#888;
    font-weight: normal;
    padding-bottom: 4px;
}
.facility-type {
    font-size:.7em;
    text-transform:uppercase;
    color:#888;
    font-weight: normal;
    margin-top: 4px;
}
.data-container {
    padding-bottom: 10px;
    line-height: 1.3;
}



.ss-letter {
    font-weight:bold;
    margin-bottom:5px;
}
.ss-score {
    margin-bottom:5px;
    font-size:.8em;
}

svg .axis .domain {
    display: none;
}
svg .tick>line {
    display: none;
}
svg text {
    font-family: sans-serif;
    font-size: 14;
}
#year-chart {
    background:#fff;
    border-radius: 4px;
}
#year-chart-container {
        position:relative;
}
div.year-tooltip {
        position: absolute;
        width: 200px;
        height: auto;
        padding: 10px;
        background-color: white;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 10px;
        -webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
        -moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
        box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
        pointer-events: none;
        z-index:10;
}
div.year-tooltip.hidden {
    display:none;
}
.highlight {
    font-weight:bold;
    font-size:1.2em;
}
.complaint, .inspection {
    color:rgb(85, 85, 85);
}
.substantiated, .citation {
    color:rgb(136, 0, 0);
}

.sub-table {
    padding:0 !important;
    border-top:0px !important;
}

.citations-detail {
    padding-top:20px;
    padding-bottom:20px;
}

.ss-container {
    width:55px;
}

.ss {
    padding:5px;
    border-radius:3px;
    background-color:#888;
}

.A, .B, .C {
    background-color:#ded9d7;
}

.D, .E, .F {
    background-color:#d8836a;
}

.G, .H, .I {
    background-color:#b84326;
}

.J, .K, .L {
    background-color:#a51b02;
}

.capacity-header{
    width:100px;
}

.town-header {
    width:150px;
}

/* MAP */

#map {
	border: 1px solid #d3d3d3;
    border-radius: 4px;
}
.mapbox-map {
    width: 100%;
    height: 300px;
    margin: 0 auto;
    background: gray;
}
.marker  {
    background-size: cover;
    border-radius: 50%;
    cursor: pointer;
    width: 7px;
    height: 7px;
    }

.detail-map > * >.marker {
    width:15px;
    height:15px;
}

.alr-marker {
      background-image: url('https://eldercare-vt-static.s3.amazonaws.com/img/yellow-circle.png');
}

.rch-marker {
      background-image: url('https://eldercare-vt-static.s3.amazonaws.com/img/blue-circle.png');
}

.facility-key {
    height:18px;
    width:18px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
}

span.alr-key {
    background-color: #fdb913;
    vertical-align: sub;
}
span.rch-key {
    background-color:#08c;
    vertical-align: sub;
}
.btn-light {
	background-color: transparent;
	color: #fff;
	}

/* FA ICONS */

.collapse-icon {
	color: #08c;
	}

[data-toggle="collapse"] i:before {
    content: "\f146";
}

[data-toggle="collapse"].collapsed i:before {
    content: "\f0fe";
}

.collapse-icon {
    width:30px;
}


/* TABLE STYLING */

.citations-detail .table>tbody>tr:nth-of-type(odd),
.facilities-list .table>tbody>tr:nth-of-type(odd) {
	background-color: #f9f9f9;
}
.facilities-list>.table th,
.facility-inspections .table th {
	border-top: 0;
}



/* FOOTER */

.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    position:absolute;
    bottom:0;
    width:100%;
    border-top: 12px solid #fd0;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer p {
    text-align: center;
    color: #888;
    font-size: 20px;
    display:block;
	margin-bottom: 5px;
    font-family: Georgia, serif;
    font-style: italic;
}

footer div.logo {
margin: 6px 10px;
max-width:100% !important;
}

footer div.seven-days{
background: transparent url("https://eldercare-vt-static.s3.amazonaws.com/img/seven-days.png") no-repeat 0 0/contain;
width: 165px;
height: 50px;
}
footer div.vpr {
background: transparent url("https://eldercare-vt-static.s3.amazonaws.com/img/vpr.png") no-repeat 0 0/contain;
width: 150px;
height: 60px;
}

footer ul {
    padding: 0;
    margin: 10px 0 30px 0;
    text-align: center;
    }
footer li {
    list-style-type: none;
    display: inline-block;
    padding: 0 10px;
    text-transform: uppercase;
    }

.copyright-notice {
    color: #888888;
    font-size: 12px;
}

.inspection-appeal {
    font-weight:bold;
    color:red;
}

@media (max-width: 450px) {
    .search-map {
        display:none;
    }
    footer div.vpr, footer div.seven-days {
        background-position:center;
    }
    body{

     margin-bottom: 400px;
    }

}

// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

// Extra large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }