body {
    padding: 0;
    margin: 0;
    font-family: monospace;
}
html, body, #map {
    height: 100%;
    width: 100vw;

}
#moreinfo
{
    z-index: 25554;
    position:absolute;
    left:10px;
    bottom:10px;
    width:100px;
    background-color: #222222;
    border-radius: 5px;
    padding:5px;
}
#moreinfo a{
    color:white;
}

#buttonbox {
    z-index: 25554;
    position:absolute;
    right:200px;
    top:0;
    width:130px;
    background-color: #222222;
    border-radius: 0 0 5px 5px;
    padding:5px;
    text-align: center;
}

.board-icon
{
    float:right;
    width:100px;
    height:100px;
}
.faved {
    opacity: 100% !important;
    background-color: yellowgreen;
}
.addFav{
    opacity: 50%;
}
.addFav,.closebutton {
    float: right;
    padding-left:20px;
    padding-right:20px;
    background-color:rgba(0,0,0,0.5);
    border:0px;
    margin-right:10px;
    margin-top:5px;
    color:white;
    cursor:pointer;
}
.addFav:hover
{
    background-color:rgba(0,100,0,0.5);
}
.closebutton:hover
{
    background-color:rgba(100,0,0,0.5);
}

.oldmarker {
    font-size: 20px;
    opacity: 0.4;
}
.topicmarker{
    font-size: 20px;
    opacity: 0.9;
}

.rolemarker {
    font-size: 20px;
    opacity: 0.8;
}

.oldmarker > .indicator {
    font-size: 28px;
    position: relative;
    left: -26px;
    bottom: 15px;
    white-space: nowrap;
}



#searchinput {
    border-radius: 20px;
    height: 30px;
    width: 50%;
    margin-top: 5px;
    color: white;
    padding-left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}

#searchinput:focus {
    background-color: rgba(0, 0, 0, 0.9);
}

#statscounter {

    border: 1px solid black;
    z-index: 25555;
    height: 20px;
    position: absolute;
    bottom: 5px;
    right: 20%;
    width: 30%;
    height: 10px;
    color: white;
    border-radius: 5px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    font-family: monospace;
    font-size:8px;
}
.favstatcanvas
{
    width:600px;
    height:400px;
}
.shortname {
    display: inline-block;
    border: 1px solid gray;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 5px;
    padding: 5px;
    font-size: 10px;
    font-family: monospace;
    margin-right: 10px;
}

.longname {
    display: inline-block;
    font-size: 10px;
    font-family: monospace;

}
.identifier {
    display: inline-block;
    font-size: 10px;
    font-family: monospace;
}

#searchbox {

    z-index: 25555;
    height: 20px;
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 20px;
}

.searchResultItem {
    display: block;
    background-color: rgba(0, 0, 0, 0.1);

    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.searchResultItem:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#searchResult {
    border: 1px solid black;
    z-index: 25557;
    height: 20px;
    position: absolute;
    top: 40px;
    left: 50px;
    width: 50%;
    height: 60%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: none;
    overflow-y: auto;
}

#searchResult a {
    color: white;
}

#sideview a {
    color: rgb(200, 100, 100);
}
#favbox,#topicsideview {
    position: absolute;
    z-index: 25556;
    bottom: 40px;
    right: 10px;
    border: 1px solid black;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    width:100px;
    max-height:10px;
    min-height:10px;
    padding:5px;
    padding-top:0;
    filter: drop-shadow(-5px 5px 5px rgba(0,0,0,0.5));
    display:none;

}
#topicsideview.shown{
    display:block;
    width:400px;
    max-height:300px;
    min-height:40px;
    padding:5px;
}
#favbox.openfavs{
    display:block;
    width:400px;
    max-height:300px;
    min-height:40px;
    padding:5px;

}
.favbar
{
    background-color: #222222;
    padding-left:10px;
    font-size:13px;

    text-align: center;


}
.favbar:hover
{
    cursor: nwse-resize;
}
.addFavMini{
    opacity: 50%;
    float:right;
}
.ministats
{
    float:right;
    font-family: monospace;
    font-size:10px ;
}
#favbox{
    overflow-y:scroll;
    border-radius: 5px;
}
#favbox a
{
    color:white;
}
#favbox .favItem
{
    overflow:hidden;
    display: block;
    margin-bottom:4px;
}
#favbox .favItem:hover
{
    cursor:pointer;
    background-color:rgba(255,255,255,0.1);
}
#favbox .shortname,#favbox .longname
{
    display: inline-block;
}
#sideview,#favstats,#traceview {
    border: 1px solid black;
    z-index: 25555;
    top: 100px;
    left: 0px;
    bottom: 0px;
    padding-top: 20px;
    width: 600px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    overflow-y: scroll;
    display: none;
    opacity: 0;
    animation: fade-out 0.5s ease-in forwards;
    padding: 5px;
    border-radius: 0 10px 0 0 ;

    filter: drop-shadow(15px 15px 5px rgba(0,0,0,0.5));

}

#favstats{
    left: auto;
    right: 0px;
}
#topicsideview{
    left: auto;
    right: 0px;
}


#sideview-inside,#favstats-inside {


}
.trace-node,.trace-time,.trace-topic
{
    display: inline-block;
}
.trace-stats
{
    font-size:8px;
    padding-left:20px;
}

.tracecopy
{
    border:1px solid white;
    background-color:rgba(0,0,0,0.5);
}

#sideview.shown,#favstats.shown,#traceview.shown,#topicsideview.shown {
    display: block;
    opacity: 1;
    animation: fade-in 0.5s ease-in forwards;
}

#map {
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    position: absolute;


}

:root {
    --map-tiles-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

@media (prefers-color-scheme: dark) {
    .map-tiles {
        filter: var(--map-tiles-filter, none);
    }
}
@media (max-width: 600px) {
   #sideview,#favstats,#traceview{
       width:auto;
       height:40vh;
       bottom:0;
       right:0;
       left:0;
       top:auto;
   }
    #traceview{
        height:70vh;
    }
    .favstatcanvas
    {
        width:400px;
        height:600px;
    }
    #favstats{
        height:90vh;
    }
    #statscounter{
        display: none;
    }
    #favbox {
      right:0px;
        left:0px;
        width:100px;
        bottom:0px;
        padding:0;
        max-height:15px;
        min-height:15px;
    }
    #favbox.openfavs{

            width:100%;
            max-height:300px;
            min-height:40px;
            padding:0px;
    }
    #favbox .favItem{
        width:100%;
    }
    #favbox .favbar{
        padding:0;
    }
    #buttonbox{
        left:0px !important;
        top:70px;
        width:50px;
    }
    #buttonbox button{
        margin-top:5px;
    }
}