/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

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

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

body {
	background: #75C9C8;
	/*background: rgb(251, 242, 232);*/
	background: #F7F4EA;
}

h1 {
	margin-top: 0;
}

h2 {
	margin-left: 10px;
	margin-top: 28px;
}

h3 {
	/*text-decoration: underline;*/
	margin-bottom: 2px;
}

header {
	width: 100%;
	min-height: 100vh;
	/*max-height: 100px;*/
	background: #f5f5f5 url('../img/darra_ghar_dark.jpg') no-repeat left top;
	background-size: cover;
}

.logo {
	padding: 50px 10px 50px 50px;
	position: fixed;
	/*color: #fbfbfb;*/
	/*color: #F7F4EA;*/
	color: #fcf2e8;
	/*color: #FFBA08;*/
	width: 190px;
	/*height: 100%;*/
	z-index: 501;
	/*background-color: pink;*/
}

.logo-text {
	color: #002B7F;
	/*background-color: #F3EB0E;*/
	background: #109EF1;
	padding-right: 6px;
}

#tagline {
	text-decoration: none;
	margin-left: 10px;
}

#scroller {
	text-align: center;
	position: relative;
	top: 84vh;
	width: 50px;
	margin: 0 auto;
	z-index: 600;
	font-size: 70px;
	color: white;
	/*background: #f5f5f5;*/
	padding: 10px;
}

#scroller a {
	color: #002B7F;
	/*text-shadow: -1px 0 #777, 0 1px #777, 1px 0 #777, 0 -1px #777;*/
	
}

#scroller a:hover {
	color: white;
	color: #109EF1;
	/*font-size: 80px;*/
	text-shadow: none;
}

section {
	position: relative;
}

#welcome {
	/*background: #222;
	background: -moz-linear-gradient(top, #2c2c34 0%, #000222 100%); /* FF3.6-15 *!/
	background: -webkit-linear-gradient(top, #2c2c34 0%,#000222 100%); /* Chrome10-25,Safari5.1-6 *!/
	background: linear-gradient(to bottom, #2c2c34 0%,#000222 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ *!/
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2c2c34', endColorstr='#000222',GradientType=0 ); /* IE6-9 *!/*/
	color: #002B7F;
	border-color: #2C2C34;
	box-shadow:0px 0px 40px 0px black;
	z-index: 499;
	-webkit-transition: max-height 1.1s ease .4s;
	transition: max-height 1.1s ease .4s;
	background: #109EF1;
}

#projects {
	background: #fcf2e8;
	border-top: 0px;
	/*z-index: 500;*/
}

.column-flex {
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	margin-left: 260px;
	margin-right: 50px;
	/*background-color: blue;*/
	padding: 10px;
}

#welcome-container {
	min-height: 100%;
	max-width: 920px;
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: center;
}

#projects-container {
	min-height: 100%;
	max-width: 920px;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
}

.project {
	height: 200px;
	width: 200px;
	/*background-color: #d47d7d;*/
	margin: 10px 10px 10px 10px;
	padding: 5px;
}

#spacer {
	height: 5px;
	width: 100%;
	/*background: #F7F4EA;*/
	background: #444;
	margin-top: 0px;
	
}

footer {
	/*background: rgb(251, 242, 232);*/
	/*background: #75C9C8;*/
	background: #F7F4EA;
	height: 200px;
	border-top: 20px solid; #333;
	position: relative;
	top: -51px;
	-ms-transform: skewY(-3deg); /* IE 9 */
	-webkit-transform: skewY(-3deg); /* Safari */
	transform: skewY(-3deg);
	z-index: 501;
	margin: 0px 0px 0px 0px;
	text-align: center;
}

#welcome-container i {
	/*color: #fcf2e8;*/
}

#projects-container i {
	color: rgba(176, 170, 118, 0.48);
}

footer h2 {
	margin: 80px 10px 0px 10px;
	padding-bottom: 10px;
}

/* links */

a {
	color: #222;
	text-decoration: none;
	-webkit-transition: color .6s linear;
	transition: color .6s ease-out;
}

a:hover {
	color: navy;
}

/* fancy links */

.link {
	outline: none;
	text-decoration: none;
	position: relative;
	color: #222;
	display: inline-block;
}

.link--reveal {
	overflow: hidden;
	color: #222;
}

.link--reveal:hover {
	color: #b2b0a9;
}

.link--reveal::before {
	content: attr(data-letters);
	position: absolute;
	z-index: 2;
	overflow: hidden;
	color: navy;
	white-space: nowrap;
	width: 0%;
	transition: width 0.4s 0.3s;
}

.link--reveal:hover::before {
	width: 100%;
}

.logo p,h1 {
	font-family: MoniqueRound20;
}

.logo h1 {
	font-weight: bold;
	color: #fff;
}

h2, h3 {
	font-family: MoniqueRound20;
	font-weight: normal;
}


/* Webfont: Monique-RegularRound20 */
@font-face {
    font-family: 'MoniqueRound20';
    src: url('fonts/Monique-RegularRound20.eot'); /* IE9 Compat Modes */
    src: url('fonts/Monique-RegularRound20.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/Monique-RegularRound20.woff') format('woff'), /* Modern Browsers */
         url('fonts/Monique-RegularRound20.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/Monique-RegularRound20.svg#Monique-RegularRound20') format('svg'); /* Legacy iOS */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

/* Webfont: Monique-BoldRound20 */
@font-face {
    font-family: 'MoniqueRound20';
    src: url('fonts/bold/Monique-BoldRound20.eot'); /* IE9 Compat Modes */
    src: url('fonts/bold/Monique-BoldRound20.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/bold/Monique-BoldRound20.woff') format('woff'), /* Modern Browsers */
         url('fonts/bold/Monique-BoldRound20.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/bold/Monique-BoldRound20.svg#Monique-BoldRound20') format('svg'); /* Legacy iOS */
    font-style: normal;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    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: " "; /* 1 */
    display: table; /* 2 */
}

.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 (max-width: 790px) {
    /* Style adjustments for viewports that meet the condition */
    #welcome, #projects {
    	z-index: 501;
    }
    #welcome-container {
    	justify-content: center;
    	margin: 20px 0px 50px 0px;
    }
    #projects-container {
    	margin: 10px 0px 55px 0px;
    }
    .column-flex {
    	margin-left: 50px;	
    }
    h2 {
    	font-size: 20px;
    }
}

@media only screen and (max-width: 580px) {
	/* Style adjustments for viewports that meet the condition */
/*	header {
		min-height: 87.5vh;
	}*/
	#welcome, #projects {
		z-index: 501;
	}
	#welcome {
		padding-top: 60px;
	}
	#caption {
		top: 80vh;
	}
	
	.column-flex project {
		margin-left: 0px;
		margin-right: 8px;
	}
	#scroller {
		top: 67vh;
	}
	h2 {
		font-size: 20px;
	}
	h3 {
		margin: 1px;
	}	
	.project {
		height: 100%;
		width: 200px;
		max-height: 150px;
		padding: 2px;
		/*background-color: pink;*/
		margin: 2px;
	}
	#spacer {
		height: 3px;
	}
}


@media only screen and (max-width: 375px) {
	h2 {
		font-size: 18px;
	}	
}


@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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
