html {
    height: 100%;
    padding: 0;
    margin: 0;
}
body {
    font-family: sans-serif;
    background-color: #D4D4D4;
    margin: 0;
    padding: 0;
    background-image: url('img/pozadi.jpg');
    background-position: top right;
    height: 100%;
}

.left {
    float: left;
}
.right {
    float: right;
}
.clear_both {
    clear: both;
}
.game_tabs {
    display: none;
}

.header {
    padding: 0;
    margin: 0;
    background-color: black;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
    font-family: sans-serif;
    box-shadow: 3px 3px 16px 1px #000;
}
.box_header > * {
    display: inline-block;
    color: white;
    margin: 0;
    padding: 0;
}
.box_header {
    flex: 1 100%;
}
.header .logo {
    display: inline-block;
    font-size: 2em;
    margin: 0;
    padding: 0;
    width: 1.5em;
    background-image: url('../images/pap_white.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    text-indent: -9999px;  
}

.header .login ul {
    display: flex;
    justify-content: flex-end; 
    flex-basis: content;  
    align-items: center;
    height: 100%;
}
.header .login li {
    margin: 0em 1em;
    padding: 0;
    list-style: none;
}

.header .login li a {
    display: inline-block;
    width: 100%;
}
.header a:link, .header a:visited{
    color: white;	
}
.header a:hover, .header a:active{
    color: yellow;	
} 

.login {
    text-align: center;
}

.menu {
    margin: 0;
    padding: 0em;
    background-color: black;
    font-size: inherit;
    opacity: 0.75;

}

.menu h2 {
    margin: 0;
    padding: 0;
    display: none;
}
.menu a:link, .menu a:visited {
    color: white;	
}
.menu a:hover, .menu a:active{
    color: yellow;	
} 


.menu ul {
    margin: 0;
    padding: 1em;
    display: flex;
    justify-content: flex-start;
}
.menu li {
    margin: 0.5em 1em;
}
.menu .menu_icon {
    display: none;
}


main {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around;
    padding: 1em;
}

main header {
    margin: 0;
    padding: 0.5em;
    flex: 1 100%;

}
main header h1 {
    margin: 0;
    padding: 0;
}
main aside {
    flex: 1 100%;
    order: 99;
}

.box {
    flex: 1 0 0;
    min-width: 350px;
    background-color: white;
    margin: 0.5em;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.box header {
    flex: 0 2em;
    height: 3em;
    background: black;
    margin: 0;
    padding: 0.5em;
    color: white;
}
.box header h2 {
    padding: 0;
    margin: 0;
}

.box footer {
    height: 2em;
    background: black;
    margin: 0;
    padding: 0.5em;
    color: grey;
    box-sizing: border-box; 
}
.box footer img {
    max-height: 1.8em;
}

.box_content {
    margin: 0;
    padding: 0;
    possition: relative;
    min-height: 40vh;
    flex: 1 0 0;
}

.box_content dd {
    padding: 0.5em;
}

.box_content dt {
    font-weight: bold; 
    padding: 0.5em;
}
.messages {
    height: calc(100% - 3.5em);
    display: block;
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
}
.message_form {
    background-color:lightgray;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 1em 0.2em;
    height: 4em;
}
.message_form label {
    display: none;
}

.message_form dl, .message_form dt, .message_form dd, .message_form input[type=text] {
    display: block;
    margin: 0;
    padding: 0;
}
.message_form .text {
    width: 70%;
    display: inline-block;
    float: left;
}
.message_form .button {
    width: 25%;
    display: inline-block;
    float: right;
}






footer {
    display: flex;
    justify-content: space-between; 
    align-items: baseline; 
}
footer div {
/*    flex: 1 0 0;*/
}
.settings {
    text-align: right;
}

.settings .icons {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.3;
    margin: 0 0 0 0.5em;
}


.content .box > * {
    padding: 0.5em;
}


.game_field {
    position: relative;
    border:none;
    border-collapse: collapse;
    width: 80%;
    margin: auto;
    max-width: 35vh;
    
}

.field_row {
    border: none;
}

.field_col {
    border: none;
    padding: 0;
}
.field_col svg {
    display: block;
    width: 100%;
    height: 100%;

}
.x_game img {
    height: auto;

}	 
.v_wall, .h_wall {

}

.c_h_wall, .h_wall, .h_game {
/*    //height: 5px;*/
}
.c_x_game, .x_game {
    height: 100%;
    background-color: white;
}
.x_game_0 {
    visibility: hidden;
}
.c_v_wall, .v_wall, .v_game {
    height: 100%;
    /*width: 5px;*/
}
.c_x_game, .c_v_wall, .c_h_wall, .c_point {
    visibility: hidden;
}
img {
    border: 0;
    margin: 0;
    padding: 0;
}
.h_point, .g_point {
    position: relative;
}
.field_col .h_point_3, .field_col .h_point_4,.field_col .h_point_5, .field_col .g_point_1 {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: 1000;
    fill: green;
}

.field_col .h_point_3 {
    fill: red;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    
}
.field_col .h_point_5, .field_col .g_point_1 {
    width: 500%;
    height: 500%;
    top: -10px;
    left: -10px;
}

.table_box {
    overflow: auto;
    min-width: 500px;
}

.table_box table {
    margin: 1em auto;
    width: 95%;
}

.table_box th {
    margin: 0;
    background-color: lightgrey;

}

#icon_refresh {
    animation-name: rotate;
    animation-duration: 2s;
}
@keyframes rotate {
    0%   {transform: rotate(0deg);}
    100% {transform: rotate(-360deg);}
}

.info .icon {
    display: inline-block;
    position: absolute;
    top: 0.75em;
    right: 0;
    padding: 0;
    margin: 0.2em 0.5em;
    font-size: 1em;
}
.player {
    font-size: 1.1em;
    text-align: left;
    margin: 0.5em;
    min-height: 1ex;
}
.player img {
    margin: 0 0 0 0;
    height: 1em;
}
.player .score {
    width: 1em;
    display: inline-block;
    text-align: center;
    margin: 0 1em;
    padding: 0 .2em;
    float: right;
    border: 1px solid black;
}
.box .goal {
    margin: 0;
    opacity: 0.90;
    display: block;
    width: 95%;
    box-sizing: border-box;
    position: absolute;
    background-color: #cc0000;
    top: 40%;
    left: 3%;
    z-index: 100000;
    border: solid 5px white;
    text-align: center;
    box-shadow: 3px 3px 16px 1px #000;
    color: white;
    padding: 2em;
}

.goal li {
    opacity: 1;
}
.active {
    font-weight: bold;
}


.message {
    position: relative;
    background-color: lightgray;
    border-radius: 0.5em; 
    margin: 0.5em;
    padding: 0.5em 0.5em 0.75em 0.5em;
    width: auto;
    min-width: 2em;
    clear: both;
    max-width: 80%;
}

.message .date {
    display: inline-block;
    position: absolute;
    bottom: 0;
    right: 1em;
    font-size: 0.6em;
}

.user .nick {
    display: none;
}
.nick {
    font-size: 0.8em;
    color: blue;
    display: inline-block;
    width: 100%;
}

.user {
    float: right;
    background-color: lightblue;
}
.others {
    float: left;
}




@media all and (max-width: 700px){
    .header {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .header .box_header {
        width: 100%;
    }
    .header h1 {
        font-size: 3.5vh;
    }
    .header .login ul {
        flex-wrap: wrap;
        justify-content: center; 
        display: none;
        height: auto;
        padding: 0;
    }
    .header .login li {
        margin: auto;
        min-width: 40%;
    }
    .header .login li a {
        padding: 1em;
    }

    .menu h2, .menu ul {
        display: none;
    }
    .menu ul {
        display: none;
        flex-wrap: wrap;
        justify-content: center; 
        padding: 0;
    }
    .menu li {
        margin: 0;
        padding: 1em;
        width: 100%;
        text-align: center;
        border-top: 0.1em solid .222;
        border-bottom: 0.1em solid .222;
        list-style: none;
    }
    .menu .menu_icon {
        position: absolute;
        display: block;
        right: 1em;
        margin: 0em;
        padding: 0em;
        top: 0.25rem;
        color: white;
        width: 2em;
        height: 2em;
        background-image: url(img/menu.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 2rem;
        z-index: 1000;
        text-indent: -9999px;
    }
    .menu.responsive ul, .header .responsive ul {
        display: flex;
        justify-content: center; 
    }
    .content {
        padding: 0;
        margin: 0;
    }
    .game_tabs {
        display: block;
/*        flex: 1 1 100%;*/
        position: absolute;
        bottom: 0;
        width: 100%;
        order: 100;
    }
    .game_tabs ul {
        display: flex;
        width: 100%;
        justify-content: space-between; 
        flex-wrap: nowrap;
        padding: 0;
        margin: 0;
    }
    .game {
        display: none;
    }
    .game_tabs li {
        flex: 1;
        background: black;
        color: white;
        list-style: none;
        padding: 0.5em;
        margin: 0;
        border: 0.1em white solid;
        text-align: center;
    }
    .game_tabs a {
        width: 100%;
        height: 100%;
        display: block;
        padding: 0em;
        margin: 0;
        text-decoration: none;
    }
    
    .game_tabs a:link, .game_tabs a:visited{
    color: white;	
}
 .game_tabs a:hover, .game_tabs a:active{
    background-color: white;
    color: black;	
} 
    .active {
        display: flex;
        font-weight: normal;
    }
    
    .player {
        display: block;
    }
    
    main {
        padding: 0;
        flex-direction: column;
    }
    
    main header h1 {
        display: none;
    }
    
    .box {
        margin: 0;
    }

    .box_content {
        min-height: 70vh;
    }
}

/*


.box_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.box {
    min-width: 300px;
}

h2 {
    margin:  0;
    padding: 0.5em;
    opacity: 0.6;
    color: white;
    font-family: sans-serif;
    box-shadow: 3px 3px 16px 1px .000;
    border-radius: 10px 10px 0 0;
    background-color: black;

}
form {
    width: 100%;
}
form th {
    text-align: right;
}

form table, form tr, form td, form th {
    border: none;
}

.table_box {
    overflow: auto;
    min-width: 500px;
}

.table_box table {
    margin: 1em auto;
    width: 95%;
}

.table_box th {
    margin: 0;
    background-color: lightgrey;

}

.box {
    padding: 0;
    margin: 1em auto;
    width: 98%;
    box-shadow: 5px 5px 11px 1px .000;
    background-image: url('img/poz.png');
    border-radius: 10px 10px 0 0;
}

form table, form th, form td, form tr, form tbody {
    display:block;
    padding: 0;
    margin: 0;
}


form table th {
    width: inherit;
    text-align: left;
    padding: 0.5em;
}

form table td {
    padding: 0em;
    margin: 0;
}

form input, form select {
    display: block;
    width: 90%;
    padding: 1em 1%;
    margin: 0 auto;
}

form .button, form select {
    width: 100%;
    border: inherit;
}



form .kratky {
    width: inherit;
    display: inline-block;
    margin: 1em;
    text-align: left;
}

form td label {
    word-wrap: normal;
    word-break: normal;
    white-space: normal;
    display: inline-block;
    margin: 0 0.5em;
}

.align_left {
    text-align: left;
}



.home {
    text-align: center;
    height: 100%;
}
.home .box {
    display: inline-block;
    vertical-align: top;
    margin: 2vh;
}

.form_box {
    width: 90%;
    padding: 2em 5%;
}

.size_30-50 {
    width: 100%;
}
.size_50-50 {
    width: 100%;
    margin: 0%;
}
.size_60-50 {
    width: 100%;
    margin: 0%;
}
.size_100-50 {
    width: 100%;
}

.left {
    float: left;
}
.right {
    float: right;
}
.clear_both {
    clear: both;
}
table {
    margin: 0;
    width: 100%;
    border: 1px solid;
    border-collapse: collapse;
}
tr,td, th {
    padding: 0.5em;
    border: 1px solid;
    text-align: center;
}
.game_field, .moves {
    margin: 1em auto;
    width: 100%;
    position: relative;
    background-color: white;
    padding: 0 0 0 0;
    box-shadow: 3px 3px 16px 2px .000;

}
.game_field table {
    border-collapse: collapse;
    margin: auto;
    width: 80%;

    border: none;
}
.game_field tr, .game_field td {
    border: none;
}
.info {
    background-color: black;
    color: white;
    padding: 0.5em;
    font-size: 0.8em;
}

.settings {
    background-color: black;
    color: white;
    padding: 0.5em;
    margin: 0;
    font-size: 0.8em;
}

.settings .icons {
    display: inline-block;
    position: absolute;
    bottom: 0.1em;
    right: 0;
    padding: 0;
    margin: 0 0.5em;
    font-size: 1em;
    opacity: 0.3;
}

.settings .icons a {
    margin: 0.5em;
}

.info .rounds {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 2.5em;
    padding: 0;
    margin: 0.5em 0.5em;
    font-size: 1em;
}

.icon_refresh {
    animation-name: rotate;
    animation-duration: 2s;
}
@keyframes rotate {
    0%   {transform: rotate(0deg);}
    100% {transform: rotate(-360deg);}
}

.info .icon {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    margin: 0.2em 0.5em;
    font-size: 1em;
}
.player {
    font-size: 1.1em;
    text-align: left;
    margin: 0.5em;
    min-height: 1ex;
}
.player img {
    margin: 0 0 0 0;
    height: 1em;
}
.player .score {
    width: 1em;
    display: inline-block;
    text-align: center;
    margin: 0 1em;
    padding: 0 .2em;
    float: right;
    border: 1px solid black;
}
.goal {
    margin: 0;
    opacity: 0.90;
    display: block;
    padding: 2em;
    width: 75%;
    position: absolute;
    background-color: .cc0000;
    top: 40%;
    left: 3%;
    z-index: 100000;
    border: solid 5px white;
    text-align: center;
    box-shadow: 3px 3px 16px 1px .000;
    color: white;
}

.goal li {
    opacity: 1;
}
.active {
    font-weight: bold;
}

.field_row {
    padding: 0;
    margin: 0;
    line-height: 0;
    height: 100%;

}

.field_col {
    padding: 0;
    margin: 0;
    line-height: 0;
    height: 100%;

}
.field_col img {
    display: block;
    width: 100%;
    height: 100%;

}
.x_game img {
    height: auto;

}	 
.v_wall, .h_wall {

}

.c_h_wall, .h_wall, .h_game {
    height: 5px;
}
.c_x_game, .x_game {
    height: 100%;
    background-color: white;
}
.x_game_0 {
    visibility: hidden;
}
.c_v_wall, .v_wall, .v_game {
    height: 100%;
    width: 5px;
}
.c_x_game, .c_v_wall, .c_h_wall, .c_point {
    visibility: hidden;
}
img {
    border: 0;
    margin: 0;
    padding: 0;
}
.h_point, .g_point {
    position: relative;
}
.field_col .h_point_3, .field_col .h_point_4,.field_col .h_point_5, .field_col .g_point_1 {
    position: absolute;
    width: 5vmin;
    height: 5vmin;
    top: -1.75vmin;
    left: -1.75vmin;
    z-index: 1000;
}
.field_col .h_point_5, .field_col .g_point_1 {
    width: 500%;
    height: 500%;
    top: -10px;
    left: -10px;

}
.date {
    display: inline-block;
    position: absolute;
    bottom: 0;
    right: 1em;
    font-size: 0.6em;
}

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
        Menu 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
.menu_icon {
    position: absolute;
    display: block;
    right: 1em;
    margin: 0em;
    top: 1.5vw;
    color: white;
    width: 2em;
    height: 2em;
    background-image: url(img/menu.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2em;
    z-index: 1000;
}
.menu_icon span {
    display: none;
}


.menu {
    clear: both;
    font-family: sans-serif;
    background-color: black;
    width: 100%;
    font-size: inherit;
    padding: 0;
    margin: 0;
    opacity: 0.75;
}
.menu ul {
    margin: 0 0;
    padding: 0;
    display: none;
    width: 100%;
}
.menu li a {
    display: inline-block;
    font-size: 1.2em;
    background-color: grey;
    padding: 1em;
    display: inline-block;
    width: 100%;
    margin: 0;
    border-bottom: solid black 0.1em;
    text-decoration: none;
}


.actual {
    font-weight: bold;
}

.myButton {
    box-shadow:inset 0px 1px 0px 0px .a4e271;
    background:linear-gradient(to bottom, .89c403 5%, .77a809 100%);
    background-color:.89c403;
    border-radius:6px;
    border:1px solid .74b807;
    display:inline-block;
    cursor:pointer;
    color:.ffffff;
    font-family:Arial;
    font-size:15px;
    font-weight:bold;
    padding:6px 24px;
    text-decoration:none;
    text-shadow:0px 1px 0px .528009;
}
.myButton:hover {
    background:linear-gradient(to bottom, .77a809 5%, .89c403 100%);
    background-color:.77a809;
}
.myButton:active {
    position:relative;
    top:1px;
}

.account_box img {
    background-color: grey;
    width: 150px;
    height: 150px;
    float: left;
    margin: 1em 2em;
}

.games_list table td{
    text-align: left;
}
.label {
    color: darkgray;
    font-size: 0.9em;
}
.name {
    font-size: 1.2em;
}
.bold {
    font-weight: bold; 
}

.header {
    margin: 0 0 0 0;
    padding: 0;
    background: black;
    opacity: 0.6;
    color: white;
    font-family: sans-serif;
    box-shadow: 3px 3px 16px 1px .000;
    position: sticky;
}

.header img{
    margin: 0.3em 0.5em;
    padding: 0;
    float: left;
    height: 2em;
}
.header h1{
    padding: 0;
    margin: 1.5vw 0.2em;
    display: inline-block;
    font-size: 7vw;
}

.header .login {
    display: block;
    position: relative;
    top: 0;
    right: 0;
    padding: 0;
    margin: 0em 1em 0 0;
    font-size: 1em;
}

.loged ul{
    display: none;
    text-align: right;
    margin: 0;
    padding: 0;
}



.header a:link, .header a:visited {
    color: white;

}
.header .login a:link, .menu a:link,  .header  .login a:visited, .menu a:visited {
    color: white;	
}
.header a:hover, .menu a:hover {
    color: yellow;	
} 

.header a:active, .menu a:active  {
    color: yellow;	
}

.login {
    color: black;
    margin: 0.5em 0;
    padding: 0;
}
.login li, .loged li {
    display: inline-block;
    padding: 0 0.5em;
    margin: 0;
}

.loged {
    color: white;
    margin: 0.5em 0;
    padding: 0;
}

.responsive ul {
    display: block;
}


.scoreboard {
    text-align: center;
    padding: 0;
    margin: 0;
}

.scoreboard .player {
    font-weight: normal;
    font-size: 1em;
    width: 96%;
    display: inline-block;
    padding: 0.2em;
    margin: 0 1%;


}
.scoreboard .score {
    color: yellow;
    background-color: black;
    margin: 0;

}
.scoreboard .p1 {
    xbackground-color: blue;

}
.scoreboard .p2 {
    xbackground-color: red;
}

.home-box-acount h2 {
    box-shadow: 3px 3px 16px 1px black;
    background-color: red;
}
.home-box-acount form {
    margin-top:2em;
    margin-bottom:4em;
}
.home-box-welcome {
    box-shadow: 3px 3px 16px 1px black;
}
.home-box-welcome h2 {
    box-shadow: 3px 3px 16px 1px black;
    background-color: blue;
}
.home-box-football {
    box-shadow: 3px 3px 16px 1px black;
}
.home-box-football h2 {
    box-shadow: 3px 3px 16px 1px black;
    background-color: green;
}
.low_priority {
    color: lightgrey;
}

.chat_box {
    height: 70vh;
}
.message_box {
    height: 45vh;
    position: relative;
}

.message_box {
    overflow-y: auto;
}
.message {
    position: relative;
    background-color: lightgray;
    border-radius: 0.5em; 
    margin: 0.5em;
    padding: 0.5em 0.5em 0.75em 0.5em;
    width: auto;
    min-width: 2em;
    clear: both;
    max-width: 80%;
}

.user .nick {
    display: none;
}
.nick {
    font-size: 0.8em;
    color: blue;
    display: inline-block;
    width: 100%;
}

.message_form{
    bottom: 0;
    width: 100%;
}
.user {
    float: right;
    background-color: lightblue;
}
.others {
    float: left;
}


@media all and (min-width: 800px){

    
.header h1{
    padding: 0;
    margin: 0.3em 0.2em;
    display: inline-block;
    font-size: 1.3em;
}
    .game_field, .moves {
        float: left;
         width: 400px;
         height: 70vh;
       margin: 2em;
    }

    .moves {
    }
    .field_col .h_point_3, .field_col .h_point_4,.field_col .h_point_5, .field_col .g_point_1 {
        position: absolute;
        width: 300%;
        height: 300%;
        top: -5px;
        left: -5px;
        z-index: 1000;
    }
    .field_col .h_point_5, .field_col .g_point_1 {
        width: 500%;
        height: 500%;
        top: -10px;
        left: -10px;

    }
    .menu {

    }
    .menu_icon {
        display: none;
    }
    .menu ul {
        display: inline-block;
    }
    .menu li {
        display: inline-block;
        width: max-content;
        margin: 0 0.2em;
        border-right: 0.1em solid grey; 
    }
    .menu li a {
        width: auto;
        padding: 0.5em;
        background: none;
    }
    .login, .loged {
        float: right;
    }
    .loged ul {
        display: block;
    }

    .box {
        padding: 0;
        margin: 1em auto;
        width: 400px;
        box-shadow: 5px 5px 11px 1px .000;
        background-image: url('img/poz.png');
        border-radius: 10px 10px 0 0;
        background-color: green;
        
    }
    .size_30-50 {
        width: 30%;
    }
    .size_50-50 {
        width: 46%;
        margin: 2%;
    }
    .size_60-50 {
        width: 56%;
        margin: 2%;
    }
    .size_100-50 {
        width: 95%;
    }

    .size_50-100 {
        height: 80vh;
        width: 46%;
        margin: 0 1% 0 2%;
    }
    
    .size_50-50 {
        height: 38vh;
        width: 46%;
        margin: 0 2% 0 1%;
    }
    
    .center {
        margin: 2.1%;
    }

    .horizontal_middle {
        left: 50%;
        margin: auto;
        position: absolute;               
        top: 50%;                         
        transform: translate(-50%, -50%) } 

}
*/
