/* RESET */

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/***** GENERAL *****/

*,
*:after,
*::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-decoration: none;
}

/***** HEADER *****/

body > header {
	background-color: #75aadb;
	height: 50px;

}
body > header h1.name {
	font-size: 1.5rem;
	line-height: 3rem;
	text-align: center;
}

body > header h1.name a {
	color: white;
}



/***** BURGER MENU *****/

nav ul li a {
	font-family: 'Amaranth', sans-serif;
	color: white;
	text-transform: uppercase;
}

nav ul li {
	padding: 10px;
}

/***** MAIN *****/

.main-wrapper {
	position: relative;
}

article {
	background-image: url("../img/ignasi_pattern_s.png");
}

.header-wrapper,
.stats,
section,
footer {
	padding: 0 5%;
}

body {
	padding-top: 50px;
	background-image: url("../img/ignasi_pattern_s.png");
}

body > header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1;
	box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

footer {
	background-color: #75AADB;
	padding-top: 2rem;
	padding-bottom: 1rem;
}

.header-image {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: -1;
	margin-top: 50px;
	height: auto;
}

.header-image img {
	display: block;
	max-height: 100vh;
}

.header-image.scroll {
	position: relative;
	margin-top: 0;
	margin-bottom: 2rem;
}

.header-image .header-image-title {
	position: absolute;
	top: 40%;
	width: 100%;
	text-align: center;
	font-family: 'Amaranth', sans-serif;
	font-size: 2rem;
	color: white;
}

.header-image-title-frontpage {
	position: absolute;
	top: 20px;
}

.header-image-title-frontpage p {
	color: white;
	float: left;
	padding: 5px 15px;
}

img.fullsize {
	width: 100%;
	height: auto;
}

.instaphotos {
	position: relative;
}

.instaphotos img {
	width: 100%;
	display: block;
}

.instaphotos .instagram-caption {
	position: absolute;
	font-family: 'Muli', sans-serif;
	line-height: 1.2rem;
	color: white;
	bottom: 0;
	left: 0;
	padding: 10px;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.2);
}

.instaphotos .instagram-likes {
	position: absolute;
	font-family: 'Muli', sans-serif;
	color: white;
	right: 10px;
	top: 10px;
	font-size: 2rem;
}

/***** BLOG POST *****/

article .content {
	background-color: white;
	padding: 5% 0;
}

article .content p,
article .content h1,
article .content h2 {
	padding: 0 5%;
}

article .content h1 {
	color: #75aadb;
	font-size: 2rem;
	margin-bottom: 1rem;
}

article .content h2 {
	color: #75aadb;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

article .content p,
footer p {
	font-size: 1.1rem;
	line-height: 1.6rem;
	margin-bottom: 1rem;
}

article .content p:last-child {
	margin-bottom: 0;
}

article .details {
	background-color: white;
	text-align: left;
	padding: 15px;
	position: relative;
	font-size: 1rem;
	line-height: 1.6rem;
	border-bottom: 1px solid #75aadb;
	overflow: hidden;
}

article .details img {
	float: right;
	height: 50px;
	margin-left: 5px;
	width: auto;
	border-radius: 50%;
}

article .details i {
	color: #75aadb;
}

article .details .extrahost {
	display: none;
}

article.no-margin {
	margin-top: 0 !important;
}

.content figure {
	padding: 15px 0;
}

.content figure img {
	width: 100%;
	height: auto;
}

.content figcaption {
	padding-top: 10px;
	font-style: italic;
	font-size: 1rem;
	color: grey;
	text-align: center;
}

/***** TYPOGRAPHY *****/
p {
	font-family: 'Muli', sans-serif;
}
h1 {
	font-family: 'Amaranth', sans-serif;
}

h1.latest,
.instagram h1,
section h1,
.stats-block h1 {
	font-size: 1.7rem;
	color: #3085a3;
	text-align: center;
	margin-bottom: 1rem;
}
footer h1 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	text-align: left;
	color: white;
}
footer p {
	color: white;
	font-size: 1rem;
}
footer p#copyright {
	font-size: 0.8rem;
	padding-top: 1rem;
}

/***** BLOG GRID DETAILS *****/

.grid .details {
	background-color: white;
	text-align: left;
	padding: 15px;
	position: relative;
	line-height: 1.5rem;
	border-bottom: 1px solid #75aadb;
	overflow: hidden;
}

.grid .details img {
	float: right;
	height: 50px;
	margin-left: 5px;
	width: auto;
	border-radius: 50%;
}

.grid .details i {
	color: #75aadb;
}

.grid .details p {
	font-size: 1rem;
}

.grid .details-container {
	border-bottom: 2px solid #75aadb;
}

img.friend {
	border-radius: 0 !important;
}

/***** Hover effect *****/

.grid {
	position: relative;
	clear: both;
	list-style: none;
	text-align: center;
}

/* Common style */
.grid figure {
	position: relative;
	overflow: hidden;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
}

.grid figure img {
	position: relative;
	display: block;
	width: 100%;
	opacity: 0.8;
}

.grid figure figcaption {
	padding: 2rem;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.25rem;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 50;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
	word-spacing: 0.15rem;
	font-weight: 300;
	font-size: 1.5rem;
}

.grid figure h2 span {
	font-weight: 800;
}

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 2px;
	font-size: 68.5%;
}

.grid .navigate {
	position: absolute;
	top: 0;
	background-color: black;
	color: white;
	opacity: 0.5;
	width: 100%;
	padding: 2.5% 0;
	text-align: center;
	font-size: 2rem;
	font-family: 'Amaranth', sans-serif;
}

/*---------------*/
/***** Jazz *****/
/*---------------*/

figure.effect-jazz figcaption::after,
figure.effect-jazz img,
figure.effect-jazz p {
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
}

figure.effect-jazz figcaption::after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	content: '';
	opacity: 0;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,0,1);
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

figure.effect-jazz h2,
figure.effect-jazz p {
	opacity: 1;
	-webkit-transform: scale3d(0.8,0.8,1);
	transform: scale3d(0.8,0.8,1);
}

figure.effect-jazz h2 {
	padding-top: 26%;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
}

figure.effect-jazz p {
	padding: 0.5em 2rem;
	text-transform: none;
	font-size: 0.85rem;
	opacity: 0;
}

figure.effect-jazz:hover img {
	opacity: 0.7;
	-webkit-transform: scale3d(1.05,1.05,1);
	transform: scale3d(1.05,1.05,1);
}

figure.effect-jazz:hover figcaption::after {
	opacity: 1;
	-webkit-transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
	transform: rotate3d(0,0,1,45deg) scale3d(1,1,1);
}

figure.effect-jazz:hover h2,
figure.effect-jazz:hover p {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

/***** BUTTON EFFECT *****/

.hashtags {
	background-color: #75aadb;
	padding: 4% 4%;
	position: fixed;
	top: 100px;
	width: 100%;
	z-index: 100;
	height: auto;
	display: none;
}

.hashtag-toggle {
	position: fixed;
	top: 50px;
	right: 0;
	z-index: 1;
	height: 50px;
	width: 50px;
	background-color: white;
	font-size: 2.3rem;
	line-height: 1.4rem;
	vertical-align: center;
	text-align: center;
}

/* General button style (reset) */
.btn {
	border: none;
	font-family: inherit;
	font-size: 0.8rem;
	color: inherit;
	background: none;
	cursor: pointer;
	padding: 10px 0;
	margin: 1% 1%;
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	outline: none;
	position: relative;
	z-index: 1;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	float: left;
	width: 48%;
}

.btn:after {
	content: '';
	position: absolute;
	z-index: -1;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

/* Button 1 */
.btn-1 {
	border: 3px solid #fff;
	color: #fff;
}

/* Button 1e */
.btn-1e {
	overflow: hidden;
}

.btn-1e:after {
	width: 100%;
	height: 0;
	top: 50%;
	left: 50%;
	background: #fff;
	opacity: 0;
	-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	-moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.btn-1e:hover,
.btn-1e:active {
	color: #75aadb;
}

.btn-1e:hover:after {
	height: 260%;
	opacity: 1;
}

.btn-1e:active:after {
	height: 400%;
	opacity: 1;
}

.btn-current {
	color: #75aadb;
}

.btn-current:after {
	height: 260%;
	opacity: 1;
	z-index: -1;
}

/***** LINK EFFECT *****/
/* From http://tympanus.net/codrops/
/* Effect 4: bottom border enlarge */

nav a {
	position: relative;
}

.cl-effect-4 a {
	padding: 0 0 5px;
}

.cl-effect-4 a::after {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 1px;
	background: #fff;
	content: '';
	opacity: 0;
	-webkit-transition: height 0.3s, opacity 0.3s, -webkit-transform 0.3s;
	-moz-transition: height 0.3s, opacity 0.3s, -moz-transform 0.3s;
	transition: height 0.3s, opacity 0.3s, transform 0.3s;
	-webkit-transform: translateY(-10px);
	-moz-transform: translateY(-10px);
	transform: translateY(-10px);
}

.cl-effect-4 a:hover::after,
.cl-effect-4 a:focus::after {
	height: 5px;
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	transform: translateY(0px);
}

/* STATS */

.stats {
	margin-bottom: 3rem;
}

.stats h1 {
	font-size: 2rem;
	margin-top: 1rem;
	color: #75aadb;
}

.stats .number {
	font-size: 1.3rem;
}

.stats-block-small {
	width: 50%;
	float: left;
}

.stats .chart {
	padding-top: 1rem;
}

.stats ul li i {
	color: white;
	padding: 5px;
	width: 40px;
	text-align: center;
	line-height: 1.5rem;
}

.stats ul li {
	font-family: 'Muli', sans-serif;
	font-size: 1.2rem;
}

.stats ul li#total i {
	background-color: grey;
}

.stats ul li#accommodation i {
	background-color: #E47B68;
}

.stats ul li#food i {
	background-color: #5E6B00;
}

.stats ul li#transport i {
	background-color: #3085A3;
}

.stats ul li#entertainment i {
	background-color: #1E9A4C;
}

.stats ul li#miscellaneous i {
	background-color: #DB7EE4;
}

/* Progress bar from webdesigncrowd.com/scrolling-progress-bar */

  .bar.affix {
    position: fixed;
    bottom: 0px;
    visibility: visible;
  }
  .bar {
    position: absolute;
    display: block;
    visibility: hidden;
    width: 100%;
    height: 20px;
    padding-bottom: 10px;
    background-color: white;
    z-index: 10;
  }
  .bar span {
    position: absolute;
    display: block;
    top: 0;
    width: 0;
    height: 20px;
    background-color: #75aadb;
  }
  .bar i {
    position: absolute;
    display: none;
    right: 5px;
    height: 20px;
    line-height: 20px;
    color: white;
    z-index: 10;
  }

  .jumper {
  	position: fixed;
  	bottom: 20px;
  	right: 5px;
  	color: #75aadb;
  	font-size: 3rem;
  	z-index: 1000;
  }

/***** TABLET *****/
@media screen and (min-width: 700px) {
	/* Navigation */
	nav ul li {
		float: left;
	}

	body {
		padding-top: 120px;
	}
	body > header {
		position: fixed;
		width: 100%;
		height: 120px;
		top: 0;
		box-shadow: 0 1px 4px rgba(0,0,0,.4);
		z-index: 100;
	    -webkit-transition: height 0.3s;
	    -moz-transition: height 0.3s;
	    -ms-transition: height 0.3s;
	    -o-transition: height 0.3s;
	    transition: height 0.3s;
	}
	body > header h1.name {
		font-size: 3rem;
		line-height: 4rem;
	    -webkit-transition: all 0.3s;
	    -moz-transition: all 0.3s;
	    -ms-transition: all 0.3s;
	    -o-transition: all 0.3s;
	    transition: all 0.3s;
	}
	body > header nav li {
		font-size: 1.5rem;
		line-height: 3rem;
		margin-left: 30px;
		padding: 0;
	    -webkit-transition: all 0.3s;
	    -moz-transition: all 0.3s;
	    -ms-transition: all 0.3s;
	    -o-transition: all 0.3s;
	    transition: all 0.3s;
	}
	body > header nav li:first-child {
		margin-left: 0px;
	}
	header.smaller {
		height: 70px;
	}
	header.smaller h1.name {
		font-size: 2rem;
		line-height: 2.5rem;
	}
	header.smaller nav li {
		font-size: 1rem;
		line-height: 1.5rem;
	}
	header.smaller .cl-effect-4 a:hover::after,
	header.smaller .cl-effect-4 a:focus::after {
		height: 2px;
	}
	header.smaller .cl-effect-4 a {
		padding: 0 0 2px;
	}

	.header-image {
		margin-top: 70px;
	}

	.header-image .header-image-title {
		font-size: 3rem;
	}

	.header-image-title-frontpage p {
		font-size: 2rem;
		padding: 25px 5%;
	}

	/* Grid */
	.grid {
		padding: 0 4%;
	}

	.grid-item {
		float: left;
		width: 50%;
		padding: 1% 1%;
		margin-bottom: 0;
	}

	.grid-item:nth-child(2n+1) {
	    content: "";
	    display: table;
	    clear: both;
	}

	.grid-item.navigation.navigation-solo {
		width: 100%;
	}

	.grid-item.navigation {
		width: 50%;
	}

	article .details .extrahost {
		display: block;
	}

	/* INSTAGRAM FEED */
	.instaphotos {
	    float: left;
	    width: 50%;
	}
	.instaphotos img {
		display: block;
	}

	.btn {
		width: 31.33%;
		padding: 3px 0;
		margin: 3px 1%;
	}

	.btn-1e:hover:after {
		height: 360%;
	}

	.btn-1e:active:after {
		height: 500%;
	}

	.btn-current:after {
		height: 360%;
	}

	.hashtags {
		top: 120px;
		z-index: 100;
		display: block;
		padding-top: 0;
		padding-bottom: 1%;
	    -webkit-transition: all 0.3s;
	    -moz-transition: all 0.3s;
	    -ms-transition: all 0.3s;
	    -o-transition: all 0.3s;
	    transition: all 0.3s;
	}

	.hashtags.smaller {
		top: 70px;
	}

	.hashtag-toggle {
		display: none;
	}

	.hashtags + .instagram {
		padding-top: 139px;
	}

	/***** BLOG POST *****/

	article .content p,
	article .content h1,
	article .content h2 {
		padding: 0 10%;
	}

	article .content h1,
	footer h1 {
		font-size: 2.5rem;
	}

	article .content h2 {
		font-size: 2rem;
	}

	article .content p,
	footer p {
		font-size: 1.3rem;
		line-height: 2rem;
	}

	article .details {
		font-size: 1.5rem;
		line-height: 2.3rem;
	}

	article .details img {
		height: 70px;
		margin-left: 15px;
	}

	.content figcaption {
		font-size: 1.3rem;
	}

	.stats-block-small {
		width: 25%;
	}

	.stats-block-medium {
	width: 50%;
	float: left;
	}

}

/***** LAPTOP *****/
@media screen and (min-width: 1050px) {
	.name {
		float: left;
	} 
	body > header nav {
		float: right;
	}

	header nav ul li {
		line-height: 80px;
	}

	header.smaller nav ul li {
		line-height: 40px;
	}

	body > header {
		height: 80px;
	}
	body > header nav li {
		margin-left: 30px;
	}
	body {
		padding-top: 80px;
	}
	header.smaller {
		height: 40px;
	}

	.header-image {
		margin-top: 40px;
	}

	.header-image .header-image-title {
		font-size: 4rem;
	}

	.header-image-title-frontpage p {
		font-size: 3rem;
		padding: 50px 50px;
	}

	/* GRID */
	.grid-item {
		width: 33.33%;
	}

	.grid-item:nth-child(2n+1) {
	    content: initial;
	    display: initial;
	    clear: initial;
	}

	.grid-item:nth-child(3n+1) {
	    content: "";
	    display: table;
	    clear: both;
	}

	.grid .navigation .details p {
		font-size: 1.3rem;
		line-height: 2rem;
	}

	/***** INSTAGRAM FEED *****/

	.instaphotos {
	    width: 33.33%;
	}

	.btn {
		width: 23%;
	}

	.hashtags {
		top: 80px;
	}

	.hashtags.smaller {
		top: 40px;
	}

	.hashtags + .instagram {
		padding-top: 109px;
	}

	/***** BLOG POST *****/

	article .content p,
	article .content h1,
	article .content h2 {
		padding: 0 15%;
	}

	article .content h1 {
		font-size: 4rem;
	}

	article .content h2 {
		font-size: 2.5rem;
	}

	article .content p {
		font-size: 1.5rem;
		line-height: 2.4rem;
	}

	article .grid-item {
		width: 50%;
	}

	article .details {
		font-size: 1.8rem;
		line-height: 2.8rem;
	}

	article .details img {
		height: 85px;
		margin-left: 20px;
	}

	.content figcaption {
		font-size: 1.4rem;
	}

}

/***** DESKTOP *****/
@media screen and (min-width: 1824px) {
	.header-image-title-frontpage {
		top: 200px;
		left: 200px;
	}

	.header-image-title-frontpage p {
		font-size: 5rem;
		padding: 50px 50px;
	}

	/* GRID */
	.grid-item {
		width: 25%;
	}
	.grid-item:nth-child(3n+1) {
	    content: initial;
	    display: initial;
	    clear: initial;
	}

	.grid-item:nth-child(4n+1) {
	    content: "";
	    display: table;
	    clear: both;
	}

	/***** INSTAGRAM FEED *****/

	.instaphotos {
	    width: 25%;
	}

	.stats-block {
		float: left;
		width: 45%
	}

	.stats-block:first-child {
		margin-right: 5%
	}

	.stats-block:last-child {
		margin-left: 5%
	}

}