/*
 * 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.
 *
 * Detailed information about this CSS: h5bp.com/css
 *
 * ==|== normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

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


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

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


/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

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

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
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%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

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


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/i/440
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* ==|== primary styles =====================================================
   Author: Alex Torrance hello@alextorrance.co.uk
   ========================================================================== */

/* @font-face set up
========================================================================== */

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

html {
  font-size: 62.5%; /* set root font size to 10px for rem use */
}

body {
  font-size: 160%; /* boost it back up to 16px on body */
  font-family: 'NeuSymbolMedium', Georgia, serif;
}

a, a:link, a:visited {
 color: #000;
 text-decoration: none;
 -webkit-transition: color 0.2s ease;
 -moz-transition: color 0.2s ease;
 -o-transition: color 0.2s ease;
 transition: color 0.2s ease;
}

a:active, a:hover {
  color: #6B328B;
}

#header {
  position: fixed;
  top: 0;
  
  height: 1px;
  width: 100%;
  
  z-index: 1000;

  overflow: visible;
  
}

#header h1 {
  margin: 0 auto;
  
  /* use px as fallback for older browsers */
  width: 181px;
  width: 18.1rem;
  
  height: 186px;
  height: 18.6rem;
  
  background: transparent url(/assets/img/symbol-logo.png) 50% 50% no-repeat;
}

#header h1, #header h2 {
  font-size: 1px; text-indent: -5000px; text-indent: -500rem;
  overflow: hidden;
}


.wrapper {
  margin: 185px auto 40px auto;
  margin: 18.5rem auto 4rem auto;
  max-width: 1380px;
  max-width: 138rem;
}

/* Section styles
========================================================================== */

section {
  border: 5px solid #000;
  border-width: 4px 12px 12px 4px;
  border-width: 0.4rem 1.2rem 1.2rem 0.4rem;
  
  position: relative;
  float: left;
}

section { color: #000; }
section a:hover { color: #6B328B; }

section h3 {
  position: absolute;
  top: -25px; right: -20px;
  top: -2.5rem; right: -2rem;

  margin: 0;
  
  text-align: right;
  white-space: nowrap;
  
  font-size: 18px;
  font-size: 1.8rem;
  font-weight: 300;

  -webkit-transform: translateX(100%) rotate(90deg);
  -webkit-transform-origin: 0 100%;
  -moz-transform: translateX(100%) rotate(90deg);
  -moz-transform-origin: 0 100%;
  -o-transform: translateX(100%) rotate(90deg);
  -o-transform-origin: 0 100%;
  transform: translateX(100%) rotate(90deg);
  transform-origin: 0 100%;

  z-index: 0;
}

section:before {
  content: " ";
  display: block;
  width: 14px; height: 12px;
  width: 1.4rem; height: 1.2rem;
  
  background: transparent url(../img/top-right-corner.png) no-repeat 0 0;
  
  position: absolute;
  top: -4px; right: -12px;
  top: -0.4rem; right: -1.2rem;
}

section:after {
  content: " ";
  display: block;
  width: 14px; height: 12px;
  width: 1.4rem; height: 1.2rem;
  
  background: transparent url(../img/bottom-left-corner.png) no-repeat 0 0;
  
  position: absolute;
  bottom: -12px; left: -4px;
  bottom: -1.2rem; left: -0.4rem;
}

/* Issue Section size & position
========================================================================== */

/* a wrapper div allowing stockists to float to the right of all issues */
.issue-wrapper {
  float: left;
  margin-left: 60px;
  margin-left: 6rem;
  width: 761px;
  width: 76.1rem; /* size of issue sections plus border and padding */
}

/* width and margin for issue sections */
section.issues {
  width: 745px;
  width: 74.5rem; /* height: 56.5rem; */
  margin-bottom: 40px;
  margin-bottom: 4rem;
}

/* Issue Colours
========================================================================== */

section.issue-0 { border-color: #000000; }
section.issue-0 * { color: #000000; }

section.issue-1 { border-color: #6B328B; }
section.issue-1 * { color: #6B328B; }

section.issue-2 { border-color: #2bb673; }
section.issue-2 * { color: #2bb673; }

section.issue-3 { border-color: #dc1d3e; }
section.issue-3 * { color: #dc1d3e; }

section.issue-4 { border-color: #0055FA; }
section.issue-4 * { color: #0055FA; }

/* Issues
========================================================================== */

section#issue-1 {
  /* No change from default */
}

section#issue-2 {
  /* No change from default */
}

section#issue-3 {
  /* No change from default */
}

section#issue-4 {
  /* No change from default */
}

/* Stockists
========================================================================== */

section#stockists {
  width: 245px; width: 24.5rem;
  margin-top: 75px; margin-top: 7.5rem;
  margin-right: 80px; margin-right: 8rem;
  padding-top: 55px; padding-top: 5.5rem;
  
  background: transparent url(/assets/img/symbol-icon-black.png) no-repeat 50% 30px;
  background-position-y: 3rem;
  
  float: right;
}

section#stockists.issue-1 {
  background-image: url(/assets/img/symbol-icon-purple.png);
}

section#stockists.issue-2 {
  background-image: url(/assets/img/symbol-icon-green.png);
}


section#stockists ul {
  list-style: none;
  margin: 0 20px 30px 20px; margin: 0 2rem 3rem 2rem;
  padding: 0;
}

section#stockists ul li {
  font-size: 12px; font-size: 1.2rem;
  text-align: center;
  margin-bottom: 12px; margin-bottom: 1.2rem;
}

section#stockists ul li ul {
  margin: 0;
}

section#stockists ul li h4 {
  display: inline-block;
  font-weight: normal;
  padding: 20px; padding: 2rem;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

section#stockists ul li a {
  display: block;
  width: 100%; height: 100%;
}

/* Shop
========================================================================== */

section#shop {
  width: 130px; height: 110px;
  width: 13rem; height: 11rem;
  padding: 20px 10px;
  padding: 2rem 1rem;
  margin-left: 8.6956522%;
  margin-top: 110px;
  margin-top: 11rem;
}

section#shop a {
  display: block;
  height: 100%; width: 100%;
  
  font-size: 18px; line-height: 28px;
  font-size: 1.8rem; line-height: 2.8rem;
  text-align: center;
  text-transform: uppercase;
}

/* About
========================================================================== */

section#about {
  width: 330px; width: 33rem;
  padding: 25px; padding: 2.5rem;
  margin-left: 15%;
  margin-top: 235px; margin-top: 23.5rem;
  
  font-size: 12px; font-size: 1.2rem;
  text-align: center;
}

/* Footer
========================================================================== */
footer {
  position: fixed;
  bottom: 0;
  
  display: block;
  width: 100%;
  
  margin-bottom: 2rem;
}

footer .symbol {
  width: 34px; height: 34px;
  width: 3.4rem; height: 3.4rem;
  overflow: hidden;
  margin-left: 30rem;
  margin-left: 3rem;
  
  float: left;
}

footer .symbol a {
  display: block;
  width: 100%; height: 100%;
  
  font-size: 1px; line-height: 1px;
  text-indent: -5000px; text-indent: -500rem;
  
  background: transparent url(/assets/img/symbol-icon-rotated-black.png) no-repeat 0 0;
}

footer .social {
  list-style: none;
  margin-right: 30px;
  margin-right: 3rem;
  float: right;
}

footer .social li {
  font-size: 1px; line-height: 1px;
  text-indent: -5000px; text-indent: -500rem;
  overflow: hidden;
  
  float: left;
  margin-left: 10px; margin-left: 1rem;
}

footer .social li a {
  display: block;
  height: 12px; height: 1.2rem;
  background: transparent url() no-repeat;
}

footer .social li a.email    { background-image: url(/assets/img/email-icon.png); width: 16px; width: 1.6rem; }
footer .social li a.twitter  { background-image: url(/assets/img/twitter-icon.png); width: 18px; width: 1.8rem; }
footer .social li a.facebook { background-image: url(/assets/img/facebook-icon.png); width: 12px; width: 1.2rem; }


/* ==|== media queries ======================================================
   EXAMPLE Media Query for Responsive Design.
   This example overrides the primary ('mobile first') styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1250px) {
  section#stockists {
    margin-left: 34px;
    margin-left: 3.4rem;
  }
  section#about {
    margin-left: 10%;
  }
  
  section#shop {
    margin-left: 5%;
  }
}

@media only screen and (max-width: 1110px) {
  section#about {
    margin-top: 80px;
    margin-top: 8rem;
  }
  
  section#shop {
    margin-left: 45%;
    margin-top: 40px;
    margin-top: 4rem;
  }
}

@media only screen and (max-width: 990px) {
  section#shop {
    margin-left: 20%;
  }
}

@media only screen and (max-width: 880px) {
  .issue-wrapper {
    width: 100%;
    float: none;
    margin: 0;
  }

  .issues {
    width: 80%;
    height: 100%;
    float: none;
    margin: 0 auto;
  }
  
  .issues img {
    width: 100%;
  }

  section.issues {
    width: 80%;
  }
}

@media only screen and (max-width: 500px) {
  .issues,
  section#stockists,
  section#about,
  section#shop {
    float: none;
    max-width: 80%;
    margin: 0 auto 30px;
    margin: 0 auto 3rem;
  }
}

/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir { border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }

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

/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
  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; }
}
