.wrapper {
	position: relative;
	width: 100%;
}

.constrain-outer {
	position: relative;
	width: 100%;
	padding-top: 150px;
	background: url("../img/main_bg.png") center top no-repeat;
	z-index: 2;
	max-height: 1000px;
	background-size: cover;
}

.constrain-inner {
	@extend %clearfix;
	position: relative;
	max-width: 64em;
	margin: 0 auto;
	min-height: 3000px;
	border: 1px solid $color-black;
	border-width: 0 1px;
}

.container {
	@extend %clearfix;
	max-width: 1020px;
	margin-left: auto;
	margin-right: auto;

	//padding for main container for all pages (30px - scroll size)

	&--main {
		@include until($bp-large + 30px) {
			padding-left: $med-spacing-unit;
			padding-right: $med-spacing-unit;
		}
	}

	&--wide {
		@include until($bp-large + 30px) {
			margin-left: -$med-spacing-unit;
			margin-right: -$med-spacing-unit;
		}
	}
}

// footer at bottom with flexbox
.section {
	@extend %clearfix;
	padding-left: 0.625rem;
	padding-right: 0.625rem;
	&--oncanvas {
		/*display: flex;
		flex-direction: column;*/
		width: 100%;
		height: 100%;
		position: relative;
		z-index: 1;
	}

	&--wrap {
		flex: 1 0 auto;
		width: 100%;
		background: $color-white;
		position: relative;
		box-shadow: 0 3px 14px rgba($color-black, .35);

		@include until($bp-small) {
		  box-shadow: none;
		}
	}

	// section--negative
	&--negative {
	  color: $color-white;

	  .text--secondary {
		opacity: .75;
	  }
	}

	//----------------------------------
	//section--hero

	&--hero{
	  background: #038cd6 url("../img/main_bg.png") 63% top;
	  position: relative;

	  @include  until($bp-medium){
		min-height:1.875rem;
		padding: 0.5rem 0.625rem 0;
		overflow: hidden;
		z-index: 5
	  }

	  @include at-least($bp-medium) {
		min-height:4.688rem;
		padding-top: 1.5rem;
		padding-bottom: 0.375rem
	  }

	  & .subtitle{
		color: #c2e2f2;
		position: relative;

		@include  until($bp-medium){
		  font-size: 0.813rem;
		  line-height: .9375rem;
		  line-height: 1.4
		}
		@include at-least($bp-medium) {
		  top: .25em
		}
	  }

	  & .hgroup{
		@include  until($bp-medium){
		  min-height: 2.625rem
		}
		@include at-least($bp-medium) {
		  min-height: 4.375rem
		}
	  }

	  & [class*="title--"]{
		@include  until($bp-medium){
		  font-family: arial, sans-serif;
		  font-size: 1rem;
		  line-height: 1
		}
	  }

	  & .dropdown{
		@include at-least($bp-medium) {
		  margin-top: 0.375rem;
		  display: inline-block;
		}
	  }

	  &--slider{
		padding: 0
	  }

	  &--account{
		@include  until($bp-medium){
		  padding: 0
		}

		& [class*="title--"]{
		  @include  until($bp-medium){
			position: absolute;
			top: 8px;
			left: 10px;
			@include zindex(ui-middle);
			pointer-events: none;
			float: left
		  }
		}
	  }

	}

	//----------------------------------
	//section--small

	&--small{
	  @include at-least($bp-medium){
		min-height:3.125rem;
		padding-top: 15px;
		padding-bottom: 15px;
	  }

	  & h1{
		@include at-least($bp-medium){
		  line-height: 1;
		  margin-bottom: 0
		}
	  }
	}
}
.float-left,.pull-left {
  float:left
}
.float-right,.pull-right {
  float:right
}

//text--content by Emile

.text{
  $root: &;
  &--content{

	mark{
	  background-color: $color-telenor-blue;
	  color: $color-white;
	  padding: 0 2px;
	}

	a {
	  color: $color-telenor-blue;
	}
	code,small{
	  @extend %text-size--13;
	}
	h1{
	  @extend %text-size--44;
	}
	h2{
	  @extend %text-size--30;
	}
	h3{
	  @extend %text-size--21;
	}
	h4{
	  @extend %text-size--19;
	}
	h1,h2,h3{
	  font-family:$telenorlight-font-family;
	  a:hover{
		color: $color-telenor-blue;
		text-decoration: underline;
	  }
	}
	p,ol,ul,dl{
	  margin-bottom:$base-spacing-unit;
	}
	.button{
	  color: $color-stone-grey;
	  &.button--action{
		color: $color-white;
	  }
	}
  }
}


//box
.box{
  $root: &;

  &--default{
	overflow: hidden;
	border: 1px solid $color-smoke-grey;
	background-color: $color-paper-white;

	&-dark-border{
	  background-color: $color-paper-white;
	  border: 1px solid $color-silver-grey;
	}
  }
  img{
	max-width: 100%;
  }

  @mixin at-least($bp) {
	@media only screen and (min-width: $bp) {
	  &--blue, &--yellow, &--yellow-light,
	  &--purple,&--green, .title--section{
		padding: 1.25rem 1.25rem 1.25rem 1.25rem;
	  }
	}
  }

  &--expand-above-border{
	margin: -1px;
  }

  &--inner-shadow-left,
  &--inner-shadow-right{
	position: relative;

	&:before{
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 6px;
	  height: 100%;
	  background: -webkit-linear-gradient(0deg,  rgba(0,0,0,0.03) 3%, transparent);
	  background: linear-gradient(90deg,  rgba(0,0,0,0.03) 3%, transparent);
	  content: "";
	}
  }

  &--inner-shadow-right{

	&:before{
	  right: 0;
	  left: auto;
	  background: -webkit-linear-gradient(180deg,  rgba(0,0,0,0.03) 3%, transparent);
	  background: linear-gradient(270deg,  rgba(0,0,0,0.03) 3%, transparent)
	}
  }

  &--default-dark-border{
	overflow: hidden;

	img{
	  max-width: 100%;
	}
  }

  &--white-bottom-gradient{
	position: relative;
	padding-top: $small-spacing-unit;
	padding-bottom: $med-spacing-unit;
	border-bottom: 3px solid $color-telenor-blue;
	z-index: 10;

	&:before{
	  content: "";
	  z-index: 3;
	  position: absolute;
	  bottom: -3px;
	  left: 0;
	  background-color: #6eb45b;
	  background-image: linear-gradient(to right, #6eb45b, #2b9ba8, $color-telenor-blue);
	  height: 3px;
	  width: 100%;
	}

	& + .border,
	& + .block--col--dark,
	& + .block--content--dark,
	& + .box--default,
	& + .box--default-dark-border{
	  border-top: 0;
	}
  }

  &--white-top-gradient{
	position: relative;
	border-top: 3px solid $color-telenor-blue;
	margin-top: $large-spacing-unit;

	&:before{
	  content: "";
	  position: absolute;
	  top: -3px;
	  left: 0;
	  background-image: $gradient-greenblue;
	  height: 3px;
	  width: 100%;
	}
  }
}


