//
// BODY
// ---------------------------------
html, body {
  max-width: 100%;
  overflow-x: hidden
}

body {
  font-synthesis: none;
  -moz-font-feature-settings: 'kern';
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  padding-top: 120px;
  @media (max-width: @screen-xs-max) {
    padding-top: 0;
  }
}

//
// CONTAINER
// ---------------------------------
.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

// set all the different paddings for devices
.container {
  padding-right: @grid-gutter-width-half;
  padding-left: @grid-gutter-width-half;
  @media (min-width: @screen-xl-min) {
    width: @container-xl;
    .row {
      margin-left: -@grid-gutter-width-half-xl;
      margin-right: -@grid-gutter-width-half-xl;

      [class^="col-"], [class*=" col-"] {
        padding-left: @grid-gutter-width-half-xl;
        padding-right: @grid-gutter-width-half-xl;
      }
    }

    padding-right: @grid-gutter-width-half-xl;
    padding-left: @grid-gutter-width-half-xl;
  }
  @media (max-width: @screen-xs-max) {
    padding-left: @grid-gutter-width-half-xs;
    padding-right: @grid-gutter-width-half-xs;
    .row {
      margin-left: -@grid-gutter-width-half-xs;
      margin-right: -@grid-gutter-width-half-xs;
    }
  }
}

//
// CONTENT
// ---------------------------------
#content {
  min-height: 800px;
  margin-top: @content-margin-top;
  @media (max-width: @screen-xs-max) {
    margin-top: @content-margin-top-xs;
  }
}

.row {
  margin-left: -@grid-gutter-width-half;
  margin-right: -@grid-gutter-width-half;
  @media (min-width: @screen-xl-min) {
    margin-left: -@grid-gutter-width-half-xl;
    margin-right: -@grid-gutter-width-half-xl;
  }
  @media (max-width: @screen-xs-max) {
    margin-left: -@grid-gutter-width-half-xs;
    margin-right: -@grid-gutter-width-half-xs;
  }
}

@media (max-width: @screen-xs-max) {
	[class^="col-"], [class*=" col-"] {
      padding-left: @grid-gutter-width-half-xs;
      padding-right: @grid-gutter-width-half-xs;
    }
}

.full-width {
  margin-left: -10000px;
  margin-right: -10000px;
  padding-left: 10000px;
  padding-right: 10000px;
}

.new-chapter {
  margin-top: 40px;
  padding-top: 25px;
  @media (max-width: @screen-xs-max) {
    margin-top: 0;
  }
}

// -- FIX BOOTSTRAP BUG --//
// column not automatically 100% on mobile
@media (max-width: @screen-xs-max) {
  .col:not([class*="col-xs"]) {
    width: 100%;
  }
}

//
// OTHER
// ---------------------------------

