
/* General rules */

html
{
    background-color: black;
    background-image: url("../img/TransparentLeft.png"),
                      url("../img/TransparentRight.png"),
                      url("../img/BackgroundLightLoop.png");
    background-position: left top, right top, center top;
    background-repeat: repeat-y, repeat-y, repeat;
    padding-top: 50px;
    text-align:center;
}

body
{
    width: 900px;
    margin: auto;
    color:white;
    text-shadow: 1px 1px #3d475c;
    font-family: Trebuchet MS,sans-serif;
    font-weight: bold;
}

.description
{
    margin-bottom: 4em;
}

.releasedate
{
    position:absolute;
    left: 1em;
    bottom: 10px;
    margin: 0;
}

.bannerhack
{
    position: relative;
    top: 10px;
}

h1
{
    background: url("../img/DpadLogo.png") no-repeat top;
    width: 413px;
    height: 104px;
    text-indent: -9999px;
    margin: 0 150px;
    /*margin: 0 auto;*/
    position:relative;
}

h1 a
{
    display: block;
    height: 100%;
    width: 100%;
}

h2
{
    margin-top: 0;
}

hr
{
    clear: both;
    background-repeat: no-repeat;
}

a
{
    text-decoration: none;
}

/* Specific sections */

ul#nav
{
    list-style: none;
    padding: 0;
    margin: 0;
    width: 889px;
}

ul#nav li
{
    display: block;
    float:left;
    margin: 0;
    padding: 0;
    position:relative;
    top: -20px;
}

ul#nav li a
{
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    text-indent: -9999px;
    transition: .2s;
}

#presslink
{
    width: 101px;
    height: 21px;
    left: 13px;
    /*left:100px*/
}


#aboutlink
{
    width: 70px;
    height: 21px;
    /*left:610px*/
    left: 515px;
}

/* PLUSHIES */

#plushie
{
    width: 152px;
    height: 157px;
    float:left;
    display:block;
    position:absolute;
    margin:0; padding:0;
    left: 560px;
    top: -114px;
    z-index: 1;
}

#plushie:hover
{
    animation-name: plush-anim;
    animation-duration: .6s;
}

@keyframes plush-anim
{
    0% { transform: rotateZ(-5deg); }
    25% { transform: scale(1.2) rotateZ(5deg); }
    50% { transform: rotateZ(-5deg); }
    75% { transform: rotateZ(4deg); }
    100% { transform: rotateZ(-2deg); }
}

/* END PLUSHIES */

#presslink a { background: url("../img/PressKitExample.png"); }
#aboutlink a { background: url("../img/AboutExample.png"); }
#presslink a:hover { background: url("../img/PressKitLightExample.png"); }
#aboutlink a:hover { background: url("../img/AboutLightExample.png"); }

#news
{
    clear: both;
    padding: 0;
    margin: -20px 5px 5px 5px;
    transition: none;
    top: 10px;
}

#news:hover
{
    top: 10px;
    box-shadow:none;
}

#news a
{
    display: block;
    padding: 0;
    margin: -20px 0 0 0;
    position: relative;
    height: 136px;
    left: 0;
    top: 0;
    right: 0;
}

hr
{
    background: url("../img/Separator.png");
    width: 889px;
    height: 22px;
    display: block;
    border: 0;
}

#owlboy
{
    width: 850px;
    border-radius: 5px 5px 0 0;
    background: url("../img/owlboybg2.png") center;
    margin-top: 20px;
    margin-bottom: 10px;
}

#owlboy:hover
{
    background: url("../img/owlboybg2.png") center;
}

#owlboy h2
{
    visibility: hidden;
}

#owlboy img
{
    top:40px;
    left: 20px;
}

#owlboy:hover img
{
    top: -25px;
}

#owlboy .description
{
    margin-top: 0;
    position: relative;
    top: 10px;
}

#votpane
{
    width: 850px;
    border-radius: 5px 5px 0 0;
    background: url("../img/VOT/votpane.png") center;
    margin-top: 20px;
    margin-bottom: 10px;
	height:150px;
}

#votpane:hover
{
    background: url("../img/VOT/votpane.png") center;
}

#votpane h2
{
    visibility: hidden;
}

/*#votpane img
{
    top:12px;
    left: 250px;
}*/

#votpane a
{
	top:12px;
    left: 250px;
}

#votpane:hover a
{
	top:6px;
}

/*#votpane:hover img
{
    top: 6px;
}*/

#votpane .description
{
    margin-top: 0;
    position: relative;
    top: 10px;
}


#owlboysprite
{
    position : absolute;
    width: 112px;
    height: 96px;
    display: none;
    background-image: url("../img/OldImages/otusRunning_112x96.png");
}

#smallergames
{
    display: flex;
    display: -webkit-box;
    /*display: -moz-box;*/
    display: -ms-flexbox;
    display: -webkit-flex;
    clear:both;
}

#savant, #vikings, #unknown
{
    float:left;
    margin-bottom: 10px;
}

#savant
{
    background: purple;
    background: url("../img/savantbg.png") 0 -150px;
}

#savant:hover
{
    /* TODO: Replace with image */
    background: -webkit-linear-gradient(rgba(0,0,0,0.4),
                                        rgba(0,0,0,0.4)) 0 -150px,
                url("../img/savantbg.png") -0px -150px;
}

#savant img
{
    top: 50px;
    left: 122px;
    /*top: -100px;
    left: -160px;*/
}

#savant:hover img
{
    top: -20px;
}

#savant .description
{
    position:relative;
    top: 30px;
}

#vikings
{
    background: url("../img/votbg2.png") right;
    margin-left: 10px;
    cursor: auto;
}

#vikings:hover
{
    background: -webkit-linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)) right, url("../img/votbg2.png") right;
}

#vikings img
{
    position: absolute;
    top: 70px;
    left: 92px;
}

#vikings:hover img
{
    top: 25px;
}

#vikings .description
{
    position:relative;
    top: 50px;
}

#unknown
{
    background: url("../img/OwlboyPane/owlboypane.png") right;
    margin-left: 10px;
    cursor: auto;
}

#unknown:hover
{
    background: -webkit-linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)) right, url("../img/OwlboyPane/owlboypane.png") right;
}

#unknown img
{
    position: absolute;
    top: 60px;
    left: 32px;
}

#unknown:hover img
{
    top: -6px;
}

#unknown .description
{
    position:relative;
    top: 24px;
}

#development
{
    clear: both;
    width: 889px;
    border-radius: 0 0 5px 5px;
    background: url("../img/DpadDevelopmentBlogBackground.png");
    height: 199px;
    padding: 0;
}

#development a
{
    position:relative;
    display: block;
    width: 294px;
    height: 199px;
    margin: 0 auto;
    top: 55px;
    transition: .2s;
}

#development:hover a
{
    top: 40px;
}

#development p
{
    /*opacity: 0;
    transition: .2s;*/
    position: absolute;
    top: 115px;
    right: 0;
    left: 0;
    text-align:center;
}

#development:hover p
{
    opacity: 1;
}

#links
{
    list-style: none;
    height: 81px;
    margin: 14px 5px 14px 5px;
    padding: 0;
    text-align: center;
}

#links li
{
    float:left;
    transition: .2s;
    position:relative;
    top: 0;
}

#links li a
{
    display: block;
    width: 170px;
    height: 81px;
}

#links li a img
{
    position:relative;
    transition: .2s;
}

#facebooklink a img { top: 10px; }
#twitterlink a img  { top: 13px; }
#youtubelink a img  { top: 17px; }
#emaillink a img    { top: 17px; }
#twitchlink a img   { top: 17px; }

/* If you change these values, you must also change the
   corresponding values in the index.js file, which have
   been hard-coded to check against these distances, or
   you will get bugs. I did this because I got tired of
   how JavaScript interfaces with CSS. */
#facebooklink:hover a img { top: 0px; }
#twitterlink:hover a img  { top: 3px; }
#youtubelink:hover a img  { top: 7px; }
#emaillink:hover a img    { top: 7px; }
#twitchlink:hover a img   { top: 7px; }

#facebooklink a { background: url("../img/FacebookBack.png"); }
#twitterlink a  { background: url("../img/TwitterBack.png"); }
#youtubelink a  { background: url("../img/YoutubeBack.png"); }
#emaillink a    { background: url("../img/MailBack.png"); }
#twitchlink a   { background: url("../img/TwitchBack.png"); }

#twitterlink, #youtubelink, #emaillink, #twitchlink
{
    margin: 0 0 0 10px;
}

#footer
{
    margin: auto auto 100px auto;
    clear:both;
    background: none;
    width: 700px;
    color: rgb(154, 153, 154);
    text-shadow: 0 2px 5px black;
}

#footer:hover
{
    box-shadow: none;
}

.emailsigil
{
    color: rgb(88, 88, 88);
}

.hiddenclear
{
    visibility:hidden;
    clear: both;
}
