/*
  file: n9.css
  website: adriankuenzli.ch (number9.ch)
  usage: main css file
  author: thomas bruhin, media sonics, ch-4148 pfeffingen
  development start: 2014-06-24
  last update: 2014-07-21
  --------------------------------------------------------------------------------- */



/* Apply a natural box layout model to all elements: http://paulirish.com/2012/box-sizing-border-box-ftw/ */
*, *:before, *:after {
  -moz-box-sizing: border-box; 
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
 }

a, img {
  border: none;
  margin: 0;
  padding: 0;
}

.chromeframe {position: absolute; top: 0;}

html {
    font-family: serif; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
    -ms-text-size-adjust: 100%; /* 2 */
}

/* Ok, this is where the fun starts.
-------------------------------------------------------------------------------*/

/* the open sans font stack for rkag */
body { font-family: arial, sans-serif; background-color: #666; }

/* We like off-black for text. */
body, select, input, textarea {color: #333;}

/* all the hyperlinks */
a { color: #333; text-decoration: none; }
a:hover { color: white;}

/* Custom text-selection colors (remove any text shadows: http://twitter.com/miketaylr/status/12228805301) */
::-moz-selection{background: #fcd700; color: #fff; text-shadow: none;}
/* ::selection {background: #fcd700; color: #fff; text-shadow: none;}  */

/*	j.mp/webkit-tap-highlight-color */
a:link {-webkit-tap-highlight-color: #fcd700;} 

ins {background-color: #fcd700; color: #000; text-decoration: none;}
mark {background-color: #fcd700; color: #000; font-style: italic; font-weight: bold;}

/* Mozilla dosen't style place holders by default */
input:-moz-placeholder { color:#a9a9a9; }
textarea:-moz-placeholder { color:#a9a9a9; }


/* number 9 specifics */
/* -------------------------------------------- */

/* classes for jQuery text color change */
.graytext { color: #333; }
.whitetext { color: white;}

.wrapper { width: 320px; margin: 0 auto; padding: 62px 20px; padding: 3.875rem 1.25rem; position: relative; }

header { width: 100%; }
header h1 { position: relative; z-index: 100; }
header h1 a { 
  font-family: arial, sans-serif; 
  font-size: 18px; 
  font-size: 1.13rem; 
  color: white; 
  text-transform: uppercase; 
  font-weight: 900; 
  letter-spacing: 0.188em; 
}

header ol { list-style: none; }
header ol li.spacer,
header ol li:nth-last-child(1) { display: none; }
header ol li a { display: block; }
header ol li.current a,
header ol li a:hover { font-weight: bold; color: white; }

  header ol, header li { margin: 0; padding: 0; }
  header ol li { 
    display: block; 
    width: 127px;  
    border: 0 solid white;
    border-bottom: 2px solid black; 
    padding: 10px 0 5px;
    margin-bottom: 5px;
  }

/*  main article/content section 
    ------------------------------------- */
.main { }

.main a { color: white; }
.main a:hover { font-weight: bold; }
h4, p, ul, ol { font-size: 13px; font-size: 0.8125rem; line-height: 1.23076923076923; padding-bottom: 16px; padding-bottom: 1rem;}

h4 { color: white; } 
.normaltext { font-weight: normal; }
.normalitalic { font-weight: normal; font-style: italic; }
/* default for thumbnails: full opacity */
.table-enable img { opacity: 1.0 }

.main, .homepage { width: 274px; margin-top: 40px; }
  
/* projektueberischt imagethumbnails */
.table-enable { display: table; margin-top: 2px; width: auto; padding: 0; }
.table-enable a { display: inline-table; width: 127px; margin-bottom: 16px; }
.table-enable a:nth-of-type(odd) { margin-right: 20px; }



/*  the sidebar
    ------------------------------------- */
.sidebar li a { display: block; margin-bottom: 5px; }
.sidebar li.active a { font-weight: bold; color: white; }


/* header and siebar navigation for small devices */
.sidebar { width: 127px; position: absolute; top: 105px; right: 0; }
header nav { width: 127px; margin-top: 10px; }



/*  footer
    ----------------- */
footer { }


/* ----------------------------------------------------
   MEDIA QUERIES!
   smartphone landscape (min 480px)
   ---------------------------------------------------- */
@media screen and (min-width: 480px) {
  .wrapper { width: 480px; }
  header nav { margin-top: -18px; margin-top: -1.13rem; width: auto; }
  header ol, header li { margin: 0; padding: 0; }
  header ol li { 
    display: inline-block; 
    width: 127px;  
    height: 127px;
    margin: 0 17px 20px 0; 
    margin: 0 1.0625rem 1.25rem 0;
    border: 0 solid white;
    border-bottom: 2px solid black; 
    padding: 102px 0 0 5px;
    padding: 6.375rem 0 0 0.3125rem;
  }
  header ol li:nth-last-child(1) { margin-right: 0; }
  header ol li.current { border-bottom-color: white; }
  
  .sidebar { position: relative; width: auto; top: auto; right: auto; }
  .sidebar ul, .sidebar li, .sidebar li a { margin: 0; padding: 0; }
  .sidebar ul li { 
    display: inline-block; 
    width: 127px;  
    margin: 0 17px 20px 0; 
    margin: 0 1.0625rem 1.25rem 0;
    border: 0 solid white;
    border-bottom: 1px solid black; 
    padding: 0 0 0 5px;
    padding: 0 0 0 0.3125rem;
  }
  .sidebar ul li:nth-last-child(1) { margin-right: 0; }
  .sidebar ul li.active { border-bottom-color: white; }
  
  .main, .homepage { width: 422px; margin-top: 20px; }
  
  /* projektueberischt imagethumbnails */
  .table-enable { display: table; margin-top: 2px; width: auto; padding: 0; }
  .table-enable a { display: inline-table; width: 127px; margin-right: 20px; margin-bottom: 16px; }
  .table-enable a:nth-of-type(3n-0) { margin-right: 0; }
}

/* ----------------------------------------------------
   TABLET PORTRAIT (min 750px)
   ---------------------------------------------------- */
@media screen and (min-width: 760px) {
  .wrapper { min-width: 760px; }
  header nav { margin-top: -18px; margin-top: -1.13rem; }
  header ol, header li { margin: 0; padding: 0; }
  header ol li:nth-last-child(1),
  header ol li:nth-last-child(2) { display: inline-block; }
	
  /* overwrite sidebar settings from smartphones */
  .sidebar ul li { display: inline; width: auto; margin: 0; border: none; padding: 0; }
  .sidebar ul li { padding-bottom: 16px; padding-bottom: 1rem; padding-left: 5px; padding-left: 0.3125rem; }	
  /* sidebar floated: needs slight top margin adjustment on main content */
  .sidebar { float: left; width: 147px; margin-top: -16px; }
  
  .main { margin-left: 147px; width: 568px; margin-top: 0; }
  .homepage { margin-left: 147px; margin-top: 2px; width: 568px; }   /* slide down the picture only content slightly to match text top of sidenav */

  .table-enable a:nth-of-type(3n-0) { margin-right: 20px; }
  .table-enable a:nth-of-type(4n-0) { margin-right: 0; }
}

/*  ------------------------------------------------- 
    TABLET LANDSCAPE / SMALL DESKTOP (min. 1024px) 
    ------------------------------------------------- */
@media screen and (min-width: 1024px) {
  .wrapper { width: 1024px; padding: 62px 7px; }
  header nav li.spacer { display: inline-block; }
  header ol li:nth-last-child(2) { margin-right: 0; }
  header ol li:nth-last-child(1) { display: none; }
  .main { margin-left: 294px; width: 568px; }
  .homepage, .main { width: 715px; }
  .table-enable a:nth-of-type(4n-0) { margin-right: 20px; }
  .table-enable a:nth-of-type(5n-0) { margin-right: 0; }

}

/*  ------------------------------------------------- 
    DESKTOP (min. 1280px) 
    ------------------------------------------------- */
@media screen and (min-width: 1280px) {
  .wrapper { width: 1280px; padding: 62px; padding: 3.875rem;  }
  
  header { width: 1158px; }
  header nav li.spacer { display: inline-block; }
  header ol li:nth-last-child(2) { margin-right: 17px; }

  /*  main content section 
      ---------------------------------- */
    .main, .homepage { width: 100%; max-width: 1009px; }
    .one-col-small { width: 568px; }
    .one-col-large { max-width: 862px; max-height: 568px; }
  
    /* projektueberischt imagethumbnails */
    .table-enable { width: 862px; padding: 0; }
    .table-enable a:nth-of-type(5n-0) { margin-right: 20px; }
    .table-enable a:nth-of-type(6n-0) { margin-right: 0; }
  
  /* image rollover */
  .table-enable img,
  img.image_faded { opacity: 0.4; filter: alpha(opacity=40); }
  .table-enable img:hover,
  img.image_highlight { opacity: 1.0; filter: alpha(opacity=100); }
  
} /* end mediaquery min-width: 1280px = desktop */


/* Print styles!
-------------------------------------------------------------------------------*/
@media print {



}
