/*
 * 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;
}

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

body {
   background-image: url(../img/ice_age.png);
   /*font-size: 16px;*/
}

html{
   font-size: 90%;
}

#wrapper{
   position: relative;
   width: 980px;
   height: 650px;
   margin: 20px auto 20px auto;
   z-index: 10;
}

#content{
   position: absolute;
   width: 980px;
   height: 650px;
   left: 0px;
   top: 0px;
   z-index: 100;
   overflow: hidden;
}

#accreditation{
   position: absolute;
   bottom: 0px;
   left: 19px;
   width: 100px;
   height: 30px;
}

#accreditation p{
   font-size: 8px;
   color: #fff;
}

#phone{
   position: absolute;
   width: 342px;
   height: 110px;
   right: 0px;
   top: 280px;
   text-align: left;
}

#header{
   position: absolute;
   left: 391px;
   top: 0px;
   width: 587px;
   height: 195px;
   overflow: hidden;
   z-index: 50;
}

#frontPageStrap{
   position: absolute;
   left: 538px;
   top: 350px;
   width: 391px;
   height: 422px;
   overflow: hidden;
   z-index: 50;
}
#prices{
   position: absolute;
   left: 515px;
   top: 130px;
   width: 385px;
   height: 585px;
   overflow: hidden;
   z-index: 50;
}

#aboutContent{
   position: absolute;
   left: 518px;
   top: 195px;
   width: 380px;
   height: 468px;
   overflow: hidden;
   z-index: 50;
}

#aboutPicture{
   position: absolute;
   width: 311px;
   height: 350px;
   left: 97px;
   top: 195px;
   -moz-box-shadow: 3px 3px 3px #000;
   -webkit-box-shadow: 3px 3px 3px #000;
   box-shadow: 3px 3px 3px #000;
}



#callToAction{
   position: absolute;
   left: 635px;
   top: 163px;
   width: 342px;
   height: 130px;
}

#menu{
   position: absolute;
   right: 0px;
   bottom: 195px;
   width: 50px;
   height: 50px;
   opacity: 0.8;
}

#menuBlock{
   position: absolute;
   right: -25%;
   bottom: 130px;
   width: 220px;
   height: 163px;
   opacity: 0.7;
   z-index: 200;
   padding: 0 0 0 10px;
   background-color: #df7217;
   border-radius: 5px;
}

#menuBlock:hover{
   opacity: 0.9;
}

#contactBlock{
   position: absolute;
   right: -55%;
   bottom: 0px;
   width: 495px;
   height: 358px;
   opacity: 1.0;
   z-index: 200;
   padding: 0 10px 0 10px;
   background-image: url(../img/ice_age.png);
   border-radius: 5px;
   -moz-box-shadow: 3px 3px 3px #ccc;
   -webkit-box-shadow: 3px 3px 3px #ccc;
   box-shadow: 3px 3px 3px #ccc;
   overflow: hidden;
}

.contactContent{
   position: relative;
   float: left;
   width: 210px;
   height: 350px;
   margin-right: 10px;
   z-index:300;
}

.clear{
   clear: both;
}


#menu:hover{
   opacity: 1.0;
}

#phoneIcon{
   position: absolute;
   right: 0px;
   bottom: 65px;
   width: 50px;
   height: 50px;
   opacity: 0.8;
}

#phoneIcon:hover{
   opacity: 1.0;
}

#close{
   position: absolute;
   right: -55px;
   bottom: 195px;
   width: 50px;
   height: 50px;
   opacity: 0.8;
}

#close:hover{
   opacity: 1.0;
}

#contactButton{
   position: absolute;
   right: 0px;
   bottom: 130px;
   width: 50px;
   height: 50px;
   opacity: 0.8;
}

#contactButton:hover{
   opacity: 1.0;
}

#contactButtonClose{
   position: absolute;
   right: -5%;
   bottom: 130px;
   width: 50px;
   height: 50px;
   opacity: 0.8;
}

#contactButtonClose:hover{
   opacity: 1.0;
}

#facebook{
   position: absolute;
   right: 0px;
   bottom: 0px;
   width: 50px;
   height: 50px;
   opacity: 0.8;
}

#facebook:hover{
   opacity: 1.0;
}


/* FONTS */
 
h1{
   font-family: 'Aldrich', sans-serif;
   color: #000;
   font-size: 48px;
   font-weight: 900;
   line-height: 20px;
   text-align: right;
}
h1.underlay{
   color: #000;
}

h2{
   font-family: 'Aldrich', sans-serif;
   color: #171717;
   font-size: 30px;
   line-height: 10px;
   font-weight: 900;
   text-align: right;
}

h3{
   font-family: 'Aldrich', sans-serif;
   color: #df7217;
   font-size: 28px;
   font-weight: 900;
   line-height: 28px;
}
h4{
   font-family: 'Aldrich', sans-serif;
   color: #171717;
   font-size: 22px;
   font-weight: 900;
   line-height: 0.9rem;
}
h5{
   font-family: 'Aldrich', sans-serif;
   color: #fff;
   font-size: 18px;
   font-weight: 900;
   line-height: 18px;
}
p{
   font-family: 'Play', sans-serif;
   color: #171717;
   font-size: 20px;
}
#aboutContent p{
   font-family: 'Play', sans-serif;
   color: #171717;
   font-size: 16px;
}
#prices p{
   font-family: 'Play', sans-serif;
   color: #171717;
   font-size: 16px;
}
#frontPageStrap p{
   font-family: 'Play', sans-serif;
   color: #171717;
   font-size: 22px;
}

h4 a:link{
   color: #171717;
   text-decoration: none;
}
h4 a:visited{
   color: #171717;
   text-decoration: none;
}
h4 a:hover{
   color: #171717;
   text-decoration: underline;
}
h4 a:active{
   color: #171717;
   text-decoration: none;
}

h5 a:link{
   color: #fff;
   text-decoration: none;
}
h5 a:visited{
   color: #fff;
   text-decoration: none;
}
h5 a:hover{
   color: #fff;
   text-decoration: underline;
}
h5 a:active{
   color: #fff;
   text-decoration: none;
}

#accreditation p a:link{
   font-size: 8px;
   color: #fff;
   text-decoration: none;
}

#accreditation p a:visited{
   font-size: 8px;
   color: #fff;
   text-decoration: none;
}

#accreditation p a:hover{
   font-size: 8px;
   color: #fff;
   text-decoration: underline;
}

#accreditation p a:active{
   font-size: 8px;
   color: #fff;
   text-decoration: none;
}

#frontPageStrap p a:link{
   color: #171717;
   text-decoration: none;
}

#frontPageStrap p a:visited{
   color: #171717;
   text-decoration: none;
}

#frontPageStrap p a:hover{
   color: #171717;
   text-decoration: underline;
}

#frontPageStrap p a:active{
   color: #171717;
   text-decoration: none;
}

/* ==========================================================================
   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 {
    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 {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

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

.clearfix {
    *zoom: 1;
}

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

/*@media only screen and (max-device-width: 480px) {
   /* 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;
    }
}
