@font-face {
    font-family: LHF_Billhead_1890;
    src: url(../../media/fonts/lhf_billhead_18901.ttf);
}

@font-face {
    font-family: Cruickshank;
    src: url(../../media/fonts/CRUICKSH.TTF);
}

@font-face {
    font-family: SCOREBOARD;
    src: url(../../media/fonts/SCOREBOARD.ttf);
}

@font-face {
    font-family: Rye-Regular;
    src: url(../../media/fonts/Rye-Regular.ttf);
}

@font-face {
    font-family: CherrySwash-Regular;
    src: url(../../media/fonts/GoogleFonts/Cherry_Swash/CherrySwash-Regular.ttf);
}

html, body {
    height: 100%;
    overflow: hidden; /* prevents page scrollbars */
    margin: 0;
    padding: 0;
}

tbody {
	counter-reset: myCount; /* Set the counter to 0 */
}

h1 {
    margin: 1rem;
}

.myCount:before {
    counter-increment: myCount;      /* Increment the counter */
    content: counter(myCount) ". "; /* Display the counter */
		/* Need tbody counter-reset myCount, Set the counter to 0 */
}

button {
    font-family: CherrySwash-Regular;
    font-size: 16px;
    background-color: rgba(31, 4, 93, 0.9);
    color: wheat;
    border: 0.125rem solid black;
    margin: 1px;
    padding: clamp(3px, 0.8vh, 5px) clamp(4px, 1.2vh, 8px);   /* padding scales too */
    align-self: flex-start;
}

button:hover {
    background: rgba(67, 47, 109, 0.8);
    color: white;
    border: 0.125rem solid white;
}

.button-normal {
    background-color: rgba(31, 4, 93, 0.9);
    color: wheat;
}

.button-active {
    background-color: rgba(15, 3, 41, 0.9);
    color: gold;
}

#easterToggle[data-tooltip]{
    position: relative;
}

#easterToggle[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    z-index: 1;
    display: none;
    left: 100%; /* Position the tooltip to the right of the button */
    top: 50%;
    transform: translateY(-50%);
}

#easterToggle:hover[data-tooltip]::after {
    display: block;
}

.gold_button {
    font-family: LHF_Billhead_1890;
    font-size: 30px;
    background: goldenrod;
    color: black;
    border: 0.125rem solid black;
    margin: 1px;
    /*max-height: 2.5rem;*/
}

.gold_button:hover {
    background: gold;
    color: rgb(58, 16, 149);
}

.gold_button-active {
    background-color: black;
    color: gold;
}

.gold_button-active:hover {
    background-color:#373434;
    color: goldenrod;
}

.compound-name-label-clue1 {
    color: wheat;
    font-size: 18px;
    font-family: CherrySwash-Regular;
    /*font-family: Rye-Regular;*/
    text-align: center;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.compound-name-label-clue2 {
    color: lightblue;
    font-size: 18px;
    font-family: CherrySwash-Regular;
    text-align: center;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#map {
    width: 100%;
    height: 100%;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
    z-index: 1;
    position: relative; /* Add this to make sure distance bars are positioned relative to the map container */
}

#sidebar_SB {
    font-family: Cruickshank;
    width: 20%;
    background: url(../../media/img/pitching_lake.jpg);
    background-size: cover;
    color: black;
    padding: 20px;
    height: 100vh;           /* fixed to viewport */
    overflow-y: auto;        /* sidebar scrolls, not the page */
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;  /* controls vertical spacing */
}

#sidebar_LD {
    font-family: Cruickshank;
    width: 20%;
    background: url(../../media/img/lighthouse_20240121190420_1.jpg);
    background-size: cover;
    color: black;
    padding: 20px;
    height: 100vh;           /* fixed to viewport */
    overflow-y: auto;        /* sidebar scrolls, not the page */
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;  /* controls vertical spacing */
}

#sidebar_DS {
    font-family: Cruickshank;
    width: 20%;
    background: url(../../media/img/autum_ds_20250626200601_1.jpg);
    background-size: cover;
    color: black;
    padding: 20px;
    height: 100vh;           /* fixed to viewport */
    overflow-y: auto;        /* sidebar scrolls, not the page */
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;  /* controls vertical spacing */
}

#sidebar_MG {
    font-family: Cruickshank;
    width: 20%;
    background: url(../../media/img/MG_20240822203656_1.jpg);
    background-size: cover;
    color: black;
    padding: 20px;
    height: 100vh;           /* fixed to viewport */
    overflow-y: auto;        /* sidebar scrolls, not the page */
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;  /* controls vertical spacing */
}

.holder.container {
  height: 100vh;      /* not min-height */
  display: flex;
  flex-wrap: nowrap;  /* important: stop wrapping causing extra height */
}

#windrose {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
}

.icon_map_overlay {
    background-color: whitesmoke; 
    height: clamp(1.5rem, 3.5vh, 2.1rem);
    width: clamp(1.5rem, 3.5vh, 2.1rem);
    margin-right:0.2rem; 
    border: 0.125rem solid black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boss_underground {
    filter: invert(1);
}

.flat-circle-label {
    color: #fff3ba;
    font-family: CherrySwash-Regular;
    font-size: 16px;
    line-height: 1;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    white-space: nowrap;
}

.flat-circle-center {
    background: #ffd23f;
    border: 2px solid #1a1200;
    border-radius: 50%;
    box-sizing: border-box;
}

.clash-center-icon {
    background: transparent;
    cursor: pointer;
}

.clash-center-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

.clash-center-icon-inactive img {
    opacity: 1;
    filter: brightness(0) drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

.clash-point-icon {
    background: transparent;
}

.clash-point-icon > div {
    width: 34px;
    height: 34px;
    background: rgba(245, 245, 245, 0.92);
    border: 2px solid #1b1b1b;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clash-point-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Style for the distance bars container */
#distance-bars {
    position: absolute;
    bottom: 10px; 
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column; /* Stack bars and labels vertically */
    align-items: flex-start; /* Align items to the left */
}

.bar-label-container {
    display: flex;
    align-items: center;
}

.bar-part {
    height: 14px;
    width: 25%;
    float: left;
}

.meter-part:nth-child(1) {
    width: 25%;
    background-color: #3fdde5;
}

.meter-part:nth-child(2) {
    width: 25%;
    background-color: #0d456b;
}

.meter-part:nth-child(3) {
    width: 25%;
    background-color: #3fdde5;
}

.meter-part:nth-child(4) {
    width: 25%;
    background-color: #0d456b;
}

#meters-label {
    color: black;
    background-color: white;
    font-size: 12px;
    width: 67px;
    padding: 1px;
}

#feet-label {
    color: black;
    background-color: white;
    font-size: 12px;
    width: 67px;
    margin-top: 1px;
    padding: 1px;
}

.custom-icon {
    background-color: transparent; /* Remove any background color */
    border: none; /* Remove border */
    font-size: 16px; /* Set font size */
    color: #000; /* Set font color */
    text-align: center; /* Center text */
    line-height: 1; /* Adjust line height for vertical centering */
}

#content {
    flex-grow: 1; /* Make the map container expand to fill the remaining height */
    position: relative; /* Add this for absolute positioning of distance bars */
}

.container {
    min-height: 100vh; /* Make the container fill the viewport height */
}

#hunt_logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    max-height: 95%;
    max-width: 95%;
    transition: transform 0.3s ease; 
    margin: auto;
}

.modal-content-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.modal-content-wrapper:active {
    cursor: grabbing;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 70px;
    color: red;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 110; /* Higher than modal content */
    cursor: pointer;
    text-align: center;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: black;
}

#sidebar-toggle-btn {
    display: none;
}

/* CSS for the distance label */
#map .label-dist {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 5px !important;
    border-radius: 5px !important;
    text-align: center !important;
    display: inline-block !important;
    width: 60px !important;
    height: 35px !important;
}

.easter-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: lightcoral;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    text-shadow: 0 0 3px black;
    pointer-events: none;
}

.easter-drama {
    position: absolute;
    bottom: -6px;          /* positions it below the egg */
    right: -5px;           /* slightly to the right bottom */
    background-color: bisque;
    color: darkred;
    font-size: 12px;
    font-weight: normal;
    font-family: CherrySwash-Regular;
    padding: 1px 4px;
    border-radius: 3px;
    transform: rotate(-15deg); /* gives the tilted look */
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    pointer-events: none; /* don’t block mouse hover */
}

.custom-marker-icon {
    position: relative;
}

/* Circle */
.marker-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgb(241, 102, 10); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.pathway-dot {
    background-color: rgb(0, 98, 255) !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    color: white !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    box-shadow: 0 0 2px #000 !important;
}

.beelte-div-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beelte-div-icon img.beelte-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps aspect ratio */
}

.beetle-number {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    /*background-color: rgb(128, 204, 240, 0.6);*/
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    text-shadow: 0 0 3px black;
    pointer-events: none;
}

.tower-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: rgba(6, 47, 66, 0.4);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    text-shadow: 0 0 3px black;
    pointer-events: none;
}

.towerW-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    background-color: rgba(55, 4, 44, 0.4);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    text-shadow: 0 0 3px black;
    pointer-events: none;
}

.icon_inner {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon_inner.small {
    width: 70%;
    height: 70%;
}

.sidebar-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.sidebar-main-button {
    align-self: center;
}

.map-shortcuts {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.25rem;
}

.map-shortcuts button {
    width: 3.5rem;
}

.map-shortcuts-hand {
    width: 3rem;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    align-self: center;
    background: rgba(35, 35, 35, 0.92);
    border: 0.125rem solid black;
    box-sizing: border-box;
}

.map-tool-orbit {
    position: relative;
    width: min(100%, 21rem);
    height: clamp(27.5rem, calc(100vh - 28rem), 31rem);
    margin: 1.2rem auto 0;
}

.map-tool-orbit-expanded {
    width: min(100%, 18.5rem);
    height: clamp(31rem, calc(100vh - 24rem), 36rem);
}

.map-tool-readout {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7rem;
    min-height: 3.3rem;
    transform: translate(-50%, -50%);
    border: 0.125rem solid black;
    background: rgba(15, 3, 41, 0.88);
    color: wheat;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.35rem;
    text-align: center;
    font-family: CherrySwash-Regular;
    font-size: 1rem;
    line-height: 1.1;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    pointer-events: none;
}

.tool-icon {
    position: absolute;
    width: clamp(2.35rem, 4.45vh, 3.25rem);
    height: clamp(2.35rem, 4.45vh, 3.25rem);
    left: calc(50% + var(--tool-x));
    top: calc(50% + var(--tool-y));
    transform: translate(-50%, -50%);
    border: 0.125rem solid black;
    background: rgba(245, 245, 245, 0.92);
    padding: 0.15rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.tool-icon:hover,
.tool-icon:focus {
    border-color: white;
    background: rgba(255, 255, 255, 0.98);
    transform: translate(-50%, -50%) scale(1.18);
    z-index: 3;
}

.tool-icon.button-active {
    border-color: gold;
    background: rgba(15, 3, 41, 0.9);
    box-shadow: 0 0 0 0.125rem rgba(255, 215, 0, 0.45);
}

.tool-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.tool-icon-invert img {
    filter: invert(1);
}

.tool-icon-badge {
    position: absolute;
    right: -0.2rem;
    bottom: -0.15rem;
    min-width: 0.85rem;
    height: 0.85rem;
    border: 0.1rem solid black;
    border-radius: 50%;
    background: rgba(15, 3, 41, 0.95);
    color: gold;
    font-family: Arial, sans-serif;
    font-size: 0.6rem;
    line-height: 0.75rem;
    pointer-events: none;
}

.tool-count-badge {
    position: absolute;
    right: -0.45rem;
    top: -0.45rem;
    min-width: 1.1rem;
    height: 1.1rem;
    border: 0.1rem solid black;
    border-radius: 50%;
    background: rgba(15, 3, 41, 0.96);
    color: gold;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: bold;
    line-height: 1rem;
    text-align: center;
    pointer-events: none;
}

.tool-pos-1 { --tool-x: 0%; --tool-y: -41%; }
.tool-pos-2 { --tool-x: 12.8%; --tool-y: -39%; }
.tool-pos-3 { --tool-x: 24.5%; --tool-y: -33.3%; }
.tool-pos-4 { --tool-x: 33.8%; --tool-y: -24.3%; }
.tool-pos-5 { --tool-x: 39.8%; --tool-y: -12.8%; }
.tool-pos-6 { --tool-x: 41.9%; --tool-y: 0%; }
.tool-pos-7 { --tool-x: 39.8%; --tool-y: 12.8%; }
.tool-pos-8 { --tool-x: 33.8%; --tool-y: 24.3%; }
.tool-pos-9 { --tool-x: 24.4%; --tool-y: 33.3%; }
.tool-pos-10 { --tool-x: 12.8%; --tool-y: 39%; }
.tool-pos-11 { --tool-x: 0%; --tool-y: 41%; }
.tool-pos-12 { --tool-x: -12.8%; --tool-y: 39%; }
.tool-pos-13 { --tool-x: -24.5%; --tool-y: 33.3%; }
.tool-pos-14 { --tool-x: -33.8%; --tool-y: 24.3%; }
.tool-pos-15 { --tool-x: -39.8%; --tool-y: 12.8%; }
.tool-pos-16 { --tool-x: -41.9%; --tool-y: 0%; }
.tool-pos-17 { --tool-x: -39.8%; --tool-y: -12.8%; }
.tool-pos-18 { --tool-x: -33.8%; --tool-y: -24.3%; }
.tool-pos-19 { --tool-x: -24.4%; --tool-y: -33.3%; }
.tool-pos-20 { --tool-x: -12.8%; --tool-y: -39%; }

.map-tool-orbit-expanded .tool-pos-1 { --tool-x: 0%; --tool-y: -44%; }
.map-tool-orbit-expanded .tool-pos-2 { --tool-x: 20%; --tool-y: -41%; }
.map-tool-orbit-expanded .tool-pos-3 { --tool-x: 34%; --tool-y: -35%; }
.map-tool-orbit-expanded .tool-pos-4 { --tool-x: 41%; --tool-y: -27%; }
.map-tool-orbit-expanded .tool-pos-5 { --tool-x: 45%; --tool-y: -17%; }
.map-tool-orbit-expanded .tool-pos-6 { --tool-x: 46%; --tool-y: -7%; }
.map-tool-orbit-expanded .tool-pos-7 { --tool-x: 46%; --tool-y: 3%; }
.map-tool-orbit-expanded .tool-pos-8 { --tool-x: 45%; --tool-y: 13%; }
.map-tool-orbit-expanded .tool-pos-9 { --tool-x: 41%; --tool-y: 23%; }
.map-tool-orbit-expanded .tool-pos-10 { --tool-x: 35%; --tool-y: 32%; }
.map-tool-orbit-expanded .tool-pos-11 { --tool-x: 24%; --tool-y: 39%; }
.map-tool-orbit-expanded .tool-pos-12 { --tool-x: 8%; --tool-y: 44%; }
.map-tool-orbit-expanded .tool-pos-13 { --tool-x: -8%; --tool-y: 44%; }
.map-tool-orbit-expanded .tool-pos-14 { --tool-x: -24%; --tool-y: 39%; }
.map-tool-orbit-expanded .tool-pos-15 { --tool-x: -35%; --tool-y: 32%; }
.map-tool-orbit-expanded .tool-pos-16 { --tool-x: -41%; --tool-y: 23%; }
.map-tool-orbit-expanded .tool-pos-17 { --tool-x: -45%; --tool-y: 13%; }
.map-tool-orbit-expanded .tool-pos-18 { --tool-x: -46%; --tool-y: 3%; }
.map-tool-orbit-expanded .tool-pos-19 { --tool-x: -46%; --tool-y: -7%; }
.map-tool-orbit-expanded .tool-pos-20 { --tool-x: -45%; --tool-y: -17%; }
.map-tool-orbit-expanded .tool-pos-21 { --tool-x: -41%; --tool-y: -27%; }
.map-tool-orbit-expanded .tool-pos-22 { --tool-x: -34%; --tool-y: -35%; }
.map-tool-orbit-expanded .tool-pos-23 { --tool-x: -20%; --tool-y: -41%; }

/*--------------------------*/
/*------Mobile Devices------*/
/*--------------------------*/
@media only screen and (max-width: 768px) {

    #sidebar_SB {
        font-family: Cruickshank;
        width: 0;
        background: url(../../media/img/pitching_lake.jpg);
        color: black;
        padding: 0;
        box-sizing: border-box;
        min-height: 100vh;
        transition: 0.4s ease-in-out;
    }

    #sidebar_LD {
        font-family: Cruickshank;
        width: 0;
        background: url(../../media/img/wheat.jpg);
        color: black;
        padding: 0;
        box-sizing: border-box;
        min-height: 100vh;
        transition: 0.4s ease-in-out;
    }

    #sidebar_DS {
        font-family: Cruickshank;
        width: 0;
        background: url(../../media/img/anchor4.jpg);
        color: black;
        padding: 0;
        box-sizing: border-box;
        min-height: 100vh;
        transition: 0.4s ease-in-out;
    }

    #content {
        flex-grow: 1; /* Make the map container expand to fill the remaining height */
        position: relative; /* Add this for absolute positioning of distance bars */
        margin-left: 0;
        height: auto;
    }

    #windrose {
        display: none;
    }

    #sidebar-toggle-btn {
        display: block;
        cursor: pointer;
        position: relative;
    }
    
    #sb-close-symbol {
        opacity: 0; /* Initially hide the close symbol */
        transition: opacity 0.4s ease-in-out;
        filter:invert(1);
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        max-height: 3rem;
        z-index: 2;
    }

    #sb-burger-symbol {
        filter:invert(1);
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        max-height: 3rem;
        z-index: 2;
        transition: opacity 0.4s ease-in-out;
    }

}
