/*
Busomatic webapp stylesheet
*/


* {
  box-sizing: border-box;
}


@font-face {
    font-family: champagne;
    src: url('/static/font/champagne_bold.ttf') format('truetype');
}


/*
On mobile devices, text selection is sometimes triggered
when tapping blank areas around menu or buttons, so we disable it
Note that this bug seems to only appear when using display:flex
Reference: https://stackoverflow.com/a/11237968/9598957
*/
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}


body {
    margin: 0;
    font-family: champagne;
}


.center-items {
  align-items: center;
  justify-content: center;
}


.border-bottom {
  border-bottom: 1px solid white;
}


.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}


.banner {
    color: #FFFFFF;
    background-color: #0795F8;
    display: flex;
    flex-direction: row;
}


#site-title {
    height: 70px;
    font-size: 2.3em;
}


#menu {
    display: flex;
    flex: auto;
    flex-direction: column;
}


/* text-align doesn't work on chrome browsers but text-align-last does */
#menu select {
    color: #555555;
    height: 40px;
    text-align: center;
    text-align-last: center;
    width: 55%;
    max-width: 300px;
    font-size: 1em;
    margin-bottom: 30px;
}


#menu select:last-child {
    margin-bottom: 0;
}


.info-block {
    height: 45px;
    font-size: 0.9em;
}


.info-block img {
    height: 45px;
    width: 45px;
    vertical-align: middle;
}


#result-table {
    display: none;
    flex: auto;
    flex-direction: column;
    justify-content: center;
}


table {
    border-collapse:collapse;
    font-size:large;
    width:100%;
}


table th {
    background-color:#0795f8;
    color:#FFFFFF;
    height:40px;
    font-size:1em;
}


table td {
    text-align:center;
    padding-top: 1px;
    padding-bottom:1px;
    color:#555555;
    font-size:1em;
}


#stop-name{
    font-size:1.1em;
}


#line-name, #line-schedule {
    width:10%;
}


/* TODO: auto cut if name's too long */
#line-direction {
    width:80%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


#button {
    display:none;
    height:30px;
    align-items: center;
    justify-content: center;
}


#refresher {
    background-color:#0795f8;
    color:#FFFFFF;
    font-size:1.1em;
    border:0;

}

/* Apply a background color to every second row of the printStop table */
tr:nth-child(even) {
    background-color: #F0EFF4;
    border-top:1px solid #A8A8A8;
    border-bottom:1px solid #A8A8A8;
}

