.railway-wrap {
  margin: 50px 0;
  position: relative;
}

.railway-wrap > ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.railway-wrap > ul::after {
  content: "";
  display: block;
  width: 40%;
}

.railway-wrap > ul > li {
  width: 20%;
}

.railway-wrap > ul > li > p {
  padding: 10px 0;
  text-align: center;
  background-color: #f2f9ff;
  border: 1px solid #546483;
  margin-top: -1px;
  margin-left: -1px;
  color: #203864;
  cursor: pointer;
}

.railway-wrap > ul > li > p:hover,
.railway-wrap > ul > li > p.active {
  background-color: #546483;
  color: white;
}

.railway-info {
  width: 80%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 200px;
  margin: 0 auto;
  background-color: #fafafaea;
  border-radius: 5px;
  padding: 15px;
  z-index: 500;
  border: 1px solid #203864;
}

.railway-info-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #203864;
}

.railway-info-wrapper:last-child {
  margin-bottom: 0;
}

.railway-info-day {
  white-space: nowrap;
  -ms-flex-preferred-size: 250px;
  flex-basis: 250px;
}

.railway-info-overview {
  padding-left: 5px;
  -ms-flex-preferred-size: calc(100% - 160px);
  flex-basis: calc(100% - 160px);
  /* word-break: keep-all; */
}

.railway-info > #removePicModal {
  display: inline-block;
  background: #203864;
  color: #fff;
  width: 25px;
  height: 25px;
  line-height: 25px;
  border-radius: 50%;
  text-align: center;
  overflow: hidden;
  position: absolute;
  top: -10px;
  right: -10px;
  border: 0px;
  font-size: 1.5em;
  cursor: pointer;
}

@media screen and (max-width: 900px) {
  .railway-wrap > ul > li {
    width: 50%;
  }

  .railway-info {
    width: 90%;
    bottom: 480px;
  }

  .railway-info-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .railway-info-day {
    -ms-flex-preferred-size: 0px;
    flex-basis: 0px;
    font-size: 1.1em;
  }

  .railway-info-overview {
    padding-left: 0px;
    padding-top: 10px;
    font-size: 0.9em;
    line-height: 1.2em;
    word-break: normal;
  }

  .railway-info > #removePicModal {
    display: inline-block;
    background: #203864;
    color: #fff;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    position: absolute;
    top: -10px;
    right: -10px;
    border: 0px;
    font-size: 1.5em;
    cursor: pointer;
  }
  
  .railway-wrap > ul::after {
  	content: "";
  	display: block;
  	width: 50%;
	}
}
