@import url('./_utilities.css');

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding-top: 60px;
  margin-bottom: 105px; /* sticky footer height */
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  line-height: 1.3em;
}

.body-public {
  background-color: #f7f7f7;
}

label {
  font-weight: 500;
  color: #666;
  margin-bottom: 7px;
}

fieldset {
  margin-top: 20px;
}

legend {
  color: #999;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
}

.main {
  min-height: 400px;
  padding-bottom: 40px;
}

.login .panel-body {
  padding: 25px;
}

.btn {
  border: none;
  padding: 10px 16px;
  text-transform: uppercase;
  font-weight: bold;
}

.btn-group-xs>.btn, .btn-xs {
  font-size: 12px;
  text-transform: none;
}

.btn-lg {
  border-radius: 23px;
  padding-left: 24px;
  padding-right: 24px;
}

.btn-primary {
  background: #3e8bba;
  border-color: #2b719c;
}

.container-narrow {
  width: 350px;
  margin: 0 auto;
  /* TODO: handle mobile */
}

.nav-wrapper {
  width: 100%;
  background-color: #f5f5f5;
}

.nav-wrapper .nav-tabs {
  border-bottom: none;
}

.nav-wrapper .nav-tabs > li > a:hover {
  border-color: transparent;
}

.navbar {
  font-weight: 500;
  font-size: 14px;
}

.navbar-default {
  background-color: white;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  height: 60px;
  padding-top: 10px;
}

.navbar-toggle {
  margin-top: 12px;
}

.navbar .progress {
  margin-top: 11px;
  margin-bottom: 0;
  height: 7px;
  background-color: #e6eaec;
}

.navbar-steps {
  background-color: #f0f0f0;
  border: none;
  min-height: 40px;
}

.navbar-steps .navbar-nav {
  display: inline-block;
  float: none;
  vertical-align: top;
}

.navbar-steps .navbar-collapse {
  text-align: center;
}

.navbar-steps li > a {
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-steps .navbar-nav > .active > a,
.navbar-steps .navbar-nav > .active > a:hover {
  color: #fff;
  background: #777777;
  background: linear-gradient(to bottom, #7b7b7b, #888);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: 1px solid #2b719c;
  background-color: #3e8bba;
  color: white;
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 1px 0px rgba(255,255,255,0.25);
}

.modal-title {
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.panel-info-alt {
  border-color: #3e8bba;
}

.panel-info-alt .panel-heading {
  color: white;
  background-color: #3e8bba;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.panel-info-alt .panel-title {
  font-weight: bold;
  letter-spacing: 0.5px;
}

.label {
  text-transform: uppercase;
}

.label-success {
  background-color: #23a278;
}

@media (min-width: 768px) {
  .navbar .progress {
    width: 200px;
  }

  .navbar-fixed-top .navbar-nav > li > a {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (min-width: 992px) {
  .navbar-steps li > a {
    width: 130px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .container-narrow {
    width: initial;
  }

  .login .panel-body {
    padding: 20px;
  }
}

/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

.header {
  background: #3981ae url("../img/portada.jpg") center center;
  background-size: cover;
  color: white;
  padding-bottom: 20px;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 -5px 5px rgba(0,0,0,0.25);
}

.header h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 36px;
}

.btn img {
  position: relative;
  top: -1px;
}

.form-actions {
  border-top: 1px solid #ddd;
  margin-top: 20px;
  padding-top: 20px;
}

.form-horizontal .form-actions {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.selectize-input {
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !important;
}

.selectize-dropdown .active {
  background-color: #1684fb !important;
  color: #ffffff !important;
}

.selectize-control.single .selectize-input:after {
  right: 10px !important;
  border-width: 5px 4px 0 4px !important;
}

.datepicker, .timepicker {
  display: inline-block;
}

.cke_chrome {
  box-shadow: none !important;
}

.alert-success {
  color: #ffffff;
  background-color: #5cb85c;
  border: none;
}

.alert-danger {
  color: #ffffff;
  background-color: #d9534f;
  border: none;
}

.alert-danger a {
  color: #ffffff;
  text-decoration: underline;
}

.alert-warning {
  background-color: #ffec86;
  border: none;
}

.alert-warning a {
  color: #8a6d3b;
  text-decoration: underline;
}

.alert-info {
  border: none;
}

.close {
  text-shadow: none;
}

.close:focus, .close:hover {
  color: white;
}

.list-group-horizontal {
  overflow: auto;
}

.list-group-horizontal .list-group-item {
  float: left;
  width: 110px;
  min-height: 110px;
  border: none;
  border-radius: 4px;
}

.list-group-item .close:focus,
.list-group-item .close:hover {
  color: red;
}

.list-group-action-link {
  font-size: 0.8em;
  text-transform: uppercase;
}

.js-input, .js-input-multiple {
  cursor: pointer;
}

a.list-group-action-link {
  color: #555;
  background-color: #f5f5f5;
}

.essay {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 16px;
  line-height: 2em;

	/* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.essay h2 {
  font-family: 'Source Serif Pro', Georgia, serif;
}

.essay p {
  margin-bottom: 20px;
}

.essay img {
  max-width: 100% !important;
  height: auto !important;
}

.essay-references {
  font-size: 14px;
  line-height: 1.5em;
}

.essay-references p {
  margin-bottom: 10px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 105px;
  margin-top: 40px;
  padding: 40px 0;
  background-color: #58595B;
  color: #d0d2d3;
  font-size: 13px;
}

.footer-links {
  float: left;
}

.footer-logo {
  float: right;
}

.footer a {
  color: #d0d2d3;
}

@media (max-width: 767px) {
  body {
    margin-bottom: 0;
  }

  .header h2 {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 27px;
  }

  .workshop-choice-item .btn {
    display: block;
    float: none;
    margin-top: 10px;
  }

  .footer {
    text-align: center;
    position: initial;
    height: auto;
  }

  .footer-links {
    float: none;
  }

  .footer-logo {
    float: none;
    margin-top: 20px;
  }
}

.progress-list .glyphicon {
    margin-right: 2em;
    margin-left: 1em;
}

.progress-list .glyphicon-ok {
    color: green;
}

.guidelines li {
    margin-bottom: 5px;
}

.terms li {
  margin-bottom: 20px;
  line-height: 1.5em;
}

.survey-progress .progress, .survey-progress .progress-bar {
  height: 5px;
}

.workshop-choice-item {
  padding: 15px;
  margin-bottom: 20px;
  border-top: 1px solid #eee;
}

.workshop-first-choice {
  background: linear-gradient(#d9f7ed, transparent 50px);
  border-top: 1px solid #d9f7ed;
}

.workshop-second-choice {
  background: linear-gradient(#cdf0fb, transparent 50px);
  border-top: 1px solid #cdf0fb;
}

@media (min-width: 580px) {
  .text-cols {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .text-cols {
    column-count: 3;
  }
}

.text-col-element {
  display: inline-block;
  width: 100%;
  -webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */
            page-break-inside: avoid; /* Firefox */
                 break-inside: avoid; /* IE 10+ */
}

/* SECONDARY NAV BAR */

.second-nav {
  width: 100%;
  background-color: #F0F0F0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-size: 14px;
}

.nav-tabs {
  list-style: none;
}

.second-nav > .nav-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

li.nav-option {
  display: inline-block;
  float: none;
}

.nav-option.active > a {
  background-color: transparent !important;
  border-color: transparent !important;
}

.nav-option > a {
  color: inherit;
}

.nav-option > a:hover {
  border-color: transparent !important;
  background-color: transparent !important;
}

li.nav-option.active {
  border-bottom: 4px solid #64C0C5;
  position: relative;
}

ul.nav-tabs {
  border-bottom-color: transparent;
}

@media (max-width: 768px) {
  .nav-option > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
  
  }
}