#connectionMapOverlay {
   position: fixed;
   inset: 0;
   z-index: 9999;
   background: #101820;
   color: white;
   overflow: hidden;
}

#connectionMapOverlay #cy {
   width: 100%;
   height: 100%;
}

#connectionMapOverlay #verseInfo {
   position: fixed;
   left: 50%;
   bottom: 20px;
   transform: translateX(-50%);
   width: min(650px, calc(100% - 40px));
   padding: 16px 20px;
   background: #1b2938;
   xborder: 1px solid #FF0000;
   border: 1px solid #465568;
   border-radius: 12px;
   box-shadow: 0 8px 30px #0008;
   text-align: center;
   pointer-events: none;
   z-index: 10;
   opacity: 0.75;
}

#connectionMapOverlay #verseReference {
   color: white;
   font-weight: bold;
   font-size: 16px;
   margin-bottom: 8px;
}

#connectionMapOverlay #verseText {
   color: #e6eaf0;
   font-size: 16px;
   line-height: 1.5;
}

#connectionMapOverlay #mapToolbar {
   position: fixed;
   top: 15px;
   left: 50%;
   transform: translateX(-50%);
   z-index: 20;

   display: flex;
   align-items: center;
   gap: 12px;

   padding: 10px 16px;
   background: #1b2938;
   border: 1px solid #465568;
   border-radius: 12px;
   box-shadow: 0 5px 20px #0008;

   font-size: 14px;
   white-space: nowrap;
   opacity: 0.75;
}

#connectionMapOverlay #mapToolbar button {
   background: #34475c;
   color: white;
   border: 1px solid #60758a;
   border-radius: 6px;
   padding: 6px 12px;
   cursor: pointer;
}

#connectionMapOverlay #mapToolbar button:hover:not(:disabled) {
   background: #506a85;
}

#connectionMapOverlay #mapToolbar button:disabled {
   opacity: 0.3;
   cursor: default;
}

#connectionMapOverlay #mapCurrent {
   color: #ffcc66;
   font-weight: bold;

   padding: 0 1em;
}

#connectionMapOverlay #mapStats {
   color: #aebdcb;
   border-left: 1px solid #465568;
   padding-left: 12px;
}

#connectionMapOverlay #mapMode {
   background: #34475c;
   color: white;
   border: 1px solid #60758a;
   border-radius: 6px;
   padding: 6px 8px;
   font-size: 14px;
}

@media (max-width: 600px) {
   #connectionMapOverlay #mapToolbar {
      top: 8px;
      width: calc(100% - 32px);
      box-sizing: border-box;
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px;
      padding: 8px;
      white-space: normal;
      
      padding: 10px 12px;
      width: calc(100% - 12px);
   }

   #connectionMapOverlay #mapToolbar button {
      padding: 6px 9px;
   }

   #connectionMapOverlay #mapStats {
      border-left: none;
      padding-left: 0;
      font-size: 12px;
   }

   #connectionMapOverlay #verseInfo {
      bottom: 8px;
      padding: 10px 12px;
   }

   #connectionMapOverlay #verseText {
      font-size: 16px;
   }
}

#connectionMapOverlay #mapSearchForm {
   display: flex;
   align-items: center;
   gap: 5px;
}

#connectionMapOverlay #mapSearch {
   width: 170px;
   padding: 7px 10px;
   background: #101820;
   color: white;
   border: 1px solid #60758a;
   border-radius: 6px;
   font-size: 14px;
   outline: none;
}

#connectionMapOverlay #mapSearch:focus {
   border-color: #ffcc66;
}

#connectionMapOverlay #mapSearch:focus::-webkit-input-placeholder
{
   transform: translate(-100%, 0%);
}


@media (max-width: 600px) {
   #connectionMapOverlay #mapSearchForm {
      width: 100%;
      justify-content: center;
   }

   #connectionMapOverlay #mapSearch {
      width: min(230px, 75%);
   }
}

#mapOpenBible, #mapCopyVerse {
   display: inline-block;
   margin: 12px 4px 0 4px;
   padding: 8px 16px;
   padding: 6px 9px;
   background: #34475c;
   color: white;
   border: 1px solid #60758a;
   border-radius: 6px;
   font-size: 14px;
   cursor: pointer;
   pointer-events: auto;
}

#mapOpenBible:hover, #mapCopyVerse:hover {
   background: #506a85;
}