.floating-box {
    position: absolute;
    z-index:999;
    background-color: white;
    color: black;
    border-radius:20px;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
    font-family: 'Barlow', 'OpenSans Condensed', 'Segoe UI Mod';
}

[data-theme="dark"] .floating-box {
    background-color: rgb(30, 30, 30);
    color: rgb(230, 230, 230);
    box-shadow: 0px 0px 5px rgba(150,150,150,0.4);
}

.floating-box h2 {
    text-align: center;
    margin:0;
    padding: 0;
    
}

.legend{
    bottom: 25px;
    right: 25px;
    user-select: none;
    -webkit-user-select: none;
}

.legend p.ldesc{
    margin-bottom: 0;
    margin-left:15px;
}

.legend p.openline{
    width:201px;
    height:12px;
    margin: 0.2rem 15px 1rem 15px;
    background-color:gray;
    border-radius: 100vw;
    position: relative;
}

.legend p.closedline{
    width:201px;
    height:12px;
    margin: 0.2rem 15px 1rem 15px;
    background-color:rgb(128,128,128,0.5);
    border-radius: 100vw;
    position: relative;
}

.legend p.constline{
    width:201px;
    height:12px;
    margin: 0.2rem 15px 1rem 15px;
    color:gray;
    border-radius: 100vw;
    position: relative;
    padding-bottom: 10px;
}

.legend p img.imgmetro1{
    width:18px;
    height:18px;
    position: absolute;
    left:25%;
    right:75%;
    bottom:50%;
    top:50%;
    transform: translateY(-50%) translateX(-75%);
}

.legend p img.imgmetro2{
    width:18px;
    height:18px;
    position: absolute;
    left:75%;
    right:25%;
    bottom:50%;
    top:50%;
    transform: translateY(-50%) translateX(-25%);
}

.control {
    width: 168px;
    height: 215px;
    top: 25px;
    right: 25px;
}

.control h2 {
    margin-bottom: 7px;
    font-size: 1.2em;
}

.control .control-tabs {
    display: flex;
    justify-content: center;
}

.control .control-tab {
    background-color: white;
    color: black;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    overflow: clip;
}

.control .control-tab.active::before {
    content: '';
    width: 95%;
    height: 5px;
    position: absolute;
    background-color: black;
    bottom: -2px;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    border-radius: 100vh;
}

[data-theme="dark"] .control .control-tab {
    background-color: rgb(30, 30, 30);
    color: rgb(230, 230, 230);
}

[data-theme="dark"] .control .control-tab.active::before {
    background-color: rgb(230, 230, 230);
}

.control .control-tab:is(:hover, :focus-visible) {
    background-color: rgb(200, 200, 200);
    transition: background-color 0.3s;
}

[data-theme="dark"] .control .control-tab:is(:hover, :focus-visible) {
    background-color: rgb(50, 50, 50);
    transition: background-color 0.3s;
}

.control .control-frame {
    padding: 0 10px;
    overflow: auto;
    max-height: 185px;
}

.control-layers-input {
    display: flex;
    flex-direction: column;
}

.control-layers-input label {
    font-size: 15px;
}

.control .control-frame.settings {
    display: none;
}

.control .control-frame .setting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.control .control-frame select {
    font-size: 15px;
    background-color: rgb(150, 150, 150);
    color: white;
    border: 2px solid black;
    outline: none;
    border-radius: 8px;
    padding: 4px 8px;
}

[data-theme="dark"] .control .control-frame select {
    border: 2px solid white;
}

/*CONTROL FRAME SCROLLBAR*/
.control .control-frame::-webkit-scrollbar{
    display: block;
    width: 8px;
    background-color: gray;
    border-radius: 100vh;
}

.control .control-frame:hover::-webkit-scrollbar-track{
    display: block;
    width:6px;
    background-color: gray;
    border-radius: 100vh;
}
.control .control-frame:hover::-webkit-scrollbar-track-piece{
    display: block;
    width:6px;
    border-radius: 100vh;
    background-color: gray;
}

.control .control-frame::-webkit-scrollbar-thumb {
    background-color: lightgray;
    border-radius: 100vh;
    width:3px;
    border: 2px solid gray;
}