@font-face{font-family:"DIN";src:url("../fonts/DNC57.woff"); }

html, body, svg text {
    margin: 0;
    font-family: 'PT Sans', sans-serif;
}
.layers, .map:after, .zoom a i {
    width: 100%;
    height: 100%;
}
html, body, #top, #wrap {
    width: 100%;
    min-width: 900px;
}
#wrap {
    right: 0;
    top: 0;
    min-height: 940px;
    bottom: 0;
}
#wrap, .zoom a, .layers, #main .map, .map:after, #top, #opts, #cols h3:before, svg, .layers, #close i,
#stations>div:before {
    left: 0;
}

.mcc {
    left: 50%;
    top: 50%;
    width: 190px;
    height: 80px;
    margin-left: -75px;
    margin-top: -70px;
}

.zoom {
    right: 30px;
    width: 40px;
    top: 50%;
    height: 160px;
    margin-top: -60px;
}
.zoom hr {
    left: 50%;
    width: 4px;
    top: 50px;
    bottom: 50px;
    border: none;
    margin: 0;
    margin-left: -2px;

}
.zoom .in {
    top: 0;
}
.zoom .out {
    bottom: 0;
}
#top p, i span, h1, h2, #expl span, #opts div a, #title, svg, #authors {
    width: 100%;
}
.transport i span {
    width: 200%;
    margin-left: -50%;
}
.single, #cols div, #tip, .transport p span {
    white-space: nowrap;
}
h1, h2, h3, h4 {
    font-family: DIN, sans-serif;
}
h1, h2, h3, h4, #tip b {
    font-weight: normal;
}
#intro p {
    font-weight: 400;
    width: 620px;
}
#tip i, .transport i, .zoom i {
    font-style: normal;
}
.aa {
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
}
.subpx {
    -webkit-font-smoothing: subpixel-antialiased;
    font-smoothing: subpixel-antialiased;
}
h2 u, #authors p u, h2, h4 u, .zoom i {
    text-decoration: none;
}

#intro u {
    width: 10px;
    height: 10px;
    bottom: 25px;
    left: 50%;
}

.zoom i:before {
    width: 20px;
    height: 2px;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -1px;
}
.zoom .in i:after {
    height: 20px;
    width: 2px;
    left: 50%;
    top: 50%;
    margin-left: -1px;
    margin-top: -10px;
}


h2 u, h4 u {
    font-size: 50px;
}
h1 {
    font-size: 40px;
}
h2, .zoom i, #expl h3 span, #info b {
    font-size: 30px;
}
#stations div, #intro p, h4, h5, .mcc {
    font-size: 20px;
}
html, #expl span {
    font-size: 15px;
}
h4 span, i.info, .transport i, #route a, #skip {
    font-size: 12px;
}

h5 {
    height: 60px;
}

#expl h2 {
    margin-top: 10px;
}

h2, #expl h3 span, h5 {
    line-height: 24px;
}
#title h1 {
    line-height: 100px;
}
#stations, #stations>div, #loop {
    line-height: 50px;
}
#opts div a, #info b, .zoom i {
    line-height: 40px;
}
#cols {
    line-height: 22px;
}
#tip, #route a {
    line-height: 20px;
}
h4 {
    line-height: 17px;
}

#stations, #route a, #tip i, .mcc {
    font-weight: bold;
}

#expl {
    height: 90px;
    margin-top:20px;
}
#expl p {
    margin-top: 5px;
}
#expl>span {
    top: 50px;
}
h1, h2, #expl span {
    margin: 0;
}
h1, h2, h3, #skip, #route a b {
    text-transform: uppercase;
}
h3, h4, #route a, h1, h2, #expl span, #top p, #tip i, .transport i, .transport p, .zoom, .mcc {
    text-align: center;
}
#top .rail p, #intro p, #authors span.name, h5 {
    text-align: left;
}
#authors span {
    text-align: right;
}
h3 {
    width: 76%;
    margin-left: 12%;
    margin-bottom: 20px;
}
#tip b, #route a b {
    letter-spacing: 1px;
}
svg circle, #stations>div, #loop, #opts a, a, #main span, #route a, #tip, #start, .intro.started #wrap, .zoom {
    cursor: pointer;
}
.layers, .map {
    cursor: grab;
    cursor: -webkit-grab;
}
.abs, svg, #main, #main div, #stations>div>i, *:before, *:after, #loop, #opts div, #loop i, .map, .map:after,
#stations>div:not(:last-child):after, #top, #tip, #stations span, #stations>div:before, .has-info #stations, #start,
#expl p, #expl h2, #expl>span, #route a, #route a i, #route a i:before, #route a i:after, #cols, h3:before, #info #dest,
#intro p, #intro a, #next:before, #next:after, #wrap, a.authors, a.authors:before, a.authors:after, .zoom a, .zoom hr, .zoom u,
.zoom i:before, .zoom i:after, #zoom u, #intro u, #cols i hr, #tip .info:before, .transport p span, .mcc {
    position: absolute;
}
#tip .info:before {
    left: -5px;
    top: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid #fff;
    -webkit-animation: pulsate 2s linear infinite;
    animation: pulsate 2s linear infinite;
}
@keyframes pulsate {
    0% {transform: scale(.5);}
    50% {transform: scale(.8)}
    100% {transform: scale(1.2); opacity: 0}
}
@-webkit-keyframes pulsate {
    0% {-webkit-transform: scale(.5);}
    50% {-webkit-transform: scale(.8)}
    100% {-webkit-transform: scale(1.2); opacity: 0}
}

.zoom, #opts {
    position: fixed;
}

#info #dest {
    right: 0;
}

#cols i hr {
    top: 6px;
    left: 50%;
    width: 4px;
    height: 16px;
    margin-top: 2px;
    margin-left: -2px;
    border: 2px solid;
    box-sizing: border-box;
}


#cols i.transit {
    width: 6px;
    height: 6px;
    margin-left: 4px;
    margin-right: 2px;
    margin-bottom: 4px;
    border-width: 3px;
}
#cols i.transit hr {
    margin-top: -6px;
    height: 24px;
}
#cols i.transit.loop {
    width: 8px;
    height: 8px;
    margin: 3px;
}

a.authors {
    top: 30px;
    right: 30px;
}
.zoom u {
    width: 20px;
    height: 6px;
    left: 50%;
    top: 50px;
    border: 2px solid #fff;
    margin-left: -12px;
}
a.authors:before {
    width: 4px;
    height: 4px;
    left: 50%;
    margin-left: -2px;
    top: 50%;
    margin-top: -8px;
}
a.authors:after {
    left: 50%;
    width: 2px;
    margin-left: -1px;
    margin-top: -2px;
    height: 12px;
    top: 50%;
}

#skip {
    bottom: 20px;
}
#next {
    right: 0;
    top: 50%;
    margin-top: -25px;
}
body:not(.no-acc) .layers {
    will-change: transform;
}
.layers, #main .map, .map:after {
    top: 0;
}
.map:after {
    background: radial-gradient(rgba(248,248,248,0) 45%, rgba(248,248,248,1) 65%);
}
html {
    background: rgb(248,248,248);
}
.zoom u {
    border-color: rgb(248,248,248);
}

#main .map {
    background-image: url(../images/map.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
}

#stations, #expl, h3, #stations>div, h3 span, #tip i, #info, #intro, #intro div, #authors p, #route {
    position: relative;
}

#cols {
    width: 600px;
    left: 50%;
    margin-left: -300px;
    top: 80px;
}

.transport p {
    margin-top: 0;
}
#top .rail p {
    width: 140px;
    margin-left: 10px;
}
.transport .rail i {
    background-position: -120px 0;
}

.transport .tram i {
    background-position: -80px 0;
}
.transport .trolley i {
    background-position: -40px 0;
}
.transport div {
    width: 40px;
    margin-right: 40px;
    margin-bottom: 20px;
}
.transport div.rail {
    width: auto;
}

h4 {
    width: 25%;
    margin-top: 0;
}
.with-margin {
    margin-left: 12.5%;
}
#cols div, #info, #tip i, #tip b, #info b, #map, .transport, .transport p, .transport div, #authors span {
    vertical-align: top;
}
#cols div {
    width: 50%;
}
#cols .rows {
    margin-left: 50%;
}

h3 span {
    padding-left: 5px;
    padding-right: 5px;
}


.centered {
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#top, #opts, #cols h3:before {
    width:100%;
    top: 0;
}
#title {
    height: 100px;
}

#opts {
    bottom: 0;
    background: rgba(51,51,51,.5);
}

#opts div {
    left: 50%;
    margin-left: -200px;
    width: 400px;
    top: 20px;
    bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}
#opts div a {
    height: 40px;
}
#opts div a i, #cols i {
    height: 14px;
    width: 14px;
    border: 4px solid;
}
#opts div a i {
    margin-right: 8px;
    transform: translate(0, 1px);
}
#cols i {
    transform: translate(-8px, 2px);
}
#opts div a:not(:last-child) {
    border-bottom: 1px solid #ddd;
}
#stations>div>i, #loop i {
    width: 40px;
    height: 40px;
    right: 5px;
    top: 5px;
}
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#cols h3:before, .map:after, .close:before, .close:after, .plus:before, .plus:after, #stations>div:before,  .minus:before,
.minus:after, #route a i:before, #route a i:after, #next:before, #next:after, a.authors:before, a.authors:after,
.zoom i:before, .zoom i:after, #tip .info:before {
    content: '';
}
.close:before, .close:after, .plus:before, .plus:after, .minus:before, .minus:after, #route a i:before,
#route a i:after, #next:before, #next:after {
    width: 45%;
    height: 3px;
    left: 50%;
    top: 50%;
}
.close:before, .close:after, .plus:before, .plus:after, .minus:before, .minus:after, #next:before, #next:after {
    transform: translate(-50%, -50%);
}
.close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.empty .close:before {
    transform: translate(-72%, -25%) rotate(45deg) scaleX(.75);
}
.empty .close:after {
    transform: translate(-28%, -25%) rotate(-45deg) scaleX(.75);
}
.plus:before {
    transform: translate(-50%, -50%) rotate(-90deg);
}
.minus:before {
    transform: translate(-50%, -50%) rotate(-90deg) scaleX(.1);
}

#compare i:before {
    transform: translate(-72%, -25%) rotate(45deg) scaleX(.75);
}
#compare i:after {
    transform: translate(-28%, -25%) rotate(-45deg) scaleX(.75);
}

#route a#close i:before {
    width: 60%;
    transform: translate(-50%, -50%) rotate(45deg);
}
#route a#close i:after {
    width: 60%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

#next:before {
    transform: translate(-40%, -145%) rotate(45deg) scaleX(.75);
}
#next:after {
    transform: translate(-40%, 145%) rotate(-45deg) scaleX(.75);
}
#route.open #compare i:before {
    transform: translate(-72%, -25%) rotate(-45deg) scaleX(.75);
}
#route.open #compare i:after {
    transform: translate(-28%, -25%) rotate(45deg) scaleX(.75);
}

svg, .layers {
    top: 0;
    height: 100%;
}
.gray, .inactive, .selected, .intro #main {
    pointer-events: none;
}
#tip {
    height: 30px;
    border-radius: 30px;
    margin-top: -15px;
    margin-left: -15px;
}
#tip.has-info {
    margin-left: -39px;
}
#tip i {
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    margin-top: 6px;
    margin-left: 6px;
}
#tip b {
    margin-right: 12px;
    margin-left: 10px;
    margin-top: 5px;
}
svg circle {
    transform-origin: 50% 50%;
}

circle.selected {
    opacity: 1;
    -webkit-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -ms-transform: scale(1.5);
    -o-transform: scale(1.5);
    transform: scale(1.5);
}
circle, i:before, i:after, span, #stations div, #stations div:before, a i, #intro u {
    transition: all .25s ease-out;
}
div, svg, a i, a, p {
    transition: all .5s ease-out;
}
#stations div span, #change, .layers {
    transition: none;
}
#tip {
    transition: opacity .25s ease-out;
}

#stations {
    margin-top: 30px;
    margin-bottom: 10px;
}

#stations span {
    top: 0;
    left: 20px;
    right: 0;
    bottom: 0;
}
#stations>div {
    width: 48%;
    margin-left: 1%;
    margin-right: 1%;
    border-radius: 25px;
}
#stations, #stations>div, #loop {
    height: 50px;
}

.authors #route.open, .authors #route, .authors #intro, .intro #route, body:not(.intro) #intro, .authors #route.comparable.has-path, .authors #route.comparable.has-path.open {
    max-height: 0;
    opacity: 0;
}
#intro, #route.has-path {
    max-height: 190px;
}
#route {
    max-height: 170px;
}
#route.comparable.has-path {
    max-height: 270px;
}
#route.open, #route.comparable.has-path.open {
    max-height: 900px;
}

#loop, #expl, #wrap, #intro, #route, #authors {
    overflow: hidden;
}
svg {
    overflow: visible;
}
#opts div {
    overflow-y: scroll;
}

@media screen and (max-height: 1000px) {
    html {
        overflow-y: scroll;
    }
}

div, i, a {
    box-sizing: border-box;
}
#main {
    left: 50%;
    top: 550px;
    width: 500px;
    height: 500px;
    margin-left: -250px;
}
#stations, #loop, #info, #intro, #authors p {
    width: 720px;
}
#authors span {
    width: 50%;
}
#stations, #loop, #info, #intro, #authors p {
    left: 50%;
    margin-left: -360px;
}

#intro div {
    height: 170px;
    padding-top: 25px;
    padding-bottom: 25px;
}
h5 {
    margin-top: 10px;
    margin-bottom: 10px;
}

#loop {
    width: 150px;
    top: 60px;
    padding-left: 10px;
}
#stations>div:before {
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    border-color: transparent;
    background-color: transparent;
}

#loop, #opts div {
    border-radius: 4px;
}
#info {
    -webkit-transform: translate(0, 30px);
    -moz-transform: translate(0, 30px);
    -ms-transform: translate(0, 30px);
    -o-transform: translate(0, 30px);
    transform: translate(0, 30px);
}
.authors #authors {
    height: 380px;
}
/* COLORS */

#loop, h1, h3 span, #stations, #tip, #authors .name, .zoom, #authors p u {
    color: #fff;
}
a.authors, .zoom u {
    border-color: #fff;
}

.gray circle, .gray line, circle.inactive, line.inactive {
    stroke: #ccc;
    fill: #ccc;
    r: .1;
}
.half {
    stroke: #fff !important;
}

#cols span, #skip, #authors {
    color: #999;
}
.mcc {
    color: #c00;
}

#start {
    background-color: #48687D;
}

#cols h3:before {
    top: 12px;
    height: 2px;
}

html, body, #stations .empty, #opts div, #cols h3 span, #tip i {
    color: #333;
}

#top, #opts div, .close:before, .close:after, .plus:before, .plus:after,
.minus:before, .minus:after, .zoom i:before, .zoom i:after,
#opts div a i, #cols i, #tip i, h3 span, a.authors:before, a.authors:after {
    background: #fff;
}
#map div {
    background: #eee;
}

#loop, h1, #route a i:before, #route a i:after, h3:before, .empty .close:before, .empty .close:after,
#next:before, #next:after, #authors, .zoom i, .zoom hr, .zoom u, #intro u {
    background: #333;
}

#tip {
    background: rgba(0, 0, 0, .8);
}

#stations>div.empty:before {
    border-color: #333;
}

#stations, #stations>div, #loop {
    border-color: rgba(0,0,0,.2);
}


#loop, #opts div, #top, #start {
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
}
i.info {
    border: none !important;
}

#info>i {
    border-width: 10px;
    border-style: solid;
    border-color: #333;
    margin-right: 15px;
}
#route a i, #next, #info i, .transport i, #opts div a i, #cols i, #tip i, a.authors, a.authors:before, .zoom i,
#intro u, #tip .info:before {
    border-radius: 100%;
}
#info i, .transport i, a.authors, .zoom a, #close i {
    width: 40px;
    height: 40px;
}
#compare i, #next {
    width: 50px;
    height: 50px;
}
#info b {
    height: 40px;
}
#from {
    width: 420px;
}
#map {
    width: 440px;
    margin-top: 10px;
    margin-right: 40px;
}
#map div {
    width: 100%;
    height: 500px;
}
#change {
    width: 720px;
    height: 105px;
    background: url(../images/change.png?);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: 0 0;
    margin-bottom: 20px;
    margin-top: 20px;
}
#change.alt {
    background-position: 0 -105px;
}
.transport {
    margin-top: 10px;
}
.transport i span {
    margin-top: 45px;
}
.transport i {
    background: url(../images/transport.png);
    background-size: auto 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    margin-bottom: 30px;
}



#start {
    width: 640px;
    height: 640px;
    left: 50%;
    top: 50%;
    margin-top: -320px;
    margin-left: -320px;
    background-image: url(../images/start.png);
    background-size: 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    border-radius: 12px;
}


/* STATES */
.started #start, .intro .zoom {
    opacity: 0;
}
body:not(.started) #top {
    top: -300px;
}
body:not(.started) #main {
    margin-top: 300px;
}
#info, #authors {
    height: 0;
}
#main svg, .rail.hidden+br, .open a b, a b.if-open, .mcc, #route.has-info.open #stations, #route.has-info.open #expl {
    display: none;
}
#cols div, #opts div a i, #cols i, #tip i, #tip b, #stations>div, h4, .transport .rail p, .transport div,
#info i, #info b, .transport i, #map, .transport, .transport span, .zoom a, .zoom a i, #authors span {
    display: inline-block;
}
.scheme #main svg, #opts div a, .open a b.if-open, .scheme.only-loop .mcc {
    display: block;
}

.has-info #stations, .has-info #expl, #info,
.has-path #expl p, #expl h2, #expl span, #route a {
    opacity: 0;
    z-index: -1;
}
i.info:before {
    z-index: -1;
}

.has-info #info, #stations, #expl, #route.has-info.open #close,
#expl p, .has-path #expl h2, .has-path #expl span, #route.has-path.comparable #compare {
    opacity: 1;
    z-index: 2;
}

.has-path.comparable #expl {
    height: 170px;
}

#compare {
    width: 100px;
    margin-left: -50px;
    bottom: 10px;
    left: 50%;
}
#close {
    width: 40px;
}
#route a#close {
    bottom: auto;
    left: auto;
    margin-left: 0;
    right: 30px;
    top: 30px;
}
#compare i {
    top: -50px;
    left: 50%;
    margin-left: -25px;
}
#stations>div:before, #route a i, #next, a.authors {
    border-style: solid;
}
#stations>div:before, #route a i, #next {
    border-width: 3px;
}
a.authors {
    border-width: 2px;
}

.loop, .only-loop line, .only-loop circle {
    opacity: 0;
}

.has-loop .loop, .only-loop line.loop, .only-loop circle.loop {
    opacity: 1;
}
.hidden {
    display: none !important;
}
#cols h3 span {
    z-index: 1;
}
#tip, i.info {
    z-index: 2;
}
#opts {
    z-index: 3;
}

@media only screen and (max-device-width: 800px) {
    .map, a.authors, #route a b {
        display: none;
    }
    #stations div, h2 {
        font-size: 36px;
    }
    html, #expl span, h4 span, i.info, .transport i, #route a, #intro p, h5, .mcc {
        font-size: 30px;
    }
    .rows, #expl span, h4 {
        font-size: 20px;
    }
    #skip {
        font-size: 20px;
    }
    #compare {
        bottom: 20px;
    }
    #expl {
        height: 110px;
    }
    #intro div {
        height: 280px;
    }
    #route {
        max-height: 340px;
    }
    #intro, #intro, #route.has-path {
        max-height: 320px;
    }
    #intro p {
        width: 620px;
    }
    #wrap {
        background: #eee;
    }
    #main {
        top: 650px;
    }
    body:not(.started) #top {
        top: -400px;
    }
    .mcc {
        margin-top: 20px;
    }
    #stations>div {
        margin: 0;
        width: 100%;
    }
    #stations>div, #opts div a {
        height: 60px;
        line-height: 60px;
    }
    #stations>div, #stations>div:before {
        border-radius: 30px;
    }
    #opts div a i {
        margin-right: 20px;
        height: 20px;
        width: 20px;
    }
    #stations, #loop {
        height: 140px;
    }
    #opts div {
        left: 25%;
        width: 50%;
        margin-left: 0;
    }
    #stations>div>i {
        right: 10px;
        top: 10px;
    }
    #route.comparable.has-path {
        max-height: 500px;
    }
    .transport {
        margin-right:-40px;
    }
    #start {
        width: 900px;
        height: 900px;
        margin-left: -450px;
        margin-top: -450px;
    }
    html {
        overflow: hidden;
    }
}