/*! HTML5 Boilerplate v5.3.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
   ========================================================================== */
@font-face {
    font-family: montserrat;
    src: url("../fonts/Montserrat/Montserrat-Bold.ttf");
}
@font-face {
    font-family: titillium;
    src: url("../fonts/Titillium_Web/TitilliumWeb-Regular.ttf");
}
@font-face {
    font-family: opensans;
    src: url("../fonts/Open Sans/OpenSans-Regular.ttf");
}
@font-face {
    font-family: robotoLight;
    src: url("../fonts/Roboto/Roboto-Light.ttf");
}
@font-face {
    font-family: robotoThin;
    src: url("../fonts/Roboto/Roboto-Thin.ttf");
}
@font-face {
    font-family: Roboto;
    src: url("../fonts/Roboto/Roboto-Regular.ttf");
}
html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}
body{
    /*overflow-x:hidden;*/
    background-image: url("../img/paper.png");
    z-index: -10;
}
h1{
    z-index: 10;
}
/*
 * 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;
}

ul{
    margin: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
   ========================================================================== */
.frontPage{
    height:80vh;
    background-repeat: repeat;
    position: relative;
    z-index: 10;
}
header{
    width: 1000px;
    display: flex;
    margin:0 auto;
    z-index: 10;
    padding-top:30px;
}
.headerLogo{
    display: flex;
    background-image: url("../img/miniTskoliLogo.png");
    height: 100px;
    width: 75px;
    background-size: contain;
    background-repeat:no-repeat;
    z-index: 10;
}
.linePick{
    list-style-image: url(../img/smallpick.png);
    z-index: 10;
}
/*Nav settings*/
.navContainer{
    list-style: none;
    margin:0;
    padding:0;
    display: flex;
    z-index: 10;
}
.navItem{
    margin:0;
    padding:0;
    display: flex;
    margin:10px;
    align-self: center;
    color:black;
    text-decoration: none;
    font-family: 'Roboto';
    font-size: 1.1em;
    font-weight: 500;
    color:black;
    border-bottom: 2px solid transparent;
    transition: border 0.4s;
    z-index: 10;
}
.navItem:hover{
    border-bottom: 2px solid black;
    z-index: 10;
}
.navItem a{
    color:inherit;
    text-decoration: inherit;
    z-index: 10;
}
.contactLink{
    border:1px solid black;
    border-radius: 2px;
    padding:3px 5px;
    background-color: transparent;
    color:black;
    transition: all 0.3s;
    z-index: 10;
}
.contactLink:hover{
    background-color: black;
    border: 1px solid black;
    color:white;
    z-index: 10;
}
header nav{
    display: flex;
    align-self: center;
    margin-left: auto;
    z-index: 10;
}
/*°End of nav*/
/*Front text settings*/
.frontText{
    width:1000px;
    margin:0 auto;
    height:80vh;
    display:flex;
    align-items:center;
    justify-content: center;
    z-index: 10;
}
.courseMaker{
    position: absolute;
    top:-4em;
    left: 0.25em;
    font-size: 0.2em;
    color:black;
    z-index: 10;
}
.nameOfCourse{
    position: relative;
    font-family: 'montserrat';
    font-weight: 300;
    font-size: 7em;
    margin-right: auto;
    color:black;
    line-height: 1.2em;
    z-index: 10;
}
.stamp{
    background-image: url("../img/vectorLogo.svg");
    width:400px;
    height:400px;
    background-size: contain;
    transform:rotate(0deg);
    z-index: 10;
    transform: translate(300px, -150px);
}
.ontopofbody{
    position:fixed;
    width:150vw;
    height:100vh;
    margin-top: 200px;
    background-size: cover;
    background-image: url(../img/fjall.png);
    z-index: -5;
    transform: translateX(-30%);

}
/*.highlight{
    background-color: rgba(0,0,0,0.4);
    padding: 4px;
}*/
/*About page styles*/
.about{
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}
.aboutHeader{
    width:1000px;
    font-family: titillium;
    color:black;
    margin:0 auto;
    padding:30px 30px 30px 0;
    font-size: 2.3em;
    z-index: 10;
}
.magicLine{
    width:1000px;
    text-align:center;
    font-family: titillium;
    color:black;
    margin:0 auto;
    font-size: 2em;
}
@media only screen and (min-width:96.875em) { 
    .businessBulb{
        position: absolute;
        top: 0;
        right: -400px;
        background-image: url(../img/standandi.png);
        background-size: contain;
        width:650px;
        height: 650px;
        background-repeat: no-repeat;
    z-index: 10;
    }
}

/*Styles for two pane layout*/
.twoPaneContainer{
    width:1000px;
    margin:0 auto;
    color:black;
    display: flex;
    font-family: opensans;
    font-size: 1.2em;
    line-height: 1.6em;
    z-index: 10;
}
.singlePane{
    width:50%;
    z-index: 10;
}
.firstPane{
    padding-right: 17px;
    z-index: 10;
}
.secondPane{
    padding-left: 30px;
    z-index: 10;
}
/*styles for the organization page*/
.organization{
    margin:0;
    z-index: 10;
}
/*Styles for the requirements page*/
.kid-learning{
    transform: translateY(-50px);
    z-index: 10;
}
.ru{
    background-image: url("../img/hr.png");
    width:400px;
    height: 400px;
    background-size: contain;
    transform:scale(0.7); /*translate(0px, -100px)*/
    z-index: 10;
}
/*contactform styles*/
.contactForm{
    width:1000px;
    margin:0 auto;
    z-index: 10;
}
input, textarea{
    outline: none;
    border:0;
    border-bottom:1px solid black;
    padding:10px;
    font-size: 1.1em;
    display: block;
    margin: 30px auto;
    font-family: robotoLight;
    width:100%;
    z-index: 10;
}
button{
    outline: none;
    border:1px solid black;
    padding:10px;
    font-size: 1.1em;
    display: block;
    margin: 30px auto;
    font-family: robotoLight;
    width:100%;
    background-color: white;
    z-index: 10;
}
button:hover{
    background-color: #F0F0F0;
    z-index: 10;
}
/*footer*/
.footThing{
    display: inline-block;
    text-align: center;
    padding-bottom:1em;
    z-index: 10;
}
.footerContainer{
    display: block;
    margin:0 auto;
    font-family: opensans;
    z-index: 10;
}
.footerContent{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom: 1em;
    z-index: 10;
}
.footerImage{
    margin:0 auto;
    content:url(../img/tskoliLogo.png);
    max-height: 100px;
    max-width: auto;
    z-index: 10;
}
footer{
    display: block;
    padding:3em;
    background-color: rgba(0,0,0,0.1);
    position: relative;
    color:black;
    z-index: 10;
}
.footerAuthor{
    position: absolute;
    bottom:10px;
    left:10px;
    z-index: 10;
}
@media only screen and (max-width:97.5em) { 
    .stamp{
        width:400px;
        height:400px;
        z-index: 10;
        transform: translate(300px, -20px);
    }
    
}
@media only screen and (max-width:62.5em) { 
    header{
        width:100%;
    z-index: 10;
    }
    body{
        overflow-x: hidden;
    }
    .stamp{
        width:400px;
        height: 400px;
        z-index: 10;
    }
    .frontText{
        width:100%;
    z-index: 10;
    }
    .contactForm{
        width:100%;
    z-index: 10;
    }
    .aboutHeader{
        width:100%;
        z-index: 10;
    }
    .twoPaneContainer{
        width:100%;
        display: block;
    z-index: 10;
    }
    .singlePane{
        width:100%;
        margin:0;
        padding:0;
    z-index: 10;
    }
    .firstPane{
        margin:0;
        padding: 0;
        border:0;
    z-index: 10;
    }
    .secondPane{
        margin:0;
        padding:0;
    z-index: 10;
    }
    
    .ru{
        margin:0 auto;
    z-index: 10;
    }
    .kid-learning{
        max-width:400px;
        transform: translateY(0);
        margin:0 auto;
    z-index: 10;
    }
}

@media only screen and (min-height:620px) { 
    .notifyDown{
        position: absolute;
        bottom: 50px;
        right:50%;
        margin:0 auto;
        color: black;
        border: 2px solid black;
        font-size: 2em;
        padding:10px 20px;
        border-radius: 50%;
        background-color: rgba(0,0,0,0.1);
    z-index: 10;
    }
}


















/* ==========================================================================
   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,
    *:first-letter,
    *:first-line {
        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;
    }
}
@media only screen and (max-width:45.625em) { 
    body{
        overflow-y: scroll;
        overflow-x: hidden;
    }
    header{
        width:100%;
        justify-content: space-around;
        align-items: center;
    }
    .headerLogo{
        display: none;
    }
    .courseMaker{
        display: none;
    }
    .stamp{
        display: none;
    }
    .highlight{
        display: none;
    }
    .frontText{
        background-position: center;
        background-image: url("../img/vectorLogo.svg");
        background-size: contain;
        background-repeat: no-repeat;
    }
    nav{
        justify-content: space-around;
        margin:0 auto;
    }
    .navContainer{
        flex-flow: column;

    }
    .notifyDown{
        display: none;
    }
    footer{
        display: none;
    }
    .kid-learning{
        max-width: 100%;
    }
    .twoPaneContainer{
        padding:10px;
    }
    .aboutHeader{
        width:1000px;
        z-index: 10;
        margin-top: 100px;
    }
    .ru{
        max-width: 100%;
        background-repeat: no-repeat;

    }
    .magicLine{
        font-family: titillium;
        color:black;
        margin:0 auto;
        padding:30px 30px 30px 0;
        font-size: 2.3em;
        z-index: 10;
        margin-top: 100px;
    }
}
