/*CSS Copyright 2014 Micheal Kok */

/*Primary Stuff*/
* {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: -moz-none;
    -o-user-select: none;
    user-select: none;
}

body, html
{
    overflow-x:hidden;
    margin: 0px;
    padding:0px;
}


#container
{
    width: 800px;
    height: 600px;
    position: relative;
    margin-left: auto;
    margin-right: auto;

}

#game
{
    border: 2px solid gold;
    position: absolute;
    display: none;
}


#copyright
{
text-align: center;
width: 300px;
margin-right: auto;
margin-left: auto;
}

#debug
{
    position: fixed;
    left: 610px;
    width: 300px;
    
}


/*Animations*/
.colorCycle { 
animation-name: homeCycle;
animation-duration:6s;
animation-direction:alternate;
animation-iteration-count:infinite;
animation-timing-function: linear;

-webkit-animation-name: homeCycle;
-webkit-animation-duration:6s;
-webkit-animation-direction:alternate;
-webkit-animation-iteration-count:infinite; }

.colorCycleShort { 
animation-name: homeCycle;
animation-duration:2s;
animation-direction:alternate;
animation-iteration-count:infinite;
animation-timing-function:linear;


-webkit-animation-name: homeCycle;
-webkit-animation-duration:6s;
-webkit-animation-direction:alternate;
-webkit-animation-iteration-count:infinite; }

.zoomInClass
{
    animation-name: zoomIn;
    animation-duration: 333ms;
    animation-iteration-count: 1;
    
    -webkit-animation-name: zoomIn;
    -webkit-animation-duration: 333ms;
    -webkit-animation-iteration-count: 1;
}

.zoomOutClass
{
    animation-name: zoomOut;
    animation-duration: 333ms;
    animation-iteration-count: 1;
    transform: scale(.1, .1);
    
    -webkit-animation-name: zoomOut;
    -webkit-animation-duration: 333ms;
    -webkit-animation-iteration-count: 1;
    -webkit-transform: scale(.1, .1);
}

@keyframes homeCycle
{
0% {text-shadow:
    -2px -2px 2px red,
    2px -2px 2px red,
    -2px 2px 2px red,
    2px 2px 2px red;}
25% {text-shadow:
    -2px -2px 2px yellow,
    2px -2px 2px yellow,
    -2px 2px 2px yellow,
    2px 2px 2px yellow;}
50% {text-shadow:
    -2px -2px 2px green,
    2px -2px 2px green,
    -2px 2px 2px green,
    2px 2px 2px green;}
75% {text-shadow:
    -2px -2px 2px blue,
    2px -2px 2px blue,
    -2px 2px 2px blue,
    2px 2px 2px blue;}
}

@-webkit-keyframes homeCycle
{
0% {text-shadow:
    -2px -2px 2px red,
    2px -2px 2px red,
    -2px 2px 2px red,
    2px 2px 2px red;}
25% {text-shadow:
    -2px -2px 2px yellow,
    2px -2px 2px yellow,
    -2px 2px 2px yellow,
    2px 2px 2px yellow;}
50% {text-shadow:
    -2px -2px 2px green,
    2px -2px 2px green,
    -2px 2px 2px green,
    2px 2px 2px green;}
75% {text-shadow:
    -2px -2px 2px blue,
    2px -2px 2px blue,
    -2px 2px 2px blue,
    2px 2px 2px blue;}
} 


@keyframes nhsCycle
{
    0% { color: red; }
    33% { color: blue;}
    66% { color: green; }
    100% { color: purple; }
}

@keyframes zoomIn
{
    0%   { transform: scale(.1,.1); }
    100% {  transform: scale(1, 1); }
}

@keyframes zoomOut
{
    0%   { transform: scale(1,1); }
    100% {  transform: scale(.1, .1); }
}

/*Menus */

#menu1
{
    width: 750px;
    height: 550px;
    position: absolute;
    top: 25px;
    left: 25px;
    border: 4px solid gold;
    border-radius:25px;
    box-shadow: 10px 10px 5px #888888;
}

#menu2
{
    width: 750px;
    height: 550px;
    position: absolute;
    top: 25px;
    left: 25px;
    border: 4px solid gold;
    border-radius:25px;
    box-shadow: 10px 10px 5px #888888;
    display: none;
}

#menurules
{
    width: 750px;
    height: 550px;
    position: absolute;
    top: 25px;
    left: 25px;
    border: 4px solid gold;
    border-radius:25px;
    box-shadow: 10px 10px 5px #888888;
    display: none;
}

#therules
{
    width: 640px;
    height: 315px;
    position: absolute;
    left: 55px;
    top: 125px;
    border: 1px solid gold;
    border-radius:15px;
    padding-left: 8px;
    text-align: center;

}

#therules p
{
     font-family: Verdana, Geneva, sans-serif;
     font-weight: bold;
     font-size:12px;
     margin-top:10px;
     margin-bottom:0px;
}

#therules ul
{
    margin-top: 0px;
    margin-bottom: 0px;
    padding:0px;
    list-style-type: none;
}

#therules li
{
    font-family: Verdana, Geneva, sans-serif;
    font-size: 11px;
}

#rulesback
{
    width: 200px;
    top: 455px;
    left: 275px;
}

.title
{
    margin-top: 40px;
    color: black;
    text-shadow:
    -2px -2px 2px red,
    2px -2px 2px red,
    -2px 2px 2px red,
    2px 2px 2px red;
    font-size: 60px;
    font-weight: bold;
    font-family: arial;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 350px;
}


#options
{
    margin-top: 40px;
    width: 500px;
    margin-left: auto;
    margin-right: auto;
}


.option
{
    font-family: Verdana, Geneva, sans-serif;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    font-variant:small-caps;
    
    border: 2px solid gold;
    border-radius: 10px;
    width: 100px;
    height: 50px;
    text-align: center;
    box-shadow: 4px 4px 4px #888888;
    padding-top: 25px;
    position: absolute;
    text-shadow:
    -1px -1px 2px red,
    1px -1px 2px red,
    -1px 1px 2px red,
    1px 1px 2px red;
}

/*Main screen buttons*/

#rules
{
    left: 150px;
    top: 350px;
}

#timed
{
    left: 335px;
    top: 220px;
}

#puzzle
{
    left: 500px;
    top: 350px;
}

#clicktostart
{
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    margin-top: 100px;
    box-shadow: 4px 4px 4px #888888;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

/*Pause screen */

#pausegame
{
    width: 700px;
    height: 300px;
    position: absolute;
    left: 50px;
    top: 150px;
    background: #CCCCFF;
    border: 4px solid blue;
    border-radius: 20px;
    box-shadow: 4px 4px 4px #888888;
    display: none;
    z-index: 100000;
}

#pausegametop
{
    position: absolute;
    text-align: center;
    left: 170px;
    width: 360px;
    height: 60px;
    top: 10px;
    border: 0px solid black;
    border-radius: 25px;
    background:  #FFFACD;
    color: green;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 50px;
    font-weight: bold;
    font-variant:small-caps;
}

#pausegamebot
{

}

#pausetomenu
{
    width: 200px;
    top: 220px;
    left: 135px;
    background: white;
    height: 40px;
    padding-top: 15px;
}

#pausecontinue
{
    width: 200px;
    top: 220px;
    left: 355px;
    background: white;
    height: 40px;
    padding-top: 15px;
}

/* Endgame screen */

#endgame
{
    width: 700px;
    height: 300px;
    position: absolute;
    left: 50px;
    top: 150px;
    background: #CCCCFF;
    border: 4px solid blue;
    border-radius: 20px;
    box-shadow: 4px 4px 4px #888888;
    display: none;
    z-index: 100000;
}

#endgame table
{
    width: 310px;
}   

#endgametop
{
    position: absolute;
    text-align: center;
    left: 170px;
    width: 360px;
    height: 60px;
    top: 10px;
    border: 0px solid black;
    border-radius: 25px;
    background:  #FFFACD;
    color: red;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 50px;
    font-weight: bold;
    font-variant:small-caps;
}

.egtr
{
    text-align: right;
    
}

.egtl
{
    text-align: left;
    width: 170px;
}

.nhs
{
    /*fancy decorations here*/
    font-size: 17px;
    color: red;
    padding-top: 8px;
}

.nhsanim
{
    animation-name: nhsCycle;
    animation-duration:1s;
    animation-direction:alternate;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}


#endgameright
{
    left: 356px;
    top: 80px;
    width: 316px;
    position: absolute;
    background:  #FFFACD;
    border: 2px solid #D2B48C;
    border-radius: 10px;
    height:120px;
    font-size: 26px;
    color: GoldenRod ;
    font-variant: small-caps;
}

#endgameleft
{
    left: 20px;
    top: 80px;
    width: 316px;
    background:  #FFFACD;
    position: absolute;
    border: 2px solid #D2B48C;
    border-radius: 10px;
    height: 120px;
    
    font-size: 26px;
    color: GoldenRod ;
    font-variant: small-caps;
    
}

#endgamebot
{
    
}

#endbacktomenu
{
    width: 200px;
    top: 220px;
    left: 135px;
    background: white;
    height: 40px;
     padding-top: 15px;
}

#endtryagain
{
    width: 200px;
    top: 220px;
    left: 355px;
    background: white;
    height: 40px;
     padding-top: 15px;
}

/*Score box on the right*/

#horzscorebox
{
    border: 2px solid gold;
    width: 230px;
    height: 540px;
    position: absolute;
    left: 555px;
    top: 30px;
    display: none;
}

#scoreh
{
    width: 230px;
    font-size: 32px;
    text-align: center;
    position: absolute;
    top: 20px;
    
}

#timer
{
    width: 230px;
    font-size: 42px;
    text-align: center;
    position: absolute;
    top: 140px;
    display: hidden;
}   

#movesbox
{
    width: 230px;
    font-size: 32px;
    text-align: center;
    position: absolute;
    top: 140px;
    display: none;
}

#movesremaining
{
    font-size: 50px;
    display: inline-block;
    width: 230px;
    text-align: center;
}

#comboh
{
    
    width: 230px;
    font-size: 24px;
    text-align: center;
    position: absolute;
    top: 60px;
}

#menuingame
{
    width: 150px;
    position: absolute;
    top: 400px;
    left: 40px;
}

/*Game item classes*/

.scoreAnimation
{
    position: absolute;
    font-size: 50px;
    font-family: arial;
    color: black;
    opacity: 0;
    text-shadow:
    -2px -2px 2px gold,
    2px -2px 2px gold,
    -2px 2px 2px gold,
    2px 2px 2px gold; 
    z-index: 10000;
}

.places
{
    position: absolute;
    z-index: 10;
}

.pieces
{

    border: 2px solid black;
    position: absolute;
    font-size: 20px;
    background: white;
    pointer-events: none;
    z-index: 100;
}

.removed
{
    width: 30px;
    height: 30px;
    border: 2px solid black;
    position: fixed;
    top: 8px;
    left: 8px;
    font-size: 20px;
    background: white;
    z-index:1000;
}

.highlightvalid
{
    background: #AAFFAA;
}

.highlightinvalid
{
    background: #FFAAAA;
}
