/*-----skopiowane z details.css--------*/
/*ta sekcja z banerem została ze względu na strone stats.php!---*/

p{
    padding-top: 15px;
    padding-bottom: 15px;
}
#banner{
    background-image: linear-gradient(to right, #444444, #606060);
    background-size: cover;
    background-position: center;
}

#banner img{
    display: block;
    width: 95%;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
}

#banner #logo-wide{
    display: none;
}

#topnav{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

#topnav *{
    height: 20px;
    width: auto;
    margin: 5px;
    margin-left: 20px;
    cursor: pointer;
}

@media (orientation:landscape){
    #banner #logo-wide{
        width: 70%;
        display: block;
    }
    #banner #logo-narrow{
        display: none;
    }
}

@media (min-width: 630px){
    #banner #logo-wide{
        display: block;
    }
    #banner #logo-narrow{
        display: none;
    }
}

@media (min-width: 1367px){
    #banner #logo-wide{
        width: 40%;
    }
}

/*---------------------*/



.bg-container{
    /*background-color: rgba(0,0,0,0.3);*/
    padding: 5px;
    width:95%;
    margin-left: auto;
    margin-right: auto;
}
#control-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
input, button, select{
    color: black;
    background-color: gold;
    border: 2px solid black;
    border-radius: 3px;
    padding: 3px;
    margin: 5px;
    font-size: 1em;
    font-weight: 400;
    cursor: pointer;
}
input:hover, button:hover, select:hover{
    box-shadow: 0 0 5px black;
}
input[type="radio"]:hover{
    box-shadow: none;
}
#select-container{
    background-color: gold;
    width: 150px;
    height: 28px;
    border-radius: 5px;
    margin: auto;
}
select{
    margin: 0;
    background-color: transparent;
}
input[type=number]{
    width: 5em;
    cursor: pointer;
}  
#radio-container{
    position: relative;
    top: -10px;
}
label[for=asc], label[for=desc]{
    font-size: 3.5em;
}  
/*
table{
    counter-reset: lp;
}
.lp::before{
    counter-increment: lp;
    content: counter(lp);
}*/

/*.bg-container:before, .bg-container:after {
    content: " ";
    height: 100%;
    position: absolute;
    top: 0;
    width: 15px;
}
.bg-container:before {
    box-shadow: -15px 0 15px -15px black inset;
    left: -15px;
}
.bg-container:after {
    box-shadow: 15px 0 15px -15px black inset;
    right: -15px;
}*/

#server-stats-table-container, .player-stats, #main-stats-table-container{
    padding-top: 30px;
    padding-bottom: 40px;    
}

.confirm{
    background-color: forestgreen;
    color: white;
}
table{
    background-color: rgba(0,0,0,0.6);
    box-shadow: 0 0 10px black;
    width: 100%;
    margin-bottom: 10px;
}

table > caption{
    font-size: 1.5em;
    padding-top: 10px;
    padding-bottom: 10px;
}

td, th{
    padding: 5px;
}

th{
    background-color: gold;
    color: black;
    font-weight: 400;
    position: sticky;
    top: -2px;
}

table, td, th{
    border-collapse: collapse;
    border: 1px solid gold;
}
tr:nth-child(odd) {background-color: rgba(128,128,128,0.1);}

#main-table{
    max-height: 40vh;
    overflow: auto;
    border: 1px solid gold;
    background-color: rgba(128,128,128,0.3);
}

.winner{
    background-color: forestgreen !important;
}
/*---------------*/

/*.nav .stats-table{
    display: block;
    border: 1px solid forestgreen;
    background-color: rgba(0,0,0,0.4);
    box-shadow: 0 0 10px black;
    border-radius: 5px;
    padding: 5px;
    margin-top: 10px;
}*/

.table-hr{
    border: 2px solid gold;
    box-shadow: 0 -2px 4px gold;
    margin-bottom: 20px;
}

/*#table1, #table2, #table3, #table4, #table5, #table6{
    overflow: auto;
    display: none;
    max-height: 35vh;
    margin-top: 10px;
    border: 1px solid gold;
    background-color: rgba(128,128,128,0.2);
}

/*#controls1, #controls2, #controls3, #controls4, #controls5, #controls6{
    display: none;
}

/*#arrow1, #arrow2, #arrow3, #arrow4, #arrow5, #arrow6{
    display:inline;
}*/

/*----------media------------------*/

@media (orientation:landscape){
    #control-container{
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    #select-container{
        margin: 0;
    }
    .player-stats{
        padding: 30px;
    }
    #main-table, .table-hr{
        max-height: 65vh;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 630px){
    .player-stats{
        padding: 30px;
        font-size: 1.1em;
    }
    .player-stats table{
        width: auto;
        margin: auto;
    }
    #main-table{
        font-size: 1.2em;
    }
    #main-table p{
        font-size: 1em;
    }
    #main-table button{
        margin-left: 10px;
    }
}

@media (min-width: 958px){
    .bg-container{
        background-color: rgba(0,0,0,0.3);
        width: 80%;
    }
    /*.bg-container:before, .bg-container:after {
        content: " ";
        height: 100%;
        position: absolute;
        top: 0;
        width: 15px;
    }
    .bg-container:before {
        box-shadow: -15px 0 15px -15px black inset;
        left: -15px;
    }
    .bg-container:after {
        box-shadow: 15px 0 15px -15px black inset;
        right: -15px;
    }*/
    #server-stats-table-container{
        width: 70%;
        margin: auto;
        font-size: 1.2em;

        display: flex;
        justify-content: center;
    }
    #server-stats-table-container table{
        max-width: 800px;
    }
}

/*@media (min-width: 1367px){*/
@media (min-width: 1366px){
    .bg-container{
        width: 60%;
    }
     #control-container{
        font-size: 1.1em;
    }
    #select-container{
        width: 162px;
        height: 31px;
    }
}