:root {
    --health-color: #b8003a;
    --energy-color: #05a774;
    --food-color: #e8700e;
    --water-color: #0a8cdc;
}

/* .stats-wrapper:hover #stats-panel,  */
.stats-wrapper.expand #stats-panel{ 
    display: block;
}

.stats-wrapper {
    position: relative;
    user-select: none;
}

#stats-bar {
    /* display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: flex-end; */
    position: relative;
    padding: 0.4em 0;

  }

#stats-wheel {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
/* 
.topbar-icon {
    opacity: 0.5;
    cursor: pointer;
}

.topbar-icon:hover {
    opacity: 1;
    cursor: pointer;
} */


#stats-panel {
    width: 100%;
}

#stats-panel h4 {
    font-size: 1em;
}

#stats-list, #journal-stats-panel {
    width: 100%;
    margin: 0 auto;
    display: flex;
    padding: 0.5em;
    flex-direction: column;
    font-size: 14px;
}

.stats-close {
    font-size: 2em;
}
#stats-panel li, #journal-stats-panel li {
    font-size: 1.5em;
    list-style: none;
    display: inline;
    flex-grow: 1;
    text-transform: capitalize;
    border-bottom: 0.5px solid #bd7546;
    padding-right: 5px;
    margin-right: 5px;
}


#stats-panel li:last-child {
    border-bottom: none;
}
.stat-title {
    display: inline-block;
    font-weight: bold;
    text-overflow: ellipsis;
    
}

#journal-stats-panel .stat-title {
    width: 110px;
}

#stats-n-crap {
    position: absolute;

    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    top:0;
    bottom:14em;
}

#cowboy-status-panel {
    width: 100%;
    display:flex;
    flex-direction: row;
}

#cowboy-stat-panel {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}

#cowboy-stat-panel > div{
    width: 50%;
    margin: 2px 0;
    height: 1.5em;
    display: inline-flex;
    flex-direction: row;
}

#cowboy-stat-panel > div span {
    display:inline-block;
    text-align: right;
    height: 1em;
    margin: 0;
    width: 55px;
    font-size: 0.9em;
    text-transform: capitalize;
    padding: 0 5px;
}

#stat-bar-wrapper {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
}


#stat-bars {
    position: relative;
    z-index:2;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 55%;
}

#stat-bars:hover {
    cursor: pointer;
}

#stat-bars > div{
    position: absolute;
    top: 0;
    right: 5px;
    height: 24px;
    width: 100%;
    margin-top: 2px;
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap; */
}

#stat-bars span {
    visibility: hidden;
    width: 65px;
    text-transform: capitalize;
    padding: 0 5px;
}

#stat-bars.expand > div{
    position: inherit;
}
#stat-bars.expand span{
    visibility: visible;

}
.stat-bar span {
    color: white;
    text-align: left;
}


.cb-stat-label {
    text-transform: capitalize;

    color: #444;
}

.stat-bar {
    min-height: 10px;
    height: 100%;
    width: 100%;
    border-radius: 1em;
    border: 1px solid black;
    overflow: hidden;
}

.stat-bar-fill {
    background-color: grey;
    border-right: 1px solid black;
    padding-right: 2px;
    height: 100%;
    transition: width 1s;
}

#health-stat-bar .stat-bar-fill {
    background-color: var(--health-color);
}
#energy-stat-bar .stat-bar-fill {
    background-color: var(--energy-color);
}
#water-stat-bar .stat-bar-fill {
    background-color: var(--water-color);
}
#food-stat-bar .stat-bar-fill {
    background-color: var(--food-color);
}





#clock {    
    /* flex-grow: 1; */
    text-align: right;
    transition: height 0.2s;
    /* width: 50px; */
}

#autostride-meter {
    width: 100%; 
    cursor: pointer;
    height: 0.5em; 
    border-radius: 0.5em;
    border: 0.5px solid black;
    overflow: hidden;
    transition: height 0.2s;
    margin: 0.25em 0;
}

#autostride-meter.expand {
    height: 1.5em; 
}

#autostride-bar {
    width: 100%; 
    height: 100%;
}

#autostride-line {
    display: inline; 
    height: 100%;
    border-radius: 0.5em;
    transition: width 1s, background-color 2s;
    border-left: 0.5px solid black;
    float: right;
}

#autostride-box {
    font-family: hellenic-wide-jf;
    opacity: 0;
    padding: 0em 0.5em;
    height: 100%;
    display: inline-block;
    border-radius: 0.5em;
    transition: opacity 0.5s;
}

.expand #autostride-box {
    opacity: 1;
}

#timeline-bar {
    pointer-events: all;
    width:100%;
    display:flex; 
    justify-content: flex-start; 
    align-items: center; 
    z-index: 10;
    margin-top: 5px;
    padding: 0 5px;
}

.timeline-icon:hover {
    cursor: pointer;
    border-radius: 0.25em;
    background-color: rgba(0,0,0,0.25);
}