/*!
Xi Tauri v1.01
Copyright 2016 Cameron T Arrington. All rights reserved.
http://cameronarrington.com/
Licensed under the BSD License.
https://github.com/yahoo/pure/blob/master/LICENSE.md
*/

/* Fonts */


@font-face { font-family: Avenir; src: url('Avenir.ttf'); }
@font-face { font-family: Avenir-Roman; src: url('Avenir-Roman.otf'); }

/* Colors */
:root {
	--black: #090909;
	--red: #aa3737;
	--white: #f3f3f3;
	--gray: #d7d7d7;
	--darkgray: #505050;
}

::selection {
	color: #f3f3f3;
  	background: var(--red); /* WebKit/Blink Browsers */
}
::-moz-selection {
	color: #f3f3f3;
  	background: var(--red); /* Gecko Browsers */
}
html {
-webkit-tap-highlight-color: var(--red);
}

/* Grid */
*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box
}

/* Set the width of the grid */
.frame {
  width: 1100px; /* desired width plus 2x the padding. Replace with "100%" for full-width layouts */
  margin: 0 auto;
}

/* Attribute selector */
[class*='bit-'] {
  float: left;
  padding: 0px 10px;
}

/* Clearfix */
.frame:after {
  content: "";
  display: table;
  clear: both
}

/* Main Widths */
.bit-1  { width: 100% }
.bit-2  { width: 50% }
.bit-3  { width: 33.33%}
.bit-4  { width: 25% }
.bit-5  { width: 20% }
.bit-6  { width: 16.6666666667% }
.bit-7  { width: 14.2857142857% }
.bit-8  { width: 12.5% }
.bit-9  { width: 11.1111111111% }
.bit-10 { width: 10% }
.bit-11 { width: 9.09090909091% }
.bit-12 { width: 8.33% }
.bit-40 { width: 40% }
.bit-60 { width: 60% }
.bit-66 { width: 66.6666666667% }
.bit-75 { width: 75% }

/*! Body */
body {
height: 100%;
background-color: var(--black);
margin:0px !important;
}

h1 {
	font-family: 'Vollkorn', serif;
	font-weight: 300;
	font-size: 40px;
	color: var(--white);
	margin-bottom: 30px;
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	animation-delay: 1.3s;
  	-webkit-animation-delay: 1.3s;
	-moz-animation-delay: 1.3s;
}
h2 {
	font-family: 'Hind', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--darkgray);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0;
}
p {
	font-family: 'Avenir', sans-serif;
	font-size: 16px;
	color: var(--gray);
	margin-right: 50px;
	line-height: 26px;
	margin-bottom: 20px;
}
a, a:link, a:visited {
	font-family: 'Avenir', sans-serif;
	font-size: 16px;
	color: var(--gray);
	text-decoration: underline;
	-webkit-transition: all 0.2s linear; /* Safari */
    transition: all 0.2s linear;
}
a:hover { color: var(--red); }

img {
	border: none;
}
.resp-img {
	width: 100%;
	height: auto;
}
input, text area {
	-webkit-appearance: none;
	-webkit-border-radius: 0;
}
hr { 
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #262626;
	padding: 0;
	margin-top: 35px;
}
.right {
	text-align: right;
}
.red {
	color: var(--red);
}

#header {
	background-color: var(--black);
	border-top: 5px solid var(--red);
	padding: 50px 0px 130px;
}
#c-logo {
	width: auto;
	height: 20px;
	animation-duration: 2s;
	-webkit-animation-duration: 2s;
	-moz-animation-duration: 2s;
}
#ellipsis {
	display: inline-block;
	width: 2px;
  	height: 2px;
  	background-color: white;
  	border-radius: 50%;
  	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	animation-delay: 1.3s;
  	-webkit-animation-delay: 1.3s;
	-moz-animation-delay: 1.3s;
	box-shadow: 0 0 0 1px white, 0 8px 0 1px white, 0 16px 0 1px white;
}

#intro {
	background-color: var(--black);
	padding-bottom: 150px;
}
#intro p {
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	animation-delay: 4s;
  	-webkit-animation-delay: 4s;
	-moz-animation-delay: 4s;
}
.links ul {
	list-style: none;
	animation-duration: 1s;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	animation-delay: 6s;
  	-webkit-animation-delay: 6s;
	-moz-animation-delay: 6s;
}
.links li {
	display: inline;
	font-family: 'Avenir', sans-serif;
	font-size: 16px;
	color: var(--gray);
	line-height: 40px;
	margin-right: 10px;
}
.links li:first-of-type {
	font-family: 'Avenir-Roman', sans-serif;
}

#slideshow-test { width: 100%; overflow-x: hidden; }
.slideshow {
	position: relative;
	width: 1080px;
	margin: 0 auto;
	margin-bottom:150px;
}
/* Project Item */

.project-item {
	background-color: var(--black);
	width: 100%;
	padding: 35px 0px 0px;
}
.project-item h1 { margin-bottom: 0; }
.project-item p { margin-right: 0px; }

.cell-description {
	font-family: 'Avenir', sans-serif;
	font-size: 16px;
	line-height: 26px;
	color: var(--gray);
	position: absolute;
  	top: 478px;
  	left: 50px;
 	z-index: 7;
 	width: 100vw;
 	visibility: hidden;
 	opacity: 0;
 	-webkit-transition: all 0.02s linear; /* Safari */
    transition: all 0.02s linear;
	-webkit-transition-delay: 0s; /* Safari */
    transition-delay: 0s;
}

.flickity-viewport {
	height: 100%;
	overflow: visible !important;
}
.flickity-prev-next-button {
	top: initial !important;
	height: 30px !important;
	width: 30px !important;
	background: none !important;
	color: var(--gray) !important;
	bottom: -70px !important;
}
.previous { left: -5px !important; }
.next { left: 15px !important; }
.carousel-cell {
	position: relative;
	height: 450px;
	margin: 0px 10px;
}
.carousel-cell img {
	height: 100%;
	width: auto;
}
.carousel-cell.is-selected > .cell-description {
	visibility: visible;
	opacity: 1;
	-webkit-transition: all 0.1s linear; /* Safari */
    transition: all 0.1s linear;
    -webkit-transition-delay: 0.3s; /* Safari */
    transition-delay: 0.3s;
}

#work {
	padding: 100px 0px;
	background-color: var(--white);
}
.project {
	position: relative;
	display: inline-block;
	width: 100%;
	margin-bottom: 85px;
}
.project p {
	color: var(--darkgray);
	margin-bottom: 20px;
	margin-right: 0px;
}
.project-title {
	width: 50%;
	padding: 0px 10px;
	position: absolute;
	top: 50px;
}
.project-title p {
	font-family: 'Avenir-Roman', sans-serif;
	margin-bottom: 0;
}
.project-title a, .project-title a:link, .project-title a:visited {
	font-family: 'Avenir', sans-serif;
	font-size: 16px;
	color: var(--black);
}
.project-title a:hover {
	color: var(--gray);
}
.project h1 {
	color: var(--black);
}

.bit-75 {
	float: right;
}
.work-img {
	width: 100%;
	height: auto;
	margin-bottom: 20px;
	display: inline-block;
}

#footer {background-color: var(--black)}
#footer p {
	color: var(--darkgray);
	margin-bottom: 0;
	margin-right: 0;
	text-align: left;
	line-height: 100px;
}

.hidden { opacity:0; }
.visible { opacity:1; }

/*base mobile styles*/
@media (max-width: 1120px) {
	
	.frame {
    width: 100%;
    }
    [class*='bit-'] {
  	padding: 0px 20px;
	}
  	.bit-4 {
  	width: 50%;
  	}
  	h2 {
  	text-align: center;
  	}
  	.slideshow { padding-left: 20px; }
  	.previous { left: 15px !important; }
	.next { left: 35px !important; }
}

@media (max-width: 800px) {
	
	.bit-66, .bit-75, .bit-40 {
		width: 100%;
	}
	.project-title {
		width: 100%;
		position: relative;
		top: 0px;
		padding: 0px 20px;
		margin-bottom: 0px;
	}
	.project-title h1 {
		margin-bottom: 10px;
	}
	.cell-description { top: 328px; }
	.carousel-cell { height: 300px; }
	
}

@media (max-width: 600px) {

	h1 { font-size: 30px; }
	#header { padding: 50px 0px 75px; }
	#intro { padding-bottom: 75px; }
	.project-item .bit-2 { width: 100%; }
	.project-item p { margin-top: 50px; }
	#work { padding-top: 50px; }
	.cell-description { top: 228px; }
	.carousel-cell { height: 200px; }
	p { margin-right: 0; }

}