/***

Special styles for the statistics view.

author : Mascha Schmidt
date: 04.02.2025

***/


:root {
    --text-highlight-color:rgb(48, 58, 114) ;
    --box_background: #f5f5f7;
    --box_border_color: #0000ff48;
    --box_shadow_color:#00005848; 
    --font-size: 16px;
    --stat_background: #ceceef;
    --font-size: 16px;
}



/* Text styles */


.title-highlight {
    font-size: 20px; 
    font-weight: bold;
    margin-bottom: 10px; 
    text-align: center;
}

.number-highlight {
    font-size: 48px; 
    font-weight: bold;
    text-shadow: 4px 4px 8px var(--text-highlight-shadow-color)
}

.title-std {
    font-size: 16px; 
    font-weight: bold;
    margin-bottom: 10px; 
    margin-top: 10px;
    text-align: center;
}

.number-std {
    font-size: 24px; 
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    text-shadow: 4px 4px 8px var(--text-highlight-shadow-color)
}




/* Custom Containers */

.stat-boxes-container {
    display: flex;
    flex-direction: row;
}

.value-box {
    background-color: var(--stat_background) ; 
    border: 2px solid var(--box_border_color); 
    box-shadow: 4px 4px 8px var(--box_shadow_color);
    border-radius: 15px; 
    padding: 20px;
    margin: 10px;
}

.vert-box{
    display: inline-flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    vertical-align: top;
}

.range-box {
    position: relative;
  }
  

.range-box .stat-number {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin-left: -11px
}

.range-box:after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color:var(--stat_border);
    position: absolute;
    top: 50%;
    margin-top: 5px;
    left: 0;
    transform: translateY(-50%);
    }

.graph-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    margin: 10px;

}

/* Buttons and reactives*/

.std-button {
    border: 2px solid var(--box_border_color);
    border-radius: 5px;
    display: inline-flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    padding: 5px;
    margin-left: 5px;

}


/* Special text settings */

.operator {
    font-size: 24px; 
    font-weight: bold;
    margin: 5px 0; 
}

.delta-number {
    font-size: px;
    font-weight: bold;
}


.max-value, .min-value {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.max-value {
    margin-bottom: 10px;
}


.title-min {
    margin-bottom: -10px;
}

.value-min {
    margin-bottom: 0;
}

.title-max {
    margin-bottom: 0.5em;
}

.value-max {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Settings for the help popup */

#help-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .popup-content {
    padding: 20px;
  }
  
  #close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
  }
  
  #close-btn:hover {
    background-color: #3e3f8e;
    color: white
  }