/* 
==============================================================
Styles Olida
==============================================================
*/

/*
==============================================================
Colours
==============================================================
*/
/*color: #c0b283; 		/*gold*/
/*color:#E8E8E8;      	/* light grey 232,232,232 */
/*color:#333A56;   		/* Vermillion blue */
/*color:#F7F5E6;   		/* eggshell off white */
/*color:#19c589;			/* green */
/*rgb(220,208,192);		/* silk */

html {
    height: 100%;
}
body { 
	font-size: 100%;
	color: #262626; /* dark grey 15%*/
	zoom: 100%;
	height: 100%;
   margin: 0;
	padding: 10px 10px 10px 10px; 
	background-color: rgb(239,239,220);  /* light green 90% */
}

* {
   box-sizing: border-box;             /* elements should have padding and border included in size (but not margin) */
  /*  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
  font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4 {
	margin:0;
	padding:0;
	font-weight:normal;
}

.clearfix {
    overflow: auto;
}

.page_wrapper {
	display:table;
	width: 100%;
	height: 100%;
}

.page_content {
	display: table-cell;
   vertical-align: middle;
	height:100%;
}

.outer_wrapper {
	min-width: 320px;
	margin: auto; 
	padding: 10px;
	border-radius: 5px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	background-color:#F7F5E6;   /* eggshell off white */
	-webkit-transition: max-height 1s, width 0.5s; /* Safari */
	transition: max-height 1s, width 0.5s;
}	 

.card_wrapper {
	height:300px;
	max-height:300px;
	width:500px;
}

.variable_wrapper {
	height:auto;
	max-height:1300px;
	width:90%;
}

.header {
	height: 40px;
	width: 100%;
	letter-spacing: 2px;
	font-variant: small-caps;
	font-family: Georgia;
   font-size: 1.8em;
	color: #92b558;    /* green 53% colour of the year 2017 */
	border-bottom-style: solid;
	border-bottom-width: 2px;
	padding-bottom: 2px;
}


.footer {
	height: 50px;
	width: 100%;
	text-align:center;
	padding-top:5px;
	-webkit-transition:  opacity 0.5s; /* Safari */
	transition: opacity 0.5s;	
}

.content_outer_wrapper{
	display:table;
	width: 100%;
	height: calc(100% - 90px);  /* ie subtract header + footer heights */
}	

.content_inner_wrapper {	 
	display: table-cell;
   vertical-align: middle;
	text-align:center;
	position:relative;
}

.content {
	-webkit-transition:  opacity 0.5s; /* Safari */
	transition: opacity 0.5s;	
	width:100%;
}

#home {
	font-size: 1.5em;
}

#email {
	opacity:0; 
	display:none;
	padding-left:20%; 
	text-align:left;
	font-size: 1.2em;
}

i {
	margin-right: 20px;
	color: #92b558;    /* green 53% colour of the year 2017 */
}

#quals {
	font-size: .65em;
	opacity: 0.7;
}

a {
	color: #262626; /* dark grey 15%*/
	text-decoration: underline;
}

a:hover {
	color: #92b558;    /* green 53% colour of the year 2017 */
}

ul {
	
	margin-top:0;
	margin-bottom:0;
	font-size:80%;
}
	

	
	

/*
==============================================================
Resume
==============================================================
*/

#cv {
	display:block;
}

.cv_wrapper {
	padding: 10px 0 10px 0;
	border-bottom: 1px solid lightgrey;
	text-align:left;
	margin-left:10px;
	overflow:auto;   /* to keep children divs within div */
}

.cv_wrapper h2 {
	font-size:120%;
	font-family: Georgia;
}


.cv_wrapper p {
	margin:0;
	padding:2px 50px 5px 0;
	font-size:80%;
}

.cv_col1 {
	float:left;
	width:20%;
	min-width:120px;
	color: #92b558;    /* green 53% colour of the year 2017 */
	font-family: Georgia;
	font-size:20px;
	font-style:italic;
}

.cv_col2 {
	width:79%;
	float:left;
}

.cv_skills {
	float:left;
	margin-right:40px;
}

.cv_logo {
	float:left;
}

.cv_exp {
	border-bottom: 1px solid lightgrey;
	width:100%;
	position:relative;
	overflow:auto;
	padding:5px 0 5px 0;
}

.cv_date {
	float:right;
	font-family: Georgia;
	font-size:120%;
}


/*
==============================================================
Photos
==============================================================
*/

#photos {
	overflow:auto;
}


.photo_wrapper_outer {
	position:relative;     		/* required for position absolute in child div */
	width: 31.3333%;				/* 3 photos wide */
	padding-top:21%;				/* maintains an aspect ration of approx 6:4 */
	overflow:hidden;
	min-width:100px;
	float:left;
	margin:1%;
	border-radius:10px;
}

.photo_wrapper_outer:hover {
	background-color:black;
	background-color:rgba(0,0,0,0.9)
}

.photo_wrapper {
	position:absolute;
	top:0; 
	left:0;
	bottom:0;
	right:0;
	padding:5%;
}

.photo_wrapper img {
	display:block;
	margin-left:auto;   	/* centre image horizontally */
	margin-right:auto;
	height:100%;
	cursor: pointer;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.photo_wrapper img:hover {
/*	opacity: 0.8;*/
	}
	
	
.photo_pages {
	display: inline-block;
	width:100%;
	text-align:center;
	padding-top:5px;
	
}

.photo_pages button {
	font-size:1.5em;
}

.photo_page_active {
	background-color: #92b558;    /* green 53% colour of the year 2017 */
	opacity: 1;
}

/*
==============================================================
Button styles
==============================================================
*/

button {
  display: inline-block;
  padding: 5px 10px 0px 10px;                 /* top & Bottom, left & right */    
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 5px;
  box-shadow: 5px 5px 4px #888888;
  margin: 0px 10px;             /* top right bottom left */ 
  opacity: 0.5;
}

button:hover {
	opacity: 1;}

button:active {
  background-color: #92b558;    /* green 53% colour of the year 2017 */
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

/* 
==============================================================
Modal Images
==============================================================
*/

.modal {
	z-index: 1;					/* Sit on top */
	display: none;				/* Hidden by default */
	padding-top: 50px;
	
	position: fixed;			/* Stay in place */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	color: #fff;
	background-color: black;	/* Fallback color */
	/*background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal_content_landscape {
	display:block;           /* needed to make margin work */
	margin: auto;             /* center horizontally */
   width: 80%;				/* ie image fills 80% of height of div */
	max-width:800px;
}

.modal_content_portrait {
	display:block;           /* needed to make margin work */
	margin: auto;             /* center horizontally */
   height: 85%;				/* ie image fills 85% of height of div */
	max-height:600px;
}


/* Caption of Modal Image (Image Text) */
#caption {
    margin: auto;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}


/* Add Animation */
.modal_content_landscape, .modal_content_portrait, #caption {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.4s;
    animation-name: zoom;
    animation-duration: 0.4s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}






/* 
==============================================================
For mobile phones
==============================================================
*/

@media only screen and (max-width: 500px) {
	#outer_wrapper {
		width: 95% ;
		min-width: 320px;
		transition: none;
		max-height: none ;
	}
	
	#email {
		padding-left: 10%;
	}
	
	.cv_col1, .cv_col2, .cv_logo, .cv_date {
		width: 100%;
	}
	
	.cv_wrapper p {
		padding-right:5px;
	}
	
	.cv_skills {
		margin-right:0;
	}
	
	.photo_wrapper_outer {
		width: 100%;
		padding:0;
		margin:2px 0;
	}
	
	.photo_wrapper {
		position:static;
	}
	
	.photo_wrapper img {
		width:100%;
		height:auto;
	}
	
	.modal {
		padding-top:20px;
	}
	
	.modal_content_portrait {
		width:100%;
		height:auto;
	}
	
	.modal_content_landscape {
		width:100%;
		height:auto;
	}
	
	
}