body
{
    padding:5px 20px;
    font-size: xx-large;
    color: darkred;
    background-color: #dcb
}

button
{
    height: 40px;
    width:200px;
    font-size: x-large;
    box-shadow: 3px 3px gray;
    border-radius: 10px;
    margin:10px;
    z-index:3;
}

td
{
    width:60px;
    border:solid 1px black;
    font-size: 25px;
    background-color:rgba(0,0,0,0);
}

tr
{
    margin-left: 20px;
    margin-right:20px;
}

.card
{
    border:5px ridge lightgray;
    border-radius:5px;
    box-shadow: 3px 3px silver;
    margin:2px;
    float:left;
    width:150px;
    height:193px;
    background-size: contain;
}

.cube
{
    position:absolute;
    width:28px;
    height:28px;
    border:1px solid black;
}

.die
{
    width:80px;
    height:80px;
    background-size: contain;
    float:left;
    border: 2px solid red;
    box-shadow: 4px 4px darkred;
    margin:30px;
    display:none;
    border-radius: 5px;
    animation-name: roll;
    animation-duration: 1s;
}

.panel
{
    border:1px solid black;
    padding:2px;
    border-radius:5px;
    box-shadow: 3px 3px silver;
}

.time
{
    height: 40px;
    font-size: medium;
    box-shadow: 3px 3px gray;
    float:left;
    text-align: center;
    line-height: 40px;
    border:solid 1px black;
    margin:5px;
}

.times
{
    text-align:center;
}

.times td
{
    width:250px;
    border:1px solid black;
    height:40px;
}

.timeNotSelected
{
    color:#999;   
    background-color: rgba(240,240,240,0.8);
    font-size:16px;
}

.timeSelected
{
    color: darkolivegreen; 
    background-color:#efe;
    font-weight: bold;
}

.unit
{
    position:absolute;
    width:65px;
    height:16px;
    border:1px solid black;
}

#game
{
    display:grid;
    grid-gap: 5px;
    grid-template-columns: minmax(450px,1fr) 500px 500px minmax(450px,1fr);
    grid-template-rows: 60px 80px 100px 500px 185px 130px;
}

#logo
{
    grid-area: 1/1/2/2;
    justify-self:left;
    padding-left: 10px;
}

#buttons
{
    grid-area: 1/2/2/3;
}

#helpButtons
{
    grid-area: 1/2/2/3;
}

#time
{
    grid-area: 1/3/2/-1;
    justify-self: left;
}

#ACards
{
    grid-area: 3/1/4/2;
}

#FCards
{
    grid-area: 3/4/7/5;
}

#map
{
    grid-area: 3/2/6/4;
    background-image: url(map.png);
    background-size: cover;
    justify-self: stretch;
    align-self: stretch;
    transform-origin: center;
}

#ACasualties
{
    grid-area: 6/1/7/3;
    color: darkred;
    justify-self:right;
    align-self:center;
    text-align: center;
}

#FCasualties
{
    grid-area: 6/3/7/5;
    color: darkblue;
    justify-self:left;
    align-self:center;
    text-align: center;
}

#AMorale
{
    grid-area: 2/1/3/3;
    color: darkred;
    justify-self:right;
    align-self:top;
    text-align: center;
}

#FMorale
{
    grid-area: 2/3/3/5;
    color: darkblue;
    justify-self:left;
    align-self:top;
    text-align: center;
}

#Dice
{
    grid-area: 5/1/6/2;
    width:300px;
    justify-self:right;
}

#help
{
    padding:10px;
    height:80px;
    width:70px;
    background-color: lightgray;
    top:0px;
    left:300px;
    position:fixed;
    z-index: 4;
    border:2px ridge gray;
    border-radius:5px;
}

#rules,#operation
{
    font-size:x-large;
    margin:10px;
    cursor: pointer;
}

  @keyframes roll {
    12%  {transform:rotatey(90deg)}
    25%  {transform:rotatez(90deg)}
    37%  {transform:rotatey(180deg)}
    50%  {transform:rotatez(180deg)}
    62%  {transform:rotatey(270deg)}
    75%  {transform:rotatez(270deg)}
    87%  {transform:rotatey(360deg)}
    100%  {transform:rotatez(360deg)}
  }