@import url(http://fonts.googleapis.com/css?family=Open+Sans);

body,html{
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    line-height: 1;
    color : #393939;
    font-family: 'Open Sans';
    background-color : #e2e2e2;
}

a{
    color : #7669e9;
    font-family: 'Open Sans';
    text-decoration: none;
}

a:hover{
    text-decoration: underline;
}

a:visited{
    text-decoration: underline;
}

h1,h2{
    text-align: center;
    color : #d0c8df;
    font-family: 'Open Sans';
}

h1{
    font-size: 1.8rem;
}

.marginTop{
    margin : 2rem 0;
}


.containerTop{
    background: url('../img/pixi_examples_bg.jpg') no-repeat;
    background-size : 100% 870px;
    width : 100%;
    min-height : 770px;
    margin : 0;
}

.centred{
    max-width: 56.125428571rem;
    margin : 0 auto;
}

.liveView{
    padding: 5px;
    box-sizing : border-box;
    min-height: 600px;
}

.themeSelect{
    display: none;
}
/* Important, makes the editor scale to fit !*/
.CodeMirror {
  border: 1px solid #eee;
  height: auto;
}

.codeRefresh button{
    background-color: transparent;
    border : 0;
    outline: none;
    margin : 0 auto;
    display: block;
    z-index : 4;
}

.codeRefresh button:active,.codeRefresh button:focus{
    background-color: transparent;
    border : 0;
    outline: none;
}

.codeRefresh button:active .btn{
    margin-top : -3px;
}

.codeRefresh .btn{
    margin : -1px auto 0 auto;
    width : 78px;
    height : 78px;
    display: block;
    background: url('../img/code_refresh_no_shadow.png') no-repeat;
    background-size: cover;
    cursor: pointer;
    position: relative;
    left : 17px;
    top : 55px;
    z-index: 7;
}

.codeRefresh .shadow{
    width : 136px;
    height : 139px;
    margin : 0 auto;
    background: url('../img/code_refresh_tab_new.png') no-repeat;
    position : relative;
    left : 17px;
    z-index:2;
    float : left;
}

#example{
    width : 100%;
    margin : 0 auto;
}

#example iframe{
    display: block;
    margin : 0 auto;
    width: 820px;
    height : 620px;
    z-index : 1;
}

.containerBottom{
    margin-top : -155px;
    box-sizing : border-box;
}

.downloadSection a{
    font-weight: bold;
}

#version{
    margin-right : 1rem;
}

.downloadSection a:hover{
    text-decoration: underline;
}

footer{
    position: relative;
    width: calc(100vw - 9px);
    left: calc(-50vw + 50%);
    height : 60px;
    background: #393939;
    color : white;
    padding: 5px 0 5px 0px;
    box-sizing : border-box;
    line-height: 50px; /* the footer is 60px - 5px top and bottom -> 50px */
}

@media (max-width: 897px){
    footer{
        height : 120px;
    }
}

@media (max-width: 570px){
    footer{
        height : 180px;
    }
}

footer p{
    margin : 0;
}

.copyright, .goodboy, .icons{
    display: inline-block;
    vertical-align: middle;
    line-height: 16px;
}

.goodboy{
    margin-left: 15px;
}

.copyright a{
    color : white;
}

.icons{
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  margin-left: 3.8%;
}
/* These two are aligned */
.icons, .copyright{
    margin-top: 0px;
}

.icons a{
    color : white;
    margin-left: 5px;
}

.icons img{
    vertical-align: middle;
    padding : 0px 2px;
    box-sizing : border-box;
}

footer .copyright{
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  margin-left : 20px;
}

/* Nav section */
nav{
    position: absolute;
    top: 0;
    left : 0;
    width : 16rem;
    overflow: hidden;
    background : url('../img/nav_bg.png') repeat-y;
    color : white;
    z-index : 15;
}

nav li a {
    color : white;
    text-decoration: none;
}

nav li a:hover{
    color : #7669e9;
}

nav ul{
    padding: 0;
    margin: 0;
}

#navList{
    margin-left : 13px;
}

/*nav li:first{
    margin-left : 13px;
}*/

nav li{
    line-height : 21px;
    list-style: none;
}

nav li span{
    text-transform: uppercase;
    font-family: 'Open Sans';
    margin: 8px 0 0 0;
    color : #a590d2;
    display : block;
}

nav ul:last-child li:last-child{
    margin-bottom: 5px;
}

nav img{
    margin-left : 2px;
    margin-top : 5px;
    display: inline-block;
}


#hamburger{
    cursor: pointer;
    display: inline-block;
    margin-left : 8px;
    margin-top : 5px;
}

nav.hidden{

  -webkit-animation: scaleDown 0.8s forwards; /* Safari 4+ */
  -moz-animation:    scaleDown 0.8s forwards; /* Fx 5+ */
  animation:         scaleDown 0.8s forwards; /* IE 10+, Fx 29+ */
}

nav.show{

  -webkit-animation: scaleUp 0.8s forwards; /* Safari 4+ */
  -moz-animation:    scaleUp 0.8s forwards; /* Fx 5+ */
  animation:         scaleUp 0.8s forwards; /* IE 10+, Fx 29+ */

}

@-webkit-keyframes scaleUp {
  0%{ width : 2.6rem;
        height : 2.8rem;
     }
  40%  {width : 17rem ; height : 2.8rem;}
  100% {width : 17rem; height : auto;}
}
@-moz-keyframes scaleUp {
  0%{ width : 2.6rem;
         height : 2.8rem;
     }
  40%  {width : 17rem ; height : 2.8rem;}
  100% {width : 17rem; height : auto;}
}
@keyframes scaleUp {
  0%{ width : 17rem;
         height : 2.8rem;
     }
  40%  {width : 17rem; height : 2.8rem;}
  100% {width : 17rem; height : auto;}
}

@-webkit-keyframes scaleDown {
  0%{ width : 17rem;
        height : 2.8rem;
     }
  40%  {width : 2.6rem;}
  100% {width : 2.6rem; height : 2.8rem;}
}
@-moz-keyframes scaleDown {
  0%{ width : 17rem;
         height : 2.8rem;
     }
  40%  {width : 2.6rem;}
  100% {width : 2.6rem; height : 2.8rem;}
}
@keyframes scaleDown {
  0%{ width : 17rem;
         height : 2.8rem;
     }
  40%  {width : 2.6rem;}
  100% {width : 2.6rem; height : 2.8rem;}
}

