/***********************************************************************************************/
/*************************************** ALL SCREENS *******************************************/
/***********************************************************************************************/


/***********************/
/******* general ******/
/**********************/
@font-face 
{
    font-family: 'ubuntubold';
    src: url('fonts/ubuntu-b-webfont.woff2') format('woff2'),
         url('fonts/ubuntu-b-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}



:root
{
	--main-color: #212B0E;
	--secondary-color: #788C42;
	--third-color: #4E6622;
	--fourth-color: #95B05B;
	--fifth-color: #C6CE99;
}

/***********************/
/******* layout *******/
/**********************/
 
body
{
	background-color: #f2f2f2;
	margin-top: 0;
	padding-top: 0;
}

#mainpage 
{
	width: 1200px; 
	margin: 0 auto; 
	font-family: Helvetica, Arial, sans-serif;
	font-size: 0.8em;
	display: flex;
	flex-direction: column;
	color: var(--main-color);
	background-color: #FFF;
	padding: 0 10px 0 10px;
}

header
{
	display: grid;
	grid-template-rows: 25px 175px 70px;
	grid-template-columns: repeat(12, 100px);
	margin-bottom: 20px;
}

#contactus
{
	grid-column: 1 / 3; 
	grid-row: 1;	
}

#ident
{
	grid-column: 8 / span 5;
	grid-row: 1 / 1;
	text-align: right;
}

#maintitle
{
	grid-column: 1 / 13;
	grid-row: 2;
	background-image: url('img/logo1.png');	
	height: 250px;	
}

#maintitleMob
{
	display: none;
}

#error_install
{
	text-align: center;
	color: red;
	font-weight: bold;
	font-style: italic;
	margin-bottom: 10px;
	margin-top: 10px;
}

footer
{
	text-align: center;
	border-top: 1px solid var(--main-color);
	margin-top: 10px;
	padding-top: 10px;
}

/**********************/
/******** Menu ********/
/**********************/

nav
{
	grid-column: 4 / span 9;
	grid-row: 3;
	padding-top: 10px;
	font-family: 'ubuntubold';
}

nav ul
{
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}

nav li
{
	height: 100%;
	list-style: none;
}

nav li a
{
	color: var(--main-color);
}

.word
{
	font-size: 2.5em;
	margin: auto auto;
}



.word .up
{
	display: inline-block;
	transform: translate3d(0px, 0px, 0px) rotate(0deg);
	transition: all 0.5s ease-in-out;
}

.word .down
{
	display: inline-block;
	transform: translate3d(0px, 0px, 0px) rotate(0deg);
	transition: all 0.5s ease-in-out;
}


.word:hover .up
{
	transform: translate3d(0px, -4px, 0px) rotate(4deg);
	color: var(--secondary-color);
}

.word:hover .down
{
	transform: translate3d(0px, 4px, 0px) rotate(-4deg);
	color: var(--secondary-color);
}



/**********************/
/******* Errors *******/
/**********************/
div.error
{

	padding: 10px;
	margin-top: 20px;
	margin-bottom: 20px;
	background: var(--fifth-color);	
	box-shadow: 0 10px 6px -6px #777;	
	border-radius: 5px;		
}

p.error_title
{
	color: red;
	text-align: center;
}




/**********************/
/******* Images *******/
/**********************/

img:not(.title_img) 
{
	max-width: 100%;
	height: auto;
}



/**********************/
/******* Links ********/
/**********************/

a.a_title
{
	display: block;
	width: 100%;
	height: 250px;
}

a:not(.ModifyGc):not(.white):not(.a_title)
{
	border-bottom: 1px solid transparent;
	text-decoration: none;
	color: var(--main-color);
	transition-property: color, border;
	transition-duration: 1.5s;
}


a:not(.a_img):not(.word):not(.ModifyGc):not(.white):not(.a_title):hover
{
	border-color: var(--secondary-color);
	color: var(--secondary-color);
	text-decoration: none;
}

a.ModifyGc
{
	display: block;
	color: white;
	text-decoration: none;
	width: 100%;
}

a.ModifyGc:active
{
	color: var(--main-color);
}

a.white:link 
{
	color: white;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition-property: color, border;
	transition-duration: 1.5s;
}

a.white:hover 
{
	border-color: white;
}

a.white:visited 
{
	color: white;
}

/***********************/
/******* forms ********/
/**********************/

input:not(.file)
{
	color: var(--main-color);
	border: 1px solid var(--main-color);
}

select
{
	color: var(--main-color);
	border: 1px solid var(--main-color);
}

textarea
{
	color: var(--main-color);
	border: 1px solid var(--main-color);
}

input:required:focus:valid, input[pattern]:focus:valid
{
	border-color: var(--secondary-color);
	box-shadow: 0 0 1px var(--secondary-color);
}

input:required:focus:invalid, input[pattern]:focus:invalid
{
	border-color: red;
	box-shadow: 0 0 1px red;
}


input[type=submit], input[type=reset] 
{
	width: 100px;
	margin-left: 5px;
	padding: 2px;
	border-radius: 5px;
	border: 1px solid var(--secondary-color);
	box-shadow: 2px 1px 2px var(--fifth-color);
	background-color: var(--main-color);
	color: white;
	cursor: pointer;
}

input[type=submit]:hover, input[type=reset]:hover 
{
	background-color: var(--secondary-color);
	border: 1px solid var(--fifth-color);
}
   
input[type=submit]:active, input[type=reset]:active 
{
	background-color: var(--fifth-color);
	box-shadow: 2px 1px 2px var(--main-color) inset;
	color: var(--main-color);
}

div.ModifyGc
{
	width: 100px;
	margin-left: 5px;
	padding: 2px;
	border-radius: 5px;
	border: 1px solid var(--secondary-color);
	box-shadow: 2px 1px 2px var(--fifth-color);
	background-color: var(--main-color);
	cursor: pointer;
	text-align: center;
}
div.ModifyGc:hover
{
	background-color: var(--secondary-color);
	border: 1px solid var(--fifth-color);
}
div.ModifyGc:active
{
	background-color: var(--fifth-color);
	box-shadow: 2px 1px 2px var(--main-color) inset;
	color: var(--main-color);
}


/**********************/
/******* Tables *******/
/**********************/


th
{
	background: var(--main-color);
	color: white;
}

.GcTable
{
	width: 100%;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
}

tr:nth-child(even)
{
	background: var(--fifth-color);
}


/**********************/
/**** Geocache_form ***/
/**********************/

fieldset
{
	border: 1px solid var(--main-color);
	margin-bottom: 10px;
}

.SubmitZone
{
	display: flex;
	justify-content: space-around;
	color: var(--main-color);
}


.two_col
{
	display: grid;
	grid-template-columns: 60% 1fr;
	grid-auto-rows: minmax(40px, auto);	
	color: var(--main-color);
}

.three_col
{
	display: grid;
	grid-template-columns: 30% 30% 1fr;
	grid-auto-rows: minmax(40px, auto);
	color: var(--main-color);
}

#GeocacheType
{
	grid-column: 1; 
	grid-row: 1;		
}

#GeocacheType_img
{
	display: inline-block;
}
#GeocacheType_txt
{
	display: inline-block;
}

#GcCode
{
	grid-column: 2; 
	grid-row: 1;
}

#GeocacheName
{
	grid-column: 3; 
	grid-row: 1;
}

#GeocacheOwner
{
	grid-column: 1; 
	grid-row: 2;
}

#PersonalNotes
{
	margin-bottom: 10px;
}

#Personal_Notes
{
	width: 100%;
	height: 100px;
}

#GeocacheDescription
{
	margin-bottom: 10px;
}

#MysteryBrainstorming
{
	margin-bottom: 10px;
}

#MysterySolution
{
	margin-bottom: 10px;
}

#GcTitle
{
	margin-top: 30px;
	margin-bottom: 30px;
	margin-left: auto;
    margin-right: auto;
	padding-bottom: 20px;
	padding-top: 20px;
	width: 85%;
    text-align: center;
    border-radius: 20px;
    background-color: var(--main-color);
	font-weight: bold;
	color: white;	
	font-size: 20px;
}

.TabTop
{
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 10px;
    height: 25px;
	width: 50%;
    text-align: center;
    border-radius: 5px;
    background-color: var(--main-color);
	font-weight: bold;
	font-size: 1em;
	color: white;
}

.TabTitle
{
	display: inline-block;
	width: 25%;
	background-color: var(--main-color);
	font-weight: bold;
	color: white;
	border: 1px solid;
	border-color: white;
}

.attached_f
{
	fill: var(--main-color);
}

/**********************/
/******* Profile ******/
/**********************/




#EditProfile
{
	width: 100px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	padding-top: 5px;
    height: 20px;
	border-radius: 5px;
	border: 1px solid var(--secondary-color);
	box-shadow: 2px 1px 2px var(--fifth-color);
	background-color: var(--main-color);
	cursor: pointer;
	text-align: center;
}

#EditProfile:hover
{
	background-color: var(--secondary-color);
	border: 1px solid var(--fifth-color);
}
#EditProfile:active
{
	background-color: var(--fifth-color);
	box-shadow: 2px 1px 2px var(--main-color) inset;
	color: var(--main-color);
}

#SubmitProfile
{
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: auto;
    margin-right: auto;
	padding-top: 10px;
    height: 25px;
	width: 50%;
    text-align: center;
}


/**********************/
/******** Ident *******/
/**********************/



.login-page 
{
	width: 360px;
	padding: 2% 0 0;
	margin: auto;
}

.form 
{
	position: relative;
	z-index: 1;
	background: #FFF/*var(--fourth-color)*/;
	max-width: 360px;
	margin: 0 auto 50px;
	padding: 45px;
	text-align: center;
	box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.form input 
{
	outline: 0;
	background: #f2f2f2;
	width: 100%;
	border: 0;
	margin: 0 0 15px;
	padding: 15px;
	box-sizing: border-box;
	font-size: 14px;
}

.form .login 
{
	text-transform: uppercase;
	outline: 0;
	background: var(--main-color);
	width: 100%;
	border: 0;
	padding: 15px;
	color: #FFF;
	font-size: 14px;
	-webkit-transition: all 0.3 ease;
	transition: all 0.3 ease;
	cursor: pointer;
}

.form .login:hover,.form .login:active,.form .login:focus 
{
	background: var(--secondary-color);
}

.form .message 
{
	margin: 15px 0 0;
	color: var(--third-color);
	font-size: 12px;
}


.form .register-form 
{
	display: none;
}

.container 
{
	position: relative;
	z-index: 1;
	max-width: 300px;
	margin: 0 auto;
}

.container:before, .container:after 
{
	content: "";
	display: block;
	clear: both;
}

.container .info 
{
	margin: 50px auto;
	text-align: center;
}

.container .info h1 
{
	margin: 0 0 15px;
	padding: 0;
	font-size: 36px;
	font-weight: 300;
	color: #1a1a1a;
}

.container .info span 
{
	color: #4d4d4d;
	font-size: 12px;
}

.container .info span a 
{
	color: #000000;
	text-decoration: none;
}

.container .info span .fa 
{
	color: #EF3B3A;
}





/***********************************************************************************************/
/*************************************** MIDDLE SIZE *******************************************/
/***********************************************************************************************/
@media all and (min-width: 900px) and (max-width: 1199px)
{

	/***********************/
	/******* layout *******/
	/**********************/

	#mainpage 
	{
		width: 100%; 
		margin: 0 auto; 
		font-family: Helvetica, Arial, sans-serif;
		font-size: 0.8em;
		display: flex;
		flex-direction: column;
		color: var(--main-color);
	}

	header
	{
		display: grid;
		grid-template-rows: 25px 115px 65px;
		grid-template-columns: repeat(12, 8.33%);
		margin-bottom: 20px;
	}

	#maintitle
	{
		grid-column: 1 / 13;
		grid-row: 2;
		background-image: url('img/logo1.png');	
		background-repeat: no-repeat;
		background-position-x: center;
		background-size: 100% 100%;
		height: 170.1px;	
	}	

	/**********************/
	/******** Menu ********/
	/**********************/

	.word
	{
		font-size: 2em;
		margin: auto auto;
	}	
}


/***********************************************************************************************/
/**************************************** SMALL SIZE *******************************************/
/***********************************************************************************************/
@media all and (max-width: 899px)
{

	/***********************/
	/******* layout *******/
	/**********************/

	#mainpage 
	{
		width: 100%; 
		margin: 0 auto; 
		font-family: Helvetica, Arial, sans-serif;
		font-size: 0.8em;
		display: flex;
		flex-direction: column;
		color: var(--main-color);
	}

	header
	{
		display: grid;
		grid-template-rows: 25px 85px 60px;
		grid-template-columns: repeat(12, 8.33%); 
		margin-bottom: 20px;
	}

	#contactus
	{
		grid-column: 1 / 1; 
		grid-row: 1;	
	}
	
	#ident
	{
		grid-column: 3 / span 10;
		grid-row: 1 / 1;
		text-align: right;
	}

	#maintitle
	{
		display: none;	
	}
	
	#maintitleMob
	{
		display: block;
		grid-column: 1 / 13;
		grid-row: 2;
		background-color: var(--main-color);	
		height: 85px;
	}

	/**********************/
	/******** Menu ********/
	/**********************/

	.word
	{
		font-size: 1.3em;
		margin: auto auto;
	}	


	nav
	{
		grid-column: 1 / span 13;
		grid-row: 3;
		padding-top: 10px;
		font-family: 'ubuntubold';
	}

	nav ul
	{
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		padding-left: 0px;
	}	

	/**********************/
	/******* Links ********/
	/**********************/

	a.a_title
	{
		display: block;
		width: 100%;
		height: 80px;
		color: #FFF;
		text-align: center;
		text-decoration: none;
		padding-top: 30px;
		font-weight: bold;
		font-size: 2em;
	}

	/**********************/
	/**** Geocache_form ***/
	/**********************/

	.two_col
	{
		display: grid;
		grid-template-columns: 1fr;
		grid-auto-rows: minmax(40px, auto);	
		color: var(--main-color);
	}

	.three_col
	{
		display: grid;
		grid-template-columns: 1fr;
		grid-auto-rows: minmax(40px, auto);
		color: var(--main-color);
	}


	#GeocacheType_img
	{
		display: inline-block;
	}
	#GeocacheType_txt
	{
		display: inline-block;
	}

	#GeocacheType
	{
		grid-column: 1; 
		grid-row: 1;		
	}

	#GcCode
	{
		grid-column: 1; 
		grid-row: 2;
	}

	#GeocacheName
	{
		grid-column: 1; 
		grid-row: 3;
	}

	#GeocacheOwner
	{
		grid-column: 1; 
		grid-row: 4;
	}

	/**********************/
	/*** Search_Geocache **/
	/**********************/	

	.search_tab
	{
		height: 35px;
	}

	.OwnerTd
	{
		display: none;
	}

	.TypeTd
	{
		display: none;
	}

	.DisTd
	{
		display: none;
	}

	.GcTd
	{
		max-width: 50px;
	}

	.NameTd
	{
		max-width: 130px;
	}
}


