@import url(https://use.fontawesome.com/releases/v5.0.6/css/all.css);
@import url(https://fonts.googleapis.com/css?family=Oswald:400|Raleway:400,700,400italic,700italic);

:root {
	--main-color: orange;
	--text-color-light: #e5e5e5;
	--text-color-dark: #1d1f20;
	--tabs-bg: rgb(39, 39, 39);
}

*,
*:before,
*:after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--text-color-dark);	
	color: var(--text-color-light);
	font: 16px/1.25 'Raleway', sans-serif;
}

h1 {
	font-family: 'Oswald', sans-serif;
	text-align: center;
}

a {
	color: var(--main-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	margin: 0 auto;
	max-width: 70em;
}

main .container {
	padding: 1em;
}

p {
	margin-left: auto;
	margin-right: auto;
	max-width: 40em;
}

.screen-reader-text {
	clip: rect(1px 1px 1px 1px);
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

/**** NAVIGATION ****/
nav {
	background: var(--text-color-light);
	color: var(--text-color-dark);
	left: 0;
	position: relative;
	top: 0;
	width: 100%;
	z-index: 9999;
}

/*** INPUT ***/
nav input {
	opacity: 0;
	position: absolute;
	z-index: -1;
}

/*** LABEL ***/
nav label {
	cursor: pointer;
	display: block;
	font: 2em/1 'Oswald', sans-serif;
	padding: 0.5em;
}

/* Hamburger Icon */
#menu-icon,
#menu-icon:before,
#menu-icon:after {
	background: var(--text-color-dark);
	border-radius: 0.05em;
	height: 0.2em;
	transition: all 0.2s ease-in-out;
	width: 100%;
}

#menu-icon {
	display: inline-block;
	margin: 0.4em 0;
	max-width: 1em;
	position: relative;
}

nav label #menu-icon {
	float: right;
}

#menu-icon:before,
#menu-icon:after {
	content: '';
	left: 0;
	position: absolute;
}

#menu-icon:before {
	top: -0.4em;
}

#menu-icon:after {
	bottom: -0.4em;
}

/* Close Icon */
nav input[type='checkbox']:checked + label #menu-icon {
	background: transparent;
}

nav input[type='checkbox']:checked + label #menu-icon:before {
	top: 0;
	transform: rotate(-45deg);
}

nav input[type='checkbox']:checked + label #menu-icon:after {
	bottom: 0;
	transform: rotate(45deg);
}

/*** MENU ***/
/* Overlay */
nav input:checked ~ #overlay {
	background: var(--text-color-light);
	bottom: 0;
	left: 0;
	height: 100vh;
	position: fixed;
	right: 0;
	top: 0;
	width: 100vw;
	z-index: -1;
}

/* List */
nav ul {
	font-size: 1.5em;
	list-style: none;
	margin: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0;
	text-align: center;
}

nav input:checked ~ ul {
	margin: 1em;
	max-height: inherit;
	opacity: 1;
}

nav ul > li {
	margin: 0.5em 0;
}

nav ul a {
	color: var(--text-color-dark) !important;
	text-decoration: none;
}

/* Social Media */
nav ul#social-media > li {
	display: inline-block;
	font-size: 1.5em;
	margin: 0.5em;
}

nav ul#social-media > li a {
	transition: transform 1s;
}

nav ul#social-media > li a i:hover {	
	transform: scale(1.5, 1.5);
}

nav ul a:hover {
	text-decoration: underline;
}

/*** About ***/
.about {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: center;	
}

.photo {
	width: 350px;
	height: 350px;
	background-image: url(img/logo.png);
	background-size: cover;
	background-position: center;
	border-radius: 50%;
	margin: 20px auto;
	-webkit-filter: grayscale(50%);
	filter: grayscale(50%);
}

.slider-wrapper {
	font-size: 2rem;
	font-family: 'Oswald', sans-serif;
	color: var(--text-color-light);
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	margin: 30px 0;
}

.slider {
	margin-left: 1rem;
	font-weight: 700;
	height: 5rem;
}

.slider-text {
	height: 4.7rem;
	padding: 0.7rem;
	margin-bottom: 1.65rem;
	background-color: var(--main-color);
	text-align: center;
	border-radius: 1rem;
	color: var(--text-color-dark);
	letter-spacing: 2px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: none;
}

.slider-text:first-child {
	animation: slide 10s linear infinite;
}

@keyframes slide {
	0% {
		margin-top: -300px;
	}
	5% {
		margin-top: -200px;
	}
	33% {
		margin-top: -200px;
	}
	38% {
		margin-top: -100px;
	}
	66% {
		margin-top: -100px;
	}
	71% {
		margin-top: 0px;
	}
	100% {
		margin-top: 0px;
	}
}

/*** Work ***/
.content-center {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
.card {
	position: relative;
	height: 15rem;
	width: 15rem;
	perspective: 150rem;
	margin: 0.5rem;	
}
.side {
	position: absolute;
	left: 0;
	top: 0;
	height: 15rem;
	width: 100%;
	backface-visibility: hidden;
	transition: all 1s ease;
}

/* y direction */
.back-x,
.back-y,
.back-x a,
.back-y a {
	color: var(--text-color-dark);
}

.back-x h3,
.back-y h3,
.back-x h5,
.back-y h5 {
	margin: 5px 0;
}

.front-x img,
.front-y img {
	width: 100%;
	-webkit-filter: grayscale(50%);
	filter: grayscale(50%);
}

.back-x p,
.back-y p {
	font-size: 12px;
}

.front-y {
	background-color: var(--tabs-bg);
	overflow: hidden;
}

.back-y {
	background-color: var(--main-color);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	transform: rotateY(180deg);
	padding: 10px;
}

.card:hover .front-y {
	transform: rotateY(-180deg);
}

.card:hover .back-y {
	transform: rotateY(0);
}

/* x direction */
.front-x {
	background-color: var(--tabs-bg);
	overflow: hidden;
}

.back-x {
	background-color: var(--main-color);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	transform: rotateX(180deg);
	padding: 10px;
}

.card:hover .front-x {
	transform: rotateX(-180deg);
}

.card:hover .back-x {
	transform: rotateX(0);
}

/*** Study ***/
ul li ul li {
    margin-bottom: 10px;
}

/* Tabs */
.tabs {
	display: flex;
	flex-wrap: wrap; /* make sure it wraps */
}

.tabs label {
	order: 1; /* Put the labels first */
	display: block;
	padding: 1rem 2rem;
	margin-right: 0.2rem;
	cursor: pointer;
	background: var(--tabs-bg);
	font-weight: bold;
	transition: background ease 0.2s;
}

.tabs .tab {
	order: 99; /* Put the tabs last */
	flex-grow: 1;
	width: 100%;
	display: none;
	padding: 1rem;
	background: var(--tabs-bg);
}

.tabs input[type='radio'] {
	display: none;
}

.tabs input[type='radio']:checked + label {
	background: var(--main-color);
	color: var(--text-color-dark);
}

.tabs input[type='radio']:checked + label + .tab {
	display: block;
}

@media (max-width: 45em) {
	.tabs .tab,
	.tabs label {
		order: initial;
	}

	.tabs label {
		width: 100%;
		margin-right: 0;
		margin-top: 0.2rem;
	}
}

.post-list {
	list-style: none;
}

.post-list > li {
	margin-bottom: 2.5em;
}

.post-title {
	margin-bottom: 0.5em;
}

span.post-meta {
	font-style: italic;
	margin-bottom: 0.5em;
	text-decoration: underline;
	display: block;
}

/*** Books ***/
.books {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;	
	font-size: 12px;
	font-style: italic;
}

.book {
	width: 15rem;
}

.book img {
	width: 100%;
	margin-bottom: 10px;
}

/*** Contact ***/
.contact-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/*** Footer ***/
footer .container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

footer ul {
	list-style: none;
	padding: 0;
}

ul.social-media > li {
	display: inline-block;
	font-size: 1.5em;
	margin: 0.5em;
}

ul.social-media > li a {
	transition: transform 1s;
}

ul.social-media > li a i:hover {
	transform: scale(1.5, 1.5);
}

@media (max-width: 45em) {
	nav ul#social-media > li {
		margin: 0.2em;
	}	
}

@media (max-width: 23em) {
	.photo {
		width: 200px;
		height: 200px;
	}
}