:root{
    --border_thick: 2;  /*se px */
    --border_clr: rgba(0,0,0,0.5);
    --window_bg_clr: rgba(239, 239, 239, 0.5);

    --switch_h:2;/*se rem*/
    --switch_w:6;
}

body{
    overflow-x: hidden;
}

#ekloges_page_main{
    
    padding-top: 2rem;
    transition: all 0.2s;
    opacity:0;
}


#everything_cont{
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    /* background-color: rgba(255,0,0,0.3); */
    overflow: hidden;

}

#graphs_tabs_wrap{
    width: 100%;
    height: 100%;
}

#tabs_cont{
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.tabs_filler{
    padding-left:1ch;
    border: solid calc(var(--border_thick)*1px) var(--border_clr);
    border-top: none;
    border-right: none;
    border-left: none;
    
}
.tabs_filler_in{
    flex:1;
    border: solid calc(var(--border_thick)*1px) var(--border_clr);
    border-top: none;
    border-right: none;
    border-left: none;
}

.year_tabs{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9ch;
    border: solid calc(var(--border_thick)*1px) var(--border_clr);
    border-radius: 0.3em 0.3em 0 0;
    padding: 0.2em;
    user-select: none;
    cursor: pointer;
}

.active_tab{
    background-color: var(--window_bg_clr);
    border-bottom: solid calc(var(--border_thick)*1px) transparent;
}


#year1_tab{
    border-bottom: none;
}

#comparison_tab_cont{
    flex:1;
    display: flex;
    justify-content: flex-end;
}

#comparison_tab{
    justify-self: flex-end;
}


#graphs_main_cont{
    border: solid calc(var(--border_thick)*1px) var(--border_clr);
    opacity:0;
    border-top: none;
    min-width: 100%;
    background-color: var(--window_bg_clr);
    transition: opacity 0.2s;
}

#graphs_main_xronia{
    display: flex;
    display: none;
}

.graph_cont{
    position: relative;
    width:80%;
}


#graph_details{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width:50%;
    height: 50%;
    z-index: 0;
}




.edres_cont{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#notes_cont{
    display: flex;
    flex-direction: column;
    position: absolute;
    width:50%;
    bottom:30%;
    left:50%;
    transform: translate(-50%,0);
    font-size: 0.7em;
    font-style: italic;
    justify-content: start;
    align-items: center;
}

@media only screen and (max-width: 1200px) {
    #graph_details{
        font-size:0.8rem;
    }
    .graph_cont{
        width:90%;
    }
    #notes_cont{
        font-size: 0.5em;
    }
    .year_tabs{
        font-size: 0.8em;
    }
}

.edres{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    border-radius: 0.5rem;
}


.edres>p{
    margin-right: 0.3em;
    padding: 0.2rem;
    font-weight: bold;
    user-select: none;
    border-radius: 0.5rem;
}

.edres>p:hover{
    background-color: rgba(0,0,0,0.1);
}


.edres_katanomi{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.2rem;
    background-color: var(--clr_parat0);
}

.edres_katanomi:hover{
    background-color: var(--clr_parat0);
    
}

.edres_katanomi>img{
    width:1em;
    height:1em;
    transition: all 0.2s;
}

.edres_katanomi>img:hover{
    transform: scale(1.2);
}

#table_warp{
    border-radius:1rem;
    overflow:auto;
}

#statistics_cont{
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#statistics_cont > table{
    font-size: 0.8rem;
    
}

#statistics_cont table tr td{
    max-height:3px;
    font-size: 1em;
    padding: 0.5em;
}

#statistics_cont table tr th{
    padding: 0.5em;
}

#statistics_cont table tr td img{
    width:2.5rem;
    height:2.5rem;
}
tr{
    text-align: center;
}

#statistics_cont table tr:last-child{
    background-color: rgb(100, 100, 100,0.1);
}



tr:focus{
    all:unset
}

td:focus{
    all:unset
}




table {
    border-collapse: separate;
    border-spacing: 0;
  }
  

  .edres_ds{
    transition: all 0.2s;
  }

  #canvas_istoriko{
    max-height: 50vh;
  }

  #canvas_line{
    max-height: 50vh;
    position: absolute;
    pointer-events: none;
}





#graphs_main_istoriko{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

#graph_top{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 0.5rem;
}

#checkbox_perc_cont{
    justify-self: flex-start;
    user-select:none;
}
#percent_check{
    accent-color: var(--navbar_cont_bg);
}

.synolo{
    font-weight:700;
    border-top: solid 1px rgba(0,0,0,0.4);
}

  /*SWITCH*/
#switch_wrap{
    
    display: flex;
    justify-self: center;
    width:calc(var(--switch_w)*1rem);
    height:calc(var(--switch_h)*1rem);
    background-color: rgba(210, 213, 224, 0.7);
    border:solid 1px rgba(46, 50, 65, 0.3);
    font-size: calc(var(--switch_h)*0.35rem);
    font-weight: normal;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: inset 0 0 3px 1px rgba(97, 97, 97, 0.5);
    justify-self: center;
}

#switch_wrap:hover > div{
    opacity:1;
}


#switch_wrap:active > div > div:nth-child(2){
    transform: scale(1.2);
}


#switch_cont{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 100%;
    height: 100%;
    padding: calc(var(--switch_w)*0.02rem);
}

#switch_filler{
    height:100%;
    width:50%;
    border-radius: 0.8rem;
    background-color: rgba(192, 192, 192, 0.7);
    transition: all 0.3s ease-out;
    z-index:1;
    box-shadow: inset -1px -1px 2px 1px rgba(0,0,0,0.2);
}

.switch_right{
    transform: translateX(100%);

    /* //animation:  */
}

#switch_text_cont{
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;

    width: 100%;
    height: 100%;
    top:0;
    left:0;
}

.switch_side{
    flex:1;
    text-align: center;
    font-size: 1em;
    z-index:2;
    width: 100%;
    user-select: none;
    transition: all 0.3s;
}


.switch_active_text{
    font-size: calc(var(--switch_h)*0.5rem);
    font-weight: bold;
}

.trend_arrow{
    width:0.8em !important;
    height:0.8em !important;
}
.trend_arrow.up{
    filter: invert(78%) sepia(12%) saturate(2592%) hue-rotate(56deg) brightness(89%) contrast(90%);
}
.trend_arrow.down{
    transform: rotate(180deg);
    filter: invert(25%) sepia(54%) saturate(2943%) hue-rotate(342deg) brightness(91%) contrast(87%);
}
.trend_arrow.equal{
    display: none;
}

.stats_compar{
    display:flex;
    align-items:center;
    justify-content:center;
    opacity: 0.7;
}

.stats_compar_up{
    color:#1c7408;
}

.stats_compar_down{
    color:#c83333;
}




#ds_ek_eksel_wrap{
    margin-top: 1rem;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: rgba(124, 128, 135, 0.1);
}

.enotita{
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.enotita:nth-child(1){
    padding-top: 0rem;
}

.enotita>span{
    display: flex;
    align-items: center;
    justify-content: center;
    width:100%;
    font-weight: bold;
    text-decoration: underline;
    font-size: x-large;
    background-color: rgba(0,0,0,0.1);
    border-radius: 0.5rem;
}