html, body{position:relative; font-family: 'Titillium Web', sans-serif;padding:0; margin:0;}
header{position: fixed; top: 0; left: 0; width: 100%; height:70px; padding:5px 0 5px 10px; color:#fff; background-color: #1b1b1b; display: flex; flex-direction: row; justify-content: space-between; align-items: center;z-index:1000;}
header #headerLogo{font-family: 'Cinzel', serif; width:300px; height:70px; background-image: url("/img/logo/khm-logo-header.png"); background-position: left; background-repeat: no-repeat; background-size: contain;padding-left:100px;display: flex !important; align-items: center;}
#headerLogo > h1{font-size:3rem; color:#fff; margin:0;}
header > #headerLink{text-align: center;}
header > #headerLink > a{min-width:60px; width:auto; height:70px; padding:0 10px; color:#fff; display: inline-block; text-align: center; font-size:1.3rem; line-height: 3;}
body > nav{position:fixed; top:70px; width:250px; height: calc(100vh - 70px); color:#fff; background: rgba(77,76,68,1); overflow-y: auto; z-index:900;}
body > nav > #linkWrap{display: flex; flex-direction: column;margin:0;padding:0;}
body > nav > #linkWrap > span#user{display: block; padding: 10px 20px; background: #dddddd; color:#464545}
body > nav > #linkWrap > span.titleSection{display: block; padding: 5px 20px; text-transform: uppercase;background: rgb(58,58,53);}
body > nav > #linkWrap > a{color:#fff; padding:5px 20px; border-bottom: 1px solid rgba(0,0,0,.3);}
#backdrop{position:fixed; top:0; left:0; width:100vw; height:100vh; background: rgba(0,0,0,.3); z-index:800;}

#itemTool{position:fixed; top:70px; left:0; height:45px; padding:5px; background:#dddddd; z-index:700;overflow:visible;display: flex;flex-direction: row;flex-wrap: nowrap;justify-content: space-between;align-items: center;
}

main{position: relative; min-height:calc(100vh - 100px); margin:80px 0; z-index:1}

/* input[readonly] {
  cursor: not-allowed;
  background-color: #f8f9fa;
} */

.animated{transition: all 0.25s linear;}
.open{right: 0;}
.closed{right: -250px;}
.large{width:100%;}
.small{width:calc(100% - 250px);}
.txt-adc-light{color:#f0eee5;}
.txt-adc-dark{color:#875e29;}
.btn-adc-dark{background-color: #875e29; border:1px solid #875e29; color:#f0eee5;}
.btn-adc-dark:hover, .btn-adc-dark:active, .btn-adc-dark.show{background-color: #755123 !important; border:1px solid #755123 !important; color:#f0eee5 !important;}

.btn-adc-blue{background-color: #22458a; border:1px solid #22458a; color:#f0eee5;}
.btn-adc-blue:hover, .btn-adc-blue:active, .btn-adc-blue.show{background-color: #18356d !important; border:1px solid #18356d !important; color:#f0eee5 !important;}

.bg-adc-light, .accordion-button.collapsed{background:#dddddd;color: #464545;}
.bg-adc-dark,.accordion-button:not(.collapsed) {background-color:#666666 !important; color:#fff !important}
.accordion-button::after{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23875e29'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button:not(.collapsed)::after{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f0eee5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")
}

label[for]{cursor: pointer;}
a{text-decoration:none;transition: all 0.25s linear;}
textarea {resize: none;}
.pointer{cursor:pointer;}

#loadingDiv{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color:#fff;
}
#loadingDiv > p{font-size: 40px;}
/* #loadingDiv{position:fixed; top:0; left:0; width:100vw; height:100vh; background-color: rgba(255,255,255,.5); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center;}
 */

.form-sm{width:360px;}
.tdhopBg{background-image: linear-gradient(to top, #6a6a6a, #fff);}
/* bootstrap hack */
.custom-tooltip {
  --bs-tooltip-bg: var(--bs-white);
  --bs-tooltip-color: var(--bs-black);
}
#map > #mapAlert, #map > #resetMapDiv{position: absolute; z-index: 2000;}
#map > #mapAlert{top: 10px; left: 0;right: 0; max-width:300px; margin: 0 auto; padding: 5px; width:auto; text-align: center;}
#map > #resetMapDiv{left:10px; bottom:10px;}
#resetMapDiv > button {border: 2px solid rgba(0,0,0,0.2);}
#resetMapDiv > button:hover {background-color: #f4f4f4;}

fieldset > legend{
  /* color:#875e29; */
  color:#875e29;
  background:#f0eee5;
  padding:0.5rem;
  /* font-weight: bold; */
  font-size:1.5rem;
  /* border-bottom:1px solid #875e29; */
}

#toastDivContent{
  position: fixed;
  width:500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  text-align: center;
  z-index: 2000;
}

#thumbPreview{
  background-color: rgb(248,249,250);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width:200px;
  height: 200px;
}


/* leaflet hack */


@media (min-width: 576px) {
}

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

/* Large tablets in landscape mode */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  header #headerLink > a.currentPage{color:#22458a; background-color: #fff;}
}


/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  header #headerLink > a.currentPage{color:#22458a; background-color: #fff;}
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  header #headerLink > a:hover, header #headerLink > a.currentPage{color:#22458a; background-color: #fff;}
  body > nav > #linkWrap > a:hover{padding-left:35px;}
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  header #headerLink > a:hover, header #headerLink > a.currentPage{color:#22458a; background-color: #fff;}
  body > nav > #linkWrap > a:hover{padding-left:35px;}
}
