@import url(https://fonts.googleapis.com/css?family=Coming+Soon);


/*--------------*/
/* RESET STYLES */
/*--------------*/

a img { /* removes border from image links in old browsers */
    border: 0;
}

p, h1, h2, h3, h4, h5, blockquote {
    margin-top: 0;  
}

ul, ol { /* removes bullet points from lists */
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%; /* max width with respect to container the image is in */
    height: auto;
}

/*-----------*/
/* END RESET */
/*-----------*/

.clouds {
    position: absolute;
    z-index: -2; /* drops clouds behind all other images */
}

.cloud1 {
	top: 180px;
    -webkit-animation: move 120s linear infinite;
    -moz-animation: move 120s linear infinite;
    -o-animation: move 120s linear infinite;
    animation: move 120s linear infinite;
    /*linear makes the transition at 90% smooth - see keyframe move*/
}

.cloud2 {
	top: 630px;
    -webkit-animation: move 180s linear 35s infinite backwards;
    -moz-animation: move 180s linear 35s infinite backwards;
    -o-animation: move 180s linear 35s infinite backwards;
    animation: move 180s linear 35s infinite backwards;
}

.cloud3 {
	top: 1100px;
    -webkit-animation: move 150s linear 17s infinite backwards;
    -moz-animation: move 150s linear 17s infinite backwards;
    -o-animation: move 150sr linear 17s infinite backwards;
    animation: move 150s linear 17s infinite backwards;
}

@keyframes move {
    0% {transform: rotate(0deg);left:-220px;}
    90% {opacity: 1; transform: rotate(0deg);left:65%;}
    97% {opacity: 0; transform: rotate(0deg);left:75%;}
    99% {opacity: 0; transform: rotate(0deg);left:75%;}
    100% {opacity: 0; transform: rotate(0deg);left:-220px;}
}

.spaceShip {
    width: 75px;
    top: 450px;
    left: 70%;
    z-index: -1;
    position: absolute;
    -webkit-animation: moveship 6s linear 7s;
    -moz-animation: moveship 6s linear 7s;
    -o-animation: moveship 6s linear 7s;
    animation: moveship 6s linear 7s;  
}

@keyframes moveship {
    0% {transform: rotate(0deg);left:70%;}
    38% {transform: rotate(0deg); left: 90%; top: 450px;}
    41% {transform: rotate(7deg); left: 90%; top: 450px;}
    44% {transform: rotate(0deg); left: 90%; top: 450px;}
    100% {transform: rotate();left:-100px; top: -20px;}
}

body {
    margin: 0;
    background-color: lightskyblue;
	line-height: 1.5em;
    color: #303030;
    font-family: "coming soon", sans-serif;
    overflow-x: hidden; /*stops clouds overflowing the browser, but not chrome/opera mobile */ 
    -webkit-overflow-x: hidden;
    -moz-overflow-x: hidden;
    -o-overflow: hidden; /* do these even work? */
}

.header {
    height: 75px;
}

.inner {
    width: 80%; /* mainly controlling logo position */
    min-width: 320px;
    max-width: 1200px;
    margin: 0 auto; /* keeps the inner centered */
}

.logo {
    float: left;
    width: 300px;
    margin-top: 2%;
    margin-left: 15%;
}

.intro {
    text-align: center;
    width: 80%;
    color: #303030;
    padding-top: 2em;
    margin: 0 auto;
    line-height: normal;
    overflow: auto;
}

.sharethis-inline-follow-buttons {
    position: absolute;
    right:20%;
 
}

.follow {
    text-align: center;
    font-weight: bolder;
}

.socialIcons li {
    display: inline-block; /* to keep on same line */
    margin-left: 5px;
}

.socialIcons img {
    width: 25px;
}

.socialIcons img:hover {
    -webkit-transform: rotate(7.5deg); 
    -ms-transform: rotate(7.5deg); 
    transform: rotate(7.5deg); 
}

.contactSocialIcons {
    position: relative;
    right: 40%; 
}

.books	{
    margin-top: 3%;
    text-align: center;
}

.books img {
	width: 100%;
    border: 5px solid #505050;
}

.responsive {
    padding: 0 15px;
	float: left;
    width: 30%;
}

.clearfix:after { /*Used to stop floating element bug*/
  content: "";
  display: table;
  clear: both;
}

.games {
    height: 100%;
}

.games img {
    -moz-transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.games:hover img{
    -webkit-transform: rotate(-7.5deg); 
    -ms-transform: rotate(-7.5deg); 
    transform: rotate(-7.5deg); 
}

.colouring {
  
}

.colouring img {
  -moz-transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;   
}

.colouring:hover img{
    -webkit-transform: rotate(7.5deg); 
    -ms-transform: rotate(7.5deg); 
    transform: rotate(7.5deg); 
}

.videos {
   
}

.videos img {
    -moz-transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.videos:hover img{
    -webkit-transform: rotate(-7.5deg); 
    -ms-transform: rotate(-7.5deg); 
    transform: rotate(-7.5deg); 
}

.chimphead {
    position: relative;
    padding-top: 25px;
    width: 5em;
    margin: 0 auto;
    text-align: center;
    color: #303030;
}

.pairs {
    width: 60%;
    margin: 0 auto;
    text-align: center;
    margin-top: 2%;
}

.easy {
    display: inline-block;
    padding: 2%;
}

.hard{
    display: inline-block;
    padding: 2%;
}

.uhr {
    display: inline-block;
    padding: 2%;
    max-width: 300px;
}

.foot {
    position: relative;
    width: 100%;
    text-align: center;
    color: #303030;
    text-decoration: none;
	font-family: "coming soon";
    margin-top: 1em;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #00b900;
}

.foot p {
    font-weight: bolder;
    background-color: #00b900;   
    margin: 0;
}

.text { /* text boxes, links, icons on the about and contact pages */
    text-align: center;
    width: 800px;
    font-weight: bolder;
}

.email {    /*on Contact page*/
    transition: all .3s ease-in;
    text-decoration: none;
    color: #8e6ac6;
    font-size: 1.5em;
}

.email:hover {
    color: #fa0;
}

.prints {
    width: 100%;
    padding-top: 2%;
    margin: 0 auto;
}

.pics /*.inner*/{
    text-align: center; /* this is what keeps the following images centered and scaling consistently */
    margin-top: 2%;
}

.hor {
    display: inline-block;
    width: 40%;
    padding: 2%;    
}

.ver1 {
    display: inline-block;
    width: 25%;
    padding: 2%;    
}

.ver2 {
    display: inline-block;
    width: 25%;
    padding: 2%;
}

#playfield {
   
}

.playControls {
    text-align: center;
}

.back {
    display: inline-block;
    margin-right: 10%;
    margin-left: -20%;
    padding-top: 0.5%;
    padding-left: 15px;
    padding-right: 15px;
    background-color: ghostwhite;
    border: solid 1px;
    border-radius: 50px;
    border-color: #505050;
}

.back a {
    text-decoration: none;
    color: #505050;
    font-size: 1.2em;
    font-weight: bolder;
}

.restart {
    display: inline-block;
    padding-top: 0.5%;
    padding-left: 15px;
    padding-right: 15px;
    background-color: ghostwhite;
    border: solid 1px;
    border-radius: 50px;
    border-color: #505050;
}

.restart a {
    text-decoration: none;
    color: #505050;
    font-size: 1.2em;
    font-weight: bolder;
}

.rotate {
    text-align: center;
    display: none;
}

.bodyText {
    margin-bottom: 2%;
    border: solid 2px;
    border-radius: 15px;
    border-color: darkblue;
    background-color: ghostwhite;
    box-shadow: 2px 2px 5px gray;
}

/*----------------*/
/* BOOK ANIMATION */
/*----------------*/

.bookWrapper {
    margin: 0 auto; /* centres the box */
    margin-bottom: 5%;
    max-height: 700px;
    max-width: 900px;
    border: solid 2px;
    border-radius: 15px;
    border-color: #505050;
    background-color: ghostwhite;
    box-shadow: 2px 2px 5px gray;
}

.book {
    margin: 0 auto;
    margin-top: 2%;
    margin-bottom: 2%;
    max-height: 600px;
    max-width: 750px;
    position: relative;/* keeps the previous/next buttons relative to the book position*/
}

input:focus {
    outline: inherit; /* removes outline when button is focused */
}

input[type="button"] {
    text-align: center;
    font-family: "coming soon";
    color: #505050;
    font-size: 2em;
    font-weight: bolder;
    line-height: 1.4em;
 	background: ghostwhite;
    padding: 0; /* to round buttons in iOS */
    width: 200px;
    height: 50px;
	border-style: solid;
	border-width: 2px;
	border-radius: 15px;
	border-color: #505050;
    box-shadow: 2px 2px 5px gray;
    -webkit-appearance: none; /* removes default iOS styling */
    -moz-appearance: none;
    appearance: none;
}

.previous {
	position: absolute;/*absolute in relation to the book*/
	top:105%;
	left: 2%;
}

.previousAlt {
    display: none;
    }

.next {
	position: absolute;/*absolute in relation to the book*/
	top: 105%;
	right: 2%;
}

.nextAlt {
    display: none;
    }

.previous:focus {
    outline: none;
}

.video {
    float: left;
    margin-top: -400px;
    margin-left: 78%;
    width: 150px; /* width of box */
    text-align: center; /* centres icons */
    padding: 10px;
    background-color: ghostwhite;
    border: solid 1px;
    border-radius: 15px;
    border-color: #8e6ac6;
    right:4%;  
}

.tvset {
    margin: 0 auto;
    width: 130px;
    
}

.bodyText {
    margin-top: 2%;
    text-align: center; /* centres icons */
    padding: 10px;
    background-color: ghostwhite;    
}

/*-------------------*/
/*** NARROW SCREEN ***/
/*-------------------*/

@media only screen and (max-width: 1200px) {
  .responsive {
    width: 46%;
    margin: 15px 0;
    }  
}

@media only screen and (max-width: 1000px) {
  .responsive {
    width: 45%;
    }
} 

@media only screen and (max-width: 800px) {
  .responsive {
    width: 44%;
    }
}  

@media only screen and (max-width: 650px) {
    .responsive {
    width: 100%;
    }   
}

/*--------------*/
/*** PORTRAIT ***/
/*--------------*/

@media screen AND (orientation:portrait) {
    
    .responsive {
    width: 95%;
    } 
    
    .book {
    width: 98%;
    max-height: 96%;/*keeps the book from overspilling at the bottom on mobile portrait*/
        }
}

/*--------------*/
/*** LANDSCAPE **/
/*--------------*/

@media screen AND (max-height: 1000px) {
    .logoHide {
        display: none;
    } 
    
    .introHide {
        display: none;
    }
    
    .socialIconsHide {
        display: none;
    }
    
    .bookWrapper {
        max-width: 50%;
    }

    .book {
         width: 98%;
       
    }
    
    .book img {
         overflow: hidden;
       
    }
    
    .previous {
        display: none;
    }
    
    .previousAlt {
        display: block;
        position: absolute;/*absolute in relation to the book*/
        top:70%;
        left: -15%;
    }
    
    .next {
        display: none;
    }

    .nextAlt {
        display: block;
        position: absolute;/*absolute in relation to the book*/
        top: 70%;
        right: -15%;
        overflow: visible;
    }
    
    input[type="button"] {
        width: 50px;
    }
    
}