:root{
    --primary: #012b5b;
    --second: #00ff00;
    --white: #ffffff;
    --black: #000000;
    --blue: #0089ff;
    --layout-width: 1280px;
    --lines: #e3e7eb;
    --bg-tr: #eef0f3;
}

/**
    Page layout
**/

body:before{
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    opacity: 0.1;
    background-image: url(bg-web.jpeg);
    z-index: 0;
    background-size: contain;
}

html{
    overflow: auto;
}

.page {
    background-color: transparent;
    max-width: var(--layout-width);
    margin-left: auto;
    margin-right: auto;
}

.tit1 {
    font-size: 3rem;
    color: var(--primary);
    font-weight: bold;
}


.blue{
    color: var(--blue);
}

.certi{
    display: flex;
    justify-content: center;
}

.certi img{
    max-width: 450px;
}

h3{
    font-weight: 200;
    font-size: 2.2rem;
}


.container {
   max-width: var(--layout-width);
   padding: 20px 15px;
   z-index: 10;
   position: relative;
   font-size: 1.8rem;
   font-weight: 200;
}
.container a {
   color: var(--blue);
}
.container a:hover {
   opacity: .6;
}
.container .blq-2 {
   color: white;
   background: var(--primary);
   padding: 20px;
}
.container .blq-2 ul {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 20px;
   list-style: none;
}
.container .blq-2 ul li {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 20px;
}
.container .blq-2 ul img {
   max-width: 100px;
}
@media (max-width: 768px) {
   .container .dos {
       flex-direction: column;
   }
}
.container .dos {
   display: flex;
   align-items: center;
   font-size: 18px;
   gap: 20px;
}

.container .dos > div{
    width: 100%;
}

.container .dos ul {
   list-style: none;
   padding: 0;
}
.container .dos ul li {
   display: flex;
   align-items: center;
}
.container .dos ul li img {
   max-width: 200px;
}
.container .dos .now {
   width: 100%;
}
.container .dos iframe {
   border-radius: 30px;
   width: 100%;
}

.container .dos .team-table {
   max-width: none;
}
.panel-group {
   padding: 0;
   list-style: none;
}
.panel-group .panel {
   padding: 10px;
   border: 0;
}
.panel-group .panel .glyphicon {
   color: var(--primary);
}
.panel-group .panel .glyphicon span {
   font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.seccion-pd {
   padding: 0;
}
.seccion-pd .panel-body a {
   color: var(--primary);
   pointer-events: auto;
}
.seccion-pd .panel-body a:hover {
   text-decoration: none;
   opacity: 1;
}
#footer {
   font-size: 12px;
   border-top: 1px solid var(--lines);
   text-align: center;
   padding: 10px 15px;
   position: relative;
   z-index: 10;
}
#footer .footer-cont ul {
   display: flex;
   align-items: center;
   list-style: none;
   padding: 0;
   gap: 20px;
   justify-content: center;
   margin: 20px;
}
#footer .footer-cont ul img {
   max-width: 20px;
}

#footer p {
    padding: 0;
    margin: 0;
}

#footer .fade {
    opacity: 0.20;
}

#footer .fade:hover {
    opacity: 1;
}

/**
    Header / nav bar
**/

#header a {
    text-decoration: none;
}

#header {
    text-align: center;
}

#header-inner {
    border-bottom: 4px solid var(--lines);
    max-width: var(--layout-width);
    overflow: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 15px;
}

#header-logo {
    float: left;
    color: #00ff00;
    width: 100%;    
}

#header-logo h3 img{
    width: 100%;
    height: auto;
    max-width: 200px;
}

#header-logo h3{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
}

#header-logo h3 > span{
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--primary);
}

@media (max-width: 768px){
    #header-menu {
        overflow-x: auto;
    }

    #header-menu #menu-main{
        width: 615px;
        display: flex;
    }
    #header-menu #menu-main li a,
    #header-menu #menu-main li button{
        white-space: nowrap;
    }
}

#header-menu {
    display: flex;
    width: 100%;
    padding: 0;
    position: relative;
}

@media (min-width: 768px){
 #header-menu{
    justify-content: center;
}       
}

#header-menu:before{
    content: "";
    background: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/**Pill overrides**/

#menu-main .active a {
    background-color: var(--second);
    color: var(--primary);
}

#menu-main :not(.active) a:hover, #menu-main :not(.active) form:hover {
    background-color: var(--second);
    color: var(--primary);
}

#menu-main a, form {
    padding: 7px 15px;
    margin: 5px 5px;
    border-radius: 4px;
    text-shadow: 0 0 0;
    color: var(--white);
}

#menu-main button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: #428BCA;
}

#categories-menu a {
    display: block;
    text-decoration: none;
    padding: 5px 5px;
}

#categories-menu li {
    border: 1px solid #428bca;
    border-radius: 4px;
    cursor: pointer;
    float: left;
    margin: 5px 10px;
    text-align: center;
}

#categories-menu li.active {
    background: #428bca;
}

#categories-menu li.active a {
    color: #ffffff;
}

#categories-menu li.disabled {
    border-color: #b1b1b1;
}

#categories-menu li.disabled a {
    color: #b1b1b1;
}

#categories-menu {
    overflow: auto;
}

/**
    Logo
**/

#header-logo a {
    overflow: auto;
}

#site-logo {
    display: inline-block;
}

#site-logo object {
    width: 36px;
    height: 36px;
}

#footer-logo {
    display: inline-block;
}

#footer-logo object {
    width: 24px;
    height: 24px;
}

#site-logo-text {
    /*color: #000; */
    color: #7FF;
    display: inline-block;
    font-family: Georgia, Serif;
    line-height: 40px;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: top;
}

#visualise-competition {
    width: 1000px;
    height: 700px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    /* Remove the padding we set earlier */
    .masthead,
    .marketing,
    .footer {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Main marketing message and sign up button */
.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

/**
    Sign in form
**/

.form-signin {
    max-width: var(--layout-width);
    padding: 0 15px 15px 15px;
    margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: normal;
}
.form-signin .form-control {
    position: relative;
    font-size: 16px;
    height: auto;
    padding: 10px;
    -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="text"] {
    margin-bottom: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.form-signin input[type="email"] {
    margin-bottom: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.form-signin input[type="password"] {
    margin-bottom: 5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.form-signin select {
    margin-bottom: 5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/**
    Challenges page
**/

#categories-menu li {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

#category-description {
    padding: 10px 0 0 10px;
    margin-bottom: 10px;
}

.category-tab-content {
    padding: 20px;
    background: #fff;
    border: 1px solid rgb(221, 221, 221);
    border-top: none;

}

.challenge-container {
    margin-bottom: 20px;
}

.challenge-container h1 {
    font-size: 15pt;
}

.challenge-description {
    padding: 10px;
    margin-bottom: 10px;
}

.challenge-metadata ul {
    list-style-type: none;
    padding-left: 25px;
}

.challenge-metadata ul li span.glyphicon {
    margin-right: 5px;
}

.challenge-submit-metadata .glyphicon {
    padding-top: 10px;
    padding-right: 5px;
}

.challenge-submit-metadata p {
    margin: 0;
}

.flag-input {
    margin-bottom: 10px;
}

.page-header {
    padding-bottom: 10px;
    margin: 10px 0 10px;
    border-bottom: 1px solid #eeeeee;
}

.no-padding-or-margin {
    padding:0;
    margin:0;
}

.alert h1, h2, h3 {
    padding:0;
    margin:0;
}

.discreet-inline {
    padding:0;
    margin:0;
    display:inline;
}

.small-icon {
    width: 16px;
    height: 16px;
}

.bbcode_columns {
    width: 100%;
}

.bbcode_column {
    padding: 10px;
}

/** Score table **/
.team-table {    
    margin-bottom: 50px;
}

@media (min-width: 768px){
    .team-table{
        max-width: 450px;
    }
}

.team-table .team-name {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.challenge-table .team-name {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glyphicon {
    opacity: 0.8;
}

pre {
    font-size: 8pt;
    overflow: auto;
    line-height: 100%;
}

.inline-pre {
    display: inline;
    padding: 2px;
}

.center {
    text-align: center;
}

.red {
    color: red;
}

/** Messages / modal dialogs **/

.modal.challenge-attempt .modal-header {
    background: no-repeat 50% 3px;
    background-size: 70px;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid var(--lines);
    color: white;
    min-height: 70px;
}

.modal.challenge-attempt.incorrect .modal-header {
    background-image: url('../img/padlock_white.svg');
    border-bottom-color: #C14444;
    background-color: #E75353;
}

.modal.challenge-attempt.correct .modal-header {
    background-image: url('../img/flag_white.svg');
    border-bottom-color: #47ac41;
    background-color: #a8d68e;
}

.modal.challenge-attempt button {
    float: right;
}

.modal.challenge-attempt p {
    float: left;
}

.modal.challenge-attempt .modal-body {
    overflow: auto;
}

/*nuevos*/

body .h2, body h2{
    color: var(--primary);
}

body .table > thead > tr > th{
    color: var(--primary);
}

body a {
    color: var(--primary);

}

body .table > tbody > tr > td,
body .table > tbody > tr > th,
body .table > tfoot > tr > td,
body .table > tfoot > tr > th,
body .table > thead > tr > td,
body .table > thead > tr > th {
    border-top: 0;
    border-bottom-width: 0;
}

body div.col-lg-6.t-left{
    width: 35%;
}

body div.col-lg-6.t-left .team-table{
    width: 100%;
    max-width: none;
}

body div.col-lg-6.t-rigth{
    width: 55%;
}

body div.col-lg-6.t-rigth .team-table{
    width: 100%;
    max-width: none;
}

body div.col-lg-6.t-left .team-table th,
body div.col-lg-6.t-rigth .team-table th{
    background: var(--primary);
    color: var(--white);
    border-radius: 10px 10px 0 0;
    border: 1px solid var(--white);
    font-size: 1.4rem;
    text-align: center;
    box-shadow: inset 0px 10px 10px 0px #04569c;
}

@media (min-width: 500px){
    body div.col-lg-6.t-left .team-table th,
    body div.col-lg-6.t-rigth .team-table th{
        white-space: nowrap;
    }
}

/*body div.col-lg-6.t-left .team-table td,
body div.col-lg-6.t-left .team-table td a,
body div.col-lg-6.t-rigth .team-table td,
body div.col-lg-6.t-rigth .team-table td a{
    color: var(--primary);
}*/

body tbody tr {
    border: 0;
}

body .table-striped>tbody > tr:nth-of-type(odd){
    background: var(--bg-tr);
}

body .table-hover > tbody > tr:hover{
    background: var(--second);
}

body .table-hover > tbody > tr:hover td,
body .table-hover > tbody > tr:hover td a{
    color: var(--primary);
    opacity: 1;
}

body .table > tbody > tr > td,
body .table > tbody > tr > th,
body .table > tfoot > tr > td,
body .table > tfoot > tr > th,
body .table > thead > tr > td,
body .container ul,
body p#countdown,
body a:focus, 
body a:hover {
    color: var(--blue);
}

body .content-container .text-center img{
    margin-bottom: 0 !important;
}

body .col-lg-6:last-child .page-header {
    font-size: 25px;
    margin-top: 16px;;
}

body .col-lg-6:last-child {
    float: right;
    width: 44%;
}

body #header-logo h3:after {
  /**  content: url(http://hackdef.net/img/logo-ctf2.png); **/
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 768px){
    #content-container > .row{
        display: flex;
        flex-direction: column;
    }
    #content-container > .row > .col-lg-6{
        width: 100%;
    }
}


/*bootstrap override*/

body .form-horizontal .control-label {
   color: var(--primary);
}
body .btn-primary, body .btn-warning {
   border-color: var(--primary);
   background-color: var(--primary);
}
body .btn-primary.linksp {
   color: var(--primary);
   border-color: var(--second);
   background: var(--second);
   font-size: 2rem;
   font-weight: bold;
}

table.team-table.table.table-striped.table-hover td
table.team-table.table.table-striped.table-hover th{
    vertical-align: middle;
}

table.team-table.table.table-striped.table-hover td img{
    height: auto !important;
    margin: 0 !important;
    width: 20px;
}

body .modal-title,
body .checkbox label{
    color: var(--primary);
}

div#modalImage{
    display: block;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    bottom: auto;
    display: none;
    overflow: initial;
    width: 100%;
    max-width: 850px;
}

div#modalImage .modal-dialog{
    width: auto;
}

div#modalImage .modal-dialog .modal-body img{
    display: block;
    width: 100%;
}

div#modalImage .modal-dialog .modal-header {
    min-height: auto;
    padding: 0;
    border-bottom: 0;
}

div#modalImage .modal-dialog .modal-header button.close {
    margin: 0;
    position: absolute;
    top: -10px;
    right: -10px;
    height: 30px;
    width: 30px;
    background: #0089ff;
    z-index: 1;
    border-radius: 100%;
    opacity: 1;
    color: white;
    display: flex;
    justify-content: center;
    font-size: 23px;
}

/*============*/


#body-container #content-container > .row{
    margin-top: 30px;
}

#body-container #content-container > .row .page-header{
    font-weight: bold;
    margin-bottom: 30px;
}

#body-container #content-container > form .form-group > label{
    font-weight: normal;
    padding: 0;
}

#body-container #content-container > form .form-group{
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 25px;
}

@media (min-width: 768px){
    .col-sticky{
        position: sticky;
        top: 20px;
    }
}





