@import "../fonts/PressStart2P/stylesheet.css";

html, body {
	height: 100%;
	margin: 0;
	font-family: "Arial", "Helvetica", sans-serif;
	
	
}

strong {
	font-weight: bold;
}

#exampleBlurb {
	margin-bottom: 0;
}

#photos {
	background: #000000;
	width: 548px;
	height: 549px;
	top: 51px;
	left: 101px;
}


main {
	/* seamless background: http://www.flickr.com/photos/zooboing/4538568321/sizes/o/in/photostream/ */
	position: absolute;
	background:  url('../images/seamless-texture.jpg') 50% 50px; 
	width: 100%;
	height: 100%;
	min-height: 7	00px;
}

article, .example {
	position: relative;
	width: 550px;
	height: 550px;
	margin: 0 auto;
	
	display: block;
}




#photos, article [data-polyclip]  {
	position: absolute !important;
	
	display: block;
}

[data-polyclip], .example object, .example img, .example svg {
	position: absolute;
	z-index: 10;
	pointer-events: none;
	top: 50px;
	left: 100px;
	
}

/*
 * Photos inside pacman
 */
#photos .container {
    left: -56px;
    position: absolute;
    top: 0px;
    width: 600px;
}

#photos a {
    display: block;
    float: left;
    width: 255px;
    height: 163px;
    
    z-index: 1;
    border: solid 1px black;
    padding: 10px;
    text-decoration: none;
   
    color: black;
    
    position: absolute;
    image-rendering:-webkit-optimize-contrast;
    -webkit-transform: scale(1) translate(0, 0);
    -o-transform: scale(1) translate(0, 0);
    -ms-transform: scale(1) translate(0, 0);
    -moz-transform: scale(1) translate(0, 0);
    transform: scale(1) translate(0, 0);
    
    -webkit-transition: -webkit-transform 0.2s linear 0s;
    -o-transition: -o-transform 0.2s linear 0s;					
    transition: transform 0.2s linear 0s;
    						
}

#photos a img {
	position: absolute;
	top: 0;
	left: 0;
	
	-webkit-transition: opacity 0.2s linear;
	-o-transition: opacity 0.2s linear;
	transition: opacity 0.2s linear;
}

#photos a h2,
#photos a h2 span {
	-webkit-transition: -webkit-transform 0.2s linear,
		color 0.2s linear;
	-o-transition: -o-transform 0.2s linear,
		color 0.2s linear;
	transition: transform 0.2s linear,
		color 0.2s linear;
}

h1, h2 {
	font-family: "PressStart2P", "PacFont", "Arial", "Helvetica", sans-serif;
	text-transform: uppercase;
}

h1 {
	font-size: 25px;
	position: relative;
	z-index: 9;
	text-align: center;
	
	-webkit-transform: translateZ(0) translate(-190px, 310px) rotate(-90deg);
	-o-transform: translate(-190px, 310px) rotate(-90deg);
	-ms-transform: translate(-190px, 310px) rotate(-90deg);
	transform: translate(-190px, 310px) rotate(-90deg);
	
}

html.ie.lte8 h1 {
	filter: progid:DXImageTransform.Microsoft.Matrix(
            M11=3.061616997868383e-16,
            M12=1,
            M21=-1,
            M22=3.061616997868383e-16,
            SizingMethod='auto expand');
     position: relative;
     left: 76px;
     top:  50px;       
}

#photos a h2 {
	
	font-size: 18px;
	
	color: white;
	margin-bottom: 10px;
	position: relative;
}

#photos a h2 .helv {
	font-family: "Arial", "Helvetica", sans-serif;
	font-size: 25px;
}


#photos a p {
	
	opacity: 0;
	font-family: "Arial", "Helvetica", sans-serif;
	font-size: 12px;
	
	-webkit-transition: opacity 0.2s linear 0.3s;
	-o-transition: opacity 0.2s linear 0.3s;
	transition: opacity 0.2s linear 0.3s;
}

html.ie.lte8 #photos a p  {
	
	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
}

/*
 * Remember nth-child() formulas should *never* have spaces in their
 * formulas, or Safari 5.0 (but not 5.1) breaks.
 * http://writings.orangegnome.com/writes/safari-css-bug-nth-child/
 */
#photos a:nth-child(2n+1) h2,
#photos a:nth-child(2n) p {
	text-align: right;
}


#photos a:hover {
	zoom: 1;			
	-webkit-transform: scale(1.1);
  -o-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -moz-transform: scale(1.1);
	transform: scale(1.1);
	z-index: 10;
	background-color: #ffffff;
	border: solid 1px #cccccc;
	clip: auto !important;
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);
}

html.ie.lte8 #photos a:hover {
	filter: progid:DXImageTransform.Microsoft.Matrix(
            M11=1.1,
            M12=0,
            M21=0,
            M22=1.1,
            SizingMethod='auto expand')
  
  width: 280px;
  height: 180px;
  
}

/* 
 * Styles that fix a problem where the text becomes transparent due to the 
 * Matrix filter in the rule above.  Visual Filters are so hack-y!
 */
html.ie.lte8 #photos a:hover h2,
html.ie.lte8 #photos a:hover p
 {
	position: relative;
	z-index: 2;
	zoom: 1;
	background: white;
	margin-right: 20px;
	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100),
					progid:DXImageTransform.Microsoft.Chroma(color: #ffffff),
					progid:DXImageTransform.Microsoft.Matrix(
            M11=1,
            M12=0,
            M21=0,
            M22=1,
            SizingMethod='auto expand') !important;
}

html.ie.lte8 #photos a:hover p {
	
	padding-bottom: 140px;
}

#photos a:hover p {
	opacity: 1;
	visibility: visible;
}

html.ie.lte8 a:hover p {
	visibility: visible;
	filter: none !important;
}

#photos a:hover img {
	opacity: 0.2;
}

html.ie.lte8 #photos a:hover img {
	
	filter: progid:DXImageTransform.Microsoft.Alpha(opacity=20);
}

/* Super-cool nth-child selectors made with help of http://css-tricks.com/useful-nth-child-recipies/ */
#photos a h2 {
	-webkit-transform: translateY(84px);
  -o-transform: translateY(84px);
  -ms-transform: translateY(84px);
  -moz-transform: translateY(84px);
	transform: translateY(84px);
}


/* positioning of sections */
#photos a:nth-child(2n+1) {
	left: 0;
	
}

#photos a:nth-child(2n+2) {
	left: 276px;
}

#photos a:nth-child(1) {
	clip: rect(50px 275px 173px 80px);
}
#photos a:nth-child(2) {
	clip: rect(50px 275px 173px 0px);
}

#photos a:nth-child(3) {
	clip: rect(0 275px 173px 80px);
}

#photos a:nth-child(3),
#photos a:nth-child(4)
 {
	top: 184px;
	
	
}

#photos a:nth-child(5) {
	top: 365px;
	clip: rect(0px 275px 163px 80px);
}

#photos a:nth-child(6)
 {
	top: 365px;
	clip: rect(0px 275px 163px 0px);
}

#photos a:nth-child(1) {
	
}

#photos a:nth-child(1) h2 {
	-webkit-transform: translateY(140px);
  -o-transform: translateY(140px);
  -ms-transform: translateY(140px);
  -moz-transform: translateY(140px);
	transform: translateY(140px);
}

html.ie.lte8 #photos a:first-child h2 {
	top: 140px;
}

#photos a:nth-child(2) h2 {
	-webkit-transform: translate(-8px, 44px);
  -o-transform: translate(-8px, 44px);
  -ms-transform: translate(-8px, 44px);
  -moz-transform: translate(-8px, 44px);
	transform: translate(-8px, 44px);
}

html.ie.lte8 #photos a:first-child + a h2 {
	top: 44px;
	left: -8px
}

#photos a:nth-child(3) h2 {
	-webkit-transform: translate(0px, 94px);
  -o-transform: translate(0px, 94px);
  -ms-transform: translate(0px, 94px);
  -moz-transform: translate(0px, 94px);
	transform: translate(0px, 94px);
}

#photos a:nth-child(4) h2 {
	
}

#photos a:nth-child(5) h2 {
	-webkit-transform: translate(0);
  -o-transform: translate(0);
  -ms-transform: translate(0);
  -moz-transform: translate(0);
	transform: translateY(0)
}

#photos a:nth-child(6) h2 {
	-webkit-transform: translate(0, 30px);
  -o-transform: translate(0, 30px);
  -ms-transform: translate(0, 30px);
  -moz-transform: translate(0, 30px);
	transform: translateY(50px)
}


#photos a:nth-child(4) h2 span.google{
	display: inline-block;
	-webkit-transform: translate(0, -45px) rotate(-45deg);
  -o-transform: translate(0, -45px) rotate(-45deg);
  -ms-transform: translate(0, -45px) rotate(-45deg);
  -moz-transform: translate(0, -45px) rotate(-45deg);
	transform: translate(0, -45px) rotate(-45deg);
	/* transform: translate(26px, -75px) rotate(-45deg); */
	
}

html.ie.lte8 #photos a:first-child + a + a + a h2 span.google{
	position: relative;
	left: 20px;
	filter: progid:DXImageTransform.Microsoft.Matrix(
            M11=0.7071067811865483,
            M12=0.7071067811865467,
            M21=-0.7071067811865467,
            M22=0.7071067811865483,
            SizingMethod='auto expand');
     
}

#photos a:nth-child(4) h2 span.doodle{
	display: block;
	-webkit-transform: translate(-2px, 64px) rotate(45deg);
  -o-transform: translate(-2px, 64px) rotate(45deg);
  -ms-transform: translate(-2px, 64px) rotate(45deg);
  -moz-transform: translate(-2px, 64px) rotate(45deg);
	transform: translate(-2px, 64px) rotate(45deg);
}

html.ie.lte8 #photos a:first-child + a + a + a h2 span.doodle{
	position: relative;
	left: 33px;
	top: 68px;
	background-color: black;
	filter: progid:DXImageTransform.Microsoft.Chrome(color=#000000)
	        progid:DXImageTransform.Microsoft.Matrix(
	            M11=0.7071067811865474,
	            M12=-0.7071067811865477,
	            M21=0.7071067811865477,
	            M22=0.7071067811865474,
	            SizingMethod='auto expand');
     
}


#photos a:hover h2 {
	-webkit-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -moz-transform: translate(0, 0);
	transform: translate(0, 0);
	color: black;
	
}

html.ie.lte8 #photos a:hover h2,
html.ie.lte8 #photos a:first-child + a + a + a:hover h2 span.google,
html.ie.lte8 #photos a:first-child + a + a + a:hover h2 span.doodle
 {
	top: 0 !important;
	left: 0 !important;
	background-color: #ffffff;
	filter: progid:DXImageTransform.Microsoft.Chroma(color=#ffffff)
			progid:DXImageTransform.Microsoft.Matrix(
	            M11=1,
	            M12=0,
	            M21=0,
	            M22=1,
	            SizingMethod='auto expand') !important;
}

#photos a:hover h2 span {
	-webkit-transform: translate(0, 0) rotate(0deg) !important;
  -o-transform: translate(0, 0) rotate(0deg) !important;
  -ms-transform: translate(0, 0) rotate(0deg) !important;
  -moz-transform: translate(0, 0) rotate(0deg) !important;
	transform: translate(0, 0) rotate(0deg) !important;
}

#credits {
    font-size: 11px;
    left: 64px;
    position: absolute;
    text-align: center;
    top: 608px;
    width: 100%;
}
