@charset "utf-8";
/* CSS Document */
/*
,---.|             |o      ,---.     o ,---.              
`---.|--- .   .,---|.,---. |  _.,---.. |__.,---.,---.,---.
    ||    |   ||   |||   | |   ||    | |   ,---||    |---'
`---'`---'`---'`---'``---' `---'`    ` `   `---^`    `---'  
 * Author name : Armagan Tekdoner
 * Release date: January 2016
 * Absolute URL: grifare.net/css/small.css
 */


/* this file handles small screens between 799 pixels and 640 pixels
 * not all content is available
 */
  
/* imports the mobile font */ 
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,400italic);

/* animations file REMOVED from project */
/* @import url("animations.css"); */

/* Medium screens */
@media only screen and (min-width: 640px) and (max-width: 799px) {  

/*** global rules ***/
html,
body {	
	font-family: 'Roboto', sans-serif;
	font-size: 1em;	
	font-weight: 400;
	line-height: 1.25;
	width: 100%;
	/* new and not recognised by all browsers yet */
	text-rendering: optimizeLegibility;		
}

/* headings */
h1, h2, h3, h4 {
	padding: 2px;
}

/* http://typecast.com/blog/a-more-modern-scale-for-web-typography for ratios */
h1 {
	margin: 6px auto 0px auto;
	font-size: 2em;
	color: #002533;
	background-color: rgba(188,224,238,0.4);
	border-bottom: 4px #002533 solid;
	margin-bottom: 0.5em;	
}

h2 {
	font-size: 1.625em;
	color: #bce0ee;
	background-color: #002533;
	margin-bottom: 0.5em;
}

h3 {
	font-size: 1.375em;
	font-weight: 700;
	padding: 0 0 .4em 0;
	margin-top: 1em;		
}

h4 {
	font-size: 1.125em;
}
/* headings ends */

/* body text */
p {
    margin-bottom: 1.25em;
}

small {
	font-size: 0.75em;
}
/* body text ends */

main, section{
	position: relative;
	clear: both;
	overflow: hidden;
}

/* all responsive */
figure{
	overflow: visible;
}
  
	figcaption{
		text-align: center;
	}
	
	img{
		max-width: 100%;
		height: auto;
		overflow: auto;
		margin: 0;
	}

/* pseudo classes */
a {
	font-weight: 400;	
}

a:link{
	color: #015575;		
}

a:visited{
	color: #646464;
}

main a:hover,
footer a:hover{
	background-color: rgba(134,178,0, 0.1);
	outline: 2px solid #3b4e00;
}

/* excludes images and suckerfish menu */
figure > a:hover,
#suckerfishnav a:hover{
	background-color: transparent;
	outline: none;
}

a:active{
	color: #ff6d6d;
}

/* skip to main content link not shown */
input[value="Skip to main content"]{
	position: absolute;
	left: 6px;
	opacity: 0;
	border: none;
	background: none;
	background-color: #fff;
	text-decoration: underline;
	font-weight: bold;
	font-size: 1.375em;
	color: #015575;
}

/* skip to main content link shown */
input[value="Skip to main content"]:focus{
	opacity: 1;
	z-index: 10;
}

/* tabbing */
:focus{
	outline: #bb0000 solid 2px;
}

/* when the user selects text */
::selection{
	color: #ffffff;
	background-color: #bb0000;
}

/* lists */
ul, ul li{
	display: inline-block;	
}

ol li{
	display: list-item;
}

/* abbreviations spelt-out */
abbr[title] {
     border-bottom: dotted 1px;
	 border-bottom-color: rgba(150,150,150,0.8);
}

/* for all short quotations */
figure.quote{
	margin: 10px 0px 10px 30px;
	padding-left: 15px;
	border-left: 4px solid #3b4e00;
	background-color: rgba(239,253,197,0.3);
	color: #015575;
	width: 85%;
}
  
	  /* open quote symbol */
	  figure.quote::before{
		  position: absolute;
		  content: url(../icons/open-quote.png);
	  }
	  
/* when not clicked it needs margin */	  
details{
	margin-bottom: 2.369em;
}
/*** global rules ends ***/



/*** global rules for specific purposes starts ***/
/* external links container */
aside{
	margin: 2em 0em 2em 1.5em;
	display: inline-block;
	clear: both;
	border-radius: 2px;
	box-shadow: 0px 10px 30px -12px rgba(0,0,0,0.7);
	padding: 1em;		
}

	/* external links label */
	aside > p {
		font-size: 1.272em;
		margin-bottom: 5px;
	}
	
	/* external link items */
	aside li {
		display: list-item;
		margin-left: 20px;
		padding-bottom: 1em;
	} 

/* blockquote for all stories */
blockquote {
	margin-top: 10px;
	margin-left: 20px;
	padding: 20px 0px 5px 15px;
}
	
	/* first letter of all quotations */
	blockquote p:first-of-type::first-letter{
		font-size: 2.6179em;
		color: #3b4e00;
	}
	
	/* italic blockquote: what a character says */
	blockquote i,
	blockquote em{
		display: block;
		margin-left: 50px;
		margin-right: 20px;
	}

/* all forms */
input{
	font-size: 0.7862em;	
}

/* code snippets */
code{
	font-family: 'Roboto Mono';
	background-color: rgba(200,200,200,0.6);
}

/** icons **/	
/* adds icon to external links */
a[itemprop="url"]::after{
	content: url(../icons/external-link.png);
	padding-left: 0.25em;
}

/* adds icon to download links */
a[download]::after{
	content: url(../icons/download.png);
	padding-left: 0.25em;
}
	
/* adds icon to pdf links */
a[href$=".pdf"]::after{
	content: url(../icons/pdficon_small.png);
	padding-left: 0.25em;
}

/* adds icon to doc links */
a[href$=".doc"]::after{
	content: url(../icons/doc-icon.png);
	padding-left: 0.25em;
}

/* adds icon to xls links */
a[href$=".xls"]::after{
	content: url(../icons/xls-icon.png);
	padding-left: 0.25em;
}

/* adds icon to rss links */
a[href$="rss.xml"]::after{
	content: url(../icons/rss-icon.png);
	padding-left: 0.25em;
}

/* lowering icons by 2 pixels */
img[src$="infobox-icon.png"],
img[src$="warning-red.png"] {
	margin-bottom: -2px;
}

/** icons ends **/		
/*** global rules for specific purposes ends ***/



/** common parts of the pages starts **/
/** header part **/
/* container */
header{
	position: relative;
}

/* all 3 divs in the header */
header div{
	position: relative;		  
	width: 94%;
	margin-left: auto;
	margin-right: auto;
	padding: 4px;
}

	/* logo and masthead container */
	header div:nth-of-type(1){
		position: relative;
		margin: 1em auto 1em auto;
		color: rgb(150,150,150);
		font-size: 2vw;
	  overflow-x: hidden;	
	}
	
	  /* gri fare logo */
	 	header figure {
		  float: left;
		  width: 90%;
	  }
	
	/* masthead -- epic emigration to Cyberland */
	  header figure figcaption{
		  float: left;
		  margin-bottom: 0.5em;
		  font-size: 5vw;
		  color: #646464;
	  }
			  
		/* search */
		header div:nth-of-type(1) form{
			font-size: 1em;
		}

		header label{
			position: absolute;
			margin-top: -9999px;
		}				
		
		  /* search text */
		  header form input{
			  font-size: 1em;
		  }	  
 

	  /* nav and search container */
	  header div:nth-of-type(2){
		  font-size: 1.618em;
		  margin-bottom: -1em;
	  }
		header div:nth-of-type(2) a:first-of-type{
			margin-right: 1em;
		}
		
	  header div:nth-of-type(2) a:hover{
		  background-color: rgba(134,178,0, 0.1);
		  outline: 2px solid #3b4e00;
	  }		 
	  		  
	/* menu container */
	header div:nth-of-type(3){
		position: relative;
		margin: 0 auto;
		border-radius: 2px;
		box-shadow: 0px 8px 30px -8px rgba(0,0,0,0.7);
		padding: 6px;
		overflow: hidden;
		height: 300px;
	}
		/* side navigation */
		nav{
			float: left;
			font-size: 1em;
			margin-left: 1em;
		}
		
		/* list items of nav */
		nav li{
			display: list-item;
			list-style: none;
			margin-bottom: 3px;
		}
		
		/* stops underlining of links */
		nav a{
			text-decoration: none;	
		}
		
		
		/* dynamically inserted class */
		span.enlarge{
			position: absolute;
			margin-left: 0.5em;
			padding-left: 6px;
			padding-right: 1em;			
			color: #bb0000;
			border-left: solid 4px #3b4e00;
			height: inherit;
			font-size: 2.5rem;		
		}
		  
		  /* img inside the dynamically inserted class */
		  span.enlarge img{
				max-height: 256px;
				width: auto;
		  }			  
		  		
		/* dynamically inserted class */
		nav li.mdash:before{
			position: absolute;
			/* HTML &mdash; */
			content: '\2014';
			margin-left: -4px;
			margin-top: -33px;		
			-webkit-margin-before: -32px;
			font-size: 50px;
			color: #bb0000;	
		}
		
		/* underlines hovered menu items */
		nav li:hover{
			border-bottom: solid #3b4e00;
			border-bottom-width: 5px;
			margin-bottom: -3px;			
		}

/* content containers */
main{
	width: 98%;	
	margin: auto;	
	padding: 0.5em 0em 2em 0em;
}

/* local navigation (table of contents) */
nav#toc{
	border-radius: 2px;
	box-shadow: 0px 8px 30px -8px rgba(0,0,0,0.7);
	padding: 1em;
	margin-bottom: 1em;
	float: none;
	width: 300px;
	left: 0;
}
  
  /* "table of contents" text */
  nav#toc p{
	  font-weight: bold;
  }
  
  /* local navigation links */
  nav#toc li{
	  display: list-item;
/*	  list-style-type: disc;
	  list-style-position: inside;*/
	  cursor: pointer;

  }
  
  /* list items bullets */
  nav#toc li:before{
	  content: "• ";
	  color: #bb0000;
  }


/* p over first h1 */
p.instruction{
	 margin-bottom: 0.45em;
}
  
  p.instruction::first-letter{
	  font-size: 2.6179em;
	  color: #002533;
  }

/* for focus outline to be visible */
main section{
	padding: 0 4px;
}

/* indented text inside intro paragraphs */
main > section:first-of-type div {
	margin-left: 20px;
	margin-right: 20px;
}

/* footer */
footer{
	position: relative;
	background-color: rgba(200,200,200,0.3);
	height: 60px;
	padding: 2px;
	font-size: 1em;
	border-radius: 2px;
	box-shadow: 0px -8px 30px -10px rgba(0,0,0,0.7);
	text-align: center;	
}
	
	/* 2 separate ul */
	footer ul{
		padding-bottom: 6px;
	}
	
	/* removes bars */
	footer ul:first-of-type li{
		border-right: none;
		display: block;
		clear: both;
	}
	
	/* all footer list items */
	footer li{
		padding-right: .3em;
		border-right: 2px #002533 solid;
	}
	/* last footer list item */
	footer li:last-of-type{
		border-right: none;
	}

	/* twitter button appears with a bottom margin */
	footer .twitter-share-button{
		margin-bottom: -0.35em;
	}

/* image enlarger onmouseover */
span#preview{
	position: absolute;
	background-color: rgba(255,255,255,0.8);
	padding: 0.5em;
	display: none;
	color: #002533;
	text-align: center;
}

/* dynamically inserted update info */
small#updated{
	color: rgb(150,150,150);
	float: left;
	clear: both;	
}

/* a clearfix hack after the last section */
main section:last-of-type::after {
	 visibility: hidden;
	 display: block;
	 font-size: 0;
	 content: " ";
	 clear: both;
	 height: 20px;
}
/** common parts of the pages end **/



/*** PAGE-SPECIFIC CODES ***/
/* banner container */
main#index h1 + div {
	height: 230px;
}

/* declare web fonts */
@font-face {
	/* demo font */
	font-family: 'DymaxionScriptRegular';
	src: url('fonts/dymaxion-script-webfont.woff') format('woff');
}			
@font-face {			
	/* DOS font */
	font-family: 'Terminus';
	src: url('fonts/Terminus.woff') format('woff');
}
		
/* form containers */
div.form_wrapper {
	width: 500px;
}


/* h4 sections */
main > section > section > section{
	margin-top: 10px;
}

/* usage of css demo font */		
#dymaxion_font {
	font-size: 3em;
	word-spacing: 5px;
	font-family: 'DymaxionScriptRegular';
	margin: -15px 0px 10px 0px;
	line-height: 80%;
}

/* wide images */
main section section figure{
	position: relative;
	margin: 1em auto 1em auto;
	overflow: hidden;
	max-width: 780px;
	height: auto;
	padding: 0;	
	border-radius: 2px;
	box-shadow: 0px 10px 30px -12px rgba(0,0,0,0.7);
} 

/* lists */
main section section ol li{
	margin-bottom: 1em;
} 

/* suckerfish demo removed */
main#css section:nth-of-type(3){
	display: none;
}


/* CSS pre-processors */	
:root {
	/* declare variables */
	--darkred-background-colour: #bb0000;
	--white-font-colour: #fff;
	--width-not-to-exceed: 500px;
	--proportionate-height: calc(var(--width-not-to-exceed) / 3);
	--round-the-corners: 10%;
	--horizontal-alignment: center;
	--vertical-alignment: middle;
}

div#native_CSS_variables {	
	/* use the declared variables */
	background-color: var(--darkred-background-colour);
	color: var(--white-font-colour);
	max-width: var(--width-not-to-exceed);
	height: var(--proportionate-height);
	border-radius: var(--round-the-corners);
	text-align: var(--horizontal-alignment);
	vertical-align: var(--vertical-alignment);
	  /* oldschool css */
	  display: table-cell;
	  padding: 1em;
}

/* form containers */
div.form_wrapper {
	max-width: 750px;
	margin: 0 auto 0 auto;
	padding: 10px;
	background-color: rgba(200,200,200,0.2);
	line-height: 1.8em;
		box-shadow: 0px 0px 30px -8px rgba(0,0,0,0.7);	
}

	/* HTML5 form */
	#html5_form label:nth-of-type(1),
	#html5_form label:nth-of-type(2){
		padding: 0;
		width: 30px;
	} 
	
	/* HTML5 form radios */
	#html5_form label {
		width: 180px;
		display: inline-block;
	}
	
	/* HTML5 form success notice */
	#html5_form p {
		color: #520000;
	}	
	
	/* emailer form labels and checkboxes */
	#emailer table{
		margin-left: 1em;
	}
	
	/* emailer form checkboxes */
	#emailer table td:nth-child(even) {
		padding-left: 1em;
		padding-top: 2px;
	}
	
	/* send email page (separate file) */
	#send_email{
		max-width: 780px;
		margin: auto;
		padding: 1em;
		line-height: 1.8em;
		  border-radius: 2px;
			box-shadow: 0px 10px 30px -12px rgba(0,0,0,0.7);	
	}	  
		  /* red warnings */
		  #send_email div{
			  color: #bb0000;
		  }
		  /* green success */
		  #send_email p{
			  color: #3b4e00;
		  }


/* banner container for mock DOS show */
main#js div#fake_dos {
	height: 480px;
	background-color: #000;
	color: #fff;
	/* fake DOS font */
	font-family: 'Terminus';
	text-align: left;
	font-size: 0.85em;
}

	/* mock DOS show paragraphs */
	main#js div#fake_dos > figure p{
		margin: 0;
	}
	/* mock DOS show figcaption */
	main#js div#fake_dos > figure figcaption{	
		margin: 0;
		text-align: left;
	}
	/* mock DOS show cursors */
	main#js div#fake_dos > figure span{
		font-size: 1.5em;
		font-weight: bold;
	}

	/* mock DOS show action part */
	main#js div#fake_dos > figure article p,
	main#js div#fake_dos > figure figcaption{
		display: none;
	}


/* Bates Motel rotating image */
main#js div#motelBates { 
	position: relative;
	width: 300px;
	height: 165px;
	margin-bottom: 1em;	
}
main#js div#motelBates img { 
	position: absolute; 
	left: 0; 
	top: 0; 
}

/** angular js  **/
/* knows user-touched fields */
/* untouched */
.ng-pristine {
	background-color: rgba(200,200,200,0.2);
}

/* touched */
.ng-dirty {
	background-color: rgba(188,224,238,0.4);
	font-size: 0.7862em;	
}

/* input field */
p#angular-js {
	margin-left: -1em;
}

/* output field rotated */
p#angular-js > span {
	color: #bb0000;
    display: inline-block;
	/* Safari */
	-webkit-transform: rotate(180deg);
	/* Firefox */
	-moz-transform: rotate(180deg);
	/* IE */
	-ms-transform: rotate(180deg);
	/* Opera */
	-o-transform: rotate(180deg);
	transform: rotate(180deg);
	/* Internet Explorer */
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
	font-weight: 700;
}

/* html5 map */
#map1{
	display: none;
}

/* html5 map */
#map1,
/* php map */
#map2{
			position: relative;
			padding-bottom: 55%; 
			height: 0;
			overflow: hidden;
			padding-left: 0;
}

/** angular js  ends **/


/* cheat sheets */
main section:nth-of-type(5) ul {
	margin: 5px 0px 20px 20px;
}
  main section:nth-of-type(5) ul li{
		display: list-item;
		list-style-type: disc;
	}


/** XML ajax **/
/* movie table */
table#movieContainer{
	margin: 10px 0px 10px 50px;
}

table#movieContainer thead th{
	text-align: left;
	font-weight: bold;
}

/* shows the row on hover */
table#movieContainer tr:hover{
	background-color: rgba(188,224,238,0.4);
}

/* every second row, a very slight hint */
table#movieContainer tr:nth-of-type(even){
	background-color: rgba(188,224,238,0.1);
}

/* first column */
table#movieContainer td:nth-of-type(odd){
	width: 120px;
}
/** XML ajax ends **/

/** WCAG **/
#wcag h2 a:link {
	color: #fff;
}

#wcag h2 a:visited {
	color: #fefefe;
}

#wcag section ul {
	list-style: none;	
}

#wcag section li {
	display: list-item;
	margin-left: 2em;	
}

#wcag  .tabindex{
	margin-bottom: 1.5em;
	margin-top: 0px;
}

#wcag  .tabindex > li{
	list-style-type: disc;	
}

#wcag li.checkmark:before {
	content: '\002714 ';
	font-size: 2.0581em;
	color: #868200;
	font-weight: bold;
}
#wcag li.cross:before {
	content: '\00274C ';
	font-size: 1.618em;
	color: #bb0000;
}

/** WCAG ends **/

/** Web Security **/
/* Steganography examples */
#crypt table th{
	text-align: left;
	font-weight: 700;
}
	  /* tricks to be tested */
	  #crypt table div{
		  margin-left: 2em;
	  }
	  /* each row */	  
	  #crypt table tr{
		  border-bottom: 1px solid rgba(200,200,200,0.8);
	  }
	  /* on hover event for rows */		  
	  #crypt table tr:hover{
		  background-color: rgba(200,200,200,0.2);
	  }
	  /* fixes alignment issues */		  
	  #crypt table td{
			  vertical-align: top;
			  padding-bottom: 1em;
			  padding: 5px;		
	  }
	  /* space allocated according to content */	  
	  #crypt table td:nth-of-type(odd){
		  width: 45%;
		  padding-right: 5em;
	  }
	  /* space allocated according to content */		  
	  #crypt table td:nth-of-type(even){
		  width: 55%;
	  }
	  /* instructions */
	  #crypt table li{
		  display: list-item;	
		  list-style-type: decimal;
		  /* keeps the bullet points inside */
		  list-style-position: inside;
	  }
	  /* Steganography example 1 */
	  span#zero_pixel {
		  font-size: 0;
		  line-height: 0;
		  height: 5px;
		  margin: -5px 0px -5px 0px;
		  /* fully transparent white */
		  color: rgba(255,255,255,0.0);
	  }
	
	/* encryption results */
	div#encrypt {
		display: none;
		position: absolute;
		float: left;
		font-size: 0.7862em;
		color: #015575;
		word-wrap: break-word;
		box-shadow: 0px 0px 30px -8px rgba(0,0,0,0.7);
		padding: 0.5em;					
	}
	
/* q&a */
#qa li{
	margin-left:2em;
	list-style-type: disc;
	display: list-item;
}

/* seo */
section.page-speed{
	position: relative;
    margin: 1.4em auto 1em auto;
    border-radius: 2px;
    box-shadow: 0px 8px 30px -8px rgba(0,0,0,0.7);
    height: 420px;
	background-color: rgba(188,224,238,0.1);	
}


/* Text Versus Image */
main#css section:nth-of-type(5) iframe{
	width: 650px;
	height: 700px;
}

/* ux */
#ux section li{
	display: list-item;
	margin-bottom: 0.7em;
	list-style-type: disc;
	margin-left: 2em;
}

main#acs img{
	float: left;
	clear: none;
	margin: 5px 20px 5px 0;
}

main#acs ol{
	overflow: hidden;
}



/** ABOUT PAGE begins **/
/* all h2 sections */
main#about section {
	display: inline-block;
	margin-bottom: 0px;
} 

/* figure inside banner container */
main#about h1 + div > figure {
	max-width: 780px;	
	height: auto;
	margin: 0px auto -22px auto;	
}
	
	/* Banner caption */
	main#about h1 + div figcaption{
		position: absolute;
		text-align: center;
		width: 100%;
		padding: 1px;
		margin-top: -45px;
		color: #000;
	}
	
/* Our photos' container */
main#about section div{
	float: left;
	margin: 0;
	max-width: 600px;	
	height: auto;
	text-align: left;
	font-size: 0.7862em;
}
	
	/* all photos */
	main#about img{
		margin-bottom: 1em;
		border-radius: 2px;
		box-shadow: 0px 8px 20px -6px rgba(0,0,0,0.7);
	}

/* our bios container */
main#about section article {
	float: left;
	padding-right: 1em;
}
	
	/* our bios headlines */
	main#about h3 {
		font-size: 1.272em;
	}

	/* display credentials sentence */
	main#about article + section > h3 {
		clear: both;
		padding-top: 2.6179em;
	}
	
	/* credentials button */
	#armagan .show_credential {
		background: none;
		border: none;
		padding: 1px;
		margin-bottom: 10px;
		text-align: left;
	}
	
	/* credentials upon request */
	.show_credential + img {
		display: none;
	}
	
	main#about section:last-of-type {
		display: inline;
	}

/** ABOUT PAGE ends **/
} /* close @media query opened at the top
/*** end of file ***/