@import "select2";
@import "application/variables";
@import "application/bootstrap-overrides";
@import "bootstrap";
@import "application/bootstrap-classes-overrides";
@import "application/member-card";
@import "application/avatar";
@import "application/footer";
@import "application/glyphicons";

.content {
  margin-bottom: 120px;
}

.actions-menu {
  margin-bottom: 10px;
  padding: 0 10px;

  @include media-breakpoint-down(sm) {
    padding: 0;
  }
}

.actions-menu > li > a {
  color: #101010;
  padding: 10px 16px;

  @include media-breakpoint-down(sm) {
    padding: 8px;
    font-size: 15px;
  }
}

.actions-menu > li {
  margin-right: 6px;

  @include media-breakpoint-down(sm) {
    margin-right: 2px;
  }
}

#login-box {
  border-radius: 0.125rem;

  form {
    border: 0;
    border-radius: 0.125rem;
    margin: 0;
    padding: 0;
  }

  input {
    background-color: $form-input-bg-color;
    border-radius: 0.125rem;
  }

  input[type="checkbox"] {
    border: 0;
  }

  input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px $form-input-bg-color inset;
    transition: background-color 100000s ease-in-out 0s;
  }

  span.show-password {
    border-radius: 0 0.125rem 0.125rem 0;
    cursor: pointer;
  }

  ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: $form-input-glyph;
  }

  ::-moz-placeholder { /* Firefox 19+ */
    color: $form-input-glyph;
  }

  ::-ms-input-placeholder { /* IE 10+ */
    color: $form-input-glyph;
  }

  ::-moz-placeholder { /* Firefox 18- */
    color: $form-input-glyph;
  }

  .card-header {
    color: darken($black, 5%);
    text-align: center;
  }

  .card-footer {
    padding: 1.25rem 1.875rem;

    a {
      color: $form-a-color;
    }

    a:hover {
      color: $form-a-hover-color;
      text-decoration: none;
    }
  }

  .input-group-prepend {
    padding: 6px 12px;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
    text-align: center;
    border-radius: 0.125rem 0 0 0.125rem;
    display: flex;
    align-items: center;

    @include media-breakpoint-down(sm) {
      padding: 10px;
    }
  }

  .form-control-lg, #user_email {
    border-radius: 0 0.125rem 0.125rem 0;
    padding: 0 4px;
  }

  #user_password {
    border-radius: 0;
  }

  .input-group-prepend, .form-control-lg {
    background-color: $form-input-bg-color;
    border: 0;
    box-shadow: none;
    color: $form-input-glyph;
    font-size: 1.4rem;

    @include media-breakpoint-down(sm) {
      font-size: 1.15rem;
    }
  }

  .form-control {
    border: 0;
    font-weight: 400;
    height: 4.7rem;

    @include media-breakpoint-down(sm) {
      height: 6rem;
    }
  }

  .form-control:focus {
    border-color: none;
    box-shadow: none;
    outline: 0;
    -webkit-box-shadow: none;
   }

  .radio label, .checkbox label {
    padding: 0;
  }

  .btn {
    background-color: $form-input-button;
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 0.625rem;
    padding: 1.25rem;
    border: none;
  }

  .btn:hover {
    background-color: $form-input-button-hover;
  }
}

.post {
  background-color: $white;
  border: 1px solid $border;
  border-radius: 5px;
  margin: 14px 0;
  padding: 5px 20px;

  .post__group_label {
    margin-left: 10px;
  }

  h4 {
    font-weight: bold;
    display: block;
  }

  .category {
    font-weight: bold;
    margin-right: 10px;

    .glyphicon {
      font-size: 140%;
      margin-right: 4px;
    }
  }

  &__datetime {
    color: $palette-grey;
    padding: 4px 0 0;
    font-size: 10px;
    text-align: right;
  }
}

.break-word {
  word-wrap: break-word;
}

.post-description img {
  float: left;
  max-width: 60%;
}

#new_transfer {
  padding: 20px;
}

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

  body {
    background-color: $bg-color;
    font-family: 'Work Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: medium;
  }

  form {
    background: $white;
    border: 1px solid $border;
    border-collapse: inherit;
    border-radius: 0.125rem;
    margin-bottom:20px;
    padding: 20px;
  }

  table.users tr:nth-of-type(2) th {
    border-top:0;
  }

  .user-profile {
    h1 {
      margin-bottom: 20px;
      margin-top: 0;
      font-size: 32px;

      @include media-breakpoint-down(sm) {
        font-size: 26px;
      }
    }

    img {
      max-width: 100%;
    }
  }
}

@media print {
  body {
    padding-top: 0px;
  }

  .table {
    border-collapse: collapse;
  }
}

.error {
  color: red;
}

// statistics view
ul.statistics li{
  padding-right: 10px;
  padding-bottom: 10px;
}

#chart{
  clear: both;
}

.pagination {
  width: 100%;
  text-align: center;
}

/*flash*/
.alert > ul {
  list-style: none;
  padding-left: 0.95rem;
}

.alert a {
  text-decoration: underline;
}

// fields that contain an error
.field_with_errors{
  color: red;
}

label[required]::after{
  content: " *";
}

// paginator
.paginate-align {
  display: table;
  margin: 0 auto;
}

//fix select2 100px
.select2-container {
  width: 100% !important;
}

.form-inline {
  border: 0;
  background-color: transparent;
  padding: 0;

  @include media-breakpoint-down(sm) {
    padding: 10px 15px;
  }
}

.navbar-header {
  min-height: 60px;
}

.text-white .dropdown-item {
  color: $white;
}

.navbar .container-fluid {
  padding: 0;
}

.navbar-nav > li > a {
  font-weight: 500;
  margin: 0.5rem;
  color: $white;
}

.navbar-static-top {
  background-color: rgba($palette-turkey, 0.9);
}

.navbar-inverse {
  border: 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
}

.landing-page, .login-page, .pages, .unlocks-page, .confirmations-page, .passwords-page {
  background: image-url('home_back.jpg') no-repeat center center fixed;
  background-size: cover;

  @include media-breakpoint-down(sm) {
    background: image-url('home_back_mobile.jpg') no-repeat center center fixed;
    background-size: cover;
  }

  .home-wrapper {
    position: absolute;
    top: 20%;
    left: 0;
    padding: 26px;
    width: 100%;
    z-index: 1;
  }

  .container-inner {
    margin-bottom: 14rem;
  }
}

.landing-page {
  background: image-url('home_back.jpg') no-repeat center center fixed;
  background-color: $palette-turkey;
  background-size: cover;
  text-align: center;

  @include media-breakpoint-down(sm) {
    background: image-url('home_back_mobile.jpg') no-repeat center center fixed;
    background-size: cover;
  }
}

.landing-page .content, .pages .banner {
  h2 {
    color: $white;
    font-size: 3.6rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px $palette-black;
  }

  h3 {
    color: $white;
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 0.625rem;
    text-shadow: 1px 1px $palette-black;
  }

  .btn {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 4rem;
    padding: 0.95rem 3.75rem;
  }

  .btn-info {
    background: $btn-landing;
    border: 0;
    color: $black;
  }

  .btn-info:hover {
    background: $btn-landing-hover;
  }
}

.login-page {
  .checkbox {
    color: $form-login-gray-text;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0rem;
    margin-top: 0.625rem;
  }

  form .checkbox input[type="checkbox"] {
    display: block;
    float: left;
    height: 1.25rem;
    margin-bottom: -0.1875rem;
    margin-left: 0;
    margin-right: 0.625rem;
    outline: 0;
    position: relative;
    top: -0.1875rem;
    width: 1.25rem;
    -webkit-appearance: none;
  }

  form .checkbox input[type="checkbox"]:checked {
    background-image: image-url('checked.png');
    background-size: 100%;
  }

  #login-box .card-footer {
    background-color: $white;
    border-top: 0.06rem solid $form-input-button;
    font-size: 1rem;
  }
}

.unlocks-page, .confirmations-page, .passwords-page {
  #login-box form {
    border: none;
    margin-top: 1.875rem;
    padding: 0;
  }

  .card-body h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
  }

  .card-body .description {
    color: $form-login-gray-text;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.625rem;
  }
}

.pages{
  background-image: none;

  h2 {
    color: $pages-title;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 2rem;
  }

  h2 span {
    display: block;
  }

  h3 {
    color: $pages-title;
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 0.95rem;
  }

  .header, .banner, .section-block {
    text-align: center;
  }

  .features ul {
    margin: 0;
    padding: 0;
  }

  .features > ul {
    margin-top: 3rem;
  }

  .features ul li {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .feature, .feature-group {
    background-color: $features-background;
    border-bottom: 0.06rem solid $features-separator;
    border-radius: 0;
    color: $pages-text;
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 1.25rem 4rem;
  }

  .feature-icon {
    float: left;
    margin-right: 1.25rem;
  }

  .features .first {
    border-radius: 0.125rem 0.125rem 0 0;
  }

  .features .last .feature {
    border-bottom: 0;
    border-radius: 0 0 0.125rem 0.125rem;
  }

  .feature-group {
    font-weight: 500;
    padding-top: 2.2rem;
  }

  .banner {
    background: image-url('home_back.jpg') no-repeat center center;
    background-size: cover;
    margin: 4rem 0;
    padding: 8rem 0.625rem;
    text-align: center;

    @include media-breakpoint-down(sm) {
      background: image-url('home_back_mobile.jpg') no-repeat center center fixed;
      background-size: cover;
    }

    h2 {
      font-size: 2.88em;
      font-weight: 600;
    }

    h3 {
      font-size: 1.2rem;
      font-weight: 500;
    }

    .btn {
      font-size: 1.8rem;
    }
  }

  .section-block {
    h2 {
      margin-bottom: 2rem;
    }

    p {
      font-weight: 400;
      margin-bottom: 2rem;
      text-align: left;
    }

    a {
      color: $pages-anchor;
      text-decoration: underline;
    }

    a:hover {
      color: $pages-anchor-hover;
    }
  }
}

@media(max-width:767px){
  .navbar-nav > li {
    text-align: center;
  }
}

.errors {
  padding: 3em;

  h3 {
    margin-left: auto;
    margin-right: auto;
    max-width: 75%;
    padding: 1em;
    line-height: 1.6em;
  }
}

.inline-checkbox {
  vertical-align: middle;
  display: inline;
  margin: 0 !important;
}

.organization-logo {
  padding-top: 80px;

  img {
    display: block;
    margin: 0 auto;
    max-width: 600px;
  }
}

.input__password-eye {
  display: flex;
  align-items: center;
  justify-content: right;

  .show-password {
    position: absolute;
    display: flex;
    margin-right: 12px;
    cursor: pointer;
  }
}

.hide {
  display: none;
}
