/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;

}

p {
    min-width: 10em;
}

h1,h2,h3,h4{
  font-family: modernfont;
}


body {
    overflow-y:hidden;
    min-width:1000px;
    min-height:600px;
    background-color:#000000;
    margin: 0px;
    padding: 0px;
    background-color: #C9C9C9;
    background: url(../img/bakgrund.jpg) no-repeat center center fixed; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    -webkit-background-size: cover !important;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/main_bg.png', sizingMethod='scale')";
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/main_bg.png', sizingMethod='scale')";

}


/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets 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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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






@font-face {
    font-family: modernfont;
    src: url("../modern.ttf");
}
#center {
  width:800px; 
  margin:0 
  auto;
}

#menu {
    min-height:500px;
    position: fixed;
    font-family: modernfont;
    background-color: #030303;
    width: 240px;
    height:100vh;
    margin: 0px;
    margin-left: -40px;
    margin-top: 0px;
    padding: 20px;

    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";       /* IE 8 */
    filter: alpha(opacity=85);  /* IE 5-7 */
    -moz-opacity: 0.85;          /* Netscape */
    -khtml-opacity: 0.85;        /* Safari 1.x */
    opacity: 0.85;               /* Good browsers */

}

#links {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";       /* IE 8 */
    filter: alpha(opacity=100);  /* IE 5-7 */
    -moz-opacity: 1.0;          /* Netscape */
    -khtml-opacity: 1.0;        /* Safari 1.x */
    opacity: 1.0;               /* Good browsers */
    line-height: 1; 
    font-size: large;
    padding: 10px;
}
#title1 {
    color: white;
}
#title2 {
    color: gray;
}
#bakgrundssvart {
  z-index: 10;
  background-color: #030303;
  width: 600px; 
  height: 80px; 
  margin-left: 240px; 
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #030303;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  position: absolute;
  display: none;

   opacity: 0.85;               /* Good browsers */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";       /* IE 8 */
  filter: alpha(opacity=85);  /* IE 5-7 */
  -moz-opacity: 0.85;          /* Netscape */
  -khtml-opacity: 0.85;        /* Safari 1.x */
}


#content {
  z-index: 10;
  font-size: 18px;
  position: absolute;
  font-family: 'Open sans', sans-serif;
  margin-left: 240px; 
  margin-top: 60px;
  margin-bottom: 40px;
  width: 580px;
  padding: 20px;
  background-color: #ffffff;
  display: none;

  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";       /* IE 8 */
  filter: alpha(opacity=80);  /* IE 5-7 */
  -moz-opacity: 0.8;          /* Netscape */
  -khtml-opacity: 0.8;        /* Safari 1.x */
  opacity: 0.8;               /* Good browsers */
}

#text {
  z-index: 10;
  font-size: x-large;
  color: white;
  /*text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
  font-family: 'Open sans', sans-serif;
  width: 600px;
  margin-left: 240px; 
  margin-top: 10vh;
  padding: 20px;
  display: none;

  position: absolute;

  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";       /* IE 8 */
  filter: alpha(opacity=90);  /* IE 5-7 */
  -moz-opacity: 0.90;          /* Netscape */
  -khtml-opacity: 0.90;        /* Safari 1.x */
  opacity: 0.90;               /* Good browsers */
}

a {
  color:#B0B0B0;
  /* First we need to help some browsers along for this to work.
     Just because a vendor prefix is there, doesn't mean it will
     work in a browser made by that vendor either, it's just for
     future-proofing purposes I guess. */
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
  /* ...and now for the proper property */
  transition:.5s;
  text-decoration: none; 
  background: url(../img/line.png) no-repeat 0px 100%;
  background-size: contain;
  padding-bottom: 4px;
  white-space: nowrap;             
}
a:hover { color:white; }
#bokning {

    position: absolute;
    bottom: 65px;
}

.top{
  z-index: 20;
  background-color: #030303;
  bottom: 2em;
  color: #fff;
  display: none;
  opacity:0.8;
  padding: 1.5em;
  position: fixed;
  right: 1.5em;
  text-decoration: none;
}
.top:hover{
  opacity:1;
  transition:1s;
}






/* ==========================================================================
   Smartphone style
   ========================================================================== */

.ct-general {
  background-attachment: fixed; /* Change this to fixed, line 1 */
}

.ct-catalog {
  background-attachment: fixed; /* change to fixed, remove other declarations, line 4 */
}

.ct-schema {
  background-attachment: fixed; /* change to fixed, line 9 */
}

.ct-sravn {
  background: url('../images/bg_wins.png') !important;
  background-size: auto !important;
  background-attachment: fixed !important; /*change to fixed, line 12 */
}

.ct-clients {
  background: url('../images/clients_bg.png') !important;
  background-size: cover !important;         /* change to cover to fill the space */
  background-attachment: fixed !important; /* change to fixed, 18 */
}









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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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 {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These 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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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

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