@font-face
{
    font-family: 'The_Brown_Wall';
    src: url('../fonts/The_Brown_Wall/thebrownwall-webfont.eot');
    src: url('../fonts/The_Brown_Wall/thebrownwall-webfont.otf') format('opentype'),
	 url('../fonts/The_Brown_Wall/thebrownwall-webfont.woff2') format('woff2'),
         url('../fonts/The_Brown_Wall/thebrownwall-webfont.woff') format('woff'),
         url('../fonts/The_Brown_Wall/thebrownwall-webfont.ttf') format('truetype'),
         url('../fonts/The_Brown_Wall/thebrownwall-webfont.svg') format('svg');
}

@font-face
{
    font-family: 'Gaylon';
    src: url('../fonts/Gaylon/galyon-bold-webfont.eot');
    src: url('../fonts/Gaylon/galyon-bold-webfont.otf') format('opentype'),
	 url('../fonts/Gaylon/galyon-bold-webfont.woff2') format('woff2'),
         url('../fonts/Gaylon/galyon-bold-webfont.woff') format('woff'),
         url('../fonts/Gaylon/galyon-bold-webfont.ttf') format('truetype'),
         url('../fonts/Gaylon/galyon-bold-webfont.svg') format('svg');
    font-weight: bold;
}

@font-face
{
    font-family: 'Gaylon';
    src: url('../fonts/Gaylon/galyon-italic-webfont.eot');
    src: url('../fonts/Gaylon/gaylon-italic-webfont.otf') format('opentype'),
	 url('../fonts/Gaylon/galyon-italic-webfont.woff2') format('woff2'),
         url('../fonts/Gaylon/galyon-italic-webfont.woff') format('woff'),
         url('../fonts/Gaylon/galyon-italic-webfont.ttf') format('truetype'),
         url('../fonts/Gaylon/galyon-italic-webfont.svg') format('svg');
    font-style: italic, oblique;
}

@font-face
{
    font-family: 'Gaylon';
    src: url('../fonts/Gaylon/galyon-regular-webfont.eot');
    src: url('../fonts/Gaylon/gaylon-regular-webfont.otf') format('opentype'),
	 url('../fonts/Gaylon/galyon-regular-webfont.woff2') format('woff2'),
         url('../fonts/Gaylon/galyon-regular-webfont.woff') format('woff'),
         url('../fonts/Gaylon/galyon-regular-webfont.ttf') format('truetype'),
         url('../fonts/Gaylon/galyon-regular-webfont.svg') format('svg');
}

.brownwall
{
	font-family: "The_Brown_Wall", "Arial", "Georgia", "Times New Roman", sans-serif;
}

.gaylonbold
{
	font-family: "Gaylon", "Arial", "Georgia", "Times New Roman", sans-serif;
	font-weight: bold;
}

.gaylonitalic
{
	font-family: "Gaylon", "Arial", "Georgia", "Times New Roman", sans-serif;
	font-style: italic;
}

.gaylonregular
{
	font-family: "Gaylon", "Arial", "Georgia", "Times New Roman", sans-serif;
}

*
{
	font-family: "Gaylon", "Arial", "Georgia", "Times New Roman", sans-serif;
	color: #ecd6c0;
	box-sizing: border-box;
}

.grid-container
{
	display: grid;
}

html,body
{
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background-color: #2a1b1c;
}

body
{
	grid-template-columns: 15% 70% 15%;
	grid-template-rows: 30% 70%;
}

#main
{
	margin: 0;
}

@media only screen and (max-width: 639px)
{
	.sidebar
	{
		display: none;
	}
	
	#menu
	{
		display: none !important;
	}

	.title
	{
		font-size: 1.25em;
	}

	body
	{
		grid-template-columns: 100%;
	}
	
	#main > nav
	{
		grid-template-columns: 100%;
		
	}
	
	#main > nav > ul
	{
	    grid-template-rows: 20% 20% 20% 20% 20% !important;
	}
	
	#contacts
	{
		grid-template-rows: auto auto auto auto;
		grid-row-gap: 1em;
	}
}

@media only screen and (min-width: 640px) and (max-width: 1024px)
{
	.sidebar
	{
		display: none;
	}
	
	#menu
	{
		display: none !important;
	}

	.title
	{
		font-size: 3em;
	}

	body
	{
		grid-template-columns: 100%;
	}
	
	#main > nav
	{
		grid-template-columns: 100%;
		
	}

	#main > nav > ul
	{
	    grid-template-rows: 20% 20% 20% 20% 20% !important; 
	}
	
	#contacts
	{
		grid-template-columns: auto auto auto auto;
		grid-column-gap: 1.5em;
	}
}

@media only screen and (min-width: 1025px)
{
	.sidebar
	{
		min-width: 8%;
	}
	
	#topbar
	{
		display: none;
	}
	
	#mobile_menu
	{
		display: none !important;
	}

	.title
	{
		font-size: 4em;
	}

	#main > nav
	{
		grid-template-columns: 100%;
		grid-template-rows: 100%;
	}
	
	#main > nav > ul
	{
	    grid-template-columns: 20% 20% 20% 20% 20% !important;
	}
	
	#contacts
	{
		grid-template-columns: auto auto auto auto;
		grid-column-gap: 1.5em;
	}
}

main
{
	text-align: center;
	padding: 1em;
}

header
{
	background-size: contain !important;
	width: 100%;
	height: 100%;
	text-align: center;
}

#banner-container
{
	max-width: 100%;
	align-items: safe center;
	justify-items: safe center;
	position: relative;
}

#banner
{
	width: 100%;
}

.title
{
	font-family: The_Brown_Wall;
	color: #ead4be;
	letter-spacing: 9px;
	position: absolute;
	align-content: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	margin: 0;
	padding: 0;
	
}

#topbar
{
	background-color: #253b2c;
	align-content: safe center;
	justify-content: safe center;
	text-align: center;
}

.menu
{
	min-width: 100%;
}

#main > nav
{
	min-width: 100%;
	margin-top: 1.5em;
	justify-content: safe center;
}

#main > nav > ul
{
	display: grid;
	justify-content: safe center;
	margin: 0;
	padding: 0;
}

nav > ul > li
{
	display: grid;
	list-style: none;
	background-color: #602326;
	border: 2px solid #602326;
	border-radius: 10%;
	font-size: 1.5em;
	justify-content: safe center;
	align-items: safe center;
	margin-left: 0.5em;
	margin-right: 0.5em;
	margin-top: 0.5em;
}

#main > nav > ul > li > a
{
	color: #ecd6c0;
	text-decoration: none;
}

footer
{
	min-width: 100%;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	justify-content: center;
	align-content: center;
	text-align: center;
	padding: 1em;
	background-color: #253b2c;
}

#contacts
{
	text-align: center;
	justify-content: center;
	align-content: center;
}

#social
{
	align-content: center;
	justify-content: center;
	grid-template-columns: auto auto;
	grid-column-gap: 0.5em;
}

.underline
{
	text-decoration: underline;
}

.t-align-center
{
	text-align: center;
}
