/* ==============================
   GENERAL
============================== */

body {
  font-family: 'Macondo', cursive;
  background-color: #eedebd;
  color: #292929;
  margin: 0;
  height: 100%;
  overflow: hidden;
}

#page {
  display: flex;
  height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  gap: 2rem;
 
}

.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #dec9a0;
  border: 3px solid #8b6f5a;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-sizing: border-box;
  min-height: 0;
  overflow-y: auto;
}

.column1 {
  flex: 3;
}

.column2 {
  flex: 1;
}


/* ==============================
   LOCATION HEADER
============================== */

#location-panel {
  position: fixed;
  width: 70%;
  left: 5%;
  bottom:5%;
  height: 90%;
  padding-bottom: 3rem;
}

.location-title-box {
  text-align: left;
  border-bottom: 3px solid #292929;
  margin-bottom: 1.5rem;
}

#location-title {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
  padding-bottom: 0.5rem;
  border-bottom: 3px double transparent;
  color: #292929;
  background-color: transparent;
  border-radius: 0.5rem;
}

.section-headline{
  padding-left: 1.1rem;
}

/* ==============================
   FEATURE LISTS (FLEXIBLE BY TYPE)
============================== */

.feature-list {
  flex-grow: 1;
  box-sizing: border-box;
  min-height: 0;
  padding: 1rem;
  margin-bottom: 0rem;
}

.feature-entry {
  padding-bottom: 0.0rem;  
  
}


.feature-name-line {
  display: flex;
  gap: 0.5em;  
  pointer-events: none;
  cursor: default;
  user-select: none;
  z-index: 1000;
  margin-bottom: 0.3rem;
  
}

.feature-name{
  text-align: center;
}
.feature-name-line:hover {
  background: #fff0d200;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  text-align: center;
  line-height: 1;
  font-weight: bolder;
  font-size: 1.1em; 
}

.feature-foreward {
  display: flex;  
  justify-content: left;
  width: auto; 
  font-weight: bold;
  font-size: 1.1  em; 
}

.feature-description {
  font-size: 1rem;
  
}


.feature-description-passage {
  margin-bottom: 0.6em; /* or any value you like */
}


/* ==============================
   FEATURE TYPES
============================== */

/* CURRENT */
#current-features-list {
  background-color: #f3e6c672;   
  margin-bottom: 1rem;
}

.feature-entry.close {
  font-size: 1rem;  
  
}

#current-features-list .feature-name {  
  font-weight: bold;
  font-size: 1.1em;  
}


/* CURRENT PASSAGE */
#current-passage-features-list {
  margin-left: 1rem;    
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#current-passage-features-list .feature-name{
  font-weight: bold;
}

/* PASSAGE */
#passage-features-list {
  margin-left: 1rem;
  
}

#passage-features-list .feature-name {  
  font-weight: bold;   
}

/* DISTANT */
#distant-features-list {
  border-top: 3px dotted rgba(0, 0, 0, 0);
  
  margin-left: 1rem;
  color: #3a3a3a;
}

.feature-entry.distant {  
  opacity: 1;
  
}

#distant-features-list .feature-name {  
  font-weight: normal;   
}

/* FAR */
#far-features-list {
  margin-left: 1rem;
  color: rgb(63, 65, 72);
  
}

.feature-entry.far {  
  opacity: 1;
}

#far-features-list .feature-name {  
  font-weight: normal;   
}

/* ==============================
   FEATURE DETAILS
============================== */

.feature-detail-box {
  
  margin-top: 0.5rem;
  margin-bottom: 0.0rem;
  }

.feature-detail {
  font-size: 1.0rem;
  
}

.feature-detail.challenge {
  color: rgb(102, 0, 0);
  padding-bottom: 1.5rem;
}

.feature-detail.item {
  color: rgb(0, 25, 148);
}


/* ==============================
   SPACERS / OPTIONAL ELEMENTS
============================== */

.location-panel-spacer {
  content: " ";
  display: block;
  height: 0.1rem;
  flex-shrink: 0;
}


/* ==============================
   TOOLTIPS
============================== */
#tooltip {
  position: fixed;
  box-sizing: border-box;
  width:  66%;
  background-color: #f0e4c6;
  
  padding: 10px; 
  font-size: 0.95rem;
  border-radius: 4px;
  pointer-events: auto; /* so we can click inside */
  z-index: 1000;
  display: none;
  border: 4px double #4e463e72;   
  pointer-events: auto !important;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.205);
}

/* Tooltip: fixed centered modal */
.tooltip-fixed {
  padding: 10px;
  position: fixed !important;
  top: 24.5% !important;
  left: 7% !important;
  
  right: 30% !important;
  bottom: 7% !important;
}

/* Tooltip: Keywords */
#tooltip.tooltip-hover {
  font-weight: Bold;
  left: 7% !important;  
  right: 30% !important;

}



.tooltip-close {
  position: absolute;
  top: 3px;
  right: 6px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.tooltip-close:hover {
  color: #ff0000;
}



/* 
   Findings
 */

.tooltip-header {
  font-weight: bold;  
  font-size: 1.1rem;
  
}

#tooltip.tooltip-click.tooltip-fixed .description {
  margin-top: 0.5em;
  
 
}

#tooltip.tooltip-hover {
  padding: 3px;
  padding-left: 10px;
  padding-bottom: 5px; 
 
}

/* For movement */
.feature-name-line[data-move] {
  pointer-events: auto;
  cursor: pointer;
  user-select: auto;
  
}
.feature-name-line[data-move]:hover .feature-name{
  text-decoration: underline;
}

/* For click tooltips */
.feature-name-line[data-tooltip-click] {
  pointer-events: auto;
  cursor: pointer;
}

.feature-name-line[data-tooltip-click]:hover .feature-name{
  text-decoration: underline;
}


/* For hover tooltips if you want special styling (optional) */
.feature-name-line[data-tooltip-hover] {
   display: flex;
  align-items: center;
  min-height: 2.2em; /* Or whatever height you prefer */
  padding: 0.15em 0.8em; /* More vertical & horizontal padding */
  width: 100%;           /* Fill parent container */
  box-sizing: border-box;
       
  border-radius: 0.25em;
  cursor: help;
  
}

.feature-name-line[data-tooltip-hover]:hover .feature-name{
  text-decoration: underline;
  
}

#tooltip-overlay {
   /* must be higher than anything else on the page except tooltip itself */
  pointer-events: auto !important;
  
}

body.tooltip-modal-open .feature-name-line[data-tooltip-hover]:hover,
body.tooltip-modal-open .feature-name-line[data-move]:hover,
body.tooltip-modal-open .feature-name-line[data-tooltip-click]:hover {
  background: none !important;
  text-decoration: none !important;
  cursor: default !important;
  /* Any other visual effect you use */
}

#tooltip-overlay {
  display: none;
  position: fixed;
  z-index: 900;   /* Make sure it's between page and tooltip */
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #180e0e00;
  pointer-events: auto !important;
  transition: opacity 0.2s;
}
#tooltip-overlay.active {
  display: block;
  opacity: 1;
}

/* ==============================
   Keywords
============================== */
.keyword-link {
  color: #000000;
  font-size: 1.0rem ;
  font-weight: normal;
    cursor: pointer;
  
}
.keyword-link:hover {
  
  font-weight: bold;
}

