/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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
   ========================================================================== */

/*
 * Globals
 */

@font-face {font-family: Ornaments; src: url(../fonts/OrnementsADF.ttf);}
@font-face {font-family: PlayfairDisplay; src: url(../fonts/PlayfairDisplay-Bold.otf);}

.ornaments {font-family: Ornaments;}
.playfair {font-family: PlayfairDisplay;}
.rem4 {font-size: 4rem;}
.rem3 {font-size: 3rem;}
.rem25 {font-size: 2.5rem;}
.rem23 {font-size: 2.3rem;}
.rem2 {font-size: 2rem;}
.rem15 {font-size: 1.5rem;}
.rem12 {font-size: 1.2rem;}

.lineheight3 {line-height: 3rem;}

/* Links */
a,
a:focus,
a:hover {
  color: #fff;
}

/* Custom default button */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  color: #333;
  text-shadow: none; /* Prevent inheritance from `body` */
  background-color: #fff;
  border: .05rem solid #fff;
}

/* Base structure */
html,
body {
  height: 100%;
  background-color: #2f2629;
}

body {
  display: -ms-flexbox;
  display: flex;
  color: #fff;
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
  /*Animation*/
  opacity: 0;
  animation: body 1s forwards;
}

@keyframes body {
  from {opacity: 0;}
  to {opacity: 1;}
}

b {font-weight: bold;}

.cover-container {
  max-width: 51em;
  z-index: 1;
}

/* BG */
#bg {
  background: url(../img/background.jpg) bottom left; 
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  /*Animation*/
  animation: bg 30s linear;
  animation-fill-mode: forwards;
}

#bg {
  background-size: 2250px auto;
  width: 6750px;
}

@keyframes bg {
  from { transform: translateX(0px); }
  to { transform: translateX(-230px); }
}

/* Wrapper */
#wrapper {
  background: #ffffff15;
  border-radius: 1em;
  /*Animation*/
  animation: wrapper 0.75s 1s forwards;
  backface-visibility: hidden;
  transform: translate(0,0,0);
  opacity: 0;
}

@keyframes wrapper {
  0% {
    transform: translate3d(0,1em,0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0,0,0);
    opacity: 1;
  }
}

/* Header */
.masthead {
  margin-bottom: 2rem;
}

.lead {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

/* Cover */
.cover {
  padding: 0 1.5rem;
}
.cover .btn-lg {
  padding: .75rem 1.25rem;
  font-weight: 700;
}

/* Footer */
.mastfoot {
  color: rgba(255, 255, 255, .5);
  font-size: 0.7rem;
  /*Animation*/
  animation: footer 0.75s 1.3s forwards;
  backface-visibility: hidden;
  transform: translate(0,0,0);
  opacity: 0;
}

@keyframes footer {
  0% {
    transform: translate3d(0,1em,0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0,0,0);
    opacity: 1;
  }
}

/* Cookie Disclaimer */
#cookieCons {
  position: fixed;
  width: 100%;
  text-align: center;
  bottom: 50px;
  z-index: 10000;
  /*Animation*/
  animation: cookie 0.75s 1.2s forwards;
  backface-visibility: hidden;
  transform: translate(0,0,0);
  opacity: 0;
}

@keyframes cookie {
  0% {
    transform: translate3d(0,1em,0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0,0,0);
    opacity: 1;
  }
}

#cookieCons-wrapper {
  background-color: rgba(255,255,255,0.15);
  display: inline-block;
  border-radius: 5px;
  padding: 0px 12px;
}

#cookieCons-wrapper p {
  margin: 0.5rem;
  font-weight: 300;
}

#cookieCons-wrapper p a {
  text-decoration: none;
  color: rgb(241, 214, 0);
  border-bottom: dotted 1px;
} 

button.cookieCons-btn {
  background: rgb(241, 214, 0);
  border: 1px solid rgb(241, 214, 0);
  border-radius: 5px;
  color: #333;
  font: bold 12px "helvetica neue", helvetica, arial, sans-serif;
  line-height: 1;
  padding: 5px 0;
  text-align: center;
  width: 100px;
  margin-left: 20px;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .cover-container {max-width: 20rem;}
  .cover-heading {font-size: 1.4rem;}
  .lineheight3 {line-height: 1.5rem;}
  .lead {margin: 0; font-size: 0.8rem;}
  .rem3 {font-size: 1.2rem;}
  .rem23 {font-size: 1.15rem;}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .cover-container {max-width: 20rem;}
  .cover-heading {font-size: 1.4rem;}
  .lineheight3 {line-height: 1.5rem;}
  .lead {margin: 0; font-size: 0.8rem;}
  .rem3 {font-size: 1.2rem;}
  .rem23 {font-size: 1.15em;}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .cover-container {max-width: 35rem;}
  .lineheight3 {line-height: 1.9rem;}
  .cover-heading {font-size: 2.5rem;}
  .lead {margin-top: 1.1rem; font-size: 1.1rem;}
  .rem3 {font-size: 1.9rem;}
  .rem23 {font-size: 1.5rem;}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .cover-container {max-width: 43rem;}
  .lineheight3 {line-height: 2.48rem;}
  .cover-heading {font-size: 3rem;}
  .lead {margin-top: 1.3rem; font-size: 1.3rem;}
  .rem3 {font-size: 2.48rem;}
  .rem23 {font-size: 1.9rem;}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .cover-container {max-width: 51rem;}
  .lineheight3 {line-height: 3rem;}
  .cover-heading {font-size: 4rem;}
  .lead {margin-top: 1.5rem; font-size: 1.5rem;}
  .rem3 {font-size: 3rem;}
  .rem23 {font-size: 2.3rem;}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  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:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    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 {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

