/*@import url("//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css");*/

* {
    font-family: sans-serif;
    -webkit-appearance: none;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

a {
    color: #5b7ce5;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.b-fa:before, .a-fa:after {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,body {
    height: 100%;
	margin: 0;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

body {
    box-sizing: border-box;
    padding-top: 102px;
    background-color: #ddd;
    font-size: 14px;
    line-height: 1.428571429;
}

body.search {
    padding-top: 47px;
}



dl > dt > .centerstop {
    font-family: FontAwesome;
    font-size: 0;
}

dl > dt > .centerstop:after {
    content: "\f207";
    font-size: 12px;
    line-height: 12px;
    color: white;
    background-color: #1e50a3;
    padding: 3px;
    border-radius: 3px;
}

dl > dt > .crowded {
    font-size: 11px;
    background-color: red;
    color: white;
    padding: 0 4px;
    border-radius: 3px;
}

nav {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(245,245,245,.95);
    border-bottom: 1px solid #ccc;
    height: 47px;
    overflow: hidden;
}

nav > form {
    margin: 0;
    list-style: none;
    padding: 8px;
}

nav > form > input {
    border-radius: 3px;
}

nav > form > input[type="text"] {
    border: none;
    width: 100%;
    padding: 5px 10px;
    text-align: center;
    box-sizing: border-box;
}

nav > form > input[type="text"]:focus, 
nav > form > input[type="text"]:valid {
    text-align: left;
}

nav > form > input[type="submit"] {
    visibility: hidden;
}

nav > div {
    line-height: 46px;
    font-size: 17px;
    padding: 0 10px;
}

nav > div.refresh {
    float: right;
}

nav > div.back,
nav > div.home {
    float: left;
}

nav > ul {
    margin: 0;
    list-style: none;
    padding: 7px;
}

nav > ul > li {
    display: inline-block;
    border-right: 1px solid #5b7ce5;
    border-top: 1px solid #5b7ce5;
    border-bottom: 1px solid #5b7ce5;
}

nav > ul > li:first-of-type {
    border-left: 1px solid #5b7ce5;
    border-radius: 3px 0 0 3px;
}

nav > ul > li:last-of-type {
    border-radius: 0 3px 3px 0;
}

nav > ul > li > a {
    padding: 0 15px;
    font-size: 17px;
    line-height: 30px;
}

nav > ul > li.now {
    background-color: #5b7ce5;
}

nav > ul > li.now > a {
    color: white;
}

div.routetitle,
div.stoptitle {
    position: fixed;
    z-index: 2;
    top: 47px;
    left: 0;
    right: 0;    
    background-color: rgba(238,238,238,.95);
    border-bottom: 1px solid #ddd;
    padding: 5px 10px;
}

div.routetitle > h1,
div.stoptitle > h1 {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
}

div.routetitle > h1:before {
	content: "\f207";
    margin-right: 7px;
}

div.routetitle > h1.r {
    color: #ff2650;
}

div.routetitle > h1.g {
    color: #008000;
}

div.routetitle > h1.b {
    color: #0066b3;
}

div.routetitle > h1.y {
    color: #ffcc19;
}

div.routetitle > h1.p {
    color: #b62367;
}

div.routetitle > span,
div.stoptitle > span {
    font-size: 14px;
    line-height: 18px;
    color: #008;
}

ul.route {
    background-color: white;
    border-right: 4px solid #aaa;
    padding: 0;
    margin: 0;
}

ul.route > li {
    position: relative;
    display: block;
    z-index: 0;
    border-bottom: 1px solid rgba(0,0,0,.15);
}

ul.route > li.pass > a > dl {
    opacity: .45;
}

ul.route > li:target > a {
    background-color: #eee;
}

ul.route > li > a {
    text-decoration: none;
    color: black;
    display: block;
    padding: 5px 10px;
}

ul.route > li > a > dl, div.timetable > table td > a > dl {
    margin: 0;
}

ul.route > li > a > dl > dt, div.timetable > table td > a > dl > dt {
    font-size: 14px;
}

ul.route > li > a > dl > dd, div.timetable > table td > a > dl > dd {
    margin: 0;
    font-size: 13px;
    color: #008;
}

ul.route > li > div.bus {
    position: absolute;
    right: 0px;
    top: -25px;
    max-height: 48px;
    line-height: 48px;
	z-index: 1;
}

ul.route > li > div.bus > a {
    background-color: transparent;
    padding: 10px;
    border-radius: 3px;
	color: #666;
	font-size: 0.9em;
	display: block;
	text-align: right;
}

ul.route > li > div.bus > a > span {
	display: block;
	line-height: 1em;
    margin: -0.4em 0;
}

ul.route > li > div.bus > a > span:after {
	content: "\f207";
	margin-left: 5px;
    font-size: 1.3em;
}

ul.route > li > div.bus > a:active {
    background-color: rgba(0,0,0,.1);
}

ul.route > li > div.bus > a .a-fa.r:after {
    color: #ff2650;
}

ul.route > li > div.bus > a .a-fa.g:after {
    color: #008000;
}

ul.route > li > div.bus > a .a-fa.b:after {
    color: #0066b3;
}

ul.route > li > div.bus > a .a-fa.y:after {
    color: #ffcc19;
}

ul.route > li > div.bus > a .a-fa.p:after {
    color: #b62367;
}

ul.route > li > div.traffic {
    position: absolute;
    right: -4px;
    top: 25px;
    background-color: black;
    font-size: 0;
    width: 4px;
    height: 100%;
}

ul.route > li > div.traffic.g {
    background-color: #008000;
}

ul.route > li > div.traffic.y {
    background-color: #ffcc19;
}

ul.route > li > div.traffic.r {
    background-color: #ff2650;
}

ul.route > li:before {
	content: '';
	border-left: 1px solid #bbb;
	position: absolute;
	right: 17px;
	height: 100%;
	top: 0;
}

ul.route > li:after {
    border: 1px solid #bbb;
    border-width: 1px 0;
    width: 9px;
    position: absolute;
    right: 13px;
    top: 24px;
    content: '';
}

ul.route > li:first-of-type:before,
ul.route > li:last-of-type:before {
	height: 50%;
}

ul.route > li:first-of-type:before {
	top: 50%;
}

ul.route > li:first-of-type > div.bus,
ul.route > li:last-of-type > div.bus,
ul.route > li > div.bus.stopped{
    top: 10px;
}

ul.route > li > div.repeat {
    float: right;
    padding: 0 5px;
    width: 49px;
    text-align: center;
    line-height: 49px;
    font-size: 20px;
}

div.daummap {
    width: 100%;
    height: 100%;
}

div.daummap * {
    box-sizing: initial;
}

div.daummap div.infobox {
    padding: 5px;
    width: 155px;
}

div.daummap div.infobox > a > div {
    height: 20px;
    width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

h2 {
    margin: 0;
    font-size: medium;
    padding: 5px 10px;
    font-weight: normal;
    color: #777;
}

dl.infobox {
    margin: 0;
    border-bottom: 1px solid #ccc;
    background-color: white;
    overflow: hidden;
}

dl.infobox:after {
    clear: both;
    content: '';
    display: block;
}

dl.infobox > dd {
    text-align: right;
    white-space: nowrap;
/*    direction: rtl;*/
}

dl.infobox > dt,
dl.infobox > dd {
    float: left;
    width: 50%;
    margin: 0;
    padding: 5px 10px;
    border-top: 1px solid #ccc;
}

ul.infobox {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ccc;
    background-color: white;
    overflow: hidden;
}

ul.infobox > li {
    position: relative;
    z-index: 0;
    border-top: 1px solid #ccc;
    padding: 5px 10px;
}

ul.infobox > li > a {
    color: black;
    text-decoration: none;
}

ul.infobox > li > a > div:last-of-type {
    position: absolute;
    right: 10px;
    top: 5px;
}

ul.infobox > li > a > div:last-of-type > span.none {
    color: #bbb;
}

ul.infobox > li > a > div:last-of-type > span.soon {
    color: #f40;
}

ul.infobox > li > a > div.route {
    font-weight: bold;
}

ul.infobox.r > li > a > div.route {
    color: #ff2650;
}

ul.infobox.g > li > a > div.route {
    color: #008000;
}

ul.infobox.b > li > a > div.route {
    color: #0066b3;
}

ul.infobox.y > li > a > div.route {
    color: #ffcc19;
}

ul.infobox.p > li > a > div.route {
    color: #b62367;
}

ul.resultbox {
    margin: 0;
    padding: 0;
    background-color: white;
}

ul.resultbox > li {
    display: block;
    border-bottom: 1px solid #ccc;
}

ul.resultbox > li.caption {
    background-color: #ccc;
    font-weight: bold;
    padding: 3px 10px
}

ul.resultbox > li > a {
    display: block;
    color: black;
    text-decoration: none;
    padding: 5px 10px; 
}

ul.resultbox > li > a > div:nth-of-type(2) {
    font-size: small;
}

ul.resultbox > li > a[href^="/stop"] > div:nth-of-type(2) {
    color: #008;
}

ul.resultbox > li > a[href^="/route"] > div:first-of-type {
    font-weight: bold;
}

ul.resultbox > li > a[href^="/route"] > div.r {
    color: #ff2650;
}

ul.resultbox > li > a[href^="/route"] > div.g {
    color: #008000;
}

ul.resultbox > li > a[href^="/route"] > div.b {
    color: #0066b3;
}

ul.resultbox > li > a[href^="/route"] > div.y {
    color: #ffcc19;
}

ul.resultbox > li > a[href^="/route"] > div.p {
    color: #b62367;
}

div.error h1 {
    color: #aaa;
    font-size: 1300%;
    font-size: 10vw;
    position: absolute;
    line-height: 10vw;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    bottom: 0;
    right: 0;
}

div.error p {
    text-align: center;
}

div.timetable {
}

div.timetable > table {
    background-color: white;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

div.timetable > table th {
    padding: 5px 10px;
}

div.timetable > table th:first-of-type {
    border-width: 1px 1px 0 0;
}

div.timetable > table th:last-of-type {
    border-width: 1px 0 0 1px;
}

div.timetable > table th,
div.timetable > table td {
    border: 1px solid #ddd;
}

div.timetable > table td:first-of-type {
    border-width: 1px 1px 1px 0;
}

div.timetable > table td:last-of-type {
    border-width: 1px 0 1px 1px;
}

div.timetable > table td > a {
    display: block;
    color: black;
    padding: 5px 10px;
}

div.timetable > table thead tr {
    border: solid #aaa;
    border-width: 0 0 2px 0;
}

div.timetable > table tbody tr:target {
    background-color: #eee;
}

div.timetable > table tbody tr td:nth-of-type(2),div.timetable > table tbody tr td:nth-of-type(3) {
    text-align: center;
}

div.timetable > table tbody tr td:empty:before {
    color: #bbb;
    content: '(통과)';
}

div.timetable > table.updating tbody tr td:nth-of-type(2) {
    color: transparent;
}

div.buslist p {
    display: block;
    background-color: white;
    border: solid #ccc;
    border-width: 1px 0;
	margin: 1em 0;
}

div.buslist p span {
    display: block;
    margin: 5px 10px;
    text-align: center;
}

.loading_container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.3);
    z-index: 2;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    background-color: white;
    border-radius: 5px;
    padding: 10px 30px;
    border: 1px solid;
}

.loading i {
    display: block;
}
