/* 
Line Labros Maths 
*/

* {
	margin: 0;
	padding: 0;
}

body {
	background-image: #ccc url(016.jpg);
	background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
	font-style: normal; font-variant: normal; font-weight: normal; 
	width: 100%;
	text-align: center;
	line-height: 14pt; 
	font-size: 16pt; font-family: Times New Roman, Monotype Corsiva, tahoma, arial, sans-serif;
}
header {
	padding-top: 20px;
	width: 100%;
	height: 200px;
	background: #fff url() no-repeat;	
	font-size: 26pt;
	letter-spacing: 10px;
	color: gray;
	text-align: center;
    text-shadow: 0px 2px 4px #000; 
}
ul {
	display: none;
}

h2{
	text-align: center;
	padding-top: 30px;
	font-size: 40pt;
	letter-spacing: 10px;
	color: gray;
	text-align: center;
    text-shadow: 0px 2px 4px #000; 	
   }
   
#bg0 {
	width: 100%;
	height: 550px;
	background: #fff url(../images/16.jpg) no-repeat;
	background-size: 100% 90%;
    background-repeat: no-repeat;
	position: absolute;
	top: 70px;
   }   	
   
#agym h1 {
	    color: blue;
     }
	 
#bg1 {
	background: ;
	background-size: 100%;
    background-repeat: no-repeat;
	width: 100%;
	height: 580px;
	position: absolute;
	z-index: 0;
	left: 0px;
	top: 580px;
	}
	
.mailadress {
	background: #3385ff;
	background-size: 100%;
    background-repeat: no-repeat;
	width: 100%;
	height: 50px;
	position: relative;
	z-index: 0;
	right: 0px;
	top: 10px;
	padding-top: 25px;
	color: #d1e0e0;
	font-size: 23px; 
	text-align:;
	border-top-color: #d1e0e0;
	border-top-style: solid;
	border-top-width; 0.5px;
	}

/*.wrapper {
    padding: 20px 20px;
    max-width: 1200px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}*/

.right {float: right !important;}
/* Image zoom on hover + Overlay colour */
.parent {
    width: 30%;
    /*margin: 25px;*/
    height: 30%;
    border: 0px solid silver;
    overflow: hidden;
    /*position: relative;*/
    float: center;
    display: inline-block;
    cursor: pointer;
}

.child {
    height: 100%;
    width: 100%;
    background-size: 40% 150px;
	background-position: center;
    background-repeat: no-repeat;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.price {
	background-color:red;
	position: relative;
	left:-30%;
	top:20%;
	color:blue;
	letter-spacing:1px;
	padding:4px;
}
	

/* Several different images */
.bg-one {background-image: url(../images/algebra.png);}
.bg-two {background-image: url(../images/x.png);}
.bg-three {background-image: url(../images/system.png);}
.bg-four {background-image: url(../images/function.gif);}
.bg-five {background-image: url(../images/Tyche.png);}
.bg-six {background-image: url(../images/Geom.png);}
.bg-seven {background-image: url(../images/Trigonom.jpg);}
.bg-eight {background-image: url(../images/Atom.png);}
.bg-nine{background-image: url(../images/laptop.png);}


.parent a {
    display: none;
    font-size: 30px;
    color: #00aaff !important;
    font-family: sans-serif;
	padding-top: 110px;
    text-align: center;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 153px;
    cursor: pointer;
    /*text-decoration: none;*/
}

.parent:hover .child, .parent:focus .child {
    -ms-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    transform: scale(1.2);
}

.parent:hover .child:before, .parent:focus .child:before {
    display: block;
}

.parent:hover a, .parent:focus a {
    display: block;
}

.child:before {
    content: "";
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255,250,240,0.60);
}

/* Media Queries */
@media screen and (max-width: 1100px) and (min-width: 461px) {
    /*.parent {width: 90%; margin: 0px 0px}*/
	.parent a {font-size:16px;}
	header {	
	font-size: 17pt;
	}
        
}
@media screen and (max-width: 460px) {
    .parent {width: 93%; margin: 0px 20px; display: block;}
	.parent a {font-size:18px;}
	header {	
	font-size: 16pt;
	}
	#bg0 {
	height: 250px;
   }  
   #bg1 {
	top: 295px;
	}   
        
}

/*---Others--*/
 /* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */   
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 1.1s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
	color: #00aaff;
	font-size: 33px;
    position: relative;
    top: 10%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
    padding-top: 3px;
    text-decoration: none;
    font-size: 20px;
    color: #f0f0f1;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
    color: #00aaff;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}


