@import 'variables.scss';

/******************************
RESET
*******************************/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,a,img,small,strong,b,i,dl,dt,dd,form,label,footer,header,menu,nav,section{
margin:0;padding:0;border:0;outline:0;} body{overflow-x: hidden;} article,aside,details,figcaption,figure,footer,header,menu,nav,section{display:block}
textarea:focus, input:focus, select:focus, button:focus{outline: none;}
header *, #container *, footer *, #top-modules *, #bottom-modules * {box-sizing: border-box;}
*{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.clearfix{clear: both; display: block;}

:before, :after{
  font-family:'journal-icons';
  position: relative;
  font-style: normal;
  color: inherit;
  font-size: inherit;
  display: inline-block;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
i{
  position: relative;
  font-style: normal;
  vertical-align: middle;
  img{
    position: relative;
    vertical-align: middle;
  }
}

/******************************
JOURNAL GRID
*******************************/

$classes: ();

@each $size in xs, sm, md, lg, xl{
  @for $i from 1 through 20{
    $classes: join($classes, unquote(".#{$size}-#{$i * 5}"), comma);
  }
  $classes: join($classes, unquote(".#{$size}-33"), comma);
  $classes: join($classes, unquote(".#{$size}-66"), comma);
}

@for $i from 1 through 20{
  .xl-#{$i * 5} {
    width: $i * 5%;
  }
}

.xl-11{
  width: 11.11111111111111%;
}

.xl-12{
  width: 12.5%;
}

.xl-14{
  width: 14.28571428571429%;
}

.xl-16{
  width: 16.66666666666666%;
}

.xl-33{
  width: 33.33333333333333%;
}

.xl-66{
  width: 66.66666666666666%;
}

#{$classes} {
  min-height: 1px;
  float: left;
}
.xs-11, .xs-12, .xs-14, .xs-16,
.sm-11, .sm-12, .sm-14, .sm-16,
.md-11, .md-12, .md-14, .md-16,
.lg-11, .lg-12, .lg-14, .lg-16,
.xl-11, .xl-12, .xl-14, .xl-16{
  min-height: 1px;
  float: left;
}

/******************************
 GENERAL STRUCTURE
*******************************/

//Heights
.j-min{height:$j-min}
.j-med{height:$j-min * 2}
.j-tall{height:$j-min * 3}
.j-50{height: $j-50}
.j-100{height: $j-min * 2 + 20}

//Z-index
.z-0{z-index: 0}
.z-1{z-index: 1}
.z-2{z-index: 2}
.z-3{z-index: 3}
.z-4{z-index: 4}
.z-5{z-index: 5}
.z-6{z-index: 6}
.z-7{z-index: 7}
.z-8{z-index: 8}
.z-9{z-index: 9}

body{
  font-size: 13px;
  font-family: $sans;
}

/******************************
 CONTENT
*******************************/

#container{
  max-width: $sitewidth;
  //height: 100%;
  position: relative;
  margin: 0 auto;
  background-color:transparent;
  z-index: 3;
}

.heading-title, .box-heading{
  line-height: 37px;
  height: 40px;
  font-size: 15px;
  font-weight: normal;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heading-title {
  margin-bottom:17px;
}

.secondary-title {
  font-family: $sans;
  font-size: 17px;
  color: $lightquartz;
}

#content{
  position: relative;
  z-index: 2;
  padding: $margin $margin 0 $margin;
  background-color:transparent;
  -webkit-transform: translate3d(0,0,0);

  &:after{
    content: ".";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
  }
}
.box{
  position: relative;
}


.content{
  ul, li{
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
  }
  ul{
    margin: 8px 0;
  }
  > ul > li{
    > a{
      display: inline-block;
      padding: 4px 0;
      padding-left: 10px;
      font-size: inherit;
    }
  }
}

/******************************
 BUTTONS / LINKS
*******************************/
a{
  color: $dark;
  text-decoration: none;
  cursor: pointer;
}

.button {
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
  padding: 0 12px;
  border: 0;
  line-height: 32px;
  background-color: transparent;
  display: inline-block;
  -webkit-appearance: none;
  text-align: center;
  i:before{
    padding: 0 1px;
  }
}

.cart{
  position: relative;
}

.button-disabled{
  opacity: .5;
  cursor: default;
  &:before, &:after{
    display: none !important;
  }
}

.buttons {
  overflow: hidden;
  padding: 15px 0;
  line-height: 30px;
  margin:20px 0 20px 0;
  .left{
    padding-top: 2px;
  }
}

.buttons .left {
  float: left;
  text-align: left;
}

.buttons .right {
  float: right;
  text-align: right;
}

.buttons .right a {
  text-decoration: none !important;
}

.buttons .center {
  float: left;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

hr{
  border: 0;
  background-color: $e4;
  height: 1px;
  margin: 0;
}

/******************************
 BREADCRUMB
*******************************/

.breadcrumb {
  margin: 0 auto;
  padding: 0 15px;
  height: 40px;
  line-height: 38px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  a {
    color: inherit;
    font-size: inherit;
    transition: all .2s ease;
    display: inline-block;
    vertical-align: middle;
  }
}

.extended-container{
  &:before{
    content: "";
    display: block;
    width: 100%;
    height: 40px;
    position: absolute;
  }
}

.home-page .extended-container, 
.maintenance-mode .extended-container{
  &:before{
    display: none;
  }
}

.home-page #container{
  &:before{
    content:"";
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
  }
}

.maintenance-message{
  padding-bottom: 20px;
}


/******************************
 NOTIFICATION
*******************************/

.journal-slider + #container > #notification {
  display: none;
}

#notification {
  position: absolute;
  z-index: 2;
  width: 100%;
}

.success, .warning, .information, .attention{
  width: 100%;
  position: relative;
  z-index: 2;
  height: auto;
  padding:10px 15px;
  line-height: $margin;
  a{
    color: $blue;
  }

  img{
    float: right;
    margin-top: 6px;
    cursor: pointer;
    display: block;
  }
}
.success{background-color: #CDECA6;}
.warning{background-color: #FBE3A7;}
.attention{background-color: #FBE3A7;}
.information{background-color: #BFE7F1;}


/******************************
 INPUTS
*******************************/


.required, .cart-info .stock{
  color: $red;
  font-size: 16px;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
textarea {
  -webkit-appearance: none;
  background: white;
  border-radius: 0px;
  border: 1px solid $e4;
  padding: 8px;
  width: 100%;
  transition: all 0.2s;
  font-size: 13px;
  box-shadow: inset 0 0px 3px rgba(0, 0, 0, 0.08);
}

textarea {
  width: 100%;
  max-width: 100%;
  resize: none;
  height: 150px;
}


input[type='radio'],
input[type='checkbox'] {
  margin: 5px;
}

select {
  background: $f4;
  border: 1px solid $e4;
  padding: 5px;
  margin: 5px;
}

label {
  cursor: pointer;
  padding-right: $margin;
  font-weight: bold;
}

span.error {
  display: inline-block;
  background-color: $red;
  color: white;
  padding: 3px 4px 2px 4px;
  font-size: 12px;
  position: relative;
}

/******************************
 COLORBOX
*******************************/

#cboxLoadedContent{
  h1{
    padding-bottom: 2px;
    display: inline-block;
    border-bottom: 1px solid $e4;
    margin: 10px 0 10px 10px;
    font-size: 24px;
  }
  p{
    padding: 0 10px;
  }
}

/******************************
 RESPONSIVE VIDEO
*******************************/

.responsive-video {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  > iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.extended-layout{
  #column-left{
    padding: 20px 0 0 0;
    width: 220px;
  }
  #column-right{
    padding: 20px 0 0 0;
    width: 220px;
  }
  #column-left + #content{
    padding: 20px 0 0 20px;
    margin-left: 220px;
  }
  #column-right + #content{
    padding: 20px 20px 0 0;
    margin-right: 220px;
  }
  #column-left + #column-right + #content{
    padding: 20px 20px 0 20px;
    margin-left:220px;
    margin-right: 220px;
  }
  #content{
    padding: 20px 0 0 0;
  }
}


/******************************
 TOP BOTTOM POSITION
*******************************/
#top-modules, #bottom-modules{
  position: relative;
  z-index: 1;
  > div{
    margin: 0 auto;
    overflow: hidden;
    //padding: 0 20px;
    &.journal2_slider, &.gutter{
      padding: 0;
    }
    > div {
      position: relative;
      margin: 0 auto;
    }
  }
  .box.static-banners,
  .multi-modules-wrapper,
  .box.journal-carousel
  .box.custom-sections,
  .box.cms-blocks {
    padding-bottom: 0 !important;
  }
  .multi-modules-wrapper{
    margin-bottom: -20px;
  }

}

.chrome {
  #top-modules, #bottom-modules{
    position: static;
  }
}
