/* BACKGROUND */
.stars,
.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.stars {
    background: #000 url(../images/stars.png) repeat top center;
    z-index: 0;
}
.twinkling {
    background: transparent url(../images/twinkling.png) repeat top center;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
}
@keyframes move-twink-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -10000px 5000px;
    }
}

/* LEVELS AND START GAME */
#levels-container {
    z-index: 4;
    position: fixed;
    padding: 0;
    margin: 0;
    top: 10%;
    left: 10%;
}
#start-game-container{
    z-index: 4;
    position: fixed;
    margin: 0 auto;
    top: 70%;
    left: 40%;
}
#start,
#playAgain {
    animation-duration: 1.1s;
    animation-name: twinkle;
    transform: scale(0.3) rotate(-50deg);
}
#start:hover,
#playAgain:hover {
    animation-duration: 2.1s;
    animation-name: twinkle-hover;
    animation-iteration-count: 1;
}
.levels,
#start,
#playAgain {
    float: left;
    opacity: 0.8;
    margin: 50px 0;
    position: relative;
    color: white;
    width: 0px;
    height: 0px;
    border-right: 100px solid transparent;
    border-bottom: 78px solid white;
    border-left: 100px solid transparent;
    animation-iteration-count: infinite;  
}
#playAgain {
    position: absolute;
    z-index: 7;
    top: 60%;
    left: 42%;
    opacity: 1;
}
#playAgainBtn i{
    font-size: 48px;
}
.levels:before,
#start:before,
#playAgain:before {
    border-bottom: 80px solid white;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    position: absolute;
    height: 0;
    width: 0;
    top: -45px;
    left: -65px;
    display: block;
    content: '';
    transform: rotate(-35deg);
}
.levels:after,
#start:after,
#playAgain:after {
    position: absolute;
    display: block;
    color: red;
    top: 3px;
    left: -105px;
    width: 0px;
    height: 0px;
    border-right: 100px solid transparent;
    border-bottom: 70px solid white;
    border-left: 100px solid transparent;
    transform: rotate(-70deg);
    content: '';
}
.levels span{
    left: -20px;
    top: 5px;
    background: transparent;
    z-index: 5;
    position: fixed;
    font-size: 66px;
    color: #000;
}
#startGame,
#playAgainBtn {
    transform: rotate(35deg);
    left: -35px;
    top: 20px;
    outline: none;
    border: none;
    background: transparent;
    z-index: 5;
    position: fixed;
    font-size: 30px;
    color: #000;
}
.level-1 {
    margin-left: 4%;
    animation-duration: 1.4s;
    animation-name: twinkle;
    transform: scale(0.3);
}
.level-2 {
    margin-top: 10%;
    margin-left: 7%;
    animation-duration: 1.7s;
    animation-name: twinkle;
    transform: scale(0.2);
}
.level-3 {
    margin-top: -1.5%;
    margin-left: 5%;
    animation-duration: 2.1s;
    animation-name: twinkle;
    transform: scale(0.15);
}
.level-4 {
    margin-top: 5%;
    margin-left: 2.5%;
    animation-duration: 1.9s;
    animation-name: twinkle;
    transform: scale(0.3);
}
.level-5 {
    margin-top: 25%;
    margin-left: -69%;
    animation-duration: 1.3s;
    animation-name: twinkle;
    transform: scale(0.15);
}
.level-6 {
    margin-top: 2%;
    margin-left: 0.5%;
    animation-duration: 1.9s;
    animation-name: twinkle;
    transform: scale(0.25);
}
.level-7 {
    margin-top: 10%;
    animation-duration: 1.2s;
    animation-name: twinkle;
    transform: scale(0.25);
}
.level-1:hover, 
.level-2:hover,
.level-3:hover,
.level-4:hover,
.level-5:hover,
.level-6:hover,
.level-7:hover{
    animation-duration: 2.1s;
    animation-name: twinkle-hover;
    animation-iteration-count: 1;
}
@keyframes twinkle {
    20% {
    transform: scale(0.65);
        opacity: 0.5;
    }
}
@keyframes twinkle-hover {
    20% {
        transform: rotate(10deg);
        opacity: 1;
    }
}

/* GAME AREA */
#game {
    position: absolute;
    z-index: 2;
    margin: 1.5% 9%;
    text-align: center;
}
canvas {
    background: transparent;
    display: block;
    border-right: 0.1px solid rgba(255, 255, 255, 0.35);
    border-left: 0.1px solid rgba(255, 255, 255, 0.25);
}

/* GAME OVER MSGS */
.game-end-container{
    font-size: 68px;
    text-transform: uppercase;
    text-shadow: 4px 4px #444;
    text-align: center;
    color: #fff;
}
.game-end-container p{
    margin-bottom: 2px;
}
#lost{
    z-index: 7;
    position: absolute;
    top: 33%;
    left: 37%;
}
#won{
    z-index: 7;
    position: absolute;
    left: 27%;
    top: 18%;
}
.disable-css-transitions {
    transform: scale(0.8) !important;
    animation-play-state: paused !important;
}
.no-show{
    display: none;
}
.no-select {
    user-select: none; 
}
