/**********************************************************
 *** BASE ***/

.hidden {
  visibility: hidden;
}

/*** Page Layout ***/

body{ height: 100%; margin: 0; }
#app-container { height: 100vh; }
#app { height: 100%;  }
#app > * { width: 100%; }

#nav-wrapper { height: 34px; position: fixed; z-index: 1; max-width: 1200px; }
   /* max-width: ñapa, porque se sale, no sé por qué */

/* layout 1: primera página */
#app.l1 {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-content: stretch;
  align-items: center;
}
#app.l1 > * { align-self: auto; }

#app.l1 #cover { flex: 1 1 auto; }
#app.l1 #nav-wrapper { flex: 0 0 auto; }
#app.l1 #nav-wrapper #nav-logo { display: none; }
#app.l1 #page-container { flex: 0 0 auto; margin-top: 40px;  }

/* layout 2: otras páginas */
#app.l2 #cover { display: none; }
#app.l2 #nav-wrapper #nav-logo { display: inline; }

#app.l2 #page-container { height: 100%; border-top: 34px solid white; box-sizing: border-box; }

/*
 * #page-container { overflow-y: auto; overflow-x: hidden; }
 * */

/* page borders */
#app {
  max-width: 1200px;
  margin: 0 auto;
  /* box-shadow: 0 0 10px 1px #000000;
  border-radius: 5px;
  */
}


/*** to center modals ***/
/* from http://stackoverflow.com/a/21323821/462087 */

.modal {
  text-align: center;
  padding: 0!important;
}

.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px; /* Adjusts for spacing */
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

/*** Cover ***/

#cover {
  /* flex container */
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
}
#cover .jumbo {
  flex: 0 1 auto;
  align-self: auto;
  margin-top: 43px;
  margin-bottom: 40px;
  max-width: 50%;
}

/*** Nav ***/
#nav-wrapper { width: 100%; height: 36px; }
nav.mybreadcrumb {
  /* flex-container (of every step) */
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin-top: 0;
  box-sizing: border-box;
}
nav.mybreadcrumb > * {
  flex: 0 1 auto;
  align-self: auto;
}


/*** inner-page layout ***/

#page-container { 
  text-align: middle;
}
#page-container > * { margin: 0 auto; }

/*** page 3: customization ***/
#page-customization {
  width: 80%;
}
#page-customization .route-title {
  font-family: futura;
  font-size: 36px;
  line-height: 0.9;
}
#page-customization .route-title small {
  font-size: 28px;
  color: grey;
}

#page-customization .route-content {
  margin-top: 20px;
}
#page-customization .block .title {
  font-family: futura;
  font-size: 28px;
}
#page-customization .block .description,
#page-customization .block .entry p {
  font-family: arial;
}
#page-customization .block .entry h1 { font-size: 16px; }
#page-customization .block .entry h1:before {
  content: '■ ';
  position: relative;
  bottom: .1em;
  color: #666;
}
#page-customization .block .entry h2 { font-size: 14px; }
#page-customization .block .entry h3 { font-size: 12px; }
#page-customization .block .entry img {
  max-width: 50%;
}

/*** page 4: end/contact ***/

#page-end {
 display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;

  width: 100%;
  padding-top: 20px;
}

#page-end > * {
  flex: 0 0 auto;
  align-self: auto;
}

#page-end form {
  width: 50%;
}



/*** pager ***/

#pager {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
}

#pager > * {
  flex: 0 1 auto;
  align-self: auto;

  margin-right: 7px;
  margin-left: 7px;
  margin-bottom: 15px;
}


/**********************************************************
 *** MODULES ***/

/*** BreadCrumbs / Nav ***/
#nav-logo {
  position: fixed;
  float: left;
  display: inline;
  height: 36px;
  vertical-align: middle;
  text-align: center;
  line-height: 36px;

}
#nav-logo span {
  font-size: 16px;
  font-family: "Quattrocento";
  font-weight: bold;
}
#nav-logo img {
  max-height: 30px;
}

#breadcrumbs .active,
#breadcrumbs .active * {
  font-weight: bold;
  background-color: blue !;
}

nav.mybreadcrumb {
  padding: 8px 15px;
  list-style: none;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: inherit;
}
nav.mybreadcrumb > .sep { margin-left: 7px; margin-right: 7px; }
nav.mybreadcrumb > .item.active { font-weight: bold; }

/*** Page 1: Cover ***/

#cover {
  background: url('../img/panorama-427997_1920.jpg') #ffffff no-repeat center center scroll;
}
#cover .jumbo {
  text-align: center;
  background:rgba(255,255,255,0.6);
  color: black;
  border-radius: 10px;
  padding: 30px;
  font-weight: bold;
}
#cover .intro {
  margin-top:30px;
  font-size: 2em;
}

/*** Page 2: Recomendation ***/

.recomended-route .blocks-container.columned-layout {
  column-width:320px;
  column-count: 2;
}

.example-enter {
  opacity: 0;
  transform:   translate(-250px,0);
  transform: translate3d(-250px,0,0);
}
.example-enter.example-enter-active {
  opacity: 1;
  transform:   translate(0,0);
  transform: translate3d(0,0,0);
  transition-property: transform, opacity;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.175, 0.665, 0.320, 1), linear;
}
.example-leave {
  opacity: 1;
  transform:   translate(0,0,0);
  transform: translate3d(0,0,0);
  transition-property: transform, opacity;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.175, 0.665, 0.320, 1), linear;
}
.example-leave.example-leave-active {
  /*opacity: 0;*/
  transform:   translate(250px,0);
  transform: translate3d(250px,0,0);
}

/*** Page 3: Customization ***/
/* too-much-warning panel animation */
.too-much-container {
  text-align: center;
  vertical-align: middle;
}
.too-much-container > .animation-container {
  display: inline-block;
}
.too-much-container  .animation-container  .item {
  width: 400px;
  text-align: center;
  padding: 10px 5px;
  margin-top: 10px;
}
.too-much-container  .animation-container  .item:hover {
  cursor: pointer;
}
/* more animations */
@keyframes bounceIn {
  0% { transform: scale(0.1);
  opacity: 0; }
  60% { transform: scale(1.2);
  opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes bounceOut {
  0% { opacity:1; transform: scale(1); }
  30% { opacity:1; transform: scale(1.2); }
  100% { opacity:0; transform: scale(0.1); }
}
.too-much-panel-enter { animation: bounceIn 1s; }
.too-much-panel-enter-active { }
.too-much-panel-leave { animation: bounceOut 1.2s ease-out; animation-fill-mode: both; }
.too-much-panel-leave-active {}



/**********************************************************
 *** WHATEVER ***/

/* style for the dragged item in the route-as-list */

.SortableListItem-dragging {
  background-color: rgb(240,240,240) !important;
  border: 1px solid black;
  color: #ccc;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
  z-index: 1;
  
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  transform: scale(0.9);
  transition: transform 0.2s ease-in-out !important;
}

/* sticky shit */

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 10px;
}

.tripPage .panel-heading {
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  z-index: 5;
}

/* Striped background for broken reservations */

.errorStripes {
  color: black;
  background: 
    -webkit-repeating-linear-gradient(45deg, transparent, transparent 10px, #ccc 10px, #ccc 20px), 
    -webkit-linear-gradient(top, #ff9999, #ff9999);
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, #ccc 10px, #ccc 20px), 
    linear-gradient(to bottom, #ff9999, #ff9999);
}
