/* FLEET list */
.fleet-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-gap: 8px;
}

.fleet-container .fleet-locomotive {
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.46);
    box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.46);
}

.fleet-container .header-wrapper {
    min-width: 0;
    max-width: 100%;
    padding: 0.4rem;
}

.fleet-container .header-wrapper .m-text {
    font-size: 13px;
    line-height: 14px;
}

.fleet-container .fleet-locomotive .img-wrapper {
    box-shadow: 1px -1px 28px -5px rgba(0,0,0,0.35) inset;
    -webkit-box-shadow: 1px -1px 28px -5px rgba(0,0,0,0.35) inset;
    -moz-box-shadow: 1px -1px 28px -5px rgba(0,0,0,0.35) inset;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.fleet-container .fleet-locomotive .bottom-wrapper {
    background-color: var(--gray);
    width: 100%;
    border-radius: 0 0 10px 10px;
    padding: 7px;
}

.fleet-container .fleet-locomotive .bottom-wrapper .number {
    min-width: 20px;
    height: 20px;
    padding-left: 2px;
    padding-right: 2px;
    border: 2px #2c4a88 solid;
    z-index: 1;
    text-align: center;
    background-color: #FFFFFF;
    line-height: 16px;
    font-family: barlow;
    font-size: 14px;
    color: #2c4a88;
}

@media (max-width: 480px) {
	.fleet-container .header-wrapper {
        padding: 0.4rem 0.25rem;
    }
}

/* FLEET list end */

.route-popover-line {
    border-top:2px #2E568D solid;
}

.popover-circle {
    width:100px;
    height:100px;
    border:1px black solid;
    border-radius:9999px;
    position:relative;
    display:none;
    margin:0 auto;
}

.route-popover-stop-line-id {
    width:100%;
    position:relative;
}

.route-popover-text {
    position:relative;
    height:80px;
}

.route-popover-text-content {
    transform: rotate(-60deg);
    transform-origin: top left;
    position:absolute;
    bottom:0px;
    padding-left:8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width:65px;
}

.route-popover-text-content-large {
    transform: rotate(-50deg);
    transform-origin: top left;
    position:absolute;
    bottom:0px;
    padding-left:-5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width:85px;
}

.introHelper {
    font-family: 'montserrat';
    position: absolute;
    width: 300px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 99999;
    box-shadow: 0px 10px 15px 0px rgba(0,0,0,0.75);
    border-radius: 9px;
}

.trackIndicator {
    -webkit-transition: all 1s linear;
    -moz-transition: all 1s linear;
    -o-transition: all 1s linear;
    transition: all 1s linear;
}

.rotateTrackActive {
    transform: rotate(-90deg);
}
.rotateTrackRight {
    transform: rotate(90deg);
}
.rotateTrackNorm {
    transform: rotate(0deg);
}

#line-track-c {
    -webkit-transition: all 1s linear;
    -moz-transition: all 1s linear;
    -o-transition: all 1s linear;
    transition: all 1s linear;
}

.carriage-marker {
    width: 30px !important;
    height: 30px !important;
    font-weight:bold;
    border-radius: 18px;
    border: 2px solid #ef3232;
    text-align: center;
    color: #ef3232;
    background-color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height:25px;
}

@keyframes fade {
    from { opacity: 0.5; }
}

.marker-stop-anim {
    animation: fade 400ms infinite alternate;
}

.row-hover:hover {
    background-color:#F5F5F5;
    cursor:pointer;
}

.modal-footer--sticky {
    position: sticky;
    bottom: 0;
    background-color: inherit; /* [1] */
    z-index: 1055; /* [2] */
}

.border-buy {
    border-top: 3px #0D6EFD solid;
}

.border-sell {
    border-top: 3px #DC3545 solid;
}

.terminal-bg {
    background-image: url("../img/bg/arrival-backdrop.png");
    background-size: cover;
}

.rule {
    height: 4px;
    background: #000;
}

.rule:before, .rule:after {
    content: '';
    height: 10px;
    width: 10px;
    border-radius: 10px;
    float: left;
    background: #000;
    margin-top: -3px;
}
.rule:after {
    float: right;
}

.attribution-padding {
    margin-left:100px !important;
}

#slider .ui-slider-handle {
    outline: 0;
    background: #2F3E7A;
    border-radius: 50%;
    top: -.6em;
}

#slider.ui-slider-horizontal {
    top: 1em;
    left: 5%;
    height: .1em;
    width: 90%;
    border: none;
    background: #FFFFFF;
}

.diagonal-bg {
    background: repeating-linear-gradient(-45deg,#fff,#fff 3px,#d8d8d8 0,#fff 5px);
}
#fuel-slider .ui-slider-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    outline: 0;
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    height:30px;
    top:3px;
    width:11px;
    transform: translateX(50%);
    cursor: pointer;
}
#fuel-slider .ui-slider-handle:after {
    content: "";
    display: block;
    width: 1px;
    height: 60%;
    background-color: darkgray;
    border-radius: 5px;
}

#fuel-slider.ui-slider-horizontal {
    top: 1em;
    left: 5%;
    height: 40px;
    width: 90%;
    border: none;
    border-radius:5px;
    border:2px #141C54 solid;
}

.measuring-line {
    position: relative;
    height: 25px;
    border-left: 1px solid #a6a5a5;
    border-right: 1px solid #a6a5a5;
    width: 98%;
}
.measuring-line__center {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #a6a5a5;
    transform: translateY(-50%);
}

.stop-dot-location {
    position:absolute;
    width:13px;
    height:13px;
    background-color:red;
    border-radius:999px;
    border: 1px black solid;
}

.stop-dot-city {
    position:absolute;
    height:100px;
    width:120px;
    transform: rotate(-70deg);
}

.android-rate-prompt {
    position:absolute;
    z-index:999999;
    width:350px;
    left:calc(50% - 175px);
    top:50px;
    background-color:#0D175D;
    border:1px black solid;
    border-radius:5px;
    padding:2px;
}

@-webkit-keyframes uparrow {
    0% { -webkit-transform: translateY(0); opacity: 0.4 }
    100% { -webkit-transform: translateY(-0.4em); opacity: 0.9 }
}

.intro-arrow {
    border-color:transparent;
    border-style:solid;
    border-width:0 2em;
    display:block;
    height:0;
    margin:10em auto;
    opacity:0.4;
    text-indent:-9999px;
    transform-origin: 50% 50%;
    width:0;
}
.intro-up {
    -webkit-animation: uparrow 0.6s infinite alternate ease-in-out;
    border-bottom:2em solid #00b6f1;
}

.map-opa {
    opacity: 0.3 !important;
}

.leaflet-tile-pane {
    opacity: 1;
}

.leaflet-control-minimap {
    margin-top:55px !important;
    margin-left:2px !important;
}

#game-preloader {
    position:absolute;
    top:0px;
    left:0px;
    z-index:99999999;
    height:100vh;
    width:100%;
    background-size:cover;
    background-repeat:no-repeat;
    background-position: center center;
}

@media (max-width: 600px) {
    .preloader-bg {
        background-image:url("/assets/img/bg/train-bg-image-mob.jpg");
    }
}

@media (min-width: 600px) {
    .preloader-bg {
        background-image:url("/assets/img/bg/train-bg-image.jpg");
    }
}
