/** Open Sans for body */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400&display=swap');
/** Raleway for titles */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap');

body {
  --dark-colour: #263944;
  --alert-bg-colour: #e4f0f6;
  --form-text-colour: white;
  --code-bg-colour: var(--dark-colour);
  --button-hover-brightness: 0.95;
  --success-colour: #00ce8b;
  --info-colour: #5bc0de;
  --error-colour: #ff765a;
}

body.install {
  --primary-colour: #5bc0de;
  --secondary-colour: #00ce8b;
}
body.install-dev {
  --primary-colour: var(--dark-colour);
  --secondary-colour: #5bc0de;
  --alert-bg-colour: rgba(0,0,0,0.2);
  --info-colour: white;
  --form-text-colour: var(--dark-colour);
  --code-bg-colour: #223038;
}
body.update {
  --primary-colour: #00ce8b;
  --secondary-colour: #5bc0de;
}

#error > .inner {
  background-color: var(--error-colour);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 5;
}

body {
  /* ! apply gradient bg with transition */
  font-size: 16px;
  color: white;
  background-repeat: repeat-y; /*! temp style */
  /*! styles taken from AT */
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  background-color: var(--primary-colour);
}

body.install-dev,
body.install-dev h1, 
body.install-dev h2, 
body.install-dev h3, 
body.install-dev h4 {
  font-family: monospace;
}

body.update .breadcrumb-container {
  background-image: url(/assets/adapt_logo_green.png);
}

/* @keyframes gradient {
    0% {background-position: 0%}
    100% {background-position: 100%}
} */

/*! apply gradient overlay for contrast */
/* body:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url(adapt_bg.jpeg);
  opacity: .5;
  z-index: -1;
} */

pre {
  margin-bottom: 30px;
  background-color: var(--code-bg-colour);
  color: white;
  border-radius: 3px;
  border: none;
}
pre.left-align {
  text-align: left;
}

h1, h2, h3, h4 {
  margin-bottom: 40px;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
}

p {
  margin-bottom: 20px;
}

form {
  width: 100%;
  margin: 15px 0;
}

select {
  padding: 13px;
  color: white;
  background: transparent;
  cursor: pointer;
  border: 1px solid white;
  border-radius: 5px;
}
select:hover {
  background: white;
  color: var(--primary-colour);
}

.app-inner {
  z-index: 0;
}

/** breadcrumb */
.breadcrumb>li+li:before {
  padding: 0 7px;
  color: inherit;
  opacity: .35;
  content: ">";
}
.breadcrumb>li.hidden+li:before {
  content: "";
}

.breadcrumb-container {
  position: fixed;
  left: 0;
  right: 0;
  padding: 20px;
  background-color: #fff;
  border-bottom: 1px solid rgba(52,190,224,0.2);  
  background-image: url(/assets/adapt_logo_blue.png);
  background-repeat: no-repeat;
  background-position: 10px center;
  z-index: 1;
  text-align: center;
}

.breadcrumb {
  padding: 0;
  max-width: 800px;
  margin: auto;
  background-color: inherit;
}

.breadcrumb > li {
  color: #263944;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
}

.breadcrumb > li.active {
  color: var(--primary-colour);
  font-weight: bold;
}

.breadcrumb-container button.close {
  position: absolute;
  right: 20px;
  opacity: 1;
}
.breadcrumb-container button.close .text {
  font-size: 14px;
  margin-top: 0px;
  position: relative;
  margin-right: 6px;
  top: -3px;
  font-weight: lighter;
  opacity: 0;
  transition: opacity 0.5s;
}
.breadcrumb-container button.close:hover .text {
  opacity: 0.7;
}
.breadcrumb-container button.close .icon .lnr {
  color: var(--error-colour);
  font-weight: bold;
}

/** install steps */
/*! only display active step */
.install-step-container {
  display: none;
}

/*! prepare for transition when active */
.install-step-container .install-step {
  opacity: 0;
  transform: translateY(100px);
  transition: all 2000ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0s;
}

/*! transition step into view when active */
.install-step-container.active {
  display: flex;
}
.install-step-container.active .install-step {
  opacity: 1;
  transform: translateY(0);
}

/*! each step should fill the screen - one in view at a time */
.install-step-container {
  width: 100%;
  min-height: calc(100vh - 63px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.install-step {
  width: 800px;
  margin: auto;
  display: flex;
  padding: 60px 40px;
  flex-direction: column;
}
.install-step .icon {
  font-size: 150px;
  text-align: center;
}
.install-step h2 {
  font-size: 45px;
  text-align: center;
  margin-top: 0;
}
.install-step .instruction {
  font-weight: bold;
}
.install-step span.version {
  color: white;
  font-weight: bold;
}
.install-step button {
  margin: 0 auto;
  margin-top: 25px;
}

/** first step */
.install-step.center {
  text-align: center;
}

.install-step.center h2 {
  text-align: center;
  font-size: 55px;
}

.install-step.center .btn {
  margin: 20px auto 0;
}


.step-illustration {
  margin: 30px 0;
  text-align: center;
}
.step-illustration img {
  max-width: 300px;
}

/** UI bits */
legend {
  padding-bottom: 10px;
  font-family: 'Raleway', sans-serif;
  color: white;
}

label.control-label {
  font-weight: bold;
}

.form-control {
  padding: 11px 20px;
  height: 40px;
  background-color: rgba(255,255,255,0.2);
  color: var(--form-text-colour);
  border: 0;
}

form .panel.errors {
  border: none;
  box-shadow: none;
  padding: 20px;
  background-color: #ff765a;
}
form .panel.errors .panel-heading {
  border-bottom: none;
}
form .panel.errors .panel-heading,
form .panel.errors .list-group-item {
  padding: 0;
  background: transparent;
  color: white;
  font-weight: normal;
}  
form .panel.errors .panel-heading .panel-title {
  font-weight: bold;
}
form .has-error .control-label {
  color: inherit;
}
form .error-detail {
  display: none;
}

.btn {
  padding: 10px 12px;
  width: 150px;
  background-color: var(--secondary-colour);
  color: #fff;
  border-radius: 5px;
  font-weight: 700;
  transition: all .3s;
}

.btn:hover {
  background-color: white;
  color: var(--primary-colour);
}

/*! alert colors taken from AT */
.alert {
  padding: 20px;
  border: none;
}

/*
alert glyphicon suggestions:
success - glyphicon glyphicon-ok / glyphicon glyphicon-thumbs-up
info - glyphicon glyphicon-info-sign
warning - glyphicon glyphicon-exclamation-sign
danger - glyphicon glyphicon-alert
*/
.alert-success {
  background-color: var(--alert-bg-colour);
  color: var(--error-colour);
}

.alert-info {
  background-color: var(--alert-bg-colour);
  color: var(--info-colour);
}

.alert-warning,
.alert-danger {
  background-color: var(--alert-bg-colour);
  color: var(--error-colour);
}

/**
 * Progress bar styling
 */
.progress {
  background-color: transparent;
  margin: 20px 0;
}

.progress-bar {
  border: 1px solid white;
  border-radius: 15px;
  box-shadow: none;
  background-image: linear-gradient(45deg,rgba(255,255,255,.3) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.3) 50%,rgba(255,255,255,.3) 75%,transparent 75%,transparent);
}
body .progress-bar {
  background-color: var(--primary-colour);
}

.user-credentials {
  text-align: left;
  width: 300px;
  margin: 0 auto;
  margin-bottom: 30px
}
.user-credentials > div {
  --icon-colour: var(--secondary-colour);
}
.user-credentials > div:before {
  font-family: Linearicons-Free;
  margin-right: 15px;
  padding-right: 15px;
  border-right: 2px solid rgba(255,255,255,0.3);
  color: var(--icon-colour);
}
.user-credentials > .email:before {
  content: "\e818";
}
.user-credentials > .password:before {
  content: "\e80f";
}

/**
 * Modal styling
 */
.install-step-container.error .message {
  background: rgba(255,255,255,0.2);
  padding: 25px;
  border-radius: 5px;
  color: white;
  word-break: break-word;
}



/** release notes bump type */
.release-notes .bump-type {
  font-size: 18px;
  margin-bottom: 15px;
}

.release-notes .alert {
  margin-bottom: 20px;
}

.dependencies {
  text-align: left;
  margin: 0 auto;
  columns: 2;
}
.dependencies .checkbox {
  background: rgba(0,0,0,0.2);
  border: 1px solid transparent;
}
.dependencies .checkbox:hover {
  background: rgba(255,255,255,0.1);
}
.dependencies .checkbox.checked {
  background: rgba(255,255,255,0.2);
  border-color: white;
}
.dependencies .checkbox input {
  visibility: hidden;
}

.checkbox label {
  padding: 15px;
  width: 100%;
  border-radius: 3px;
}