:root {
    transition: all 300ms;
}

:root.bg--big {
    background-color: #00bcd4;
}

:root.bg--medium {
    background-color: #e53935;
}

:root.bg--small {
    background-color: #4527a0;
}

body {
    height: 100%;
    min-height: 100vh;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*flex-direction: column;*/
    font-family: "Arial", sans-serif;
    transform: translateZ(0);
    font-weight: 400;
}

button {
    border: none;
    background: transparent;
}

.controller-container {
    margin-bottom: 5%;
    text-align: center;
}

.controller {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: inline-block;
    margin: 0 20px;
    font-size: 22px;
    padding: 10px 0;
    color: #fff;
    position: relative;
    transition: all 100ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.controller:after {
    content: "";
    height: 3px;
    display: block;
    position: absolute;
    bottom: 0;
    width: 0;
    transition: all 300ms cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #fff;
}

.controller.is_current:after {
    width: 100%;
}

.controller:hover,
.controller.is_current {
    transform: translate3d(0, -5px, 0);
    cursor: pointer;
}

.card {
    will-change: transform;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    background-color: #fafafa;
    transition: all 400ms cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}

.card:hover {
    cursor: pointer;
}

.card__image {
    position: absolute;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repat;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    opacity: 0;
    transition: all 200ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.card__image:after {
    content: "";
    display: block;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
    right: 0;
    transition: all 500ms;
    bottom: 0;
}

.card__title {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 24px;
    color: #fff;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    padding: 0 16px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: all 200ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.card__subtitle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #000;
    left: 88px;
    right: 0;
    top: 45px;
    position: absolute;
    padding: 0 16px;
    opacity: 0;
    transition: all 200ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.card__text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 14px;
    display: block;
    left: 0;
    right: 0;
    top: 100px;
    padding: 16px;
    margin: 0;
    line-height: 1.6;
    position: absolute;
    color: #000;
    overflow: hidden;
    transition: width 200ms cubic-bezier(0.075, 0.82, 0.165, 1);
    transition: delay 0.1s;
}

.card__action-bar {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    padding: 0 8px;
    border-top: 1px solid #e0e0e0;
    boz-sizing: border-box;
    height: 52px;
    transition: left 200ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

.card__button {
    outline: none;
    position: relative;
    display: inline-block;
    line-height: 52px;
    padding: 0 16px;
    color: #ff1744;
}

.card--big {
    box-shadow: 0 27px 55px 0 rgba(0, 0, 0, 0.3), 0 17px 17px 0 rgba(0, 0, 0, 0.15);
    height: 304px;
    min-height: 304px;
}

.card--big .card__image {
    border-radius: 1px 1px 0 0;
    left: 0;
    right: 0;
    top: 0;
    opacity: 1;
    max-height: 176px;
}

.card--big .card__title {
    top: 135px;
}

.card--big .card__text {
    top: 176px;
}

.card--big .card__action-bar {
    left: 0;
}

.card--medium {
    box-shadow: 0 13px 25px 0 rgba(0, 0, 0, 0.3), 0 11px 7px 0 rgba(0, 0, 0, 0.19);
    min-height: 208px;
}

.card--medium .card__image {
    border-radius: 1px 1px 0 0;
    left: -100%;
    right: 0;
    top: 0;
    max-height: 0;
    opacity: 0;
}

.card--medium .card__title {
    color: #ff1744;
    top: 16px;
}

.card--medium .card__text {
    font-size: 16px;
    top: 50px;
}

.card--medium .card__action-bar {
    left: 0;
}

.card--small .card__image {
    border-radius: 1px 0 0 1px;
    left: 0;
    top: 0;
    width: 88px;
    opacity: 1;
    max-height: 136px;
}

.card--small .card__image:after {
    opacity: 0;
}

.card--small .card__title {
    color: #000;
    left: 88px;
    top: 8px;
}

.card--small .card__subtitle {
    opacity: 1;
    left: 88px;
}

.card--small .card__text {
    top: 30px;
    opacity: 0;
}

.card--small .card__action-bar {
    left: 88px;
}

.train-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-evenly;
}

/* Tabs */
.tabs {
    width: 100%;
    padding: 0;
    border-radius: 5px;
}
ul#tabs-nav {
    position: relative;
    display: flex;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}
ul#tabs-nav li {
    margin-right: 2px;
}

ul#tabs-nav li > a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding: 12px 10px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    color: #424f5a;
    text-align: center;
    outline: ;
}
ul#tabs-nav li a:hover,
ul#tabs-nav li.active a {
    background-color: #08e;
    color: #fff;
}
#tabs-nav li a {
    text-decoration: none;
    color: #fff;
}
.tab-content {
    padding: 10px;
}

div#tabs-content {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}


.train-filters__train-details-wrapper h2 {
    width: 100%;
    margin-bottom: 5px;
}

.train-filters__train-details-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
}


.filter-details {
    background-color: #f7f7f7;
    padding: 15px;
    margin-top: 20px;
}

.filter-details:empty{
    display: none;
}

ul.filter-details {
    column-count: 1;
}

ul.filter-details > li{
    break-after: avoid-column;
    padding-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
}

.train-filters__filter-wrapper{
    display: flex;
    flex-wrap: wrap;
}

.form-filter-fields{
    position: relative;
}

.form-filter-fields label {
    display: inline-block;
    padding: 6px 10px 4px 10px;
    border: 1px solid #ccc;
    line-height: normal;
    cursor: pointer;
    margin: 6px;
    transition: all 0.5s ease 0s;
}

.form-filter-fields input {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    margin: 0;
}

.form-filter-fields label:hover,
.form-filter-fields input:checked + label {
    background-color: #08e;
    color: #fff;
    border-color: #08e;
    transform: scale(1.2);
}

ul.filter-details > li > div {
    padding-right: 6px;
}