/**
/**
**
*
  sorry, not sorry
*/

/*
* Fonts
*/

@font-face {
    font-family: "Officer Sans";
    font-style: normal;
    font-weight: 400;
    src: url("../../fonts/officer-sans/OfficerSansWeb-Regular.woff")
        format("woff");
    src: url("../../fonts/officer-sans/OfficerSansWeb-Regular.woff2")
        format("woff2");
}

@font-face {
    font-family: "Kario";
    src: url("../../fonts/kario-39c3/Kario39C3VarWEB-Roman.woff") format("woff");
    src: url("../../fonts/kario-39c3/Kario39C3VarWEB-Roman.woff2")
        format("woff2");
}

.light-mode,
.light-mode b,
.light-mode a,
.light-mode button,
.light-mode div,
.light-mode th,
.light-mode td,
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode input,
.light-mode .cycle span {
    font-family: "Kario" !important;
    font-weight: 10 !important;
    font-kerning: none;
}

.toggle {
    font-family: "Kario";
    font-size: 2rem;
    cursor: pointer;
}
.toggle:hover {
    color: var(--secondary);
}

h1 {
    font-family: "Kario" !important;
}

h2,
#hxp-navbar a {
    font-family: "Kario";
}

h2,
body {
    font-family: "Officer Sans";
}

#hxp-navbar a {
    font-size: 1em;
}

/*
 * General reusable definitions
 */

:root {
    --primary: #00ff00;
    --secondary: #9673ff;
    --dark: #141414;
    --dark-transparent: #141414dd;
    --neutral: #faf5f5;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.pschorr-red {
    color: #ff5053;
}

.center {
    text-align: center;
}

.ta-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.c3logo img {
    width: 198px;
}

.c3logo {
    margin-bottom: 32px;
}

body {
    background-color: var(--dark);
    /*  background-image: url('../../img/blob-collision-rect-3_red.svg');
  background-image: url('../../img/grid-12x16.svg');*/
    /*  background-repeat: no-repeat;*/
    /*  background-attachment: fixed;*/
    /*background-size: 50%;*/
}

/*
 * Object specific definitions
 */

html,
body {
    /*min-height: 100%;*/
}

html.scoreboard-full,
body.scoreboard-full {
    height: 100%;
    background-image: none;
}

body {
    margin: 0 !important;
}

html {
    background: transparent;
}

.ch-solved {
    background-color: var(--primary) !important;
}

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

hr {
    border-color: var(--primary);
}

.border-info {
    border-color: var(--secondary) !important;
}

#challnges_table {
    table-layout: fixed;
    border: none;
}

#challnges_table th {
    border: none;
}

#challnges_table th img {
    display: block;
    margin: auto;
    max-width: 65%;
}

#challnges_table tr td {
    border: 1px solid #29114c;
}

#challnges_table td p.categoryLineup {
    margin: 10px 0;
}

#challnges_table td p.solvCount {
    margin: 0;
}

#challnges_table td a {
    word-wrap: break-word;
}

#main_container {
    min-height: 100%;
    padding: 0 0 50px 0;
}

#container_content {
    margin-top: 20px;
}

.post {
    /*font-family: 'Open Sans', sans-serif;*/
    font-family: sans-serif;
    font-size: 16px;
}

.announce-box {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 0;
    border: 2px solid #29114c;
    margin: 10px 0;
    min-height: 11em;
}

.announce-box h2 {
    border-bottom: 2px solid #29114c;
    margin: 0;
    padding: 10px 0;
}

.announce-box p {
    margin: 10px 15px 3px 15px;
}

.centered-pills {
    text-align: center;
}
.centered-pills ul.nav-pills {
    display: inline-block;
}
.centered-pills li {
    display: inline;
}
.centered-pills a {
    float: left;
}

.progress-bar-skittles {
    background-color: #007cb2;
    background-image: -webkit-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: -o-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    -webkit-background-size: 40px 40px;
    background-size: 40px 40px;
}

/*
 * Element specific definitions
 */

html {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

footer {
    color: #aaa;
    font-size: 14px;
    font-family: "Kario";
}

nav ul {
    text-align: center;
}

nav ul li a {
    border: 2px solid #14213d;
    border-radius: 0;
    margin-right: 8px;
    margin-top: 6px;
    margin-bottom: 6px;
    color: var(--neutral);
}

.highlight {
}

.team-profile {
    background: #141414dd;
    padding-top: 40px;
    padding-bottom: 40px;
    border-top: 6px solid var(--secondary);
}

.team-profile label {
    color: #ccc;
    margin-top: 20px;
}

h2.profile {
    font-size: 1.5em;
    color: var(--secondary);
    /*border-bottom: 1px solid #29114C;*/
}

.challenge-heading {
    margin-top: 2.5em;
    background: #141414dd;
}

.challenge-heading h1 {
    font-size: 2.5em;
    color: #00ff00;
}

.challenge-heading img {
    height: 4em;
}

.challenge-description {
    background: #141414dd;
    border-top: 6px solid var(--secondary);
    padding-left: 24px;
    margin-top: 40px;
    border-radius: 0px;
    padding: 15px;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 20px 0;
}

.challenge-description h1 {
    font-weight: 500;
    font-size: 1em;
}

.challenge-description h2 {
    font-weight: 500;
    font-size: 0.8em;
}

.challenge-description h3 {
    font-weight: 500;
    font-size: 1em;
}

.challenge-description p:last-child {
    margin-bottom: 0;
}

.challenge-description hr {
    border-width: 1px !important;
    margin-top: 40px;
}

.submission {
    border-left: 1px solid #29114c;
    padding-left: 24px;
}

.team-description {
    margin: 20px 0;
    font-weight: bold;
}

.advertisement {
    font-size: 1.3em;
    margin-top: 10px;
    margin-bottom: 60px;
    color: #29114c;
    font-family:
        "Kario", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
        "Courier New", monospace;
}

a:hover {
    color: #00be00;
}

.btn:hover,
nav a:hover {
    /*box-shadow: 8px 6px 0px 0px #00ff00;*/
    /*  border-image-source: url('../../img/border-info.svg') !important;*/
}

.border-hxp {
    border-color: #29114c;
    border-width: 1px;
}

.border {
    border-radius: 0;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
}

.btn-hxp,
.form-control-file {
    background-color: var(--secondary);
    border-color: var(--secondary);
    border-radius: 0;
    color: black;
    border-radius: 0;
    font-family: "Kario";
}

.form-control-file {
    background-color: var(--secondary);
    border-color: var(--secondary);
    border-radius: 0;
    color: black;
    border-radius: 0;
}

.btn-hxp:hover,
.form-control-file:hover {
    background-color: #00ff00;
    color: var(--dark);
    border-radius: 0;
    border-color: #00ff00;
}

.btn-secondary {
    border-radius: 0;
}

.btn-hxp-red {
    background-color: var(--primary);
    color: var(--dark);
    font-family:
        "Kario", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
        "Courier New", monospace;

    border-radius: 0;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
}

.btn-hxp-red:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

#hxp-navbar,
#footer {
    background-color: var(--dark);
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 0;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
    border-style: solid;
    border-width: 2px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-top-width: 6px;
}

#hxp-navbar {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#footer {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-top: 40px;
}

#footer p {
    margin: 0;
    padding: 0;
    line-height: 2em;
    padding-top: 24px;
    padding-bottom: 24px;
    font-family:
        "Kario", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
        "Courier New", monospace;
}

#footer p a {
    color: var(--secondary);
    font-weight: bold;
    font-family:
        "Kario", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
        "Courier New", monospace;
}

#hxp-navbar a,
.navbar-light .navbar-text,
.navbar-light .navbar-toggler {
    color: var(--dark);

    border-radius: 0;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    margin-left: 8px;
    border-color: var(--primary);
    background: var(--primary);
    font-size: 1.5em;
}

#hxp-navbar a:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--dark);
}

#hxp-navbar a.active {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--dark);
}

.navbar-light .navbar-toggler {
    border-color: var(--primary);
}

.navbar-toggler div {
    width: 30px;
    height: 5px;
    background-color: var(--dark);
    margin: 4px 0;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("../../img/toggler-icon.svg");
}

.ct-label {
    color: var(--neutral);
}

.ct-series-a .ct-bar {
    stroke: var(--primary);
}

.ct-series-b .ct-bar {
    stroke: #29114c;
}

.col.center img {
    margin-top: 50px;
    margin-bottom: 30px;
}

img.mx-auto {
    margin-bottom: 20px;
}

.alert {
    background: #141414dd !important;
    color: var(--neutral) !important;
    font-size: 1.2em;

    border-radius: 0;
    border-width: 1px;
    border-top-width: 6px;
    padding: 8px 8px;
    text-align: center;
    vertical-align: middle;
}

.alert.alert-info {
    border-color: var(--secondary);
}

.alert.alert-success {
    border-color: var(--primary);
}

.alert.alert-warning {
    border-color: #ff3719;
}

.alert.alert-primary {
    border-color: var(--primary);
}

.form-control {
    border-radius: 0;
    border: 1px solid var(--secondary);
    font-family: "Officer Sans", sans-serif;
    background: var(--dark-transparent);
    border-top-width: 6px;
    color: var(--neutral);
}

.form-control:focus {
    border-color: #92dce5;
    background: var(--dark-transparent);
    color: var(--neutral);
    box-shadow: none;
}

.form-control[readonly] {
    background: var(--dark-transparent);
}

/* https://stackoverflow.com/questions/51580279/bootstrap-4-modal-pop-up-header-login-stretch-to-the-right-when-click, https://github.com/twbs/bootstrap/issues/14040#progressive-timeline-item-container */
.modal-open {
    overflow-y: auto !important;
    padding-right: 0 !important;
}

.modal-scrollbar-measure {
    overflow: hidden;
}

#newsbox {
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 40px;
}

.progress-bar {
    transition: width 0.05s linear;
}

.hidden {
    display: none;
}

.row.p-1 {
    background: var(--dark-transparent);
    margin-top: 20px;
}

.chall-card {
    border-radius: 0;
    border-color: var(--secondary) !important;
    background: var(--dark-transparent);
    margin: 4px;
    border-width: 1px !important;
    border-top-width: 6px !important;
}

.chall-card a {
    font-family: "Kario";
    color: var(--secondary);
}

.chall-card:hover,
.chall-card:active {
    border-color: var(--primary) !important;
    background: #00ff0033;
}

.chall-card:hover a,
.chall-card:active a {
    color: var(--primary) !important;
}

.table {
    background: var(--dark-transparent);
}

.table thead th {
    border-bottom: 1px solid var(--secondary) !important;
    border-top: 6px solid var(--secondary);
}

.table td {
    border-top: 1px solid var(--secondary);
}

/* stolen from https://framagit.org/dab/catapulse/commit/de41f3570c70b52b447baa088e6ee805b610eed6*/
.table-header-rotated th.row-header {
    width: auto;
}

.table.table-header-rotated thead th {
    border-top: none;
}

.table-header-rotated td {
    width: 45px;
    border-top: 2px solid #29114c;
    border-left: 2px solid #29114c;
    border-right: 2px solid #29114c;
    border-bottom: 6px solid #29114c;
    vertical-align: middle;
    text-align: center;
}

.table-header-rotated th.rotate-45 {
    height: 175px; /*tune here*/
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    vertical-align: bottom;
    padding: 0;
    font-size: 1rem;
    line-height: 0.8;
}

.table-header-rotated th {
    border: 0;
}

.table-header-rotated th.rotate-45 > div {
    position: relative;
    height: 100%;
    width: 100%;
    -ms-transform: skew(-45deg, 0deg);
    -moz-transform: skew(-45deg, 0deg);
    -webkit-transform: skew(-45deg, 0deg);
    -o-transform: skew(-45deg, 0deg);
    transform: skew(-45deg, 0deg);
    overflow: hidden;
    border-right: 2px solid #29114c;
    left: 88px; /*tune here**/
}

.table-header-rotated th.rotate-45 a {
    -ms-transform: skew(45deg, 0deg) rotate(315deg);
    -moz-transform: skew(45deg, 0deg) rotate(315deg);
    -webkit-transform: skew(45deg, 0deg) rotate(315deg);
    -o-transform: skew(45deg, 0deg) rotate(315deg);
    transform: skew(45deg, 0deg) rotate(315deg);
    position: relative;
    display: inline-block;
    text-align: left;
    width: 80px;
    left: -16px;
    bottom: -127px; /*tune here*/
    white-space: nowrap; /*whether to display in one line or not*/
    font-size: 95%;
}
/*
th.rotate {
	height: 200px;
	white-space: nowrap;
	padding-bottom: 0 !important;
	border: 1px solid #ccc;
}

th.rotate > div {
	transform:
	rotate(270deg);
	width: 15px;
}
th.rotate > div > span {
	padding: 5px 10px 0;
}
*/

#scoreboard_max_table.table-hover tbody tr:hover {
    /*background-color: rgba(203, 222, 92, 0.5) !important;*/
    background-color: rgba(177, 74, 237, 0.5) !important;
    color: var(--neutral);
}

#scoreboard_max_table.table-hover thead th {
    border-bottom-color: #ff66d8;
}

.table-hover tbody tr:hover {
    background-color: var(--secondary);
}

td {
    white-space: nowrap;
}

td.rotate-td {
    width: 50px;
    border: 2px solid #29114c;
    border-bottom-width: 6px;
}

#scoreboard_max_table {
    width: auto !important;
}

td.bg-solved {
    background-color: #00ff00 !important;
    color: var(--dark);
    /*background-color: rgba(177, 74, 237, 0.5) !important;*/
}

td.bg-down {
    background-color: #ff3333 !important;
}

td.bg-na {
    background-color: #444 !important;
}

td.td-highlight {
    font-weight: bold;
    text-align: center;
}

.ribbon:nth-child(even) {
    margin-right: 4%;
}
@media (max-width: 500px) {
    .ribbon {
        width: 100%;
    }
    .ribbon:nth-child(even) {
        margin-right: 0%;
    }
}
.wrap {
    width: 100%;
    height: 188px;
    position: absolute;
    top: -8px;
    left: 8px;
    overflow: hidden;
}
.wrap:before,
.wrap:after {
    content: "";
    position: absolute;
}
.wrap:before {
    width: 40px;
    height: 8px;
    right: 100px;
    background: #4d6530;
    border-radius: 8px 8px 0px 0px;
}
.wrap:after {
    width: 8px;
    height: 40px;
    right: 0px;
    top: 100px;
    background: #4d6530;
    border-radius: 0px 8px 8px 0px;
}
.ribbon6 {
    width: 120px;
    height: 24px;
    line-height: 24px;
    position: absolute;
    top: 20px;
    right: -26px;
    z-index: 2;
    overflow: hidden;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border: 1px dashed;
    box-shadow:
        0 0 0 3px #00ff00,
        0px 21px 5px -18px rgba(0, 0, 0, 0.6);
    background: #00ff00;
    text-align: center;
    color: black;
}

code {
    color: #ffc107 !important;
}

.close {
    color: #ffc107;
    text-shadow: none;
    opacity: 1;
}

.close:hover {
    color: #ff3719;
}

.modal-body {
    padding: 24px;
}

.modal-body b {
    font-weight: normal;
}

.modal-content {
    border: none;
}

/* GLITCHING */

@keyframes font_weight_wave {
    from {
        font-weight: 10;
    }
    to {
        font-weight: 100;
    }
}

.logo {
    text-align: center;
    padding-top: 60px;
    min-height: 210px;
    padding-bottom: 40px;
}

.logo .cycle {
    display: block;
    position: absolute;
    left: 50%;
    top: 150px;
    z-index: 2;
    margin-left: -64px;
    color: var(--dark);
    font-size: 3rem;
}

.logo img {
    z-index: 1;
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -180px;
}

.logo39c3 {
    color: var(--secondary);
    font-size: 4rem;
}

.animation-on .cycle span {
    font-family: "Kario";
    font-kerning: none;
    animation: font_weight_wave 2s ease-in-out 0s infinite alternate both;
    animation-delay: 0s;
    font-weight: 100;
}

.animation-on .cycle span:nth-child(1) {
    animation-delay: -0.1s;
}
.animation-on .cycle span:nth-child(2) {
    animation-delay: -0.2s;
}
.animation-on .cycle span:nth-child(3) {
    animation-delay: -0.3s;
}
.animation-on .cycle span:nth-child(4) {
    animation-delay: -0.4s;
}
.animation-on .cycle span:nth-child(5) {
    animation-delay: -0.5s;
}
.animation-on .cycle span:nth-child(6) {
    animation-delay: -0.6s;
}
.animation-on .cycle span:nth-child(7) {
    animation-delay: -0.7s;
}
.animation-on .cycle span:nth-child(8) {
    animation-delay: -0.8s;
}
.animation-on .cycle span:nth-child(9) {
    animation-delay: -0.9s;
}
.animation-on .cycle span:nth-child(10) {
    animation-delay: -1s;
}
.animation-on .cycle span:nth-child(11) {
    animation-delay: -1.1s;
}
.animation-on .cycle span:nth-child(12) {
    animation-delay: -1.2s;
}
.animation-on .cycle span:nth-child(13) {
    animation-delay: -1.3s;
}
.animation-on .cycle span:nth-child(14) {
    animation-delay: -1.4s;
}
.animation-on .cycle span:nth-child(15) {
    animation-delay: -1.5s;
}
.animation-on .cycle span:nth-child(16) {
    animation-delay: -1.6s;
}
.animation-on .cycle span:nth-child(17) {
    animation-delay: -1.7s;
}
.animation-on .cycle span:nth-child(18) {
    animation-delay: -1.8s;
}
.animation-on .cycle span:nth-child(19) {
    animation-delay: -1.9s;
}
.animation-on .cycle span:nth-child(20) {
    animation-delay: -2s;
}
.animation-on .cycle span:nth-child(21) {
    animation-delay: -2.1s;
}
.animation-on .cycle span:nth-child(22) {
    animation-delay: -2.2s;
}
.animation-on .cycle span:nth-child(23) {
    animation-delay: -2.3s;
}
.animation-on .cycle span:nth-child(24) {
    animation-delay: -2.4s;
}
.animation-on .cycle span:nth-child(25) {
    animation-delay: -2.5s;
}
.animation-on .cycle span:nth-child(26) {
    animation-delay: -2.6s;
}
.animation-on .cycle span:nth-child(27) {
    animation-delay: -2.7s;
}
.animation-on .cycle span:nth-child(28) {
    animation-delay: -2.8s;
}
.animation-on .cycle span:nth-child(29) {
    animation-delay: -2.9s;
}
.animation-on .cycle span:nth-child(30) {
    animation-delay: -3s;
}
.animation-on .cycle span:nth-child(31) {
    animation-delay: -3.1s;
}
.animation-on .cycle span:nth-child(32) {
    animation-delay: -3.2s;
}
.animation-on .cycle span:nth-child(33) {
    animation-delay: -3.3s;
}
.animation-on .cycle span:nth-child(34) {
    animation-delay: -3.4s;
}
.animation-on .cycle span:nth-child(35) {
    animation-delay: -3.5s;
}
.animation-on .cycle span:nth-child(36) {
    animation-delay: -3.6s;
}
.animation-on .cycle span:nth-child(37) {
    animation-delay: -3.7s;
}
.animation-on .cycle span:nth-child(38) {
    animation-delay: -3.8s;
}

.ct-chart {
    background: var(--dark-transparent);
    border-top: 6px solid var(--secondary);
    padding: 15px;
}

@media (min-width: 768px) {
  .row > .col > .container > .row > .col-md-2:nth-child(1) { order: 3; }
  .row > .col > .container > .row > .col-md-2:nth-child(2) { order: 2; }
  .row > .col > .container > .row > .col-md-2:nth-child(3) { order: 4; }
  .row > .col > .container > .row > .col-md-2:nth-child(4) { order: 1; }
  .row > .col > .container > .row > .col-md-2:nth-child(5) { order: 5; }
}
