/*! HTML5 Boilerplate v5.2.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
   ========================================================================== */

html {
    color: #222;
    font-size: 62.5%; 
    line-height: 1.4;
}

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

/*
 * 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
   ========================================================================== */

/*--------------------------------------------------------------
LAYOUT
--------------------------------------------------------------*/

html,
body {
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  font-family: 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  text-align: center;
  background: url('../img/holi-colors-powder.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

header {
  position: relative;
  width: 80.0rem;
  max-width: 100%;
  margin: auto;
  padding-top: 5.0rem;
  overflow-x: hidden;
}

.enso {
  width: 45.0rem;
  max-width: 75%;
  margin-right: 1.5rem;
}

.eye-catcher {
  position: absolute;
  top: 3.0rem;
  right: 8.5rem;
  display: block;
  width: 12rem;
  height: 12rem;
  box-sizing: border-box;
  border-radius: 50%;
  background: url('../img/structure.jpg');
  background-size: cover;
  background-position: center center;
  padding-top: 3.0rem;
}

.eye-catcher span {
  display: block;
  color: white;
  -webkit-transform: rotate(-10deg);
     -moz-transform: rotate(-10deg);
      -ms-transform: rotate(-10deg);
       -o-transform: rotate(-10deg);
          transform: rotate(-10deg);
}

.container {
  position: absolute;
  width: 100%;
  bottom: 0;
  background-color: rgba(255,255,255,0.5);
  padding: 3.0rem 3.0rem 2.0rem;
  box-sizing: border-box;
}

.blurred-background {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  
  display: block;
  background-image: url('../img/holi-colors-powder.jpg');
  background-size: cover;
  background-position: center bottom;
  width: 100%;
  height: 100%;
  
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px);
}

.wrapper {
  width: auto;
  max-width: 90.0rem;
  margin: auto;
  margin-bottom: 1.0rem;
}

section {
  display: inline-block;
  width: 22.0rem;
}

section:nth-child(2) {
  float: left;
}

section.main {
  width: 33.0rem;
  margin-top: -0.5rem;
}

section:last-child {
  float: right;
}

.imprint-link {
  cursor: pointer;
}

html:not(.no-js) .imprint {
  display: none;
}

@media screen and (max-height: 900px) {
	
	.container {
  	  position: relative;
  	  bottom: auto;
  }
	
}

@media screen and (max-width: 830px) {

  .container {
    position: relative;
    bottom: auto;
  }

	section:nth-child(n) {
  	  float: none;
  	  vertical-align: top;
  	  width: 49%;
	}
	
	section.main {
  	  width: 100%;
  	  margin-bottom: 5.0rem;
  	  box-sizing: border-box;
	}

}

@media screen and (max-width: 750px) {
	
	.eye-catcher {
  	  right: 5%;
	}
	
}

@media screen and (max-width: 580px) {
	
	.eye-catcher {
  	  font-size: 1.0rem;
    padding-top: 3.25rem;
    padding-right: 0.7rem;
    padding-left: 0.5rem;
    right: -1.25rem;
    top: -2.25rem;
	}
	
	section:nth-child(n) {
  	  width: 100%;
  	  margin-bottom: 2.0rem;
  }
  
  section.main {
    margin-bottom: 4.0rem;
  }
	
}

@media screen and (max-width: 480px) {
	
	header {
  	  padding-top: 8.0rem;
	}
	
}


/*--------------------------------------------------------------
STYLE
--------------------------------------------------------------*/

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;  
}

.at {
  position: relative;
  top: -0.1rem;
}

address {
  font-style: normal;
  margin-top: -1.1rem;
}

.button {
	background: url('../img/structure.jpg');
  background-size: cover;
  background-position: center center;
	display: inline-block;
	color: white;
	height: 3.5rem;
	width: 20.0rem;
	vertical-align: middle;
	text-transform: uppercase;
	text-decoration: none;
}

.button:hover,
.button:focus {
  opacity: 0.8;  
}

.button:active {
	position:relative;
	top:1px;
}


/*--------------------------------------------------------------
FONTS
--------------------------------------------------------------*/

html {
	-webkit-font-smoothing: antialiased !important;
}

body {
  font-size: 1.1rem;
}

h1 {
  font-size: 7.2rem;
  font-weight: 700;
  line-height: 8.0rem;
  letter-spacing: 3rem;
  margin: 3.8rem 0 10.0rem 1.5rem;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: 0.5rem;
}

.eye-catcher {
  line-height: 1.8rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2rem;
}

.button {
  font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.2rem;
	line-height: 3.5rem;
}

section p,
section address {
  line-height: 20px;
  letter-spacing: 0.2rem;
}

section.main h2 {
  font-size: 1.4rem;
  letter-spacing: 0.7rem;
}

section.main p {
  font-size: 1.4rem;
  line-height: 2.6rem;
  letter-spacing: 0.3rem;
}



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