/** Styles for header (and background, common stuff) */
body {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	background-color: #fafafa;
	
	font-size: 1.1em;/*1.1em;*//*150%;*/
	width: 100vw;
	overflow-x: hidden;
	
	/* This disables the crappy 'font boosting' that chrome mobile does. */
	/* Seriously, what drives these people to write garbage non-standards-compliant browser code that ruins everyone's layouts? All you have to do to achieve good scaling is to layout at a 1/2 or 1/3 or 1/4 pixel resolution for every pixel value including font sizes. Bam, fixed. */
	-webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
}

html, body {
	margin-left:    0px;
	margin-right:   0px;
	margin-bottom:  0px;
	margin-top:     0px;
	
	padding-left:   0px;
	padding-right:  0px;
	padding-bottom: 0px;
	padding-top:    0px;
}

a {
	transition: border-color .2s linear;
    text-decoration: none;
}

a:hover:not(.active) {
	border-color: #ff5500;
}

/** Styles for navbar **/
#navbar {
	height: 2.0em;
	
	margin-top:     0px;
	margin-bottom:  0px;
	margin-left:    0px;
	margin-right:   0px;
	
	letter-spacing: 0px;
	word-spacing:   0px;
	
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	overflow: hidden;
	white-space: nowrap;
	
	z-index: 500;
	
	background-color: #fafafa;
	box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.5); 
}

.logobutton {
	height: 100%;
	
	margin-top:     0.0em;
	margin-bottom:  0.0em;
	margin-left:    0.4em;
	margin-right:   0.0em;
	
	display: inline-block;
	vertical-align: top;
	
	background-color: rgba(230, 230, 230, 0.0);
	transition: background-color .2s linear;
}

.logobutton:hover:not(.active) {
    background-color: rgba(230, 230, 230, 1.0);
}

.navbutton {
	position: relative;
	height: 100%;
	
	margin-top:     0.0em;
	margin-bottom:  0.0em;
	margin-left:    0.4em;
	margin-right:   0.0em;
	
	padding-top:    0.29em;
	padding-bottom: 0.00em;
	padding-left:   1.00em;
	padding-right:  1.00em;
	
	display: inline-block;
	vertical-align: top;
	
	z-index: 2;
	color: #000000;
	text-decoration: none;
	text-align: center;
	font-size: 1.0em;
	font-family: 'Montserrat', sans-serif;
	
	background-color: #fafafa;
	transition: background-color .2s linear;
}

.navbutton:hover:not(.active) {
    background-color: #e6e6e6;
}

.filesbutton {
    position: absolute;
    top:   0px;
    right: 0px;
    
	margin-top:     0px;
	margin-bottom:  0px;
	margin-left:    0px;
	margin-right:   3.00em;
	
	padding-top:    0.90em;
	padding-bottom: 0.00em;
	padding-left:   0.00em;
	padding-right:  0.00em;
	
	z-index: 1;
	color: #999999;
	font-size: 0.6em;
}

/** Styles common to all pages */
.textBase {
	color: black;
    text-shadow: 0px 0px 0.3em #ffffff;
	text-decoration: none;
	text-align: center;
	line-height: 2.7;
	font-family: 'Montserrat', sans-serif;
    
    margin-top:    0.5em;
    margin-bottom: 0.5em;
	margin-left:   calc(50vw - 30em + 2em);
	margin-right:  calc(50vw - 30em + 2em);
}

@media screen and (max-width: 74em) {
    .textBase {
    	margin-left:   2em;
    	margin-right:  2em;
    }
}

.textLog {
    /*position: absolute;*/
    /*bottom: 2.8em;*/
	width: 100%;
	
    margin-top:    0px;
    margin-bottom: 0px;
	margin-left:   0px;
	margin-right:  0px;
    
	color: white;
    text-shadow: 0px 0px 0.3em #000000;
	
	font-size: 2.0em;
}

.textBig {
	font-size: 4.5em;
}

.textMed {
	font-size: 2.5em;
}

.textSma {
	font-size: 1.1em;
}

.squareCard {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    
	width: 16em;
	height: 16em;
	
    margin: 1.4em;
	
	border-color: inherit;
	border-style: solid;
    background-color: #ffffff;
	box-shadow: 0px 0px 70px -10px rgba(0, 0, 0, 0.5);
}

.squareCardSmall {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    
	width: 8em;
	height: 8em;
	
    margin: 1.4em;
	
	border-color: inherit;
	border-style: solid;
    background-color: #ffffff;
	box-shadow: 0px 0px 70px -10px rgba(0, 0, 0, 0.5);
}

.squareCardText {
	color: black;
	text-decoration: none;
	text-align: center;
	line-height: 1.0;
	font-family: 'Montserrat', sans-serif;
    
    margin-top:    0px;
    margin-bottom: 0px;
	margin-left:   0.3em;
	margin-right:  0.3em;
}

.squareCardImage {
	width:  5.0em;
	height: auto;
	max-height: 5.0em;
    
    margin-top:    0px;
    margin-bottom: 0px;
	margin-left:   0.3em;
	margin-right:  0.3em;
}

.linkCen {
    display: block;
    
	color: #0000ff;
	text-align: center;
	font-size: 1.0em;
	font-family: 'Montserrat', sans-serif;
	text-decoration: none;
	
    margin-top:    1.4em;
    margin-bottom: 1.4em;
}

.linkCen:hover:not(.active) {
	color: #ff5500;
}

.sectionBase {
    position: relative;
    
    /* Prevents margins from collapsing */
    overflow: hidden;
    
	padding-top:    0em;
	padding-bottom: 0em;
	
    text-align: center;
}

.sectionBackground {
    background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	background-attachment: fixed;
	background-color: #000000;
}

.sectionSplash {
    height: 100vh;
    
	padding-left:  0px;
	padding-right: 0px;
}

.sectionCardA {
    background-color: #ffffff;
    
    z-index: 2;
	box-shadow: 0px 0px 70px -10px rgba(0, 0, 0, 0.5);
}

.sectionCardB {
    background-color: #eeeeee;
    
    z-index: 1;
	box-shadow: 0px 0px 70px -10px rgba(0, 0, 0, 0.5);
}

.sectionCardC {
    background-color: #cccccc;
    
    z-index: 0;
	box-shadow: 0px 0px 70px -10px rgba(0, 0, 0, 0.5);
}

.logoTable {
    width: 100%;
    height: calc(100% - 2em); /* Make a bit of extra room for mobile top bars */
}

.logoBig {
	width: 90vmin;
	height: auto;
	
	margin-left: auto;
	margin-right: auto;
}

.logoSma {
	width: 45vmin;
	height: auto;
	
	margin-left: auto;
	margin-right: auto;
}

.logoFull {
	width: 100vw;
	height: auto;
	
	margin-top: 10vh;
	margin-bottom: 10vh;
	margin-left: 0px;
	margin-right: 0px;
}

/** Styles for gallery */
.galleryPageBack {
    display: inline-block;
    
    height: 12em;
    width: auto;
    
	overflow-x: hidden;
	overflow-y: hidden;
	
	white-space: nowrap;
	
	letter-spacing: 0px;
	word-spacing: 0px;
	
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: auto;
	margin-right: auto;
	
	background-color: rgba(148, 148, 148, 1.0);
	z-index: 3;
	box-shadow: 0px 0px 70px -5px rgba(0, 0, 0, 0.5);
}

.galleryPageFront {
    height: 100%;
    width: auto;
    max-width: 100vw;
    
    padding-bottom: 50px;
    margin-bottom: -50px;
    
	overflow-x: scroll;
	overflow-y: hidden;
}

.galleryImageContainer {
    height: 12em;
    
	overflow-x: hidden;
	overflow-y: hidden;
    
	display: inline-block;
	vertical-align: middle;
}

/*.galleryImageContainer:not(:first-of-type) {
	margin-left: 0.4vw;
}*/

.galleryImage {
    height: 100%;
	
	opacity: 0.9;
	transform: scale(1);
	transition: opacity .4s linear, transform 1.5s ease-out;
}

.galleryImage:hover:not(.active) {
	opacity: 1.0;
	transform: scale(1.2);
	transition: opacity .2s linear, transform .5s ease-out;
}

.galleryViewBack {
    position: fixed;
    text-align: center;
    vertical-align: middle;
    top: 0%;
    left: 0%;
    width: 100vw;
    height: 100vh;
    
    z-index: 1000;
	
    background-color: rgba(0, 0, 0, 0.8);
    
	opacity: 0.0;
    
    pointer-events: none;
    
    transform-origin: 50vw, 50vh;
}

.galleryViewCen {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    
    z-index: 1000;
    
	opacity: 1.0;
    
    pointer-events: inherit;
}

.galleryViewMid {
	box-shadow: 0px 0px 50px 20px rgba(0, 0, 0, 0.5);
    
	opacity: 0.0;
    
    pointer-events: inherit;
}

.galleryViewImg {
    display: block;
    
    max-width: 90vw;
    max-height: 90vh;
    
	opacity: 1.0;
    
    pointer-events: inherit;
}

@media screen and (max-width: 74em) {
    .galleryViewImg {
        max-width: 100vw;
        max-height: 100vh;
    }
}

.galleryViewOvl {
    position: absolute;
    top: 2vh;
    left: 3vh;
    
    width: 23em;
    max-width: calc(100% - 6vh);
    height: calc(100% - 2vh);
    white-space: normal;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: scroll;
    padding-right: calc(120% + 50px);
    
    text-decoration: none;
    text-shadow: 0px 0px 0.3em #000000;
    text-align: left;
    vertical-align: top;
    color: white;
    
    font-size: 1.1em;
	font-family: 'Montserrat', sans-serif;
    
	opacity: inherit;
    
    pointer-events: inherit;
}

.galleryLoadMid {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    
	opacity: 0.0;
    
    pointer-events: inherit;
}

.galleryLoadImg {
    position: absolute;
    top: 50%;
    left: 50%;
    
    animation: galleryAnimationLoadingRotation 1.5s infinite linear;
    -webkit-animation: galleryAnimationLoadingRotation 1.5s infinite linear;
    
	opacity: inherit;
    
    pointer-events: inherit;
}

@keyframes galleryAnimationLoadingRotation {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(359deg); }
}

@-webkit-keyframes galleryAnimationLoadingRotation {
    from { -webkit-transform: translate(-50%, -50%) rotate(0deg); }
    to   { -webkit-transform: translate(-50%, -50%) rotate(359deg); }
}

.galleryAnimationFadeOut {
    animation: galleryAnimationFadeOut 300ms ease-in forwards;
    -webkit-animation: galleryAnimationFadeOut 300ms ease-in forwards;
}

@keyframes galleryAnimationFadeOut {
	0% {
	    opacity: 1.0;
        transform: scale(1.0);
	}
	100% {
	    opacity: 0.0;
        transform: scale(0.8);
	}
}

@-webkit-keyframes galleryAnimationFadeOut {
	0% {
	    opacity: 1.0;
        -webkit-transform: scale(1.0);
	}
	100% {
	    opacity: 0.0;
        -webkit-transform: scale(0.8);
	}
}

.galleryAnimationFadeIn {
    animation: galleryAnimationFadeIn 300ms ease-out forwards;
    -webkit-animation: galleryAnimationFadeIn 300ms ease-out forwards;
}

@keyframes galleryAnimationFadeIn {
	0% {
	    opacity: 0.0;
        transform: scale(0.8);
	}
	100% {
	    opacity: 1.0;
        transform: scale(1.0);
	}
}

@-webkit-keyframes galleryAnimationFadeIn {
	0% {
	    opacity: 0.0;
        -webkit-transform: scale(0.8);
	}
	100% {
	    opacity: 1.0;
        -webkit-transform: scale(1.0);
	}
}

/** Stolen from Marijauto site. Needs to be propagated properly. */
.font-consolas {
    font-family: Consolas;
}

.page-width-area {
	margin-left:   calc(50vw - 35em + 2em);
	margin-right:  calc(50vw - 35em + 2em);
}
@media screen and (max-width: 84em) {
    .page-width-area {
    	margin-left:   2em;
    	margin-right:  2em;
    }
}
.page-height-area {
    min-height: calc(100vh - 2.5em - 2px);
}
/*
     FILE ARCHIVED ON 17:08:33 Jul 28, 2018 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 05:31:26 Sep 03, 2018.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  LoadShardBlock: 84.328 (3)
  esindex: 0.008
  captures_list: 101.206
  CDXLines.iter: 12.084 (3)
  PetaboxLoader3.datanode: 48.379 (4)
  exclusion.robots: 0.171
  exclusion.robots.policy: 0.159
  RedisCDXSource: 1.726
  PetaboxLoader3.resolve: 1080.637 (2)
  load_resource: 1052.006
*/