/*--------------------------------------------------------------
Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}

/*--------------------------------------------------------------
Typography
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Libre Franklin', 'Helvetica', 'Arial', sans-serif;
	clear: both;
}

h2{
	font-size: 1.2em;
}

h4{
	font-size: 1em;
}


/*--------------------------------------------------------------
General styling
--------------------------------------------------------------*/


img {
	display: block;
	border: 0;
	width: 100%;
	height: auto;
}



/* Header */
.sticky-header {
  position: sticky;
  top: 0;
}

.masthead {
	text-align: center;
	grid-area: header;
	display: grid;
	grid-template-rows: minmax(70px, 100px);
	grid-template-columns: 200px 1fr 150px;
	grid-template-areas:
		'logo title buttons';
	background-color: #012169;
	color: white;
}

.masthead > .masthead-logo {
	grid-area: logo;
	display: flex;
	align-items: center;
	padding: 10px 25px;
}

.masthead > .masthead-title{
	grid-area: title;
	display: flex;
	padding: 0 10px;
	align-items: center;
	justify-content: center;
}

.masthead > .masthead-title h2{
	color: white;
	font-size: .8em;
	margin: 0;
	padding: 10px;
}

.masthead > .masthead-buttons{
	grid-area: buttons;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-right: 10px;
}

.masthead > .masthead-buttons img{
	height: 70px;
	width: auto;
	/* padding-right: 10px; */
	object-fit: contain;
	opacity: 0.5;
}

.masthead > .masthead-buttons img:hover {
	opacity: 1;
}

.footer-content {
	font-family: 'Libre Franklin', 'Helvetica', 'Arial', sans-serif;
	background-color: #012169;
	color: white;
	grid-area: footer;
	display: grid;
	grid-template-rows: 1fr;
	grid-template-columns: 70px 1fr;
	grid-template-areas:
		'logo copyright version';
	align-items: center;
	font-size: .8em;
	padding: 10px;
}


.footer-content > .logo img {
	max-height: 50px;
	object-fit: contain;
}

.footer-content > .copyright {
	display: flex;
	justify-content: flex-start;
}

.footer-content > .version{
display:flex;
	justify-content: flex-end;
	padding-right: 10px;
	padding-left: 10px;
	margin-right: 1rem;
}


/* Styles for Coverage Map */

.horizontal-bar-container {
  /* border: 1px solid red; */
  width: 100%;
  /* min-width: 30rem;
	max-width: 50rem; */
  /* height: 1em; */
  display: flex;
}

.duty-bar {
  box-sizing: border-box;
  border-left-width: 3px;
  border-left-style: solid;
  padding: 2px;
  font-size: .8em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  white-space: nowrap;
}

.duty-bar:hover {
  cursor: pointer;
}

.duty-bar div{
  padding: 0 .25em;
}

.duty-bar.hide{
  visibility: hidden;
}


.empty {
  background: none;
  border-left-color: transparent;
}

.mpls {
  --rgb: 246, 205, 129;
}

.mpls {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(208,152,47);
}

.msp {
  --rgb: 246, 205, 129;
}

.msp {
  --alpha: 1.0;
  background-image: repeating-linear-gradient(180deg, rgba(246,205,129,1), rgba(246,205,129,1) 8px, rgba(148, 239, 214, 1) 0px, rgba(148, 239, 214, 1) 20px);
  border-left-color: rgb(208,152,47);
}

.all-sites {
  --rgb: 96, 149, 117;
}

.all-sites {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(10,96,44);
}

.annex {
  --rgb: 228, 192, 181;
}

.annex {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(227,138,110);
}

.stp {
  --rgb: 148, 239, 214;
}

.stp {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(31,197,153);
}

.mtka {
  --rgb: 132, 138, 239;
}

.mtka {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(82,86,149);
}

.university {
  /*--rgb: 163, 111, 124;*/
  --rgb: 237, 142, 144;
}

.university {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(128,67,83);
}

.wbry {
  --rgb: 99, 171, 151;
}

.wbry {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(66,116,102);
}

.remote {
  --rgb: 230, 230, 230;
}

.remote {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(200, 200, 200);
}

.vac , .cme {
  --rgb: 189, 212, 242;
}

.vac , .cme {
  --alpha: 1.0;
  background-color: rgba(var(--rgb), var(--alpha));
  border-left-color: rgb(139, 165, 199);
}

.surgery,
.or {
  --alpha: 1;
}

.clinic {
  --alpha: 0.5;
}

.audiology {
  --alpha: 0.4;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0), rgba(0,0,0,0) 17px, rgba(255,255,255,0.75) 0px, rgba(255,255,255,0.75) 20px);
}

.ooo {
  --alpha: 0.7;
  background-color: rgb(178, 152, 184);
}

.research {
  --alpha: 1;
  background-color: rgb(219, 201, 223);
  /* background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0), rgba(0,0,0,0) 10px, rgba(255,255,255,0.75) 0px, rgba(255,255,255,0.75) 20px); */
}

.rounder {
  --alpha: 1;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0), rgba(0,0,0,0) 10px, rgba(255,255,255,0.75) 0px, rgba(255,255,255,0.75) 20px);
}

.admin {
  /*background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(197,25,209,0.5) 50%);*/
  --alpha: 0.3;
  color: rgba(0, 0, 0, 0.3);
  /*background-image: repeating-linear-gradient(30deg, rgba(0,0,0,0), rgba(0,0,0,0) 15px, rgba(120,0,255,0.1) 0px, rgba(120,0,255,0.1) 20px);*/

}

.template-change {
  color: blue;
  font-style: italic;
}

.admin.template-change {
  color: rgba(0, 0, 255, 0.5);
}

span.tooltip {
  display: none;
}

.empty {
  background: none;
  border-left-color: transparent;
}



/* New tooltip */
.duty-bar .tooltip-text,
.duty-bar .bottom,
.provider-name .bottom {
  visibility: hidden;
  min-width: 200px;
  background-color: rgba(0, 156, 222, 0.7);
  transform:translate(-51.5%, 67.5%);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-weight: normal;
  font-style: normal;

  /* Position the tootip */
  position: absolute;
  z-index: 1;
}

.provider-name .bottom {
  transform:translate(-25%, 20%);
}

.duty-bar:hover .tooltip-text{
  visibility: visible;
}


.duty-bar .bottom,
.provider-name .bottom {
    width:200px;
    /* top:40px; */
    /* left:50%; */
    /* transform:translate(-50%, 0); */
    padding:10px 20px;
    color:#444444;
    background-color:#EEEEEE;
    font-weight:normal;
    font-size:13px;
    border-radius:8px;
    /* position:absolute; */
    z-index:1;
    box-sizing:border-box;
    box-shadow:0 1px 8px rgba(0,0,0,0.5);
    word-break: break-word;
    white-space: normal;
  /* display:none; */
    visibility: hidden;
}

.duty-bar .bottom p,
.provider-name .bottom p {
  margin: 0 0 .5em 0;
}

.duty-bar:hover .bottom,
.provider-name:hover .bottom {
    /* display:block; */
    visibility: visible;
    cursor: pointer;
}

.duty-bar .bottom i,
.provider-name .bottom i {
    position:absolute;
    bottom:100%;
    left:50%;
    margin-left:-12px;
    width:24px;
    height:12px;
    overflow:hidden;
}

.duty-bar .bottom i::after,
.provider-name .bottom i::after {
    content:'';
    position:absolute;
    width:12px;
    height:12px;
    left:50%;
    transform:translate(-50%,50%) rotate(45deg);
    background-color:#EEEEEE;
    box-shadow:0 1px 8px rgba(0,0,0,0.5);
}

/* media queries */


@supports (grid-area: auto) {

	@media screen and (min-width: 520px) {

		.masthead > .masthead-title h2{
			font-size: 1.2em;
		}

	@media screen and (min-width: 575px) {

			.masthead > .masthead-title h2{
				font-size: 1.4em;
			}
}
