/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

.form-select:-moz-placeholder {
  color: #999999;
}
.form-select::-moz-placeholder {
  color: #999999;
}
.form-select:-ms-input-placeholder {
  color: #999999;
}
.form-select::-webkit-input-placeholder {
  color: #999999;
}
.form-select {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.428571429;
  color: #555555;
  vertical-align: middle;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-select:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html {
	font-size: 100%;
}

body {
	font-family: 'Open Sans', sans-serif;
	color: #000;
	font-weight: lighter;
	text-align: center;
}

a:link {
	color: #000;
}

a:visited {
	color: #000;
}

a:hover,
a:focus {
	text-decoration: none;
}

a.btn-primary {
	background: #A6A149;
	border-color: #A6A149;
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
	background: #959241;
	border-color: #959241;
}

.form-control {
	border-radius: 0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	-ms-border-radius: 0;
	-o-border-radius: 0;
}

h1#site-name {
	width: 90%;
	max-width: 1190px;
	margin: 0 auto;
	margin-bottom: -10%;
	position: relative;
	z-index: 1;
}

h1#site-name a {
	display: block;
	width: 100%;
	height: 0;
	padding-bottom: 33.067227%;
	text-indent: -9999px;
	background: url(img/fas-logo.png) 0 0 no-repeat;
	background-size: cover;
}

#block-views-illustrationer-block {
	width: 60%;
	margin: 0 auto;
}

#header {
	padding-top: 25px;
}

h2 {
	font-weight: lighter;
	margin: .2em 0;
}

a:link {
	outline: medium none;
}

#header {
	background: #fff;
	text-align: center;
}

#header h2 {
	font-weight: normal;
}

#header .btn {
	margin-top: 2em;
	margin-bottom: 2em;
}

#header {
	width: 96%;
	max-width: 1000px;
	margin: 0 auto;
}

#header .section p {
	font-size: 1.3em;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

#header .section p,
#header .section h2 {
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

img {
	max-width: 100%;
	height: auto;
	width: 100%\9;
}

#page-wrapper {
	overflow: hidden;
}

#main-wrapper {
}

.video-container {
	width: 55%;
	max-width: 520px;
	margin: 0 auto;
	padding: 0;
	background: #fff;
}

.video-container > div {
	width: 100%;
	padding-bottom: 62.65%;
	height: 0;
	position: relative;
}

.video-container > div iframe {
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	position: absolute;
}

.view-startsida .item-list {
	overflow: hidden;
}

.view-startsida ul {
	margin: 0 -2.5%;
	padding: 0;
	text-align: center;
}

.view-startsida ul li {
	display: inline-block;
	zoom: 1;
	*display: inline;
	width: 22%;
	margin-left: 1%;
	margin-right: 1%;
	margin-bottom: 3%;
	list-style-type: none;
	list-style-image: none;
	text-align: left;
}

.view-startsida ul li a {
	padding: 13px;
	background: #fff;
	box-shadow: 0 0 6px rgba(0,0,0,.4);
	display: block;
}

.view-startsida ul li a:hover,
.view-startsida ul li a:focus {
	box-shadow: 0 0 15px rgba(0,0,0,.4);
}

.address, .phonenumber {
    font-size: 1.5em;
    margin: 1em 0;
    font-weight: bold;
    display: block;
}

#opening-hours {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

#opening-hours table {
    text-align: left;
    min-width: 210px;
    margin: 1.5em auto;
}

#opening-hours table td:first-child {
    padding-right: 35px;
}

#opening-hours .top-bg {
    position: absolute;
    bottom: 0px;
    left: 0;
    height: 30px;
    width: 100%;
    background-image: url(img/circle-filled.svg);
	background-position: center top;
	background-repeat: repeat-x;
	z-index: 0;
}

#menu {
	background-color: #ec8a6f;
	padding: 25px 0;
    position: relative;
}

#menu h2 {
    font-weight: bold;
    margin: 0 0 .8em 0;
}

#menu .bottom-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url(img/circle.svg);
	background-position: center top;
	background-repeat: repeat-x;
	z-index: 0;
}

#menu .book {
	width: 96%;
	max-width: 1000px;
	margin: 0 auto;
	text-align: left;
	font-size: .875em;
	perspective: 1000;
	z-index: 1;
	position: relative;
	text-shadow: 1px 1px 0 #fff;
}

#menu ul {
    margin: 0;
    padding: 0;
}

#menu ul li {
    list-style-type: none;
    list-style-image: none;
}

#menu .book h3 {
	font-family: 'Comic Sans MS', sans-serif;
	margin: .8em 0 .3em 0;
}

#menu .book h3:first-child {
    margin-top: 0;
}

#menu .book strong span,
#menu .book h3 span {
    float: right;
}

#menu .book p {
    margin-top: 0;
}

#menu .book .side {
	width: 33.333%;
	float: left;
	background: #fff;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	background: #fff;
	padding: 3px;
	border-left: 1px dashed #aaa;
	position: relative;
}

#menu .book .side:first-child {
    border-left-width: 0;
}

#menu .book .side .inner {
	border: 3px solid #3C7C1D;
	background-image: url(img/fas-menu.png);
	padding: 10px;
	
}

#menu .book .right .inner {
/* 	border-right: 3px solid #3C7C1D; */
}

#menu .book .middle .inner {
	/*
border-right: 1px dashed #aaa;
	border-left: 1px dashed #aaa;
*/
}

#menu .book .left .inner {
/*     box-shadow: -2px 0 2px rgba(0, 0, 0, .3); */
}

#menu .book .middle {
    box-shadow: -2px 0 2px rgba(0, 0, 0, .3);
    overflow-x: hidden;
    z-index: 0;
}

#menu .book .left {
    box-shadow: -2px 0 2px rgba(0, 0, 0, .3);
    z-index: 1;
}

#menu .book .right {
	perspective: 800px;
	transform-origin: left center 0;
    transform-style: preserve-3d;
    transform: rotateX(3deg) rotateY(-3deg);
    box-shadow: 2px 0 2px rgba(0, 0, 0, .3);
    z-index: 1;
}

#signup {
	background: #fff;
	margin: 25px 0;
	padding: 25px;
	box-shadow: 0 0 6px rgba(0,0,0,.4);
}

#signup h2 {
	font-weight: normal;
	text-transform: uppercase;
	text-align: center;
}

.webform-component {
	margin: .8em 0;
}

.webform-component label {
	width: 25%;
	float: left;
	text-align: right;
	padding-right: 2%;
	margin: 0;
	padding-top: 6px;
	padding-bottom: 6px;
}

.webform-component label.option {
	float: none;
	width: auto;
	text-align: left;
	padding: 0;
	margin: 0;
}

#webform-component-terms {
	margin-left: 26%;
}

#webform-component-terms label,
#webform-component-terms option {
	display: inline;
}

#webform-component-terms label {
	font-weight: lighter;
}

.webform-component .form-control,
#webform-component-kon .form-radios {
	float: right;
	width: 74%;	
}

#webform-component-kon .form-radios {
	padding-top: 6px;
	padding-bottom: 6px;
}

.webform-client-form {
	margin: 2em 0;
}

.webform-client-form #edit-actions {
	padding-left: 26%;
	border-top: 1px solid #ccc;
	margin-top: 2em;
}

.webform-client-form .form-select {
	width: auto;
	float: left;
	margin-left: 1%;
}

.webform-client-form .btn {
	background: #A6A149;
	border-color: #A6A149;
	color: #fff;
	padding: 10px 25px;
	margin-top: 2em;
	text-transform: uppercase;
	font-size: 18px;
    line-height: 1.33;
    padding: 10px 16px;
}

.webform-client-form .btn:hover,
.webform-client-form .btn:focus {
	background: #959241;
	border-color: #959241;
}

.form-required {
	color: #590d0d;
}

#footer {
	background: #c8eaeb;
	height: 114px;
	border-top: 1px solid #000;
	margin-top:400px;
}

#footer .section {
	width: 96%;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
}

#footer .footer-img {
	width: 800px;
	height: 501px;
	background-image: url(img/bloodbath.png); 
	background-position: 0 0;
	background-size: cover;
	position: absolute;
	left: 50%;
	margin-left: -400px;
	top: 0;
	margin-top: -377px;
}

.alert > p, .alert > ul {
	margin-top: 0;
}

.error {
	border-color: red;
}

.front p {
	font-size: 1.2em;
}

.social-links {
	text-align: center;
	padding: 0;
}

.social-links li {
	display: inline-block;
	zoom: 1;
	*display: inline;
	margin: 0 8px;
	list-style-type: none;
	list-style-image: none;
}

.social-links li a {
	display: block;
	padding: 8px 0;
	font-size: 1.1em;
	background: #3c7c1d;
	color: #fff;
	width: 210px;
}

.social-links li a:hover {
	background: #5cbe2b;
}

@media screen and (max-width: 850px) {
    #menu .book .side {
        float: none;
        width: 100%;
        display: block;
    }
    
    #menu .book .side .inner {
        height: auto !important;
    }
}

@media screen and (max-width: 540px) {
	.social-links li {
		display: block;
		width: 200px;
		margin: 5px auto;
	}
}

@media screen and (max-width: 670px) {

	h1#site-name {
		margin-bottom: 25px;	
	}
	
	.video-container {
		width: 90%;
	}
	
	.view-startsida ul li {
		width: 30%;
	}
	
	.webform-component label,
	#webform-component-kon .form-radios {
		float: none;
		padding: 0;
		width: 100%;
		display: block;
		text-align: left;
	}
	
	.webform-component .form-control {
		float: none;
		width: 100%;
	}
	
	.webform-component label.option {
		display: inline;
	}
	 
	#webform-component-kon .form-radios {
		
	}
	
	#webform-component-terms,
	.webform-client-form .form-select {
		margin-left: 0;
	}
	
	.webform-client-form #edit-actions {
		padding-left: 0;
	}
}

@media screen and (max-width: 480px) {
	.view-startsida ul li {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
	
	.view-startsida ul {
		margin: 0;
	}
	
	.view-startsida ul li a img {
		width: 7%;
		float: left;
		margin-right: 3%;
	}
	
	.view-startsida ul li a h2 {
		float: left;
		width: 90%;
		margin: 0;
	}
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden,
.element-invisible {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after,
.webform-component:before,
.webform-component:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after,
.webform-component:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix,
.webform-component {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

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

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
