/*
 * Copyright (c) 2020. Matti Mieskonen <matti@sivustamo.fi>
 */

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}
.form-signin .checkbox {
    font-weight: 400;
}
.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
    color: #fff;
}
.form-signin .form-control:focus {
    z-index: 2;
    color: #fff;
}
.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.bg-dark {
    background: #000 !important;
}

ul.navbar-nav a{
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    padding: 1rem 0rem;
}
ul.navbar-nav a.home {
    color: #06ade4 !important;
}
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}
ul.navbar-nav a.main {
    background: #06ade4cc;
    color: white !important;
    padding: 1rem;
    border-radius: 5px;
}

.footer {
    width: 100%;
    height: 60px; /* Set the fixed height of the footer here */
    line-height: 60px; /* Vertically center the text there */
    background-color: #06ade4cc;
    color: #ffffff;
    font-weight: 700;
}
.footer a {
    color: #ffffff;
}
/*
* Sivustamo changes
*/

:focus {
    outline:0;
}
::-webkit-scrollbar { 
    width: 12px; 
}
::-webkit-scrollbar-track { 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 10px; 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb { 
    -webkit-border-radius: 10px; 
    border-radius: 10px; 
    background: rgba(103, 103, 103, 0.77); 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}
::-webkit-scrollbar-thumb:window-inactive { 
    background: rgb(103, 103, 103); 
}
a {
    color: #0b91be;
    font-family: 'Montserrat', sans-serif; 
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}
body {
    font-family: 'Montserrat', sans-serif;    
    background: #000;
    background-image: url(../img/footer-bg.jpg);
    background-size: 45% auto;
    background-position: left bottom 10px;
    background-repeat: no-repeat;
    min-height: 80rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 15px;
}
body .form-control {
    background: transparent;
    color: #fff;
    height: 100%;
    border: 1px solid #444;
    padding: 5px 15px;
}
body main.container.addresults input.form-control {
    height: auto;
}
body .form-control:hover,
body .form-control:focus {
    background: transparent;
    color: #fff;
}
body .btn.btn-primary {
    background: #0c91be;
    border: 1px solid #0c91be !important;
    font-size: 15px;
    text-transform: uppercase;
    width: 100%;
    max-width: 200px;
    font-weight: 600;
    max-height: 50px;
    padding: 5px 10px;
}
body #navbarMain .form-control {
    padding: 0px 10px;
    max-height: 40px;
}
body #navbarMain li.nav-item form {
    margin-right: 15px;
    margin-bottom: 0;
}
body main {
    flex: 1 0 auto;
}
body main.container.order a {
    background: #0c91be;
    color: #fff;
    border: 1px solid #0c91be;
    padding: 12px 15px;
    border-radius: 5px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    width: 100%;
    max-width: 350px;
    max-height: 50px;
}
body .btn-primary:hover,
body .btn-primary:focus,
body .col-md-3 a:hover,
body .col-md-3 a:focus {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc !important;
    box-shadow: 0 0 0 0.1rem #0069d9;
    text-decoration: none;
}
body .form-signin,
body .form-signup,
body .form-forgot {
    background: #232429;
    border-radius: 5px;
    margin-top: 5%;
    padding: 3%;
    color: #fff;
    border: 1px solid #333 !important;
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;    
}
body .col-md-3 {
    background: #232429;
    border-radius: 5px;
    margin-top: 5%;
    margin-right: 5%;
    padding: 3%;
    color: #fff;
    border: 1px solid #333 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    height: max-content;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}
body .col-md-3 a {
    background: #0c91be;
    color: #fff;
    border: 1px solid #0c91be;
    margin: 8% 0% 3%;
    padding: 3%;
    border-radius: 5px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}
body .col-md-12 {
    display: flex;
    flex-wrap: wrap;
    background: #232429;
    margin-top: 5%;
    border-radius: 5px;
    border: 1px solid #333;
    padding: 2%;
    height: max-content; 
    flex-direction: column;
}
body .col-md-12 .card {
    flex: 1 1 23%;
    margin-left: 1%;
    margin-right: 1%;
    margin-bottom: 2%;
    max-width: 23%;
    color: #fff;
    background: transparent;
    border: none;
}
body main.tulospalvelu .col-md-12 {
    background: none;
    border: none;
    padding: 0;    
    flex-direction: row;
}
main.profile .col-md-12 .card {
    background: #444;
    margin-left: 0;
    flex-direction: row;
    flex: 1 1 23%;
    width: 100% !important;
    max-width: 23%;
    align-items: center;
}
main.profile .col-md-12 h4 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
main.profile .dataTables_wrapper .dataTables_scroll {
    margin-top: 0;
}
body .etusivu .col-md-12 form {
    flex: 1 1 100%;
    margin-bottom: 10px;
    margin-left: 7px;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    min-width: 0;
    word-wrap: break-word;
    background-color: #232429;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .25rem;
    padding: 2%;
    margin-right: 7px;
}
body .col-md-12 form select {
    background: #232429;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 7px 15px;
    margin-right: 10px;
    -moz-appearance: none; 
    -webkit-appearance: none; 
}
body .etusivu .col-md-12 .card {
    margin-left: 1%;
    margin-right: 1%;
    background: #232429;
}
body .etusivu .col-md-12 .card .card-body {
    display: flex;
    flex-direction: column;
}
body .etusivu .col-md-12 .card p.card-text {
    flex-grow: 1;
}
body .etusivu .col-md-12 .card a.btn.btn-primary {
    flex-grow: 0;
}
body .page-link {
    color: #fff;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 1px 1px #000;
}
body .page-link:hover,
body .page-link:focus {
    color: #0b91be;
}
body .table,
body table {
    color: #fff;
    margin-top: 15px;
}
body .teamleader table {
    table-layout: fixed;
}
body table td,
body table th {
    border: 1px solid #2e2e3c !important;
    font-size: 13px;
    padding: .3rem !important;
}
body table thead th,
body table thead td {
    border: 1px solid #444 !important;
    background: #444 !important;
}
body table select {
    background: #555567;
    border: 1px solid #555567;
    color: #fff;
}
body .dataTables_wrapper {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
body .dataTables_scrollBody,
body .dataTables_scrollBody > * {
    min-width: 100%;
}
body .dataTables_scrollHead,
body .dataTables_scrollHead > *,
body .dataTables_scrollHead > * > * {
    min-width: 100%;    
}
body .dataTables_wrapper .odd {
    background: #18191d !important;
}
body .dataTables_wrapper .even {
    background-color: #32323a !important;
}
body main.tulokset .dataTables_wrapper thead td:first-of-type:before,
body main.tulokset .dataTables_wrapper thead td:first-of-type:after {
    content: none !important;
}
body main.tulokset .dataTables_wrapper table tr td:first-of-type {
    width: 13px !important;
    max-width: 13px !important;
    padding: 0px !important;
    min-width: 13px !important;
}
body main.tulokset .dataTables_wrapper table.dataTable tbody th, 
body main.tulokset .dataTables_wrapper table.dataTable tbody td {
    padding: 8px 10px;
}
body .col-md-12 form {
    width: 100%;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 25px;
}
footer {
    flex-shrink: 0;
}
main.container.tulokset .col-md-12 {
    flex-wrap: nowrap;
}
div.dataTables_scrollBody table thead {
    display: none;
}
.profile .dataTables_wrapper th, 
.tulokset .dataTables_wrapper th, 
.profile .dataTables_wrapper td,
.tulokset .dataTables_wrapper td {
    min-width: 105px;
    max-width: 105px;
}
.profile .dataTables_wrapper td:first-of-type + * + * + *,
.tulokset .dataTables_wrapper td:first-of-type + * + * + * {
    min-width: 150px;
    max-width: 150px;
}
.profile .dataTables_wrapper td:first-of-type,
.tulokset .dataTables_wrapper td:first-of-type {
    width: 13px !important;
    max-width: 13px !important;
    padding: 0px !important;
    min-width: 13px !important;
}
.tulokset .col-md-12 h4 {
    margin-bottom: 0;
}
body .dataTables_wrapper label {
    font-size: 15px;
}
body .dataTables_wrapper .dataTables_info {
    font-size: 13px;
}
body .dataTables_wrapper .pagination {
    font-size: 13px;
}
div#navbarMain ul li a {
    padding: 0.5rem 1rem;
}
.playertext {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.dropdown-menu {
    background: #232429;
    font-size: 14px;
}
div#navbarMain .dropdown-menu.show .dropdown-item {
    padding: 0.3rem 1rem;
}
.Header {
    width: 100%;
    padding: 12rem 0;
    height: 438px;
    background-image: url(//sporttestingacademy.fi/tulospalvelu/img/banner.jpg);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-color: #000;
}
.Header h1 {
    text-align: center;
    font-weight: 900;
}
.navbar-brand img {
    max-width: 250px;
}
form.form-signin {
    margin-bottom: 5rem;
}
.order button[type=submit] {
    margin-top: 1rem;
}
.tulokset .row.legend {
    text-align: center;
    margin-bottom: 25px;
    padding-left: 15px;
    align-self: center;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 25px;
    width: 100%;    
}
.tulokset .row.legend span {
    margin-left: 10px;
    margin-right: 10px;
}
.tulokset h5.trn {
    text-align: center;
}
body .form-forgot {
    padding: 1rem;
}
body .form-signin input,
body .form-signup input,
body .form-forgot input {
    max-height: 40px;
}
body .form-signin [type=submit],
body .form-signup [type=submit],
body .form-forgot [type=submit] {
    margin-top: 1rem;
    max-width: 100% !important;
}
.tulospalvelu button[type=submit] {
    margin-left: 15px;
}
.container.tavoitearvot h4 {
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
    margin-top: 1rem;
}
.container.tavoitearvot h5 {
    margin-top: 1.5rem;
}
.container.tavoitearvot label {
    margin-right: 1rem;
    padding: 10px 15px;
    width: 100%;
    max-width: 200px;
}
.container.tavoitearvot div {
    display: inline-block;
    width: 100%;
}
.container.tavoitearvot .col-md-12 {
    background: #18191d !important;
}
table.tavoitearvot.table tr {
    background: none !important;
}
table.tavoitearvot.table td {
    border: none !important;
    border-top: 1px solid #222 !important;
    padding: 8px 5px !important;
}
table.tavoitearvot.table tr:first-of-type td {
    font-weight: 700;
    background: #444;
}
table.tavoitearvot.table td:first-of-type {
    color: #fff;
}
table.tavoitearvot.table .green {
    color: #4eaf4a;
}
table.tavoitearvot.table .yellow {
    color: #ddde3f;
}
table.tavoitearvot.table .orange {
    color: #ffa224;
}
table.tavoitearvot.table .red {
    color: #dc5148;
}

@media (max-width: 1299px) {
    div#navbarMain ul li a {
        padding: 0.5rem 0.5rem;
    }   
}
@media (max-width: 1199px) {
    body .col-md-3 {
        margin-left: auto;
        margin-right: auto;
        -ms-flex: 0 0 98%;
        flex: 0 0 98%;
        max-width: 98%;
        justify-content: space-between;
    }
    body .col-md-3 a {
        margin: 0;
        margin-bottom: 10px;
        margin-right: 2%;
        width: 48%;        
    }    
    body .col-md-12 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;        
    }
    .Header h1 {
        text-shadow: 1px 1px #000;
    }
    body #navbarMain .form-control {
        padding: 0.5rem 1rem;
        width: auto;
        margin: auto;
    }
    div#navbarMain {
        text-align: center;
    }
    div#navbarMain .navbar-nav .nav-item:last-of-type {
        margin-top: 1rem;
    }
    .navbar-nav .dropdown-menu {
        text-align: center;
    }
    .dropdown-menu.show {
        margin-bottom: 10px;
    }    
}
@media (max-width: 991px) {
    body .col-md-12 .card {
        flex: 1 1 31%;
        max-width: 31%;
    }
}
@media (max-width: 767px) {
    body .col-md-3 a {
        margin: 4% 0% 1%;
        width: 100%;
    }    
    body .col-md-12 .card {
        flex: 1 1 48%;
        max-width: 48%;
    }     
    body .dataTables_wrapper > .row:first-of-type > * {
        padding-bottom: 10px;
    }
    body .dataTables_wrapper > .row:first-of-type > * > * {
        text-align: left;
    }
    .Header {
        height: 250px;
        padding: 6rem 0;
    }
    table.tavoitearvot.table {
        width: 100%;
        max-width: 100%;
        position: relative;
        display: inline-block;
        overflow-x: scroll;
        table-layout: fixed;
    }    
    table.tavoitearvot.table td {
        width: 100%;
    }    
}
@media (max-width: 480px) {
    body .col-md-12 .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .tulokset .row.legend {
        text-align: center;
        padding-left: 0;
        font-weight: 700;
        width: 100%;
        margin-bottom: 20px;
        border-bottom: 1px solid #444;
        padding-bottom: 25px;
        align-self: center;
    }
    .tulokset .row.legend span {
        margin: 1px 0px;
        width: 100%;
    }    
}

@media (min-width: 768px) {
    .col-md-12 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    table.tavoitearvot.table td {
        font-size: 1rem;
        padding: 8px 5px !important;        
    }    
}
@media (min-width: 1200px) {
    body .col-md-3 * {
        flex: 1 1 100%;
    }
}



// flexbox support for scroll-y

@mixin dt-display-flex {
    display: -webkit-flex; // support for responsive scroll-y
display: -ms-flexbox;
    display: flex;
}
@mixin dt-flex-11a {
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}
@mixin dt-flex-100 {
    -webkit-flex: 1 0 0;
    -ms-flex: 1 0 0;
    flex: 1 0 0;
}
@mixin dt-flex-vertical {
    -webkit-flex-flow: column nowrap;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
}

.dataTables_wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
@include dt-display-flex;
@include dt-flex-vertical;
@include dt-flex-11a;
}
// scroll-x and scroll-y support
// content-box rule is critical

   table.dataTable,
   table.dataTable th,
   table.dataTable td {
       -webkit-box-sizing: content-box;
       -moz-box-sizing: content-box;
       box-sizing: content-box;
   }
.dataTables_wrapper .dataTables_scroll {
    clear: both;
@include dt-display-flex;
@include dt-flex-vertical;
@include dt-flex-11a;
// codepen rules to better identify scroll wrapper
    border: 1px solid #ccc;
    margin: 0.5rem 0;
}

.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
@include dt-flex-100;
    margin-top: -1px;
    -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th > div.dataTables_sizing,
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td > div.dataTables_sizing {
    height: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.dataTables_wrapper:after {
    visibility: hidden;
    display: block;
    content: "";
    clear: both;
    height: 0;
}

// column sorting indicators

   table.dataTable thead .sorting_asc,
   table.dataTable thead .sorting_desc,
   table.dataTable thead .sorting {
       cursor: pointer;
   }
table.dataTable thead .sorting {
    background: url("../img/datatables/sort_both.png") no-repeat center right;
}
table.dataTable thead .sorting_asc {
    background: url("../img/datatables/sort_asc.png") no-repeat center right;
}
table.dataTable thead .sorting_desc {
    background: url("../img/datatables/sort_desc.png") no-repeat center right;
}
table.dataTable thead .sorting_asc_disabled {
    background: url("../img/datatables/sort_asc_disabled.png") no-repeat center right;
}
table.dataTable thead .sorting_desc_disabled {
    background: url("../img/datatables/sort_desc_disabled.png") no-repeat center right;
}
pre {
    color: white;
}

/* ranking */
.red {
    background: #dc5148 !important;
}
.orange {
    background: #ffa224 !important;
}
.yellow {
    background: #ddde3f !important;
}
.green {
    background: #4eaf4a !important;
}
.compare .row.legend {
    text-align: center;
    margin-bottom: 25px;
    padding-left: 15px;
    align-self: center;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 25px;
    width: 100%;
}
.compare .row.legend span {
    margin-left: 10px;
    margin-right: 10px;
}

main.editpages textarea {
	width: 100%;
}