@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap");

:root {
  --bg-color: #17141d;
  --bg-color-accent: #40E0D0;
  --txt-color: white;
  --icon-color: lightgrey:
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--txt-color);
}

.main-container {
  display: flex;
  height: 100vh;
}

.main-menu {
/* border: yellow 1px solid; */
  position: fixed;
  display: flex;
  text-align: center;
  background: #fccd31;  /* fallback for old browsers */
  z-index: 1;
}


.main-menu h1 {
  margin-top: 0;
  opacity: .7;
}

.card-list {
  /* border: 1px solid red; */
  display: flex;
  padding: 3rem;
  overflow-x: scroll;
  overflow-y: hidden;
  height: 400px;
}

.card-list::-webkit-scrollbar {
  width: 20px;
  height: 20px;
}
.card-list::-webkit-scrollbar-thumb {
  background: #201c29;
  border-radius: 10px;
  box-shadow: inset 2px 2px 2px hsla(0, 0%, 100%, 0.25),
    inset -2px -2px 2px rgba(0, 0, 0, 0.25);
}
.card-list::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #201c29, #201c29 1px, #17141d 0, #17141d);
}

.card {
  /* border: 1px solid red; */
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  width: 300px;
  height: 350px;
  min-width: 250px;
  padding: 1.5rem;
  border-radius: 16px;
  background-color: var(--bg-color);
  box-shadow: -1rem 0 3rem black;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-1rem);
}
.card:hover ~ .card {
  transform: translateX(130px);
}
.card:not(:first-child) {
  margin-left: -130px;
}

.card-header {
  /* border: 1px solid greenyellow; */
  position: relative;
  padding: 0;
  margin-bottom: 0.5rem;
}

.container-btns-maps {
  /* border: 1px solid red; */
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  text-align: center;
}


.card-header span {
    font-size: .75rem;
    line-height: -.5rem;
}


.card-header .route-btn img,
.card-header .map-btn img {
    width: 38px;
    height: 38px;
    display: block;
}

.card-header h6, h4 {
    margin: 0;
    font-weight: 300;
}
.card-header h2 {
    margin: .75rem 0;
    font-weight: 700;
    text-transform: uppercase;
}

.card-body {
    /* border: 1px solid greenyellow; */
    overflow: hidden;
    height: 200px;
}
.card-body img {
  height: 100%;
  cursor: default;
}

.card-footer {
  /* border: 1px solid darkcyan; */
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  font-size: 1rem;
  opacity: .5;
  transition: .2s;
}
.card-footer:hover {
  opacity: 1;
}
#correo {
  font-size: .85rem;
}

.card-footer img {
  /* border: 1px solid darkcyan; */
  width: 18px;
  height: 18px;
  margin:0 .25rem;
}

.search-route-btn {
  display: none;
  padding: 1.2rem 1.5rem;
  text-transform: uppercase;
  border-radius: .5rem;
  border: none;
  transition: .5s;
}
.search-route-btn:hover {
  background-color: var(--bg-color-accent);
  color: white;
}

#level-dropdown, #level-dropdown-route, #school-dropdown {
  background-color: white;
  padding: .5rem;
  border-radius: .5rem;
  border: none;
}

.directions {
  display: flex;
  flex-direction: column;
}

.directions #from {
  margin:0;
}

.directions h5 {
  margin-top: 3rem;
  margin-bottom: 0;
}

.disclaimer {
  font-size: 11px;
  margin-top:auto;
  margin-bottom: 2rem;
  color: black;
  line-height: 1rem;
  text-align: left;
}

.data-update a {
  font-size: .85rem;
  text-decoration: none;
  list-style: none;
  color:black;
  opacity: .7;
  transition: .2s;
}
.data-update a:hover {
  color: white;
}

.not-selectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* large screens */
@media only screen and (min-width: 600px) {
  .main-menu {
    /* border: dodgerblue 1px solid; */
    flex-direction: column;
    width: 150px;
    height: 100vh;
    min-width: 130px;
    padding: 2rem;
    background: -webkit-linear-gradient(to bottom, #FF0080, #FF8C00, #40E0D0);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #FF0080, #FF8C00, #40E0D0); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    box-shadow: 1rem 0 3rem black;
  }
  
  .main-menu .sad-logo {
    margin-top: -1rem;
    margin-bottom: 2rem;
  }
  
  .main-menu .app-logo {
    /* border: yellow 1px solid; */
    margin-top: 2rem;
    width:30%;
    align-self: center;
  }

  .route-btn {
    /* border: 1px solid greenyellow; */
    opacity: .75;
    transform: scale(1);
    transition: .2s;
    line-height: .7rem;
    margin-left: 7px;
  }
  .map-btn {
    /* border: 1px solid yellow; */
    opacity: .75;
    transform: scale(1);
    transition: .2s;
    line-height: .7rem;
  }

  .card-header .route-btn:hover,
  .card-header .map-btn:hover
  {
    opacity: 1;
    transform: scale(1.2);
  }
  
  
  #level-dropdown-route, #school-dropdown {
    margin: 1rem 1rem .75rem 0;
    padding:1rem ;
    height: 3rem;
  }
  
  .footer-mobile {
    display: none;
  }
  
  .card-list {
    margin-left: 225px;
    
  }
  .card-list .hint {
    margin-top: 160px;
    margin-left: 200px;
    color: grey;
  }
}

/* mobile screens */
@media only screen and (max-width: 600px) {
    .main-menu {
      flex-direction: row;
      justify-content: space-evenly;
      width: 100vw;
      height: 65px;
      padding: 1rem;
      top:0;
      background: -webkit-linear-gradient(to right, #FF0080, #FF8C00, #40E0D0);  /* Chrome 10-25, Safari 5.1-6 */
      background: linear-gradient(to right, #FF0080, #FF8C00, #40E0D0); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
      box-shadow: 0 1rem 3rem black;
    }

    .main-menu .sad-logo {
      margin-top: -.2rem;
      margin-right: 1rem;
      margin-left: 25px;
      width: 70px;
      height: 70px;
    }

    .main-menu .app-logo {
      width: 38px;
      height: 38px;
      margin: 0;
      align-self: center;
    }
    .main-menu h1{
      align-self: center;
      margin: 0 2rem 0 .5rem;
      font-size: 1.2rem;
      line-height: 1.2rem;
    }

    /*Hide main top menu elements*/
    .main-menu p,
    .main-menu .disclaimer {
      display: none;
    }

    #level-dropdown,
    #level-dropdown-route, #school-dropdown {
      margin: 1.5rem 1rem .75rem 0;
      padding:.5rem ;
      height: 2.2rem;
    }

    .route-btn {
      /* border: 1px solid greenyellow; */
      line-height: .7rem;
      margin-left: 7px;
    }
    .map-btn {
      /* border: 1px solid yellow; */
      line-height: .7rem;
    }


    .card-list {
      height: 480px;
    }
    .card {
      margin-top: 80px;
    }

    .card-list .hint {
      margin-top: 110px;
      text-align: center;
      color: grey;
    }

    .directions {
      margin-top:40px;
      margin-left: 20px;
    }

    .footer-mobile {
      display: fixed;
      position: absolute;
      bottom:0;
      height: 5px;
      width: 100vw;
      background: #fccd31;  /* fallback for old browsers */
      background: -webkit-linear-gradient(to bottom,#FF8C00, #40E0D0);  /* Chrome 10-25, Safari 5.1-6 */
      background: linear-gradient(to bottom, #FF8C00, #40E0D0); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
      box-shadow: 1rem 0 3rem black;
      text-align: center;
      padding-bottom: 3rem;
    }

    .footer-mobile .disclaimer {
      padding: 0 1rem;
      text-align: center;
    }

    .footer-mobile .data-update a {
      color: white;
    }

    .data-update {
      margin-top: -10px;
    }
    .disclaimer {
      margin-top: -10px;
      line-height: 12px;
    }
  }

  @media only screen and (max-height: 600px) {
    .footer-mobile {
      display: none;
    }

    .main-menu {
      height: 65px;
    }

    .card {
      margin-top: 60px;
    }
  }