@import '../fonts/Roboto2014LatinCyrillic/combined.css';

html
{
	margin: 0;
	padding: 0;
}

body
{
	font-family: 'Roboto', Helvetica, Arial, sans-serif;
	font-weight: 300;
	font-size: 16px;
	margin: 0;
	padding: 0;
	min-width: 320px;
    -webkit-text-size-adjust: 100%;
}

*
{
	font-family: inherit;
	font-weight: inherit;
	font-style: inherit;
}

a
{
	text-decoration: inherit;
	color: #51b4e5;
}

p
{
	margin: 0 0 20px 0;
	padding: 0;
}

p:last-child
{
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5
{
	margin: 0;
	padding: 0;
	letter-spacing: -0.06em;
}

h1
{
	font-size: 60px;
	font-weight: 100;
	margin-bottom: 20px;
}

h2
{
	font-size: 40px;
	font-weight: 100;
	margin-bottom: 10px;
}

h3
{
	font-size: 24px;
	color: black;
	margin: 0 0 10px 0;
	font-weight: 500;
	letter-spacing: 0;
}

h4
{
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 10px;
}

h5
{
	font-size: inherit;
	font-weight: 700;
	margin: 30px 0 10px 0;
}

h3 + h4
{
	margin-top: -10px;
}

strong
{
	font-weight: 500;
}

#container
{
	/* to cut horizontal overflow from rotated divs */
	position: absolute;
	width: 100%;
	min-height: 100%;
	overflow: hidden;	
}

header
{
	position: fixed;
	color: #008dcf;
	z-index: 100;
	width: 100%;
	letter-spacing: -0.06em;
}

#headerspacer
{
	visibility: hidden;
}

.content.headercontent
{
	box-sizing: border-box;
	font-weight: 100;
	letter-spacing: -0.06em;
	padding: 10px 300px 0 20px;
	position: relative;
}

.headercontent .int
{
	font-size: 60px;
	padding-right: 20px;
}

.headercontent .ru
{
	color: black;
	font-size: 40px;
}

header .bg
{
	position: absolute;
	z-index: -1;
	top: -400px;
	left: -100px;
	right: -100px;
	bottom: 0px;
	background-color: white;
	box-shadow: 0 0 60px rgba(0,0,0,0.6);
    transform: rotate(-4deg);
    -ms-transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
	background: white url('../images/HeaderOrnaments.gif') no-repeat bottom center;
	background-size: 2100px 175px;
}

header .content,
div.title .content
{
	padding-bottom: 0;
}

header #languagechooser
{
	position: absolute;
	right: 10px;
	top: 20px;
    transform: rotate(-4deg);
    -ms-transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
}


header #languagechooser a
{
	display: inline-block;
	background-color: black;
	padding: 4px 10px;
	color: white;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 12px;
}

header #languagechooser a.active
{
	background-color: #008dcf;
	font-weight: bold;
}

.content
{
	max-width: 1100px;
	padding: 20px;
	margin: 0 auto;
}

.row
{
	position: relative;
	clear: both;
	margin: 40px 0 0 0;
	padding: 50px 0;
}


#mainnavigation
{
	position: relative;
	z-index: 90;
}

#mainnavigation .content
{
	max-width: 1200px;
	text-align: center;
    transform: rotate(-4deg);
    -ms-transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
	padding: 20px;
}

#mainnavigation .bg
{
	position: absolute;
	top: 0;
	bottom: 0;
	left: -20px;
	right: -20px;
	background-color: #008dcf;
	box-shadow: 0 0 20px rgba(0,0,0,0.6);
	z-index: -1;
}

#mainnavigation a
{
	color: white;
	font-size: 22px;
	font-weight: 100;
	padding: 0 20px;
}

#mainnavigation a:hover
{
	opacity: 0.5;
}

#mainnavigation a.active
{
	font-weight: 700;
}

#intro
{
	min-height: 500px;
	position: relative;
}

#intro .mask
{
	position: absolute;
	top: 0;
	bottom: 0;
	left: -40px;
	right: -40px;
    transform: rotate(-4deg);
    -ms-transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
    overflow: hidden;
    z-index: -1;
}

#intro .bg
{
	position: absolute;
	top: -200px;
	bottom: -200px;
	left: 0px;
	right: 0px;
	background: #492614 url('../images/WalnutTableTexture.jpg') repeat center center;
	background-size: 700px 700px;
    transform: rotate(4deg);
    -ms-transform: rotate(4deg);
    -webkit-transform: rotate(4deg);
    z-index: -1;
}

#intro .shadow
{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
 	box-shadow: inset 0 0 100px rgba(0,0,0,1);
    z-index: 100;
}

#intro .bg .keyboard
{
	position: absolute;
	left: 50%;
	bottom: 86px;
	width: 800px;
	height: 250px;
	margin-left: -400px;
	background: transparent url('../images/IntroKeyboardTop.png') no-repeat center center;
	background-size: 800px 250px;
	z-index: 10;
}

#intro .bg .colorpalette
{
	position: absolute;
	left: 30%;
	bottom: 115px;
	width: 250px;
	height: 550px;
	margin-left: -500px;
	background: transparent url('../images/ColorPalette.png') no-repeat center center;
	background-size: 250px 550px;
    transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

#intro .bg .brushes
{
	position: absolute;
	right: 20%;
	bottom: 180px;
	width: 150px;
	height: 350px;
	margin-right: -200px;
	background: transparent url('../images/Brushes.png') no-repeat center center;
	background-size: 150px 350px;
}

#intro .bg .headphones
{
	position: absolute;
	left: 40%;
	top: 200px;
	width: 250px;
	height: 150px;
	margin-left: -350px;
	background: transparent url('../images/Headphones.png') no-repeat center center;
	background-size: 250px 150px;
}

#intro .bg .notebook
{
	position: absolute;
	right: 30%;
	top: 140px;
	width: 600px;
	height: 240px;
	margin-right: -400px;
	background: transparent url('../images/Notebook.png') no-repeat center center;
	background-size: 600px 240px;
}

#intro .text
{
	margin: 150px auto;
	z-index: 100;
	text-align: center;
	color: white;
	font-weight: 100;
}

#intro .text .main
{
	font-size: 98px;
	margin: 0;
}

#intro .text .sub
{
	font-size: 40px;
	margin: 0;
}

@media only screen and (max-width : 800px)
{
	#about img
	{
		margin-left: 20px;
		max-width: 200px;
	}	
}

#about h1
{
	color: #e44e70;
}

#about img
{
	float: right;
	margin-left: 100px;
	margin-top: -80px;
}

#offer h1,
#offer h2,
#offer h4
{
	color: #008dcf;
}

#offer img.freelessonbadge
{
	float: right;
	margin: -20px 20px 20px 20px;
    transform: rotate(9deg);
    -ms-transform: rotate(9deg);
    -webkit-transform: rotate(9deg);
}

#offer .bg
{
	position: absolute;
	top: 0;
	bottom: 0;
	left: -200px;
	right: -200px;
	background-color: #f2fbff;
 	box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
    transform: rotate(-4deg);
    -ms-transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
    overflow: hidden;
    z-index: -1;
}

#offer
{
	
}

#courses h1
{
	color: #983e36;
}

#materials h1
{
	color: #61cf00;
}

#materials .bg
{
	position: absolute;
	top: 0;
	bottom: 0;
	left: -200px;
	right: -200px;
	background-color: #f6fff2;
 	box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
    transform: rotate(-4deg);
    -ms-transform: rotate(-4deg);
    -webkit-transform: rotate(-4deg);
    overflow: hidden;
    z-index: -1;
}

.floatcontainer
{
	clear: both;
	margin: 40px -40px;
	text-align: center;
}

#materials .floatcontainer
{
	text-align: left;
}

#materials .floatcontainer p
{
	margin: 0;
	width: 300px;
}

#materials .bigbutton
{
	display: block;
	background-color: white;
	width: 300px;
	height: 140px;
	box-shadow: 0 0 20px rgba(0,0,0,0.4);
	border-radius: 10px;
	margin-bottom: 20px;
	border: 3px solid white;
	background-position: center;
	background-repeat: no-repeat;
}

#materials .bigbutton:hover
{
	border: 3px solid #61CF00;
}

#materials .bigbutton img
{
	display: block;
	margin: auto;
}

#materials .floatbox:first-child
{
	float: left;
}

.floatcontainer.max3columns .floatbox
{
	max-width: 26%; /* more correct would be calc(33% - 80px), but browser support is lacking */
}

.floatbox
{
	box-sizing: border-box;
	display: inline-block;
	vertical-align: top;
	margin: 0 40px 40px 40px;
	min-width: 280px;
}

.floatbox:last-child
{
	margin: 0 40px;
}

.floatbox>img
{
	margin-bottom: 10px;
}

.floatbox h3
{
	text-align: center;
}

.floatbox p
{
	text-align: left;
}

.floatbox.text
{
	text-align: left;
}

ul
{
	text-align: left;
	margin: 0;
	padding: 0;
	padding-left: 20px;
}

li
{
	margin: 0 0 0.3em 0;
	padding: 0;
}

.boxlabel
{
	display: block;
	font-weight: bold;
	text-align: left;
	margin-bottom: 7px;
}

address p
{
	margin: 0 0 5px 0;
	padding: 0;
}

@media only screen and (max-width: 700px)
{
	header
	{
		position: relative;
	}

	.headercontent .int
	{
		font-size: 40px;
	}

	.headercontent .ru
	{
		font-size: 20px;
	}

	#headerspacer
	{
		display: none;
	}

	h1
	{
		font-size: 30px;
	}

	h2
	{
		font-size: 20px;
	}

	h3
	{
		font-size: 18px;
	}

	h4
	{
		font-size: 16px;
	}
	
	#mainnavigation
	{
		display: none;
	}
	
	#intro
	{
		min-height: 200px;
	}
	
	#intro .text .main
	{
		font-size: 60px;
		margin: 0;
	}

	#intro .text .sub
	{
		font-size: 20px;
		margin: 0;
	}

	.row
	{
		margin: 0;
		padding: 10px 0;
	}
}
