html, body {
    font-family: calibri, arial;
    font-size: 12pt;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    color: white;
    box-sizing: border-box;
    background-color: black;
    /* background-image: url('./images/background/chocolate.jpg'); */
    background-repeat: no-repeat;
    background-size: cover; 
    animation-name: mostrar;
    animation-duration: 2s;
    animation-iteration-count: 1;
}

h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
}

#preload
{
    background-image: url('./images/background/creditos.jpg');
    background-image: url('./images/background/1.jpg');
    background-image: url('./images/background/2.jpg');
    background-image: url('./images/background/3.jpg');
    background-image: url('./images/background/4.jpg');
    background-image: url('./images/background/5.jpg');
    background-image: url('./images/background/6.jpg');
    background-image: url('./images/background/7.jpg');
    background-image: url('./images/background/8.jpg');
    background-image: url('./images/cartas/copas/1.jpg');
    background-image: url('./images/cartas/copas/2.jpg');
    background-image: url('./images/cartas/copas/3.jpg');
    background-image: url('./images/cartas/copas/4.jpg');
    background-image: url('./images/cartas/copas/5.jpg');
    background-image: url('./images/cartas/copas/6.jpg');
    background-image: url('./images/cartas/copas/7.jpg');
    background-image: url('./images/cartas/copas/8.jpg');
    background-image: url('./images/cartas/copas/9.jpg');
    background-image: url('./images/cartas/copas/10.jpg');
    background-image: url('./images/cartas/copas/11.jpg');
    background-image: url('./images/cartas/copas/12.jpg');
    background-image: url('./images/cartas/copas/13.jpg');
    background-image: url('./images/cartas/espadas/1.jpg');
    background-image: url('./images/cartas/espadas/2.jpg');
    background-image: url('./images/cartas/espadas/3.jpg');
    background-image: url('./images/cartas/espadas/4.jpg');
    background-image: url('./images/cartas/espadas/5.jpg');
    background-image: url('./images/cartas/espadas/6.jpg');
    background-image: url('./images/cartas/espadas/7.jpg');
    background-image: url('./images/cartas/espadas/8.jpg');
    background-image: url('./images/cartas/espadas/9.jpg');
    background-image: url('./images/cartas/espadas/10.jpg');
    background-image: url('./images/cartas/espadas/11.jpg');
    background-image: url('./images/cartas/espadas/12.jpg');
    background-image: url('./images/cartas/espadas/13.jpg');
    background-image: url('./images/cartas/ouros/1.jpg');
    background-image: url('./images/cartas/ouros/2.jpg');
    background-image: url('./images/cartas/ouros/3.jpg');
    background-image: url('./images/cartas/ouros/4.jpg');
    background-image: url('./images/cartas/ouros/5.jpg');
    background-image: url('./images/cartas/ouros/6.jpg');
    background-image: url('./images/cartas/ouros/7.jpg');
    background-image: url('./images/cartas/ouros/8.jpg');
    background-image: url('./images/cartas/ouros/9.jpg');
    background-image: url('./images/cartas/ouros/10.jpg');
    background-image: url('./images/cartas/ouros/11.jpg');
    background-image: url('./images/cartas/ouros/12.jpg');
    background-image: url('./images/cartas/ouros/13.jpg');
    background-image: url('./images/cartas/paus/1.jpg');
    background-image: url('./images/cartas/paus/2.jpg');
    background-image: url('./images/cartas/paus/3.jpg');
    background-image: url('./images/cartas/paus/4.jpg');
    background-image: url('./images/cartas/paus/5.jpg');
    background-image: url('./images/cartas/paus/6.jpg');
    background-image: url('./images/cartas/paus/7.jpg');
    background-image: url('./images/cartas/paus/8.jpg');
    background-image: url('./images/cartas/paus/9.jpg');
    background-image: url('./images/cartas/paus/10.jpg');
    background-image: url('./images/cartas/paus/11.jpg');
    background-image: url('./images/cartas/paus/12.jpg');
    background-image: url('./images/cartas/paus/13.jpg');
    background-image: url('./images/cartas/blue/1.jpg');
    background-image: url('./images/cartas/blue/2.jpg');
    background-image: url('./images/cartas/blue/3.jpg');
    background-image: url('./images/cartas/blue/4.jpg');
    background-image: url('./images/cartas/blue/5.jpg');
    background-image: url('./images/cartas/blue/6.jpg');
    background-image: url('./images/cartas/blue/7.jpg');
    background-image: url('./images/cartas/blue/8.jpg');
    background-image: url('./images/cartas/blue/9.jpg');
    background-image: url('./images/cartas/blue/10.jpg');
    background-image: url('./images/cartas/blue/11.jpg');
    background-image: url('./images/cartas/blue/12.jpg');
    background-image: url('./images/cartas/blue/13.jpg');
    background-image: url('./images/cartas/green/1.jpg');
    background-image: url('./images/cartas/green/2.jpg');
    background-image: url('./images/cartas/green/3.jpg');
    background-image: url('./images/cartas/green/4.jpg');
    background-image: url('./images/cartas/green/5.jpg');
    background-image: url('./images/cartas/green/6.jpg');
    background-image: url('./images/cartas/green/7.jpg');
    background-image: url('./images/cartas/green/8.jpg');
    background-image: url('./images/cartas/green/9.jpg');
    background-image: url('./images/cartas/green/10.jpg');
    background-image: url('./images/cartas/green/11.jpg');
    background-image: url('./images/cartas/green/12.jpg');
    background-image: url('./images/cartas/green/13.jpg');
    background-image: url('./images/cartas/orange/1.jpg');
    background-image: url('./images/cartas/orange/2.jpg');
    background-image: url('./images/cartas/orange/3.jpg');
    background-image: url('./images/cartas/orange/4.jpg');
    background-image: url('./images/cartas/orange/5.jpg');
    background-image: url('./images/cartas/orange/6.jpg');
    background-image: url('./images/cartas/orange/7.jpg');
    background-image: url('./images/cartas/orange/8.jpg');
    background-image: url('./images/cartas/orange/9.jpg');
    background-image: url('./images/cartas/orange/10.jpg');
    background-image: url('./images/cartas/orange/11.jpg');
    background-image: url('./images/cartas/orange/12.jpg');
    background-image: url('./images/cartas/orange/13.jpg');
    background-image: url('./images/cartas/red/1.jpg');
    background-image: url('./images/cartas/red/2.jpg');
    background-image: url('./images/cartas/red/3.jpg');
    background-image: url('./images/cartas/red/4.jpg');
    background-image: url('./images/cartas/red/5.jpg');
    background-image: url('./images/cartas/red/6.jpg');
    background-image: url('./images/cartas/red/7.jpg');
    background-image: url('./images/cartas/red/8.jpg');
    background-image: url('./images/cartas/red/9.jpg');
    background-image: url('./images/cartas/red/10.jpg');
    background-image: url('./images/cartas/red/11.jpg');
    background-image: url('./images/cartas/red/12.jpg');
    background-image: url('./images/cartas/red/13.jpg');
    width: 0px;
    height: 0px;
    display: none;
}

#base {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

#back {
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover; 
    animation-name: filter;
    animation-duration: 60s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-delay: 10s;
}

#header {
    width: 100%;
    height: 100px;
    /* background-color: lightgray; */
    box-sizing: border-box;
    overflow: hidden;
}

#footer {
    width: 100%;
    height: 100px;
    /* background-color: lightgray; */
    box-sizing: border-box;
}

#content {
    width: 100%;
    height: calc(100% - 200px);
    /* background-color: gray; */
    box-sizing: border-box;
    text-align: center;
    /* overflow: hidden; */
    position: relative;
}

#ipsLogo {
    box-sizing: border-box;
    height: 100%;
    width: 10%;
    background-image: url('./images/Logotipo.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    float: left;
    display: none;
}

.showOverflow {
    overflow-y: auto;
}

.hideOverflow {
    overflow: hidden;
}

#gameTitle {
    margin: 0px 20px;
    vertical-align: top;
    top: calc(60% - 1em);
    position: relative;
}

#gameClock {
    float: right;
    /* margin: 20px;
    vertical-align: bottom; */
    top: calc(60% - 1em);
    position: relative;
    margin: 0px;
    margin-right: 1%;
    padding: 0px;
}

#gameScore {
    float: right;
    /* margin: 20px;
    vertical-align: bottom; */
    top: calc(60% - 1em);
    position: relative;
    margin: 0px;
    margin-right: 20px;
    padding: 0px;
}

#anarchyImage {
    float: left;
    position: relative;
    display: inline-block;
    height: 100%;
}

.topMenuButton  {
    position: relative;
    display: inline-block;
    height: 50%;
    top: 25%;
    margin: 0px 10px;
    padding: 2px;
    border: gray solid 1px;
    cursor: pointer;
}
.topMenuButton:hover  {
    border: red solid 1px;
    background-color: rgba(255, 255, 0, 0.267);
}

.bottomMenuButton {
    position: relative;
    display: inline-block;
    height: 50%;
    top: 25%;
    margin: 0px 10px;
    padding: 2px;
    border: gray solid 1px;
    cursor: pointer;
}
.bottomMenuButton:hover  {
    border: red solid 1px;
    background-color: rgba(255, 255, 0, 0.267);
}
#gameScoreImage {
    float: right;
    position: relative;
    display: inline-block;
    height: 50%;
    top: 25%;
}

#gameClockImage {
    float: right;
    position: relative;
    display: inline-block;
    height: 50%;
    top: 25%;
}

#gameUndoImage {
    float: right;
    position: relative;
    display: inline-block;
    height: 50%;
    top: 25%;
}

#gamePlaysImage {
    float: right;
    position: relative;
    display: inline-block;
    height: 50%;
    top: 25%;
}

#gameDeckImage {
    float: right;
    position: relative;
    display: inline-block;
    height: 50%;
    top: 25%;
}

#gameUndos {
    float: right;
    margin-right: 20px;
    top: 25%;
}

#gamePlays {
    float: right;
    margin-right: 20px;
    top: 25%;
}

#deckSize {
    float: right;
    margin-right: 20px;
    top: 25%;
}

/* #userName {
    position: relative;
    margin: 0px;
    padding: 0px;
} */

.menuUserName {
    display: inline-block;
    position: relative;
    margin: 0px;
    padding: 0px;
}

.gameUserName {
    display: inline-block;
    top: calc(60% - 1em);
    position: relative;
    margin: 0px;
    padding: 0px;
}

.freeCard {
    position: absolute;
    height: 150px;
    width: 5%;
    box-sizing: border-box;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

.hidden {
    display: none;
}

.inline {    
    display: inline;
}

.inlineBlock {
    display: inline-block;
}

.center {
    text-align: center;
}

.gameColumn {
    /* display: inline-block;
    width: calc((100% - 80px) / 8);
    height: calc(100% - 10px);
    margin: 5px;
    background-color: transparent;
    text-align: center;
    box-sizing: border-box;
    border: solid #FFFFFF30 2px; */

    display: inline-block;
    width: 10%;
    height: calc(100% - 10px);
    /* margin: 5px; */
    background-color: transparent;
    text-align: center;
    box-sizing: border-box;
    /* border: solid #FFFFFF30 2px; */
}

/* .gameColumn div:nth-child(1) {
    top: 0px;
} */

.gameCard {
    /* animation-name: dealFromCorner;
    animation-duration: 1s;
    animation-iteration-count: 1; */
    position: relative;
    height: 5%;
    width: 60%;
    background-color: transparent;
    box-sizing: border-box;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    margin: 0 auto;
    cursor: pointer;
    /* top: -50px; */
}

.gameCard:last-child {
    animation-name: mostrar;
    animation-duration: 50ms;
    animation-iteration-count: 1;
    position: relative;
    height: 150px;
    background-color: transparent;
    box-sizing: border-box;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
    margin: 0 auto;
}

.gameCardMenu {
    animation-name: vertical2;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    position: relative;
    height: 90%;
    background-color: transparent;
    box-sizing: border-box;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: top;
    background-position-x: left;
    top: 20%;
    left: 5%;
    opacity: 0.1;
}

#deck {
    position: relative;
    height: 80%;
    background-color: transparent;
    box-sizing: border-box;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 20px;
    background-position: right;
    float: right;
    width: 50px;
    cursor: pointer;
    /* margin: 0 auto; */
    /* top: -50px; */
}

#gameCanvas {
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: calc(100% - 200px);
}

#gameAudio {
    display: inline-block;
    box-sizing: border-box;
    width: 30%;
    height: 100%;
    border: rgba(255, 255, 255, 0.267) solid 10px;
    position: relative;
    float: left;
    margin-left: 1%;
}

#gameAudio input {
    box-sizing: border-box;
    height: 20%;
    width: 100%;
    margin: 0px;
}

#gameAudio p {
    box-sizing: border-box;
    display: block;
    width: 96%;
    height: 20%;
    margin: 2%;
    background-color: rgba(255, 255, 0, 0.267);
    font-size: 36px;
    font-weight: bold;
}

#resetStorageButton {
    box-sizing: border-box;
    display: block;
    width: 96%;
    height: 20%;
    margin: 2%;
    background-color: rgba(255, 255, 0, 0.267);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    bottom: 0px;
    position: absolute;
}

#resetStorageButton:hover {
    box-sizing: border-box;
    background-color: rgba(255, 0, 0, 0.267);
    border: #F00 solid 2px;
    height: calc(20% + 2px);
}

#resetStorageButton p {
    background-color: transparent;
    height: auto;
    position: absolute;
    display: block;
    box-sizing: border-box;
    top: 25%;
}

#gameType {
    display: inline-block;
    box-sizing: border-box;
    width: 30%;
    height: 100%;
    border: rgba(255, 255, 255, 0.267) solid 10px;
    position: relative;
    float: left;   
}

#gameType div {
    display: block;
    box-sizing: border-box;
    width: 96%;
    height: 20%;
    /* border: white solid 2px; */
    margin: 2%;
    background-color: rgba(255, 255, 0, 0.267);
    font-size: 36px;
    cursor: pointer;
    position: relative;
}

#gameType div:hover {
    background-color: rgba(255, 0, 0, 0.267);
    border: #F00 solid 2px;
}

#gameTheme {
    display: inline-block;
    box-sizing: border-box;
    width: 30%;
    height: 100%;
    border: rgba(255, 255, 255, 0.267) solid 10px;
    position: relative;
    float: left;
    margin-left: 1%;
}

#gameTheme div {
    display: block;
    box-sizing: border-box;
    width: 96%;
    height: 20%;
    /* border: white solid 2px; */
    margin: 2%;
    background-color: rgba(255, 255, 0, 0.267);   
    font-size: 36px;
    cursor: pointer;
    position: relative;
}

#gameTheme div:hover {
    background-color: rgba(255, 0, 0, 0.267);
    border: #F00 solid 2px;
}

.optionSelected {
    border: rgba(0, 255, 0, 0.8) solid 2px;
}

/* .gameCard:nth-child(0) {
    top: -70px;
} */

.start {
    position: fixed;
    top: 35%;
    left: 40%;
    background-color: rgba(173, 216, 230, 0.267);
    color: white;
    height: 20%;
    width: 20%;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
}

.start:hover { 
    background-color: rgba(233, 192, 56, 0.533);
}

input {
    background-color: rgba(173, 216, 230, 0.267);
    color: white;
    height: calc(100% - 20px);
    margin: 10px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
}

input:hover { 
    background-color: rgba(67, 188, 228, 0.267);
}

#header input {
    background-color: rgba(173, 216, 230, 0.267);
    color: white;
    height: 50%;
    margin: 10px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    vertical-align: text-top;
    position: relative;
}

#header input:hover { 
    background-color: rgba(67, 188, 228, 0.267);
}

#footer h2 { 
    position: relative;
}

#footer input { 
    position: relative;
}

#footer input:hover { 
    background-color: rgba(67, 188, 228, 0.267);
}

table {
    width: 100%;
}

table tr {
    height: 8%;
}

table td {
    width: 13%;
}

table td:last-child {
    width: 15%;
}

#keyboard {
    /* border: #F00 solid 2px; */
    margin: 0 auto;
    width: 80%;
    height: 90%;
    box-sizing: border-box;
    position: relative;
    top: 9%;
}

.key {
    display: inline-block;
    width: 12%;
    height: 12%;
    padding: 2px;
    margin: 1% 2%;
    margin-bottom: 0px;
    vertical-align: middle;
    border: white solid 2px;
    background-color: rgba(255, 255, 0, 0.267);
    font-size: 2em;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.key:hover {
    border: red solid 2px;
    background-color: rgba(255, 0, 0, 0.267);
}

.keyAnim1 {
    animation-name: moveKey;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.keyAnim2 {
    animation-name: moveKey;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    
}


/* footer anim */
#animacao {
    box-sizing: border-box;
    display: block;
    background-color: #DDD;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
} 
#animated {
    animation-name: mover;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    box-sizing: border-box;
    width: 2%;
    height: 10%;
    background-color: #FF0;
    border: 2px solid #AAA;
    position: relative;
} 

.animated {
    animation-name: mover;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    box-sizing: border-box;
    width: 2%;
    height: 10%;
    background-color: #FF0;
    border: 2px solid #AAA;
    position: relative;
} 

#geoInfo {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    font-weight: bold;
    animation-name: mostrar;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

#geoMap {
    box-sizing: border-box;
    width: 100%;
}

.highScore {
    box-sizing: border-box;
    width: 70%;
    border: 2px solid #AAA;
    margin: 1%;
    position: relative;
} 

.animatedHighScore1 {
    animation-name: moveHighScore;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
} 

.animatedHighScore2 {
    animation-name: moveHighScore;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
} 

.animatedKey {
    animation-name: key;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.animatedStart {
    animation-name: vertical;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.animatedOption1 {
    animation-name: option;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.animatedOption2 {
    animation-name: option;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.animatedOption3 {
    animation-name: option;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes esconder {
    from {
        opacity: 1.0;
    }
    to {
        opacity: 0.0;
    }
} 

@keyframes mostrar {
    from {
        opacity: 0.0;
    }
    to {
        opacity: 1.0;
    }
} 

@keyframes dealFromCorner {
    from {
        position: fixed;
        height: 150px;
        left: 100%;
        top: 100%;
        background-color: transparent;
        box-sizing: border-box;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top;
    }
    to {
        position: fixed;
        height: 150px;
        left: 50%;
        top: 50%;
        background-color: transparent;
        box-sizing: border-box;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top;
    }
}

@keyframes mover {
    from {
        position: relative;
        background-color: #F00;
        left: 0px;
    }
    to {
        position: relative;
        background-color: #FF0;
        left: 98%;
    }
} 

@keyframes moveKey {
    from {
        position: relative;
        background-color: rgba(255, 0, 0, 0.267);
        left: -5%;
    }
    to {
        position: relative;
        background-color: rgba(255, 255, 0, 0.267);
        left: 5%;
    }
} 

@keyframes moveHighScore {
    from {
        position: relative;
        background-color: rgba(255, 0, 0, 0.267);
        left: 0%;
    }
    to {
        position: relative;
        background-color: rgba(255, 255, 0, 0.267);
        left: 25%;
    }
} 

@keyframes moveTitle {
    from {
        position: relative;
        left: 0%;
    }
    to {
        position: relative;
        left: 50%;
    }
}

@keyframes vertical {
    0% {
        top: 70%;
        width: 5%;
        left: 47%;
        font-size: 20%;
    }
    100% {
        top: 40%;
        width: 80%;
        left: 10%;
        font-size: 500%;
    }
}

@keyframes vertical2 {
    from {
        top: 100%;
    }
    to {
        top: -90%;
    }
}

@keyframes option {
    from {
        top: 5%;
    }
    to {
        top: 35%;
    }
}
@keyframes filter {
    0% {
    -webkit-filter:  blur(0px);
    filter: blur(0px);
    background-position-x: left;
    }
    25% {
        -webkit-filter: blur(20px);
        filter: blur(20px);
    }
    50% {
        -webkit-filter:  blur(0px);
        filter: blur(0px);
        background-position-x: center;
    }
    75% {
        -webkit-filter:  grayscale(0%);
        filter: grayscale(0%);
    }
    100% {
        -webkit-filter:  grayscale(100%);
        filter: grayscale(100%);
        background-position-x: right;
    }
} 

/* old */
#messageArea {
    background-color: lightblue;
    width: 600px;
}

#resultArea {
    border: 1px solid blue;
    background-color: rgb(255, 136, 0);
    padding: 0px 20px 20px 20px;
    width: 400px;
    float: right;
}

label {
    width: 150px;
    float: left;
}