
/* CTForge: Forge your own CTF.
   

   Copyright (C) 2016-2019  Marco Squarcina
   Copyright (C) 2016-2019  Mauro Tempesta
   Copyright (C) 2016-2019  Lorenzo Veronese

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published
   by the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU Affero General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>. */

@font-face {
    font-family: 'Share Tech Mono';
    font-style: normal;
    font-weight: 400;
    src: local('Share Tech Mono'), local('ShareTechMono-Regular'), url(/static/fonts/RQxK-3RA0Lnf3gnnnNrAsYW_AySPyikQrZReizgrnuw.ttf) format('truetype');
}


body {
    min-height: 500px;
    padding-top: 70px;
    color: #000000;
}

pre, code, textarea.form-control {
    padding:2px;
    font-family: 'Share Tech Mono', monospace;
    color: #FFFFFF;
    background-color: #003a70;
    border: 0;
    border-radius:2px;
}
kbd, samp {
    font-family: 'Share Tech Mono', monospace;
}
pre code {
    border: 0;
    font-size: 14px;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: scroll;
}

thead, tr {
    background-color: rgba(238, 232, 213, 0.09);
}

table {
    background-color: #163c44; /*rgba(238, 232, 213, 0.09);*/
}
.table>thead>tr>.active, .table>tbody>tr>.active, .table>tfoot>tr>.active,
.table>thead>.active>td, .table>tbody>.active>td, .table>tfoot>.active>td,
.table>thead>.active>th, .table>tbody>.active>th, .table>tfoot>.active>th {
    background-color: #2a4c51; /*rgba(238, 232, 213, 0.05);*/
}

.table thead th {
    border-bottom: 0;
}

.jumbotron {
    background: transparent url("/static/img/head.png") no-repeat top center;
    background-size: contain;
    height: 120px;
}

.lead strong {
    font-weight: 700;
}

.form-signin {
    margin: 100px 0;
}

.form-submit {
    margin: 20px 0 0 0;
}

.list-group {
    font-size: small;
}
.form-signin input,
.form-submit input,
.input-group-addon,
a.list-group-item {
    background-color: #006777;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #ffffff;
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:active {
    background-color: #006777;
    background-image: none;
}
a.list-group-item:hover {
    background-color: rgba(50, 10, 50, 0.5);
    color: #dddddd;
}

.form-signin .form-signin-heading, .form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: normal;
}
.form-signin .form-control,
/*.form-submit .form-control, */
.form-signin button /*,
                       .form-submit button */ {
                           position: relative;
                           font-size: 20px;
                           height: auto;
                           -webkit-box-sizing: border-box;
                           -moz-box-sizing: border-box;
                           box-sizing: border-box;
                       }
.form-signin .form-control:focus {
    z-index: 2;
}
.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.modal {
    overflow-y: auto;
}
#flash-messages .modal-content {
    opacity: 0.9;
    background: none;
    color: inherit;
    box-shadow: none;
    border: 0;
    margin: 0;
}

.modal .modal-dialog {
    margin: 50px auto;
}

#hints {
    display: none;
}

table.scoreboard span.alert-info {
    border-radius: 3px;
    padding: 0 2px;
    background: #440606;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0px 0px 1px #000000;
}

table.scoreboard span.alert-danger {
    /*color: #7e284a;*/
    /*text-shadow: 0px 0px 1px #000000;*/
    color: inherit;
}

.chart {
    height: 1000px;
    width: 100%;
}

.global-score {
    font-weight: bold;
}


.chall-tile {
    display: block;
    padding: 4px;
    margin-top: 30px;
    line-height: 1.42857143;
    border: 1px solid rgba(0, 43, 54, 0.95);
    background-color: rgba(238, 213, 213, 0.876);
    border-radius: 4px;
    -webkit-transition: border .2s ease-in-out;
    -o-transition: border .2s ease-in-out;
    transition: border .2s ease-in-out;
    padding: 9px;
    color: inherit;
    clear:both;
}
.chall-tile:hover {
    color: inherit;
    text-decoration: none;
}
.chall-tile:active, .chall-tile:visited, .chall-tile:enabled, .chall-tile:link, .chall-tile:hover{
    color: inherit;
    text-decoration: none;
}
.chall-tile.inactive {
    opacity: 0.55;
}
.chall-tile .title {
    color: #000000;
}
.chall-tile h3 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-align: center;
    margin-top: 10px;
}
.chall-tile .solvers {
    float: right;
}

.chall-tile .description {
    color: #000000;
    text-align: center;
    margin-bottom: 0;
    padding-top: 4px;
    padding-bottom: 4px;
    background: rgba(238, 213, 213, 0.125);
    border-radius: 2px;
}

.chall-tile:hover {
    border: 1px solid rgba(0, 43, 54, 0.9);
    box-shadow: 0 0 10px 1px rgba(238, 232, 213, 0.08);
    transition: border 0.4s ease;
    transition: box-shadow 0.4s ease;
}

.chall-tile:active {
    background: rgba(238, 232, 213, 0.08);
}

.chall-tile:focus {
    outline: none;
}

.carousel-caption {
    position: initial !important;
}

span.chall-header {
    display:inline-block;
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    vertical-align: bottom;
}

table.scoreboard thead th {
    vertical-align: middle;
}

table.scoreboard .badge {
    padding: 10px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 4px #313131;
    opacity: 0.8;
}

table.scoreboard .badge.badge-danger {
    background: #d9534f;
}

table.scoreboard .badge.badge-warning {
    background: #f0ad4e;
}

table.scoreboard .badge.badge-info {
    background: #5bc0de;
}

footer img {
    height: 1em;
}

.pad-left {
    padding-left: 1em;
}

.bg-no {
    background: none;
}

/* Row counter for scoreboards */
 table.scoreboard tbody {
     counter-reset: rowNumber;
 }

 table.scoreboard tr {
     counter-increment: rowNumber;
 }

 table.scoreboard tr td.counter::before {
     content: counter(rowNumber);
 }

 table.scoreboard td:first-child, .table th:first-child {
     padding-left: 0.75rem;
 }

 table.scoreboard td:nth-last-child(2), .table th:nth-last-child(2) {
     padding-right: 0.75rem;
 }

 table.scoreboard td, table.scoreboard th {
     padding: 0.75rem 0.40rem;
 }

.markdown-text {
    color: #fff !important;
}

.markdown-text:hover {
    color: #fff !important;
}