/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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;
	scroll-behavior: smooth;
}

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
    font-family: 'Gotham';
    /*src: url('../fonts/Chalet-ParisNineteenSixty.eot');*/
    src: /*url('../fonts/Chalet-ParisNineteenSixty.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Chalet-ParisNineteenSixty.woff2') format('woff2'),
        url('../fonts/Chalet-ParisNineteenSixty.woff') format('woff'),*/
        url('../fonts/Gotham-Book.ttf') format('truetype')/*,
        url('../fonts/Chalet-ParisNineteenSixty.svg#Chalet-ParisNineteenSixty') format('svg')*/;
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SackersGothicLight';
    /*src: url('../fonts/Xscale.eot');*/
    src: /*url('../fonts/Xscale.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Xscale.woff2') format('woff2'),
        url('../fonts/Xscale.woff') format('woff'),*/
        url('../fonts/Monotype-SackersGothicLight.ttf') format('truetype')/*,
        url('../fonts/Xscale.svg#Xscale') format('svg')*/;
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

body {
	background: #000000;
	background-image: url("../img/SamJasper_Background.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	font-family: 'Gotham', sans-serif;
	position: relative;
	/*height: 100%;*/
	min-height: 600px;
}

main {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-line-pack: center;
        align-content: center;
    height: calc(100vh - 40px);
	min-height: 600px;
}

section {
    width: 100%;
    position: relative;
    text-align: center;
}

#greyLogo {
	width: calc(100% - 30px);
    max-width: 630px;
    opacity: 0.22;
	margin: 0 auto;
}

#goldLogo {
    width: 100%;
	position: absolute;
    top: 43% !important;
    left: calc(50% - 230px) !important;
    /*top: 47% !important;
    left: 51.5% !important;*/
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    max-width: 460px;
	margin: 0 auto;
}

footer {
	height: 40px;
}

footer > p {
    color: #707070;
    font-size: .75rem;
    text-align: center;
    margin: 0 auto;
    padding: 10px;
    font-family: 'Gotham', sans-serif;
}

a, a:visited {
	color: #9D9FA2;
	text-decoration: none;
}

h3 {
    margin: 120px auto 0;
    font-family: 'SackersGothicLight', sans-serif;
    text-transform: uppercase;
    color: #C49A6C;
    font-size: 18px;
    position: relative;
    width: 100%;
    max-width: 400px;
	line-height: 1.2;
}

h3 a {
	color: #C49A6C;
	text-decoration: none;
	position: relative;
	z-index: 3;
	display: block;
	padding: 15px 20px;
}

h3::before {
    content: '';
    display: block;
    width: 50%;
    height: 50%;
    position: absolute;
    top: 0;
    left: 0;
    border-left: 1px solid #707070;
    border-top: 1px solid #707070;
	z-index: 1;
}

h3::after {
    content: '';
    display: block;
    width: 50%;
    height: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border-right: 1px solid #707070;
    border-bottom: 1px solid #707070;
	z-index: 1;
}

h3 a span {
	font-size: 0.875rem;
	color: #9D9FA2;
	text-decoration: none;
}

h3:hover, h3:focus {
	background-color: rgba(0,0,0,0.2);
	-webkit-transition: 0.6s;
	transition: 0.6s;
}

h3:hover::before, h3:focus::before {
	-webkit-animation: borderTop 0.2s linear forwards;
	        animation: borderTop 0.2s linear forwards;
}

h3:hover::after, h3:focus::after {
	-webkit-animation: borderBottom 0.2s linear forwards;
	        animation: borderBottom 0.2s linear forwards;
}

@-webkit-keyframes borderTop{
	0%{
		height: 50%;
		top: 0;
		border-top: 1px solid #707070;
		border-bottom: 0 solid #707070;
	}
	50%{
		height: 0%;
		top: 25%;
		border-top: 0 solid #707070;
		border-bottom: 0 solid #707070;
	}
	100%{
		height: 50%;
		top: 49%;
		border-bottom: 1px solid #707070;
		border-top: 0 solid #707070;
	}
}

@keyframes borderTop{
	0%{
		height: 50%;
		top: 0;
		border-top: 1px solid #707070;
		border-bottom: 0 solid #707070;
	}
	50%{
		height: 0%;
		top: 25%;
		border-top: 0 solid #707070;
		border-bottom: 0 solid #707070;
	}
	100%{
		height: 50%;
		top: 49%;
		border-bottom: 1px solid #707070;
		border-top: 0 solid #707070;
	}
}

@-webkit-keyframes borderBottom{
	0%{
		height: 50%;
		bottom: 0;
		border-bottom: 1px solid #707070;
		border-top: 0 solid #707070;
	}
	50%{
		height: 0%;
		bottom: 25%;
		border-top: 0 solid #707070;
		border-bottom: 0 solid #707070;
	}
	100%{
		height: 50%;
		bottom: 49%;
		border-top: 1px solid #707070;
		border-bottom: 0 solid #707070;
	}
}

@keyframes borderBottom{
	0%{
		height: 50%;
		bottom: 0;
		border-bottom: 1px solid #707070;
		border-top: 0 solid #707070;
	}
	50%{
		height: 0%;
		bottom: 25%;
		border-top: 0 solid #707070;
		border-bottom: 0 solid #707070;
	}
	100%{
		height: 50%;
		bottom: 49%;
		border-top: 1px solid #707070;
		border-bottom: 0 solid #707070;
	}
}

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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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: " ";
  display: table;
}

.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 screen and (max-width: 768px) {
	#goldLogo {
		left: 20.5% !important;
	}
}

@media screen and (max-width: 680px) {
	#greyLogo {
		max-width: 430px;
	}
	
	#goldLogo {
		width: 66%;
		left: calc(50% - 150px) !important;
		max-width: 300px;
	}
	
	h3 {
		max-width: 300px;
		font-size: 1rem;
	}
	
	h3 a span {
		font-size: 0.75rem;
	}
	
	footer > p {
		font-size: .5rem;
	}
}

@media screen and (max-width: 680px) {
	#goldLogo {
		width: 80%;
		left: calc(50% - 140px) !important;
		max-width: 280px;
	}
}

@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: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
            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;
  }
}

