:root {
    --cell-width: 4.7vw;
    --cell-height: 4.7vw;
    --cell-font: 2em;
    --cell-color:#FFFFFF;
    --cell-border-color:#888888;
    --cell-font-color:#000000;
    --letterbox-left: 1%;
    --word-desc-background:transparent;
    --word-desc-display:block;
    --controls-background: #009301;
    --controls-background-dark: #005a01;
    --field-height : 75%;
    --used-letter-bg: #FCFF8D;
    --used-letter-font-color: #000000;
    --disabled-letter-bg: #B7B7B8;
    --disabled-letter-font-color: #000000;
}

@font-face {
    font-family: Futura;
    src: url("/assets/fonts/futura.otf") format("opentype");
}

body{
    background-color: #DEDEDE;
    font-family: Sans-Serif;
    margin:0;
    padding:0;
    height:100%;
    overflow-y:hidden;
}

#main-container{
    background-color: #FFF;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
}

.game {
    height:100%;
    width:70%;
    position:relative;
    float:left;
    background-color:white;
}
.game-info {
    position:relative;
    width: 100%;
    height:100px;
    z-index:20;
}

.user_avatar{
    width:7vh;
    height:7vh;
    position:relative;
    float:left;
    margin:2%;
}
.user_avatar img{
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
}

.oponent-avatar{
    position:absolute;
    right:0;
}

.players-name {
    position:absolute;
    left:5vw;
    font-weight: bold;
    font-size:4vh;
}
.myblock{
    position:relative;
    left:1vw;
}

.players-score{font-size:9vh;position:absolute;right:0;font-family:Futura}
.oponent-score{font-size:9vh;position:absolute;left:0;font-family:Futura}

.oponent-name {
    position:absolute;
    right:5vw;
    font-weight: bold;
    font-size:4vh;
}
.oponentblock{
    position:relative;
    right:1vw;
}

.players-cards{position:absolute;bottom:0;font-size:1.5em;}
.oponent-cards{position:absolute;bottom:0;font-size:1.5em;right:5vw;}

.kolo{
    font-size:45px;
    background-color: #FFFFFF;
    border-bottom-left-radius:0.5em;
    border-bottom-right-radius:0.5em;
    transform: translate(-50%, 0%);
    color:#333333;
    font-family:Futura;
    width:140px;
    position:absolute;
    margin-left:50%;
    text-align:center;
    padding:5px;
}

.game-round-stats{
    position:fixed;
    margin-left:25%;
    margin-top:0%;
    width:20%;
    background-color:rgba(0,100,0,0.9);
    color:white;
    font-size:25px;
    font-weight: bold;
    text-align:center;
    z-index:3;
    display:none;
}

.game-round-stats h2{
    margin:20px;
}

.game-round-stats table{
    width:90%;
    margin:auto;
    text-align:center;
    color:white;
}

.game-round-stats table tr td,th{
    padding-bottom:1em;
}


.game-words{
    position:absolute;
    width:30%;
    height:65%;
    background-color:rgba(0,0,0,0.5);
    color:white;
    font-size:1.8em;
    padding:20px;
    overflow-y :scroll;
    z-index: 2;
    border-radius:1em;
}

.game-words::-webkit-scrollbar {
    width: 15px;
    height: 50%;
    box-shadow:none;
    background-color:transparent
}

.game-words::-webkit-scrollbar-track {
    background-color: transparent;
}

.game-words::-webkit-scrollbar-thumb {
    background-color: #0000FFw;
}

.game-words div{
    margin-bottom:10px;
}

.mywords{
    clear:left;
    margin-left:1vw;
}

.oponentwords{
    right:1vw;
    display:none;
}

.heading{
    float:left;
    top:0;
    width:100%;
    background-color: rgb(3,143,191);
    height:5%;
}


.playerinfo{
    position:absolute;
    font-size:1.5em;
    color:White;
    padding: 10px;
    width:30%;
    height:80%;
    z-index:20;
}

.avatar{
    margin:auto;
    width:35px;
}

.disabled{
    background-color:var(--disabled-letter-bg)!important;
    color:var(--disabled-letter-font-color)!important;
    text-decoration:none!important;
}


.game-board {
    position:relative;
    width:100%;
    height:var(--field-height);
    background-color:#EFE996;
    background-size:cover;
}



.game-controls{
    margin-top:2vh;
    width:100%;
    flex-basis: 100%;
    font-family:Futura;
}

.game-controls .control-time-left{
    float:left;
    text-align:center;
    width:14%;
    font-size:2vw;
    line-height:2.59vw;
    background-color: var(--controls-background-dark);
    border-radius:0.5em;
    color:white;
    padding:0.1vw;
    margin-left:10px;
}

.game-controls .control-input{
    color:white;
    font-size:1.6vw;
    line-height:2.59vw;
    padding:0.1vw;
    padding-left:0.5em;
    width:35%;
    float:left;
    background-color: var(--controls-background-dark);
    border-radius:0.5em;
    margin-left:10px;
    min-height:2.59vw;
}
.game-controls .control-button{
    cursor: pointer;
    float:left;
    font-size:1.8vw;
    background-color: var(--controls-background);
    border-radius:0.5em;
    color:white;
    padding:0.5vw;
    margin-left:10px;
    width:13%;
    text-align:center;
}

.game-controls .backspace{
    width:5%;
}

.game-controls .settings{
    width:3%;
}

.game-controls__cell {
    cursor: pointer;
    float:left;
    text-align:center;
    color:var(--cell-font-color);
    font-size:var(--cell-font);
    font-weight:bold;
    height:var(--cell-height);
    line-height:var(--cell-height);
    width:var(--cell-width);
    margin-right:5px;
    margin-top:10px;
    background-color:var(--cell-color);
    border: solid var(--cell-border-color) 6px;
    border-radius:10%;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}



.examplecell {
    cursor: pointer;
    float:left;
    text-align:center;
    color:var(--cell-font-color);
    font-size:var(--cell-font);
    font-weight:bold;
    height:var(--cell-height);
    line-height:var(--cell-height);
    width:var(--cell-width);
    margin-right:5px;
    margin-top:10px;
    background-color:var(--cell-color);
    border: solid var(--cell-border-color) 6px;
    border-radius:10%;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

.break {
    flex-basis: 100%;
    height: 0;
}

#letters{
    width:99%;
    left:var(--letterbox-left);
    position:relative;
    float:left;
}

#chat{
    position:relative;
    width:30%;
    height:100%;
    float:left;
}

.small{
    font-size:0.75em;
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 18000;
}

.game-words div:hover .small {
  visibility: visible;
}

.longestPossibleWord:hover .small {
  visibility: visible;
}

#chat .avatar{
    margin:0;
}

.card-yellow{
    color:yellow;
}

.card-red{
    color:red;
}

.not-valid{
    color:red!important;
    font-weight:bold;
}

.duplicit-word{
    color:#3580ff;
    font-weight:bold;
}

.addbtn{
    background-color:white;
    color:#2200AA;
    width:1em;
    height:1em;
    float:right;
    text-align:center;
    border-radius:50%;
}

.addbtn:hover{
    cursor:pointer;
}

.reportbtn{
    background-color:red;
    color:white!important;
    width:1em;
    height:1em;
    float:right;
    text-align:center;
    border-radius:50%;
}

.reportbtn:hover{
    cursor:pointer;
}

.addword-form{
    display:none;
}

.addword-form h3{
    text-align:center;
}

.addword-form h2{
    text-align:center;
    color:white;
    font-size:3em;
}

.addword-form form{
    text-align:center;
}

.addword-form input{
    display:block;
    margin:auto;
    margin-top:1em;
    font-size:1.5em;
}

.addword-form .txt{

}

.used_letter{
    background-color: var(--used-letter-bg);
    color: var(--used-letter-font-color);
}


canvas{
    margin:0;
    position:absolute;
    width:100%;
    height:100%;
}

.disabled-sending{
    color:#6D6D6D!important;
    background-color:#222!important;
}

.players-name:hover .small {
  visibility: visible;
}

.oponent-name:hover .small {
  visibility: visible;
}













/* subtle zoom to attention and then back */
.animate-word-good {
  animation: 2s anim-popoutin-good ease 1;
}

@keyframes anim-popoutin-good {
  0% {
    color: green;
    transform: scale(0);
    opacity: 0;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  25% {
    color: green;
    transform: scale(2);
    opacity: 1;
    text-shadow: 3px 10px 5px rgba(0, 0, 0, 0.5);
  }
  50% {
    color: white;
    transform: scale(1);
    opacity: 1;
    text-shadow: 1px 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    /* animate nothing to add pause at the end of animation */
    transform: scale(1);
    opacity: 1;
    text-shadow: 1px 0 0 rgba(0, 0, 0, 0);
  }
}

/* subtle zoom to attention and then back */
.animate-word-bad {
  animation: 2s anim-popoutin-bad ease 1;
}

@keyframes anim-popoutin-bad {
  0% {
    color: orange;
    transform: scale(0);
    opacity: 0;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  25% {
    color: orange;
    transform: scale(2);
    opacity: 1;
    text-shadow: 3px 10px 5px rgba(0, 0, 0, 0.5);
  }
  50% {
    color: red;
    transform: scale(1);
    opacity: 1;
    text-shadow: 1px 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    color: red;
    transform: scale(1);
    opacity: 1;
    text-shadow: 1px 0 0 rgba(0, 0, 0, 0);
  }
}


#word_queue{
    background-color:var(--word-desc-background);
    width:100%;
    height:5vh;
    font-weight:bold;
    position:absolute;
    overflow: hidden;
    display:var(--word-desc-display);
    bottom:0;
}

#word_queue .queue_item{
  position:absolute;
  white-space:nowrap;
  color:white;
  font-size:3vh;
  line-height:5vh;
}

#word_queue .queue_item span{
  font-size:2vh;
  color:yellow;
}

