/*******************************************************************/

/* CSS TO STYLE THE WHOLE PAGE */

html,
body {
    margin: 0;
    height: 100%;
    width: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-y: hidden;
    overflow-x: hidden;
}

html {
    --archive-banner-height: 58px;
}

body {
    padding-top: var(--archive-banner-height);
}

#archive-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100002;
    display: flex;
    align-items: flex-start;
    gap: 1em;
    box-sizing: border-box;
    padding: 0.75em 1.25em 0.7em;
    background-color: #d6e5ea;
    border-bottom: 1px solid #9eb8c2;
    color: #1c1c1c;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.archive-banner-icon {
    flex: 0 0 auto;
    width: 1.75em;
    height: 1.75em;
    border-radius: 50%;
    background-color: #005a7a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75em;
    text-align: center;
}

.archive-banner-content {
    min-width: 0;
}

.archive-banner-title,
.archive-banner-text {
    margin: 0;
}

.archive-banner-title {
    font-size: 1.05em;
    font-weight: 700;
}

.archive-banner-text {
    margin-top: 0.2em;
    line-height: 1.4;
}

.archive-banner-text a {
    color: #005073;
    font-weight: 700;
    word-break: break-word;
}

#map {
    position: absolute;
    top: var(--archive-banner-height);
    right: 0;
    width: 100%;
    height: calc(100vh - var(--archive-banner-height));
    min-height: calc(100vh - var(--archive-banner-height));
}

#layerselect {
    position: absolute !important;
    top: calc(130px + var(--archive-banner-height)) !important;
    right: 25px; 
    z-index: 999999 !important;
    height: 30px; 
    width: 200px
}
#opacity-slider {
    touch-action: auto;
    -ms-touch-action: auto;
}


/**********************************************************************/

/* CSS TO STYLE THE MAIN HEADER  */

#title {
    position: fixed;
    z-index: 100000;
    top: var(--archive-banner-height);
    left: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: .5;
    background-color: rgba(35, 31, 32, 1);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: rgb(255, 189, 0);
}

/* STYLING & POSITIONING THE MOBILE HEADER */

#mobile-title {
    display: none;
    position: fixed;
    z-index: 100000;
    top: var(--archive-banner-height);
    left: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 1em;
    background-color: rgba(35, 31, 32, 1);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: rgb(255, 189, 0);
}

/* BROWSER INTERPRETS TITLE AS H1, SO USE THIS FOR STYLING THE TITLE */

h1 {
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 10px;
    font-size: 36px;
    background-color: rgba (0, 0, 0, 0)
}




/**********************************************************************/

/* CSS TO STYLE THE MENU ITEMS */

/* CONTAINER FOR ALL BUTTONS, MOBILE & DESKTOP */

#top-buttons {
    position: fixed;
    z-index: 100001;
    top: var(--archive-banner-height);
    left: 0;
    width: 100%;
    padding-top: 10px;
    padding-bottom: .45;
}

/* MENU ITEMS TEXT STYLING */

#top-buttons a {
    text-decoration: none;
    font-size: 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: rgb(141, 141, 142);
}


/* ABOUT MENU ITEM STYLING */

#about-button {
    cursor: pointer;
    text-transform: uppercase;
    float: right;
    padding-right: 20px;
    padding-top: 20px;
    font-size: 20px;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color:rgb(80,80,80);
}

/* DATA MENU ITEM STYLING */

#data-button {
    cursor: pointer;
    text-transform: uppercase;
    float: right;
    padding-right: 50px;
    padding-top: 20px;
    font-size: 20px;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: rgb(255, 189, 0);
}









/************************************************************/

/* CSS RELATED TO MODAL INFORMATION WINDOWS */

/* THE MODAL (BACKGROUND) */

.modal {
    /* HIDDEN BY DEFAULT */
    display: none;
    /* STAY IN PLACE */
    position: fixed;
    left: 0;
    top: 0;
    /* FULL WIDTH */
    width: 100%;
    /* FULL HEIGHT */
    height: 100%;
    /* ENABLE SCROLL */
    overflow: auto;
    /* FALLBACK COLOR */
    background-color: rgb(0, 0, 0);
    /* BLACK WITH OPACITY */
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999999999999999999999999999999999;
}

/* MODAL CONTENT BOX */

.modal-content {
    background-color: rgba(0, 0, 0, .9);
	color: white;
	max-width:650px;
	border-radius: 8px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 300;
    font-size: 16px;
	line-height: 24px;
	overflow-x: auto;
    overflow-y: none;
    /* 15% FROM THE TOP AND CENTERED */
    margin: 15% auto;
    padding: 20px;
    width: 80%;
}

.custom-header{
	color:#ffbd00;
	font-weight:300;
	font-size:24px;
	padding-left:none;
	margin-left:none !impportant;
}

.modal a:link {
	font-size:16px !important;
	color:background-color: rgb(226, 140, 169) !important;
}	



/* MODAL CLOSE BUTTON */

.close-data {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-data:hover,
.close-data:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.close-about {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-about:hover,
.close-about:focus {
    color: rgb(255, 189, 0); 
    text-decoration: none;
    cursor: pointer;
}




/*********************************************************************/

/* CSS FOR OPACITY SLIDER */

.opacity-slider {
    -webkit-appearance: none;
    height: .005em;
    border-radius: 1em;
    background: #707070;
    outline: none;
    opacity: .7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin-top: 0px;
    margin-right: 6.5em;
    padding: 2px 1px 4px 1px;
}

.opacity-slider {
    width: 94%;
}

.opacity-slider: hover {
    opacity: 1;
}


.opacity-slider .leaflet-control {
    margin-top: 0px;
}


/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */

.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: gray;
    border-radius: 50%;
    background: rgba(253, 255, 254, 1);
    cursor: pointer;
    box-shadow: 0 0 1px 1px #707070;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}






/*!*********************************************************************!*/

/* CSS FOR BUTTON TO ADD A POINT */

/* BACKGROUND DIV OF THE MAKE HISTORY WINDOW */

.custom-popup .leaflet-popup-content-wrapper {
    max-width: 300px;
    overflow: auto;
    overflow-x: auto
}

.leaflet-popup {
    margin-top: 20px;

}


#make-history-box {
    display: block;
    position: fixed;
    right: 20px;
    top: calc(9em + var(--archive-banner-height));
    border-radius: 4px;
    border: 1px;
    height: 2.3em;
    width: 198px;
    z-index: 100000;
    background-color: rgba(226, 140, 169, 0.90);
    padding-left: .5em;
    padding-bottom: .5em;
    color: #333;
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 0 2px 2px #707070;
    
}

#make-history-box li{
	margin-left: .75em;
}


/* MAKE BACKGROUND DIV CHANGE COLOR */

#make-history-box p {
    margin-bottom: 10px;
	line-height:1.3em;
}

/* STYLE MAKE HISTORY TEXT */

h4 {
    margin: 0;
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #303030;
}

#options {
    font-size: 14px;
    /* text-align: center; */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #303030;
    margin-left: 0px;
    font-weight: 700;
    line-height: 1.25em;
}

#options p {
    font-size: 16px;
    margin-top: .5em;
    margin-bottom: .8em;
}







/**********************************************************************/

/* LEAFLETTY STUFF */

/* Leaflet top controls */

.leaflet-top {
    position: absolute;
    margin-top: 7.2em;
    z-index: 1000;
}


/* GETS RID OF BASE LAYER CONTROLS */

.leaflet-control-layers-base,
.leaflet-control-layers-separator {
    display: none;
}


.leaflet-touch .leaflet-control-layers {
    width: 200px;
}


.leaflet-top .leaflet-left .leaflet-control-zoom {
    display: none;
}


.leaflet-left {
    width: 320px;
}

.leaflet-top {
    height: 800px;
    bottom: 0;
}


.leaflet-control-layers {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 2px 2px #707070;
    font-size: 16px;
    font-weight: bold;
    right: 0.25em;
}


.leaflet-control-layers-expanded {
    background-color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba (255, 255, 255, 1);
    right: 0.25em;
}

.leaflet-touch .leaflet-control-layers {
    border: 1.3px solid rgba(96, 96, 96, .6)
}

.leaflet-touch .leaflet-bar {
    border: 1.3px solid rgba(96, 96, 96, .6);
}








/**********************************************************************/

/* BOUNDARY POPUP STUFF */

.makeHistoryText {
    font-weight: 700;
    font-size: 15px;
}

.item-key {
    color: rgb(255, 189, 0);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: 12px;
}

.item-value {
    color: white;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.item-link {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: 12px;
    padding: 3px 3px 3px 3px;
    margin-bottom: 12px;
    font-weight: bold;
    background-color: rgba(255, 189, 0, .95);
    border-radius: 4px;
    cursor: pointer;
    height: 1.5em;
    width: 90%;
}

.item-link:hover {
    background-color: rgba(255, 189, 0, 1);
}

.item-link a {
    margin-left: 5px;
}


#hint {
    font-style: italic;
}

#designation p {
    font-style: italic;
    margin-top: none;
    padding-top: none;
}

.leaflet-popup-content p {
    margin: 0;
    font-style: italic;
}



.custom-popup .leaflet-popup-content-wrapper {
    background-color: rgba(0, 0, 0, .75);
    color: white;
    border-radius: 8px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    width: 290px;
    max-height: 300px;
    overflow-x: auto;
    overflow-y: none;
}


.custom-popup .leaflet-popup-content-wrapper::-webkit-scrollbar {
    width: 5px;
    opacity: .75;
}


.custom-popup .leaflet-popup-content-wrapper::-webkit-scrollbar-track {
    background: #ddd;
    opacity: .75;
}


.custom-popup .leaflet-popup-content-wrapper::-webkit-scrollbar-thumb {
    background: #666;
    opacity: .75;
    border-radius: 3px;
}


.custom-popup .leaflet-popup-content {
    margin: 1em;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(0, 0, 0, 0.6);
}







/**********************************************************************/

/* GEOSEARCH STUFF */

/* Search bar */

.geocoder-control {
    left: 0.25em;
    top: 0em;
    position: absolute;
}




/**********************************************************************/

/* MEDIUM SCREEN SIZES (800px - 1360px) */

@media (max-width: 1360px) {
    /* CHANGE SIZE OF HEADER TITLE*/
    h1 {
        font-size: 38px;
    }
	
  #opacity-slider {
		display: none;
	}

	#make-history-box {
        top: calc(7.25em + var(--archive-banner-height));
	}

    #layerselect {
        top: calc(100px + var(--archive-banner-height)) !important;
    }
			
		
	
}

@media (max-width: 1320px) {
    h1 {
        font-size: 36px;
    }
}

@media (max-width: 1260px) {
    h1 {
        font-size: 34px;
    }
}

@media (max-width: 1198px) {
    h1 {
        font-size: 32px;
    }
}

@media (max-width: 1160px) {
    h1 {
        font-size: 32px;
    }
}

@media (max-width: 1135px) {
    h1 {
        font-size: 30px;
    }
}

@media (max-width: 1072px) {
    h1 {
        font-size: 28px;
    }


    @media (max-width: 1024px) {
        h1 {
            font-size: 26px;
        }

       

    }


    @media (max-width: 900px) {}


    @media (max-width: 880px) {
        h1 {
            font-size: 22px;
        }
    }

    @media (max-width: 821px) {
        h1 {
            font-size: 20px;
        }
    }

    

    /* MAKE MENU BUTTONS SMALLER AS PORT GETS SMALLER */
    @media (max-width: 946px) {
        h1 {
            font-size: 24px;
        }

        #about-button {
            float: right;
            font-size: 16px;
            padding-right: 50px;
            padding-top: 1em;
        }
		
		top-buttons{
			width:auto;
		}

        #data-button {
            float: right;
            font-size: 16px;
            padding-right: 50px;
            padding-top: 1em;
        }
    }


    @media (max-width: 758px) {
        #title {
            padding-bottom: 10px;
        }

        h1 {
            margin-bottom: 0;
            font-size: 22px;
        }

        #about-button {
            float: right;
            font-size: 12px;
            padding-right: 30px;
            padding-top: 1em;
        }

        #data-button {
            float: right;
            font-size: 12px;
            padding-right: 30px;
            padding-top: 1em;
        }
    }

    @media (max-width: 720px) {}



    /**********************************************************************/
    /* PHONE SCREEN SIZES (600px OR LESS) */
    @media (max-width: 600px) {
        html {
            --archive-banner-height: 92px;
        }

        #archive-banner {
            padding: 0.9em 1em;
        }

        .archive-banner-title {
            font-size: 1em;
        }

        .archive-banner-text {
            font-size: 0.95em;
        }
		.geocoder-control-input {
            left: 0.25em;
            top: 10px;
            position: absolute;
        }
		
        #make-history-box {
            display: none;
        }

        #layerselect {     
            left:20px;       
            top: calc(110px + var(--archive-banner-height)) !important;
        }

		.leaflet-control-layers {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 0 2px 2px #707070;
            font-size: 16px;
            font-weight: bold;
        }

        .leaflet-control-layers {
            font-size: 12px;
            font-weight: normal;
            display: block;
            left: 5px;
            top: -.5em;
            width: 45% !important;
        }

        .leaflet-right {
            width: 320px;
            left: 0;
        }

        .leaflet-left {
            width: 320px;
            left: 0;
        }

        .leaflet-top {
            height: 400px;
        }

        .geocoder-control {
            top: 2.25em;
            left: 5px;
            width: 70% !important;
        }

        .leaflet-left .leaflet-control {
            margin-left: 0px;
        }
        .leaflet-right .leaflet-control {
            margin-left: 0px;
            float: left;
        }

  
		
		

        /* POPUP STUFF */
        .custom-popup .leaflet-popup-content-wrapper {
            background-color: rgba(0, 0, 0, .80);
            color: white;
            margin-top: 20px;
            border-radius: 8px;
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
            font-weight: 400;
            font-size: 14px;
            line-height: 24px;
            max-width: 200px;
            overflow: auto;
            max-height: 100px;
            bottom: 5px;
        }
		
		
		.item-link {
			font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
			margin-top: 12px;
			padding: 3px 3px 3px 3px;
			margin-bottom: 12px;
			font-weight: bold;
			background-color: rgba(255, 189, 0, .95);
			border-radius: 4px;
			cursor: pointer;
			height: 2.7em;
			width: auto;
		}

        .leaflet-popup {
            margin-top: 20px;
        }

        .leaflet-container a.leaflet-popup-close-button {
            padding: 22px 0 0;
        }

        .leaflet-control-layers {
            top: .6em;
        }


        /* POSITION SEARCH BAR FOR MOBILE */
        .geocoder-control {
            top: 3.5em;
        }

        
        /* DIFFERENT FORMATTING OF HEADER TITLE ON MOBILE */
        #title {
            display: none;
        }

        #mobile-title {
            display: block;
        }

        
        /* STYLING MENU ITEMS */
        .mobile-buttons {
            width: 6em;
            float: right;
        }

        #about-button {
            min-width: 3.7em;
            padding-right: .1em;
            font-size: 16px;
            text-transform: none;
            padding-top: 1em;
        }

        #data-button {
            min-width: 3.7em;
            padding-right: 1em;
            font-size: 16px;
            text-transform: none;
            padding-top: 1em;

        }

        /* TITLE */
        h1 {
            font-size: 24px;
            line-height: 1.3;
            padding-left: .3em;
        }
    }

