/**** YUI 2 Reset CSS ****/

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
fieldset,img {
border:0;
}
address,caption,cite,code,dfn,em,strong,th,var {
font-style:normal;
font-weight:normal;
}
ol,ul {
list-style:none;
}
caption,th {
text-align:left;
}
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:normal;
}
q:before,q:after {
content:'';
}
abbr,acronym { border:0;
}


/*** Framework ***/

/* consistent box model */

div, textarea, td, input[type="text"], input[type="password"]
{
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
}

div
{
   position: relative;
}

td
{
   /* td should be position: fixed, or weird things happen with borders */
   vertical-align: top;
}

*:focus {outline: none;}

textarea { line-height: 150%; }

li {
list-style-position:inside;
}


@font-face {
  font-family: "open sans";
  font-weight: 900;
  src: url("OpenSans-ExtraBold.ttf");

}




/*** Game ***/


body {
    background-color: #2f603b;
    color: #fff;
    font-family: "open sans";
}


.logo, .explode {
    position: absolute;
    width: 242px;
    left: 264px;
    top: 80px;
    z-index: 10;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
}

.splash-sponsors {
    position: absolute;
    width: 100%;
    left: 0px;
    top: 104px;
    z-index: 10;
}

.explode {
    display: none;
    scale: 1;
    z-index: 9;
}

.game-container {

    margin: 0 auto;
    width: 768px;
    background: #5d8d67;
    border-radius: 0px;
    display: none;

    user-select: none;
    cursor: default;
}

.chrome {
    background-color: #03071E;
}


.scanlines {
    background-image: url(scanlines.png);
    image-rendering: pixelated;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 0;
}

.inner-shadow {
    border: solid 2px rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 1;
}

/* score board */

.scoreboard {
    height: 60px;
    border-radius: 0;
    box-shadow: 0 2px 2px rgba(0,0,0,0.25);
    z-index: 1;
    line-height: 58px;
    overflow: hidden;
}

.clock {
    position: absolute;
    text-align: center;
    width: 250px;
    left: 259px;
    font-size: 32px;
    z-index: 2;
    height: 100%;
    background: linear-gradient(to right,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 32%,rgba(0,0,0,1) 70%,rgba(0,0,0,0) 100%);
}

.score {
    position: absolute;
    text-transform: uppercase;
    height: 100%;
    width: 330px;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}

.score .team-name {
    font-size: 22px;
    top: -5px;
    position: relative;
    z-index: 2;
    transform: scale(1,1.1);
    display: inline-block;
}

.score-left .team-name {
    color: #fff;
}

.score-right .team-name {
    color: #fff;
}

.score-left {
background: linear-gradient(to bottom,  rgba(3,70,165,1) 0%,rgba(0,8,81,1) 100%);
left: 0;
padding-left: 32px;
}

.score-right {
    background: linear-gradient(to bottom,  rgba(169,3,41,1) 0%,rgba(68,0,22,1) 100%);


right: 0;
padding-right: 32px;
text-align: right;

}

.score .scanlines {
    opacity: 0.2;
}

.team-score {
    font-size: 36px;
    color: #fff;
    z-index: 2;
    position: relative;
}

.score-left .team-score {
    margin-right: 12px;
}

.score-right .team-score {
    margin-left: 12px;
}

.yard-arrow {
    font-size: 70%;
    position: relative;
    top: -2px;
}

/* field */

.field-container {
    height: 256px;
    background-image: url('field.webp');
    background-size: 100% auto;
    overflow: hidden;
    image-rendering: pixelated;
}

.field-container.fade {
    opacity: 0.7;
}

.team-endzone {
    font-size: 28px;
    position: absolute;
    width: 224px;
    text-align: center;
    letter-spacing: -1px;
    text-transform: uppercase;
    top: 42%;
    color: #9ed8a9;
    opacity: 0.5;
    font-style: italic;
}

.team-endzone.team0 {
    transform: rotate(-90deg) scale(1.1,1.5);
    left: -83px;
}

.team-endzone.team1 {
    transform: rotate(90deg) scale(1.1,1.5);
    right: -83px;
}

.down-marker {
    position: absolute;
    height: 100%;
    border-left: solid 1.5px rgba(255,255,0,0.5);
    width: 0px;
    overflow: hidden;
    display: none;
}

.players {
    position: absolute;
    left: 0;
    top: 0;
}

.sprite {
    height: 18px;
    width: 18px;
    overflow: hidden;
    background-image: url(sprite.png);
    background-size: 198px 18px;
    background-position: 0 0;
    position: absolute;
    z-index: 1;
    image-rendering: pixelated;
    xfilter: drop-shadow(0 0 2px rgba(255,255,255,0.2));
}
.good-team {
    xfilter: drop-shadow(0 0 2px rgba(0,0,0, 0.3) );
}

.sprite.dead {
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.9));
    scale: 1.05;
}

.sprite.player.catch {
    z-index: 10;
}


.cheerleaders {
    position: absolute;
    bottom: 43px;
    left: 286px;
    height: 22px;
    width: 198px;
    overflow: hidden;
    background-image: url(cheerleaders.png);
    background-size: 100% 44px;
    background-position: 0 0;
    position: absolute;
    z-index: 1;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.2));
    display: none;
}

.cheerleaders.frame2 {
    background-position: 0 -22px;
}

.endscreen {
    display: none;
    position: absolute;
    z-index: 10;
    image-rendering: pixelated;
}

.endscreen.win {
    top: 83px;
    left: 91px;
    width: 580px;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.3));
}

.endscreen.lose {
    top: 60px;
    left: 0;
    width: 100%;
}

.ref {
    height: 18px;
    width: 18px;
    overflow: hidden;
    background-image: url(sprite.png);
    background-size: 198px 18px;
    background-position: -108px 0;
    position: absolute;
    bottom: 40px;
    z-index: 2;
    image-rendering: pixelated;
    top: 300px;
    transition: top 750ms;
    transition-timing-function: cubic-bezier(0.455, 0.030, 0.515, 0.955); /* easeInOutQuad */
    filter: drop-shadow(0 0 6px rgba(62, 155, 81, 0.8));
}

.ref.flag {
    background-position: -126px 0;
}


.singer {
    display: none;
    height: 24px;
    width: 24px;
    overflow: hidden;
    background-image: url(singer.png);
    background-size: 100%;
    position: absolute;
    z-index: 2;
    image-rendering: pixelated;
    top: 120px;
    left: 372px;
    filter: drop-shadow(0 0 6px rgba(62, 155, 81, 0.8));
}



.ball {
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.5) );
    z-index: 100;
}

@keyframes spin  {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ball.kicked {
    filter: none;
    animation: spin 0.3s linear infinite;
    background-position: -162px 0 !important;
}

.ball-shadow {
    position: absolute;
    width: 6px;
    height: 3px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    z-index: 99;
    display: none;
}

.sprite.player {
    z-index: 2;
    transition: left 1100ms, top 900ms;
    transition-timing-function: cubic-bezier(0.455, 0.030, 0.515, 0.955); /* easeInOutQuad */
}

.sprites.longplay .sprite.player {
    transition: left 1300ms, top 900ms;
}

body.sim *{
    transition: none !important;
}

/* messages */

.output {
    height: 64px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 -2px 2px rgba(0,0,0,0.25);
    background: linear-gradient(to right,  rgba(29,0,43,1) 0%,rgba(77,2,117,1) 35%,rgba(77,2,117,1) 65%,rgba(29,0,43,1) 100%);
}

.output .scanlines {
    opacity: 0.4;
}

.output-message {
    font-size: 24px;
    font-style: italic;
    margin-top: 14px;
    position: absolute;
    text-align: center;
    width: 100%;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.1);
}

.pre-sponsor {
    font-size: 65%;
    margin-right: 6px;
    margin-left: -20px;
}


/* panel */

.panel {
    height: 192px;
    border-top: 0;
    padding-top: 16px;
    border-radius: 0 ;
    background-color: #ccd;
    overflow: hidden;
    background: #ccd;
    background: linear-gradient(90deg,rgba(166, 166, 186, 1) 0%, rgba(204, 204, 221, 1) 30%, rgba(204, 204, 221, 1) 70%, rgba(166, 166, 186, 1) 100%);
}

.panel .scanlines {
    opacity: 0.1;
}


.play-menu {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 150px;
}

.play-option {
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    width: 400px;
    background-color: #dde;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    padding: 10px 30px;
    cursor: pointer;
    margin: 0 auto;
    color: #445;
    text-shadow: 1px 1px 0px rgba(255,255,255,1.0);
    margin: 2px auto;
    box-shadow: 0px 2px 2px rgba(0,0,0,0.25);
    position: relative;

}

.play-options {
    margin: 0 auto;
    filter: drop-shadow(0 0 16px rgba(0,0,0,0.1));
}

.play-option * {
    pointer-events: none;
}

.play-option:hover {
    background-color: #f6f6ff;
    color: #445;
}

.label {
    display: block;
}

.hint {
    display: block;
    font-size: 15px;
    display: none;
    margin-top: 2px;
    color: #86869f;
    font-style: italic;
}

.hint.bold-hint {
    font-style: normal;
    font-size: 85%;
}


.play-option.with-hint {
    xtext-align: left;
    xwidth: 450px;
}

.play-option.reroll {
    text-align: center;
}

.play-option.with-hint .hint {
    display: block;
    xleft: 300px;
}

.play-option.with-hint .hint {
    xdisplay: inline-block;
    xleft: 300px;
}

.play-option.with-hint.long-hint .hint {
    xleft: 250px;
}


.stats {
    display: none;
    position: absolute;
    top: 404px;
    left: 61px;
    background-color: rgba(255,255,255,0.8);
    padding: 16px 32px;
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(0,0,0,0.1);
}

.stat {
    color: #4965a7;
    text-shadow: 0px 0px 16px rgb(255, 255, 255);
    font-size: 20px;
    position: relative;
    width: 500px;
}

.stats-col {

    display: inline-block;
    vertical-align: top;
}

.col-left {
    width: 300px;
}

.col-right {
    width: 280px;
}

.stat-num {
    position: absolute;
    left: 180px;
    color: #d45473;
}

.col-right .stat-num {
    left: 100px;
}

.star-stat-skill {
    color: #405d93;
}

.star-stat-health {
    color: #bb4242;
}

.stat-star-name {
    padding-bottom: 8px;
    border-bottom: solid 2px #a5b1cc;
    margin-bottom: 8px;
    width: 100%;
    white-space: nowrap;
}

.stat-goldstar {
    display: inline-block;
    height: 20px;
    width: 20px;
    background: url(star.png);
    background-size: 100%;
    position: relative;
    top: 1.5px;
    left: 4px;
}

.explode-piece {
    /*border: solid 2px #777;
    border-width: 0 0 3px 3px;*/
    filter: drop-shadow(2px 2px 0 #777);
}


