.info{
    position: absolute;
    left: 10px;
    top:90px;
    z-index:999;
    background-color: white;
    border-radius:20px;
    width:320px;
    height:420px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    padding:1rem;
    overflow-x:hidden;
    overflow-y: hidden;
    transition: height 0.3s;
}

[data-theme="dark"] .info {
    background-color: rgb(30, 30, 30);
    box-shadow: 0px 0px 5px rgba(150,150,150,0.4);
}

.info[data-collapsed="true"]{
    height: 95px;
    transition: height 0.3s;
}

.info .search-topbar{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
    height:40px;
    display: flex;
    align-items: center;
    gap:0.5rem;
    padding:3px 15px;
    border-radius: 1vw;
}

[data-theme="dark"] .info .search-topbar{
    box-shadow: 0px 0px 5px rgba(150, 150, 150, 0.4);
    color: rgb(230, 230, 230, 0);
}

.info .search-topbar input{
    border:none;
    outline: none;
    position: relative;
    height:40px;
    font-size: 1rem;
    width:calc(100% - 30px);
    font-family: 'Barlow','OpenSans Condensed','Segoe UI Mod';
}

[data-theme="dark"] .search-topbar input {
    background-color: rgb(20, 20, 20, 0);
    color: rgb(230, 230, 230);
}

.info .search-topbar span{
    user-select: none;
    -webkit-user-select: none;
}

[data-theme="dark"] .info .search-topbar span {
    color: rgb(230, 230, 230);
}

.info .search-topbar input::placeholder{
    color:gray;
    user-select: none;
    -webkit-user-select: none;
}

.info .search-topbar button,
.info .clickbtmbar button{
    background-color: white;
    color: black;
    border:none;
    border-radius: 100%;
    height:35px;
    width:35px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: background-color 0.3s;
}

[data-theme="dark"] .info .search-topbar button,
[data-theme="dark"] .info .clickbtmbar button{
    background-color: rgb(20, 20, 20, 0);
    color: rgb(230, 230, 230);
}

.info .search-topbar button:hover,
.info .clickbtmbar button:hover{
    background-color: rgb(200, 200, 200);
    transition: background-color 0.3s;
}

[data-theme="dark"] .info .search-topbar button:hover,
[data-theme="dark"] .info .clickbtmbar button:hover{
    background-color: rgb(60, 60, 60);
    transition: background-color 0.3s;
}

.info .search-topbar button[data-app="hidden"]{
    transform: scale(0);
    display: none;
    transition: transform 0.3s, background-color 0.4s, display 0.2s;
    transition-behavior: allow-discrete;
}

.info .search-topbar button[data-app="shown"]{
    transform: scale(1);
    display: block;
    transition: transform 0.3s, background-color 0.3s, display 0.2s;
    transition-behavior: allow-discrete;

    @starting-style {
        transform: scale(0);
    }
}

.info .search .options{
    margin-top: 1rem;
    position:absolute;
    height:calc(100% - 4rem - 30px);
    width:calc(100% - 2rem);
    overflow-y: auto;
}

.info[data-collapsed="true"] .search .options{
    display: none;
}

.info .search .options .option{
    font-size: 1rem;
    border: none;
    background: none;
    width:100%;
    text-align: left;
    padding:15px 15px;
    border-radius: 0.5vw;
    cursor: pointer;
    transition: background-color 0.4s;
    font-family: 'Barlow','OpenSans Condensed','Segoe UI Mod';
    color: black;
    position: relative;
}

.info .search .options .option:not(:first-child)::before {
    content: '';
    width: calc(100% - 0.5rem);
    height: 1px;
    background-color: gray;
    position: absolute;
    top:0;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}


[data-theme="dark"] .info .search .options .option{
    color: rgb(230, 230, 230);
}

.info .search .options .option:hover{
    background-color: rgb(200,200,200);
    transition: background-color 0.2s;  
}

[data-theme="dark"] .info .search .options .option:hover{
    background-color: rgb(50, 50, 50);
    transition: background-color 0.2s;  
}

.info .search .options hr{
    margin:0;
}

.info .click-info{
    background-color: white;
    width:320px;
    height:80%;
    position: absolute;
    border-radius:20px;
    padding: 1rem;
    z-index:1002;
}

[data-theme="dark"] .click-info {
    background-color: rgb(20,20,20);
    color: rgb(230,230,230);
}

.info[data-collapsed="true"] .click-info {
    height: 50px;
}

.info[data-collapsed="true"] .click-info .body{
    display: none;
}

.info .click-info[data-open="true"]{
    top:0;
    left:0;
    display: block;
    transition: left 0.3s, display 0.2s;
    transition-behavior: allow-discrete;

    @starting-style {
        left: 100%;
    }
}

.info .click-info[data-open="false"]{
    top:0;
    left:100%;
    display: none;
    transition: left 0.3s, display 0.2s;
    transition-behavior: allow-discrete;
}

.info .click-info .topbar{
    display: flex;
    align-items: center;
    gap:0.5rem;
    margin-bottom: 1.5rem;
}

.info .clickbtmbar button#collapse-info{
    z-index: 999;
}

.info .click-info button#back-search,
.info .clickbtmbar button{
    border:none;
    background: none;
    cursor: pointer;
    font-size: 2rem;
    height:40px;
    width:40px;
    border-radius: 100%;
    transition: background-color 0.3s;
    color: black;
}

[data-theme="dark"] .info .click-info button#back-search,
[data-theme="dark"] .info .clickbtmbar button{
    color: rgb(230, 230, 230);
}

.info .click-info button#back-search:hover,
.info .clickbtmbar button:hover{
    background-color: rgb(200,200,200);
    transition: background-color 0.3s;
}

[data-theme="dark"] .info .click-info button#back-search:hover,
[data-theme="dark"] .info .clickbtmbar button:hover{
    background-color: rgb(50, 50, 50);
    transition: background-color 0.3s;
}

.info[data-collapsed="false"] .clickbtmbar button#collapse-info span{
    rotate: 0deg;
    transition: rotate 0.3s, padding 0.2s;
}

.info[data-collapsed="true"] .clickbtmbar button#collapse-info span{
    rotate: 180deg;
    transition: rotate 0.3s, padding 0.3s;
}

.info .click-info .topbar img#operator-logo{
    border-radius: 5px;
    background-color: rgba(200,200,200,0.3);
}

[data-theme="dark"] .info .click-info .topbar img#operator-logo{
    filter: contrast(0.9);
}

.info .click-info .topbar #info-line{
    height:18px;
    background-color: #e58131;
    /*connections code: linear-gradient(to right, #e58131 0%, #e58131 33%, #2f8d51 33%, #2f8d51 66%, #fbe230 66%, #fbe230 100%)*/
    border-radius: 100vw;
    position: relative;
    margin-top:0.2rem;
    margin-bottom: 0.2rem;
}

.info .click-info .topbar #info-line{
    width: 200px;
    transition: background-color 0.3s;
}


.info .click-info .topbar #info-checking-type{
    margin:0;
}

.info .click-info .topbar #info-checking-type-line{
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

.info .click-info .topbar #info-line img{
    position: absolute;
    user-select: none;
    -webkit-user-select: none;
}

[data-theme="dark"] .info .click-info .topbar #info-line img{
    filter: contrast(0.9);
}

.info .click-info a{
    color: rgb(29, 30, 234);
}

[data-theme="dark"] .info .click-info a{
    color: rgb(65, 65, 245);
}

/*BLOCKQUOTE STYLE*/
.info .click-info blockquote{
    background-color: rgb(200,200,200);
    border-left: 5px solid rgb(150,150,150);
    padding-left: 40px;
    padding-right: 20px;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    margin: 0;
    border-radius: 3px;
}

.info .click-info blockquote p {
    padding-top:0.2rem;
    padding-bottom:0.2rem;
    margin:0;
}

/*SPOILER STYLE*/
.info .click-info .spoiler[data-revealed="false"] {
    background-color: rgb(200,200,200);
    color: rgb(200,200,200);
    user-select: none;
    -webkit-user-select: none;
    border-radius: 3px;
}

.info .click-info .spoiler[data-revealed="true"] {
    background-color: rgb(200,200,200);
    border-radius: 3px;
}

/* WHEN SHOWING A LINE */
.info .click-info[data-showing="line"] :is(img#infodot1, img#infodot2, img#infodot3) {
    width:25px;
    height:25px;
    transition: width 0.3s, height 0.3s, left 0.5s, right 0.5s;
    top:50%;
    bottom:50%;
}

.info .click-info[data-showing="line"] .topbar #info-line img#infodot1{
   left:25%;
   right:75%;
   transform: translateX(-25%) translateY(-50%);
}

.info .click-info[data-showing="line"] .topbar #info-line img#infodot2{
    left:75%;
    right:25%;
    transform: translateX(-75%) translateY(-50%); 
}

.info .click-info[data-showing="line"] .topbar #info-line img#infodot3{
    left:100%;
    right:0%;
    transform: translateX(-100%) translateY(-50%); 
    width:15px;
    height:15px;
    opacity: 0;
    transition: width 0.3s, height 0.3s, left 0.5s, right 0.5s, opacity 0.3s;
}

/* WHEN SHOWING A STATION/STOP */
.info .click-info[data-showing="station"] :is(img#infodot1, img#infodot2, img#infodot3) {
    top:50%;
    bottom:50%;
    transition: width 0.3s, height 0.3s, left 0.5s, right 0.5s;
}

.info .click-info[data-showing="station"] :is(img#infodot2, img#infodot3) {
    width:15px;
    height:15px;
}

.info .click-info[data-showing="station"] .topbar #info-line img#infodot1{
    left:15%;
    right:85%;
    transform: translateX(-15%) translateY(-50%);
    width:28px;
    height:28px; 
 }
 
 .info .click-info[data-showing="station"] .topbar #info-line img#infodot2{
    left:50%;
    right:50%;
    transform: translateX(-50%) translateY(-50%); 
 }

 .info .click-info[data-showing="station"] .topbar #info-line img#infodot3{
    left:85%;
    right:15%;
    transform: translateX(-85%) translateY(-50%); 
    opacity: 1;
    transition: width 0.3s, height 0.3s, left 0.5s, right 0.5s, opacity 0.3s;
}

/*SCROLLBAR FOR INFO SCREEN*/
.info .click-info .body {
    width:100%;
    height:80%;
    overflow: auto;
}

.info .click-info .body::-webkit-scrollbar{
    display: block;
    width: 8px;
    background-color: gray;
    border-radius: 100vh;
}

.info .click-info .body:hover::-webkit-scrollbar-track{
    display: block;
    width:6px;
    background-color: gray;
    border-radius: 100vh;
}
.info .click-info .body:hover::-webkit-scrollbar-track-piece{
    display: block;
    width:6px;
    border-radius: 100vh;
    background-color: gray;
}

.info .click-info .body::-webkit-scrollbar-thumb {
    background-color: lightgray;
    border-radius: 100vh;
    width:3px;
    border: 2px solid gray;
}

.info .clickbtmbar{
    position: absolute;
    bottom:5px;
    right:10px;
}