/* Space out content a bit */
body {  
  /*padding-bottom: 20px;*/
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
  padding-left: 15px;
  padding-right: 15px;
}

/* Custom page header */
.header {
  border-bottom: 1px solid #e5e5e5;
}
/* Make the masthead heading the same height as the navigation */
.header h3 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
  padding-bottom: 19px;
}

/* Custom page footer */
.footer {
  padding-top: 19px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}

/* Customize container */
@media (min-width: 768px) {
  .container {
    max-width: 730px;
  }
}
.container-narrow > hr {
  margin: 30px 0;
}

/* Main marketing message and sign up button */
.jumbotron {
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}
.jumbotron .btn {
  font-size: 21px;
  padding: 14px 24px;
}

/* Supporting marketing content */
.marketing {
  margin: 40px 0;
}
.marketing p + h4 {
  margin-top: 28px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  /* Remove the padding we set earlier */
  .header,
  .marketing,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }
  /* Space out the masthead */
  .header {
    margin-bottom: 30px;
  }
  /* Remove the bottom border on the jumbotron for visual effect */
  .jumbotron {
    border-bottom: 0;
  }
}

.nav>li.active>a {
  text-decoration: none;
  background-color: #eee;
}

.ape-header-background{
  background: #0D47A1;
}
.ape-header-background .navbar-brand{
  color: #FFFFFF;
}
.ape-header-background .navbar-brand:hover{
  color: #FFFFFFA0;
  cursor: pointer;
}

.ape-background{
  background: #2962FF;
}
.ape {
  color: #fff;
  font-size: 1.5em;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", sans-serif;
  font-weight: 100;
  text-align: center;
  margin-bottom: 80px;
}

.ape-container {  
  background-color: #FFFFFF50 !important;
  width: 90%;
  max-width: 600px;
  color: #FFFFFFEE;
  display: inline-block;
  margin: 25px auto;
  border-radius: 25px;
  box-shadow: 0 50px 50px rgba(0, 0, 0, 0.2);
  position: relative;
}

.extra-size {
  max-width: 90% !important;
}

.ape-container .navigation {
  width: 90%; 
  margin-left: auto;
  margin-right: auto;
  padding: 30px 0 10px 0;
  text-align: left;
  list-style: none; 
  z-index: 1;
  cursor: context-menu;
}

.ape-container .navigation li {
  font-size: 0.7em;
  width: 30%;
  margin: 0 1%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #FFFFFF;
  text-decoration: none;
  z-index: 2;
  display: none;
}

.ape-container .navigation li.done {
  cursor: pointer;
  display: inline-block;
}

.ape-container .navigation li.done:hover {
  color: #FFFFFFA0;
}

.ape-container .navigation li span {
  font-weight: bold;
}

.ape-container .steps {  
  width: 90%;
  text-align: left;
  margin: auto;
  position: relative;
}

.ape-container .steps #next-page {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  margin-top: -60px;
  background: url("https://jdniki.github.io/signup/images/next-page.svg");
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  float: right;
  z-index: 100;
  position: relative;

}

.ape-container .steps #next-page:hover {
  opacity: 0.4;
}

.ape-container .steps #next-step {
  width: 100%;
  height: 2em;
  display: inline-block;
  vertical-align: middle;
  background: url("https://jdniki.github.io/signup/images/next-page.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.ape-container .steps #next-step:hover {
  opacity: 0.4;
}

.ape-container .steps .continue {
  width: 150px !important;
  background-position: right !important;
  text-align: left;
  color: white;
  margin-top: 10px;
  padding-top: 5px;
}

.ape-container .steps ol.questions {
  list-style: none;
  -webkit-transition: height 0.4s;
  transition: height 0.4s;
  min-height: 80px;
  padding: 0;
  width: 100%;
}

.ape-container .steps ol.questions li {
  position: relative;
  width: 100%;
  transition: all 0.5s ease;
}

.ape-container .steps .questions li span {
  margin-bottom: 10px;
}

.ape-container .steps .questions li input {
  width: 100%;
  font-size: .9em;
  color: #f2f2f2;
  margin-top: 0.3em;
  border: none;
  background: none;
  border-bottom: 3px solid #fff;
  padding: 0.5em 0.1em;
  transition: all 0.5s ease;
  padding-right: 15%;
}

.ape-container .steps .questions li input:focus {
  outline: none;
  border-bottom: 3px solid #FFFFFFA0;
}

.ape-container .steps .questions li select {
  position: absolute;
  width: 100%;
  font-size: 0.7em;
  color: #f2f2f2;
  height: 70px;
  background: transparent;
  border: 1px solid #ccc;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
}

.ape-container .steps .questions li select.country {
  width: 4.5em !important;
  height: 4em;
  font-size: 0.7em;
}

.ape-container .steps .questions li select option {
  color: grey;
}

.ape-container .steps .questions li #phone {
  padding-left: 4em;
}

.ape-container .error-message {
  color: #edc793;
  font-size: 14px;
  padding-bottom: 30px;
  position: relative;
  text-align: justify;
}

::-webkit-input-placeholder {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}
:-moz-placeholder {
  /* Firefox 18- */
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}
::-moz-placeholder {
  /* Firefox 19+ */
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}
:-ms-input-placeholder {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}
@-webkit-keyframes moveUpFromDown {
  from {
    -webkit-transform: translateY(100%);
  }
  to {
    -webkit-transform: translateY(0);
  }
}
@keyframes moveUpFromDown {
  from {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
  }
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

#progressbar {
  padding: 0;
  margin-bottom: 30px;
  overflow: hidden;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  counter-reset: step;
}

#progressbar li {
  font-family: montserrat, arial, verdana;
  list-style-type: none;
  color: white;
  text-transform: uppercase;
  font-size: 0.5em;
  width: 25%;
  float: left;
  position: relative;
}
#progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 3em;
  line-height: 3em;
  display: block;
  font-size: 1em;
  color: #333;
  background: white;
  border-radius: 3px;
  margin: 0 auto 5px auto;
}
#progressbar li:after {
  content: '';
  width: 100%;
  height: 0.35em;
  background: white;
  position: absolute;
  left: 50%;
  top: 1.25em;
  z-index: -1;
}
#progressbar li:last-child:after {
  content: none; 
}

#progressbar li.active:before {
  background: #27AE60;
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p20:after{  
  background: linear-gradient(to right, #27AE60, white, white, white, white);
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p25:after{  
  background: linear-gradient(to right, #27AE60, white, white, white);
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p40:after{  
  background: linear-gradient(to right, #27AE60, #27AE60, white, white, white);
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p50:after{  
  background: linear-gradient(to right, #27AE60, white);
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p60:after{  
  background: linear-gradient(to right, #27AE60, #27AE60, #27AE60, white, white);
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p75:after{  
  background: linear-gradient(to right, #27AE60, #27AE60, #27AE60, white);
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p80:after{  
  background: linear-gradient(to right, #27AE60, #27AE60, #27AE60, #27AE60, white);
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}

#progressbar li.active.p100:after {
  background: #27AE60;
  color: white;
  -webkit-transition: background 0.5s ease-out;
  -moz-transition: background 0.5s ease-out;
  -o-transition: background 0.5s ease-out;
  transition: background 0.5s ease-out;
}


@media (max-width: 420px) {
  .ape-header-background{
    background: #0D47A1;
    height: 70px !important;
  }
  #progressbar {
    width: 95%;
  }
}

.loader {
    border: 16px solid #FFFFFF10;
    border-top: 16px solid #FFFFFF;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1.5s linear infinite;
    text-align: center;
    margin: auto;
}

.loader2 {
    border: 16px solid #23527C10;
    border-top: 16px solid #23527C;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1.5s linear infinite;
    text-align: center;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#second-step {
  text-align: center;
  margin: auto;
}

#third-step {
  text-align: center;
  margin: auto;
}

#second-step .btn {
  width: 15em;
  height: 10em;
  border-radius: 10px;
  margin: 10px;
  font-weight: bold;
  white-space: normal;
}

#second-step .active { 
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
}

#second-step .active:hover { 
  color: #fff;
  background-color: #337ab7E0;
  border-color: #337ab7E0;
}

#third-step .table {
  text-align: left; 
  table-layout: fixed; 
  word-wrap: break-word;
}
#third-step .table td {  
  font-size: 0.7em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

i.active { 
  color: #5cb85c;
  cursor: pointer;
  margin-left: 5px;
  margin-right: 5px;
}

i.inactive {
  color: #d9534f;
  cursor: pointer;
  margin-left: 5px;
  margin-right: 5px;
}

.aprov {
  background: #6bba4a !important;
  background-color: #6bba4a !important;
  font-weight: bold;
}

.modal-info {
  font-size: 20px;
}