/* 
 Author: Emma Jaud
 Organization: University of Delaware Library, Museums and Press
 File: udlibmap.css
 Description: Styles for the UDLibMap
*/

@font-face {
    font-family: 'Greycliff_Light';
    src: url('https://library.udel.edu/static/fonts/GreycliffCF-Light.woff') format('woff'),
         url('https://library.udel.edu/static/fonts/GreycliffCF-Light.woff2') format('woff2');
    font-display: auto;
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Greycliff_Bold';
    src: url('https://library.udel.edustatic/fonts/GreycliffCF-Bold.woff') format('woff'), 
         url('https://library.udel.edu/static/fonts/GreycliffCF-Bold.woff2') format('woff2');
    font-display: auto;
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Greycliff_SemiBold';
    src: url('https://library.udel.edu/static/fonts/GreycliffCF-DemiBold.woff') format('woff'), 
         url('https://library.udel.edu/static/fonts/GreycliffCF-DemiBold.woff2') format('woff2');
    font-display: auto;
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Greycliff_Regular';
    src: url('https://library.udel.edu/static/fonts/Greycliff-CF-Regular.otf') format('opentype');
    font-display: auto;
    font-weight: normal;
    font-style: normal;
}

:root {
	--color-bg-main:     #fff;
    --color-blue-med:    #00539f;
    --color-blue-dark:   #003c71;
	--color-blue-darker: #003566;
	--color-blue-light1: #eaf4ff;
	--color-blue-light2: #f6fbff;
	--color-blue-light:  #c7e3ff;
    --color-gold:        #ffd200;
    --color-gold-pale:   #fdf0b2;  
    --color-gray-light:  #e5e9ed;
    --color-gray-med:    #bdbdbd;
	--color-black:       #000000;
}

body {
	font-size: 1rem;
	font-family: 'Greycliff_Regular';
	margin: 0;
	background: var(--color-blue-dark);
}

/* HEADER ||||||||||||||||||||||||||||||||||*/
#header {
	background: var(--color-blue-med);
	height: 60px;
    position: relative;
    z-index: 12;
	display: flex;
	border-bottom: 2px solid var(--color-gold);
	align-items: center;
    justify-content: space-between;
}
#header .logo {
	box-sizing: border-box;
	height: 100%;
	padding: .85em;
}
#header img {
	height: 100%;
}
#header a {
	text-decoration: none;
}
/* header close button */
#header .close {
	color: white;
	font-size: 30px !important;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	margin: 0 13.6px 0 72.04px;
}
#header .close:hover,
#header .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
	background: #c7e3ff;
	border-radius: .2rem;
}
#header .small-header {
/*	font-size: 24px; */
	color: white; 
	font-family: 'Greycliff_SemiBold';
	display: none;
}


/* UDLIBMAP ||||||||||||||||||||||||||||||||||*/
.udlibmap h1, .udlibmap h2, .udlibmap h3, .udlibmap h4, .udlibmap strong {
	font-family: 'Greycliff_Semibold';
}

/** udlibmap header **/
.udlibmap-header {
	padding: 15px 25px;
	position: relative;
	margin-bottom: 15px;
}
.udlibmap-header h2 {
	text-transform: capitalize; 
	margin: 0;
	line-height: 1.5;
}
.udlibmap-header,
.map-group,
.udlibmap .map-info {
	background: #fefefe;
    border-radius: .5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/** udlibmap content **/
.udlibmap-content {
	border-radius: 1rem;
	margin: 20px auto; 
	width: 95%;
	max-width: 1200px;
	position: relative;
	padding: 0;
	animation-name: animatetop;
	animation-duration: 0.4s
}

/** udlibmap body **/
.udlibmap-body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 15px;
}

/** udlibmap map **/
.map-group {
	padding: 0 15px 15px 15px;
}
#loc-icon {
	width: 20px;
	height: 20px;
	fill: red;
}
.map-window {
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	height: 60vh;
	width: 100%;
	border-radius: .5rem;
}
.map {
	position: absolute;
	width: 100%;
	cursor: grab;
}
.map:active {
	cursor: grabbing;
}
.library-map, .udlibmap img, .udlibmap svg {
	height: 100%;
	width: 100%;
}
.library-map {
	position: relative;
	display: none;
}
.display {
	display: flex;
}
svg {
	position: absolute;
	top: -0.5px;
	left: 0;
}
.stackblock {
	fill: transparent;
	stroke: #A5A5A5;
	stroke-width: 5;
}
.stackblock .selected {
	stroke: none;
}
.stack {
	stroke: none;
	fill: var(--color-blue-med);
}
/* map buttons */
.map-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin: 15px 0;
	flex-wrap: wrap;
}
.map-buttons button {
	display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--color-blue-med);
    background: var(--color-blue-med);
    color: white;
    border-radius: 10rem;
    font-family: 'greycliff_semibold';
    font-size: 15px;
    padding: 5px 14px 5px 10px;
	line-height: 1;
}
.udlibmap .material-symbols-outlined {
	font-size: 18px !important;
}
.map-buttons button#entire-map {
	border: 1px solid #003566;
    background: #f6fbff;
    color: #003566;
}
.map-buttons button:hover,
.map-buttons button:focus {
    background: #003566 !important;
    color: white !important;
	cursor: pointer;
}

/** udlibmap info **/
.udlibmap .map-info {
	padding: 20px;
}
.pin-info {
	font-size: 14px;
}
.udlibmap .map-info .steps,
.udlibmap .map-info .steps .type {
	display: flex;
    align-items: center;
    gap: 12px;
	flex-wrap: wrap;
}
.udlibmap .map-info .steps {
	margin: 20px 0;
}
.udlibmap .map-info .steps:last-of-type {
	margin-bottom: 0;
}
.udlibmap .map-info .steps .type {
	flex-wrap: nowrap;	
}
.udlibmap .blue-block {
	font-family: 'greycliff_semibold';
	display: flex;
    gap: 12px;
    padding: 6px 12px;
    background: #eaf4ff;
    border: 1px solid #c7e3ff;
    border-radius: .2rem;
    align-items: center;
}
.udlibmap .map-info .material-symbols-outlined {
	background: #c7e3ff;
    padding: 7px;
    border-radius: 10rem;
}
.udlibmap .map-info .type h3 {
	font-size: 17px;
	margin: 0;
}
.udlibmap .blue-block p:first-of-type,
.udlibmap .blue-block h3:first-of-type {
	margin-top: 0;
}
.udlibmap .blue-block p:last-of-type {
	margin-bottom: 0;
}


/* ERROR  ||||||||||||||||||||||||||||||||||*/
.map-group.error {
	margin: 15px 5%;
	padding: 1px 15px;
}


/* SHAREABLE LINK  ||||||||||||||||||||||||||||||||||*/
.tooltip {
	position: relative;
	display: inline-block;
	cursor: pointer;
	border: 1px solid var(--color-blue-med);
    background: var(--color-blue-med);
    color: white;
    border-radius: 10rem;
    font-family: 'greycliff_semibold';
/*    font-size: 15px;*/
    padding: 5px 10px;
    line-height: 1;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 140px;
	background-color: #555;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px;
	position: absolute;
	z-index: 1;
	bottom: 150%;
	left: 50%;
	margin-left: -75px;
	opacity: 0;
	transition: opacity 0.3s;
	display: none;
	line-height: 1.4;
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #555 transparent transparent transparent;
}
.tooltip:hover {
	background: #003566 !important;
    color: white !important;
}
.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}


/* RESPONSIVE CSS ||||||||||||||||||||||||||||||||||*/
@media screen and (max-height: 856px) {
	.udlibmap-header {
		display: none;
	}
	.small-header {
		display: block !important;
	}
}
@media screen and (max-height: 770px) {
	.udlibmap-body {
		grid-template-columns: 42% auto;
	}
}
@media screen and (max-width: 968px) {
	.udlibmap-body {
		grid-template-columns: 1fr;
	}
	.udlibmap-content {
		max-height: initial;
	}
	.map-window {
		height: 70vw;
	}
	.udlibmap-header {
		display: block;
	}
	.small-header {
		display: none !important;
	}
}
@media screen and (max-width: 680px) {
	.map-window {
		height: 50vw;
	}
}
@media screen and (max-width: 680px) {
	.map-window {
		height: 65vw;
	}
}
	