/*****
NEW LIFE INTERSTELLAR
STYLE.CSS

*****/


/* HTML5 Boilerplate  */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
body { margin: 0; font-size: 1em; line-height: 1.4; }

::-moz-selection {  color: #fff; text-shadow: none; }
::selection { color: #fff; text-shadow: none; }

a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

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

label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; white-space: normal; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; *overflow: visible; }
button[disabled], input[disabled] { cursor: default; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; *width: 13px; *height: 13px; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }

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

.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; *line-height: 0; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

/* NWLF STUFF */
@font-face {
    font-family: 'FranklinGothicBookXtraCompressed';
    src: url('../fonts/itcfranklingothicstd-bkxcp-webfont.eot');
    src: url('../fonts/itcfranklingothicstd-bkxcp-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/itcfranklingothicstd-bkxcp-webfont.woff') format('woff'),
         url('../fonts/itcfranklingothicstd-bkxcp-webfont.ttf') format('truetype'),
         url('../fonts/itcfranklingothicstd-bkxcp-webfont.svg#ITCFranklinGothiBkXCompressed') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FranklinGothicBookCompressed';
    src: url('../fonts/itcfranklingothicstd-bkcp-webfont.eot');
    src: url('../fonts/itcfranklingothicstd-bkcp-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/itcfranklingothicstd-bkcp-webfont.woff') format('woff'),
         url('../fonts/itcfranklingothicstd-bkcp-webfont.ttf') format('truetype'),
         url('../fonts/itcfranklingothicstd-bkcp-webfont.svg#ITCFranklinGothicBkCompressed') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ITCFranklinGothDemiCompressed';
    src: url('../fonts/itcfranklingothicstd-dmcp-webfont.eot');
    src: url('../fonts/itcfranklingothicstd-dmcp-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/itcfranklingothicstd-dmcp-webfont.woff') format('woff'),
         url('../fonts/itcfranklingothicstd-dmcp-webfont.ttf') format('truetype'),
         url('../fonts/itcfranklingothicstd-dmcp-webfont.svg#ITCFranklinGothDemiCompressed') format('svg');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'ITCFranklinGothicStdBook';
    src: url('../fonts/itcfranklingothicstd-book-webfont.eot');
    src: url('../fonts/itcfranklingothicstd-book-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/itcfranklingothicstd-book-webfont.woff') format('woff'),
         url('../fonts/itcfranklingothicstd-book-webfont.ttf') format('truetype'),
         url('../fonts/itcfranklingothicstd-book-webfont.svg#ITCFranklinGothicStdBook') format('svg');
    font-weight: normal;
    font-style: normal;

}


/*
  File Overview:  Flexi-background styles.
  Author:     Michael Bester <http://kimili.com>
  Description:  Sets up styling for full-screen flexible backgrounds.
          See <http://kimili.com/journal/flexible-scalable-background-image> for more info.
  
  Licence:    Copyright 2010, Michael Bester.
          Released under the MIT license <http://opensource.org/licenses/mit-license.php>
  
*/

body { 
  background-attachment:    fixed;
  background-color:     #000000;
  background-image:     url(../img/spacebg.jpg);
  background-position:    top center; 
  background-repeat:      no-repeat; 
  
  margin:           0;
  padding:          0;

  background-size:      cover;
  -moz-background-size:   cover;
  -webkit-background-size:  cover;
}

/*
  This next definition doesn't allow the background to get any smaller
  than a predefined size (640x426px in this case). Change the values
  here to match your background image size. The configuration in the
  flexi-background javascript file should also match these values.
*/

@media only all and (max-width: 640px) and (max-height: 426px) {
  body {    
    background-size:      640px 426px;
    -moz-background-size:   640px 426px;
    -webkit-background-size:  640px 426px;
  }
}

/*
  The next 2 definitions are for support in iOS devices.
  Since they don't recoginze the 'cover' keyword for background-size
  we need to simulate it with percentages and orientation
*/

@media only screen and (orientation: portrait) and (device-width: 320px), (device-width: 768px) {
  body {
    -webkit-background-size: auto 100%;
  }
}

@media only screen and (orientation: landscape) and (device-width: 320px), (device-width: 768px) {
  body {
    -webkit-background-size: 100% auto;
  }
}
/* All of the following styles only get used when background-size isn't supported */

img#expando { 
  display:  none;
  position: absolute; 
  z-index:  1;
   
  -ms-interpolation-mode: bicubic; 
} 

.wide img#expando, 
.tall img#expando { 
  display:  block; 
} 

.wide img#expando { 
  height:   auto;
  width:    100%; 
} 

.tall img#expando { 
  height:   100%;
  width:    auto; 
}

/**** NWLF - INTERSTELLAR STYLES ****/

/*****
      ALL
          *****/
body{
  font-size:1em;
}

img{
  width:100%;
}

/*****
      HEADER
              *****/
header{
  margin:0 auto;
  width:28%;
}

header img{
  margin-top:10%
}

header h1{
  font : 1.2em/1.2em FranklinGothicBookXtraCompressed, Arial, sans-serif;
  color:#FFF;
  letter-spacing:0.3em;
  text-align: center;
  text-transform:uppercase;
}

#phrases {
  display:none;
}

#title_wrapper{
  min-height:80px;
  overflow:hidden;
}

/*****
      CONTENT
              *****/

#main{
  margin-left: 5%;
  width: 90%;
}

.grid_wrapper{
     color: #FFFFFF;
    float: left;
    padding: 0 2%;
    width: 20%;

}

.sep{
    background-color: #FFFFFF;
    float: left;
    height: 170px;
    margin-top:25px;
    width: 1px;
}

.grid_wrapper h3{
  font : 1.2em/1.4em FranklinGothicBookXtraCompressed, Arial, sans-serif;
  letter-spacing:0.3em;
  text-transform:uppercase;
}

.grid_wrapper p, a.link, a.twit_link{
  font:0.75em/1.2em ITCFranklinGothicStdBook, Arial, sans-serif;
  text-decoration:none;
  color:#FFF;
}

.grid_wrapper a.link{
  cursor:pointer;
  text-align:right;
  float:right;
}

.social_wrap a.link{
  float:none;
  font-size:0.7em;
}

.grid_wrapper a.link:hover{
  border-bottom:1px solid #FFF;
  position:relative;
  bottom:1px;
}

.grid_wrapper.news a.twit_link{
  font-size:1em;
  float:none;
}

.grid_wrapper.news a.twit_link:hover{
  text-decoration:none;
}

.join div{
  position: relative;
}

#submit{
  background-color: #87AFBE;
  color: #363333;
  display: inline-block;
  font-family: ITCFranklinGothDemiCompressed,Arial,sans-serif;
  font-size: 0.75em;
  height: 18px;
  left: 65%;
  letter-spacing: 0.2em;
  line-height: 18px;
  margin-left: 8px;
  padding-left: 2px;
  position: absolute;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 25%;
}

input{
  width:60%;
  height:24px;
  background-color:#FFF;
  font-size:12px;
  font-style:italic;
  color:#a7a2a2;
  padding:0 0 0 5px;
  height:18px;
  box-shadow: 0 0 0 #FFF;
  border:0 none;
  position: absolute;
  outline: none;
}

input:focus, #submit:hover{
  
  -webkit-transition: box-shadow 200ms;
  -moz-transition: -moz-box-shadow 200ms;
  -o-transition: box-shadow 200ms;
  -ms-transition: -moz-box-shadow 200ms;
  transition: box-shadow 200ms;
  -moz-box-shadow: 0 0 10px #FFF;
  -webkit-box-shadow: 0 0 10px #FFF;
  box-shadow: 0 0 10px #FFF;

}

input:invalid{
  background:#FFFFFF;
}

#confirm{
  margin-top:38px;
  font-style: italic

}

#confirm.err{
  color:#ef777a;
}

#confirm.ok{
  color:#77ef85;
}

#fb{
  display: inline-block;
  width:21px;
  height:21px;
  background:url("../img/picto_f.png");
  text-indent:-9999px;
  margin:0 7px 10px 0;
}

#tt{
  display: inline-block;
  width:21px;
  height: 22px;
  background:url("../img/picto_t.png");
  text-indent:-9999px;
  margin:0 7px 10px 0;
}

#tt:hover, #fb:hover{
  -webkit-transition: box-shadow 200ms;
  -moz-transition: -moz-box-shadow 200ms;
  -o-transition: box-shadow 200ms;
  -ms-transition: -moz-box-shadow 200ms;
  transition: box-shadow 200ms;
  -moz-box-shadow: 0 0 10px #FFF;
  -webkit-box-shadow: 0 0 10px #FFF;
  box-shadow: 0 0 10px #FFF;
}

/** responsive **/
/**
 * 470
 */
@media only screen and (max-width: 529px) {

    /***/
    header h1{
      font-size:1.2em;
    }
    .grid_wrapper{
      display:block;
      float:none;
      width:92%;
      margin:0 2.5%;
    }

    .grid_wrapper p{
      font-size:0.8em;
    }

    #submit{
      font-size:0.9em;
    }

    .join{
      height:110px;
    }

    header{
      width:88%;
    }

    .sep{
      float:none;
      width:90%;
      height:1px;
    }

}

/**
 * 530
 */
@media only screen and (min-width: 530px) and (max-width: 768px) {

    /***/
    header h1{
      font-size:1.4em;
    }
    #submit{
      font-size:0.8em;
    }
     header{
      width:45%;
    }

    .grid_wrapper{
      display:block;
      float:none;
      width:92%;
      margin:0 2.5%;
    }

    .sep{
      float:none;
      width:90%;
      height:1px;
    }


    .join{
      height:110px;
    }
}

/**
 * 700
 */
@media only screen and (min-width: 769px) and (max-width: 949px) {

    /***/
    header h1{
      font-size:1.2em;
      
    }
    header{
      width:35%;
    }

    #submit{
      font-size:0.6em;
    }

    body { 
      background-image:     url(../img/spacebg.jpg); 
    }

/**
 * 950
 */
@media only screen and (min-width: 950px) and (max-width: 1169px) {

    /***/
    header h1{
      font-size:1.3em;
    }
    header{
      width:32%;
    }
}

/**
 * 1170
 */
@media only screen and (min-width: 1170px) and (max-width: 1189px) {
    /***/
    header h1{
      font-size:1.4em;
    }
}

/**
 * 1190
 */
@media only screen and (min-width: 1190px) and (max-width: 1409px) {

    /***/
    header h1{
      font-size:1.5em;
    }
}

/**
 * 1410
 */
@media only screen and (min-width: 1410px) {

    /***/
    header h1{
      font-size:1.8em;
    }

    .grid_wrapper p, .grid_wrapper a.link{
      font-size:0.85em;
    }

    #title_wrapper{
      min-height:120px;
    }

    .grid_wrapper h3{
      font-size:1.4em;
    }
}

