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

body {
    font-size: 1em;
    line-height: 1.4;
    font-family: citizen, sans-serif;
}


/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 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;
}

/* ==========================================================================
   Parallax Scroll
   ========================================================================== */
body, html {
	height: 100%;
	min-height: 100%;
	background-color: #000000;
}
body {
	
}
.no-js {
	padding-top: 106px;
}
h2 {
	margin-top: 0;
}
.loading {
	background: url('../img/ico_loading.gif') no-repeat center center;
}

.loaded section,
.no-js section {
	opacity: 1;
	-webkit-transition: opacity 300ms ease-out;
	-moz-transition: opacity 300ms ease-out;
	transition: opacity 300ms ease-out;
}
main {
	overflow-x: hidden;
}
#preload {
	width: 1px;
	height: 1px;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
}

/*.bcg {
    background-size: cover;
    height: 100%;
    width: 100%;
}

.hsContainer {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
    .hsContent {
        max-width: 80%;
        margin: -150px auto 0 auto;
        display: table-cell;
        vertical-align: middle;
        padding: 0 8%;
        text-align: center;
        position: relative;
    }
    .hsContent h2  {
        color: #fff;

        padding: 10px 5px;
        font-size: 18px;
        line-height: 23px;
        margin-bottom: 12px;
    }
    .hsContent p {
        width: 80%;
        color: #fff;
    }*/

section {
    opacity: 0;
    height: 605px;
}
.bcg {
    background-size: cover;
    height: 100%;
    width: 100%;
    background-position: center center;
}

/* this aligns the content 150px up from the middle */
.hsContainer {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
    .hsContent {
        max-width: 80%;
        margin: -150px auto 0 auto;
        display: table-cell;
        vertical-align: middle;
        padding: 0 8%;
        text-align: center;
        position: relative;
    }
    .hsContent h2  {
        color: #ffffff;
        padding: 10px 5px;
        font-size: 20px;
        line-height: 23px;
        margin-bottom: 12px;
    }
    .hsContent p {
        width: 80%;
        color: #b2b2b2;
    }


	.hsContent a {
		color: #fff;
		text-decoration: underline;
	}

	/* Slide 1 */
	#slide-1 .bcg {background-image:url('../img/bcg_slide-1.jpg')}
	#slide-1 .hsContent {}

	/* Slide 2 */
	#slide-2 .bcg {background-image:url('../img/bcg_slide-2.jpg')}
	#slide-2 .hsContent {}
	#slide-2 h2 {max-width: 886px; margin: 0 auto;}

	/* Slide 3 */
	#slide-3 .bcg {background-image:url('../img/bcg_slide-3.jpg')}
	#slide-3 .hsContent {}
	    #slide-3 h2 {
	        
	    }

	/* Slide 4 */
	#slide-4 .bcg {
	    background-image:url('../img/bcg_slide-4.jpg');
	    background-position: center center;
	}
	#slide-4 .hsContent {}
	    #slide-4 h2 {
	        padding-left: 0;
	        padding-right: 0;
	    }

    /* Slide 5 */
    #slide-5 .bcg {
        background-image:url('../img/bcg_slide-5.jpg');
        background-position: 25% center;
    }
/* ==========================================================================
   New styles
   ========================================================================== */
    #logo {
        width: 172px; height: 76px; margin: 0px auto; 
        background: url('../img/t---28-logo-yellow.svg')no-repeat;}

    #logo2 {
    width: 172px; height: 76px; margin: 0px auto; 
    background: url('../img/t---28-logo-2.svg')no-repeat;}

    .intro h2, h3 {
        font-family: citizen, sans-serif;
        font-weight: 300;
        font-style: normal;
        width: 91%;
        margin: auto;
        text-align: center;
      }



  h2.border {padding-left: 8px; padding-right: 8px;}

h3 {
  /*font-family: "corner-store",sans-serif; font-size: 26px;*/
  font-family: citizen, sans-serif;
  margin-top: -8px;
  color: #ffff00;
  }


  .mail {
  display: block;
  text-indent: -9999px;
  width: 46px;
  height: 46px;
  background: url(../img/cassette.svg);
  background-size: 46px 46px;
  margin-bottom: 20px;
  margin: 0 auto;
}

.border {
	border: 0px solid rgba(255, 255, 255, .3);
	margin-top: 50px;

}
/* ==========================================================================
   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.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* Medium devices (tablets, 1024px and up) */
@media only screen and (min-width: 1025px) {

    body, html {
        height: auto;
    }
    .bcg {
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
        height: 100%;
        width: 100%;
    }
    section {
        min-width: 768px;
        height: 600px;
    }
    .hsContainer {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    .hsContent {
        max-width: 700px;
        position: relative;
        margin:30px auto;
        text-align: center;
        padding: 0;
    }
        .hsContent h2  {
            font-size: 30px;
            line-height: 38px;
        }
       #slide-1 p {
            margin-top: 100px;
        }
    #slide-1 .hsContent {
        width: 700px;
        max-width: 700px;
        margin-top:300px;
    }

    #intro {margin-top: 100px;}
    
    #slide-1 h2 {
        width: 700px;
        margin: 500px auto;
    }

  

    #slide-2 h2 {
        position: relative;
        top: 100%;
        text-align: center;
    }
    #slide-3 h2 {
        position: relative;
        top: 100%;
        text-align: center;
    }
    #slide-4 h2 {
        position: relative;
        top: 100%;
        text-align: center;
    }
    #slide-4 h2 {
        background: none;
    }

    h2 {
        font-family: citizen, sans-serif;
  }


  @media screen and (min-width: 1362px) {
    h1 {font-size: 4em; margin-left: -3px;}
    .content h2 {font-size: 1.2em;}
    .intro h2 { width: 91%;}
    .content h3 {font-size: 1.2em;}

}
@media screen and (min-width:1896px) {
  .intro h2 {
    width: 1240px;
    font-size: 2.5em;}
  
}

@media screen and (min-width: 1000px) and (max-width: 1361px) {
  h1 {font-size: 1.2em; margin-bottom: .3em; margin-left: -3px;}
  .content h2 {font-size: .9em;}
  .intro h2 { width: 77%; }
  h3 {font-size: 1.2em;}
  h4 {
    font-size: .9em;
    line-height: 1.4em;
  }
  .work-item .content {
    padding: 0 24px;
    top:20px}
}

@media screen and (min-width: 642px) and (max-width: 999px) {
#logo3 {
    background-size: 80px 40px;
    margin-left: 30px;
    margin-top: 0px
  }

.logo {
    background-size: 80px 40px;
    margin-left: 30px;
    margin-top: 30px
  }
h4 {font-size: .7em;
    line-height: 1.4em;
    width:95%}

h1 {font-size:2em;}
.work-item .content {
  padding: 0 24px;
  top:10px}

.intro h2 { 
  width: 80%;
  }

h3 {
  font-size: 1em;
}
h2 {
  font-size: 1.5em;
}
}


@media screen and (min-width: 421px) and (max-width: 641px) {
  header {min-height: 100px;}
  h1 {
    font-size: 2em; 
    margin-bottom: .3em; 
    margin-left: -3px;
    line-height: 1.2em;
  }

  .intro h2, h3 {
    width: 85%;
    font-size: 1.2em;
  }
  .content h2, h3 {font-size: .9em;}
  .content h4 {width: 80%;}
  h4 {width: 70%;}

}

@media screen and (min-width: 0px) and (max-width: 420px) {
.intro h2, h3 {
    width: 85%;
    font-size: .9em;
  }
  header { min-height: 100px;}
  .content h2, h3, h4 {font-size: .9em;}
  #logo3 {
    background-size: 70px 40px;
    margin-left: 20px;
    margin-top: -10px
  }
  h1 {font-size: 1.2em;
      margin-left: -3px;
      line-height: 2.4em;
  }


  .logo {
    background-size: 70px 40px;
    margin-left: 20px;
    margin-top: 20px
  }
.para2{
  margin-top: -65px;
 }
.work-item .content {
  padding: 0 24px;

}
}


/*h3 {
  font-family: "corner-store",sans-serif; font-size: 30px;
  }*/
  
    /*h3 {margin-top: 30px;}*/

    input { border: 0;
            padding:10px;
            font-size:18px;
    }
    
    input[type="submit"] {color:white;}
    input[type="submit"] {background:red;}
}

.mail {margin-top: 100px;}

.intro {
  position: relative;
/*  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);*/

}


/* Medium devices (tablets, 1024px and below) */

@media screen and (max-width: 1024px) { 
    
    .hsContent h2  {
            
            line-height: 30px;
        }
}

/* Mobile */
@media screen and (max-width: 320px) { 
    
    .hsContent h2  {
            font-size: 13px;
            line-height: 20px;
        }

}

@media screen (min-width: 321px) and (max-width: 600px) {
.hsContent h2 {font-size: 13px;
                line-height: 20px;}
                
}

@media screen (min-width: 601px) and (max-width: 1024px) {
    .hsContent .intro {
        width: 50%;
        margin: 0 auto;
        
    } 
}


@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;
    }
}

@-webkit-keyframes spaceboots {
        0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
        10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
        20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
        30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
        40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
        50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
        60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
        70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
        80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
        90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
        100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
    }
    .shake:hover,
    .shake:focus {
        -webkit-animation-name: spaceboots;
        -webkit-animation-duration: 0.8s;
        -webkit-transform-origin:50% 50%;
        -webkit-animation-iteration-count: infinite;
        -webkit-animation-timing-function: linear;
    }
    .shake {
        display:inline-block
    }

@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 568px) { 

h2 {font-size: 12px;}
        #logo2 {
        width: 100px; margin: 0px auto; 
        background: url('../img/t---28-logo-2.svg')no-repeat;}
    	.mail {margin-top:60px;}
    	.border {margin-top:30px; }
}



/*
#t28 {
    fill: #FFFF00;
} */

#T-28 {
    width: 30%;
    margin-top: 0%;
}


@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.fade-in {
    opacity:0;  /* make things invisible upon start */
    -webkit-animation:fadeIn ease-in 1;  /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
    -moz-animation:fadeIn ease-in 1;
    animation:fadeIn ease-in 1;

    -webkit-animation-fill-mode:forwards;  /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/
    -moz-animation-fill-mode:forwards;
    animation-fill-mode:forwards;

    -webkit-animation-duration:2s;
    -moz-animation-duration:2s;
    animation-duration:2s;
} 

.fade-in.one {
    -webkit-animation-delay: 0.5s;
    -moz-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

.fade-in.two {
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    animation-delay: 1s;
    }
 
.fade-in.three {
    -webkit-animation-delay: 1.5s;
    -moz-animation-delay: 1.5s;
    animation-delay: 1.5s;
}
 
.fade-in.four {
    -webkit-animation-delay: 2s;
    -moz-animation-delay: 2s;
    animation-delay: 2s;
}

.fade-in.five {
-webkit-animation-delay: 2.5s;
-moz-animation-delay: 2.5s;
animation-delay: 2.5s;
}


