﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

.w-33 {
    width: 33.333% !important;
    width: calc(100% / 3) !important;
}

.w-35 {
    width: 35% !important;
}

.w-30 {
    width: 30% !important;
}

.w-10 {
    width: 10% !important;
}

.w-66 {
    width: 66.666% !important;
    width: calc((100% / 3) * 2) !important;
}


a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    background: #272b30;
    color: #c8c8c8;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.card {
    background-color: #2e3338;
}

.wad .card {
    margin: auto 0 1em 0;
}

a {
    color: #ffffff;
    text-decoration: none;
}

    a:hover,
    a:focus {
        color: #ffffff;
        text-decoration: underline;
    }

    a:focus {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }

.navbar {
    background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539);
    background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#484e55), color-stop(60%, #3a3f44), to(#313539));
    background-image: linear-gradient(#484e55, #3a3f44 60%, #313539);
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0);
    -webkit-filter: none;
    filter: none;
    border: 1px solid rgba(0, 0, 0, 0.6) !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.navbar-inverse {
    background-image: -webkit-linear-gradient(#8a9196, #7a8288 60%, #70787d);
    background-image: -o-linear-gradient(#8a9196, #7a8288 60%, #70787d);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#8a9196), color-stop(60%, #7a8288), to(#70787d));
    background-image: linear-gradient(#8a9196, #7a8288 60%, #70787d);
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8a9196', endColorstr='#ff70787d', GradientType=0);
    -webkit-filter: none;
    filter: none;
}

    .navbar-inverse .badge {
        background-color: #5d6368;
    }

.navbar-nav > li > a {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

    .navbar-nav > li > a:hover {
        background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d);
        background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d);
        background-image: -webkit-gradient(linear, left top, left bottom, from(#020202), color-stop(40%, #101112), to(#191b1d));
        background-image: linear-gradient(#020202, #101112 40%, #191b1d);
        background-repeat: no-repeat;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0);
        -webkit-filter: none;
        filter: none;
        border-left-color: transparent;
    }

.navbar .nav .open > a {
    border-color: transparent;
}

.navbar-nav > li.active > a {
    border-left-color: transparent;
}

.navbar-form {
    margin-left: 5px;
    margin-right: 5px;
}

.navbar-default .navbar-brand {
    color: #c8c8c8;
}

.navbar-default .navbar-brand {
    color: #c8c8c8;
}

    .navbar-default .navbar-brand:hover,
    .navbar-default .navbar-brand:focus {
        color: #ffffff;
        background-color: none;
    }

.navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
}

@media (min-width: 768px) {
    .navbar-nav {
        float: left;
        margin: 0;
    }

        .navbar-nav > li {
            float: left;
        }

            .navbar-nav > li > a {
                padding-top: 15px;
                padding-bottom: 15px;
            }
}

.navbar-default .navbar-nav > li > a {
    color: #c8c8c8;
}

    .navbar-default .navbar-nav > li > a:hover,
    .navbar-default .navbar-nav > li > a:focus {
        color: #ffffff;
        background-color: #272b2e;
    }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: #272b2e;
}

.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
    color: #cccccc;
    background-color: transparent;
}

.details-box {
    padding: 1rem 0;
}

.automap {
    background: url('/images/automap.gif') no-repeat;
}

.moredetails, .endoomtext {
    background: url('/images/details.png') no-repeat;
}


.automap, .moredetails, .endoomtext {
    background-size: 20px 20px;
    text-indent: 25px;
    height: 20px;
    display: inline-block;
}

.palettes div, .endoom div {
    text-align:center;
    padding: 1rem;
}
.palettes img, .endoom img {
    width: 100%;
    height: auto;
}

.endoomtext {
    position: relative;
    top: 4px;
    left: 10px;
    width: 20px;
}

@font-face {
    font-family: TerminalVector;
    src: url('/fonts/TerminalVector.ttf');
}


.endoompre {
    font-family: TerminalVector, monospace;
    background: #000;
}

.modal .modal-dialog {
    max-width: 690px;
}

    .modal .modal-content {
        background: #2e3338;
        color: #c8c8c8;
    }

    .modal .modal-header {
        background: rgba(0,0,0,.03);
    }

pre.endoompre {
    color: #c8c8c8;
}

#mapDetailsImage {
    max-width: 90%;
}

.alert.map-alert {
    padding: 0.25rem;
    margin: 0;
}

img.mapimage{
    max-width: 100%;
}

#mapDetailsList {
    margin-top: 0.75rem;
}

#suggestCorrection {
    font-style: italic;
    font-size: small;
    margin-top: 1rem;
}

#suggestCorrection a:hover {
    text-decoration: underline;
}

.suggest-iwads, .suggest-engines {
    column-count: 4;
}

    .suggest-iwads .suggest-heading, .suggest-engines .suggest-heading {
        column-span: all;
    }

.downloadlinks {
    list-style-type: none;
    padding: 0;
}
    .downloadlinks li {
        margin: 0.2rem 0;
    }

        .downloadlinks li a::before, .fulllump a::before {
            position: relative;
            top: 1px;
            display: inline-block;
            speak: none;
            font-family: 'Icons';
            font-style: normal;
            font-weight: normal;
            line-height: 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            content: '\e04e';
            margin-right: 0.3rem;
        }

.page-header {
    margin-top: 0;
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #1c1e22;
}

    .page-header h1 {
        margin-top: 0;
    }


.result-element {
    background-color: #2e3338;
    margin: 0.1rem;
    width: calc((100% /3) - 0.2rem) !important;
}
    .result-element h2 {
        padding: 0;
        margin: 0;
        font-size: 15px;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: bold;
    }

    .result-element p {
        margin-bottom: 0;
        height: 100px;
        text-overflow: ellipsis;
        overflow: hidden;
        word-break: break-word;
        color: #A5A5A5;
    }
    .result-element div {
        color: #A5A5A5;
    }

    .result-element mark {
        color: #FFF;
        background: none;
        padding: 0;
    }

    .result-element .card-body {
        padding: 0.5rem;
    }

    .result-element a:hover, .result-element a:active, .result-element a:focus {
        text-decoration: none;
    }

    .result-image img {
        width: 100%;
    }
.result-wrapper {
    background: none;
    border: none;
}

mark {
    font-weight:bold;
}
.pagination-row {
    display:block !important;
    position:relative;
    min-height: 2rem;
}
.pagination {
    display: inline-block;
    padding: 0.5rem;
    font-size: larger;
    font-weight: bold;
    background: #2e3338;
    border-radius: 0;
    border: 0;
    margin: 0.3rem 0.1rem 0.1rem 0.1rem;
    width: 3rem;
    text-align: center;
}

.page-number {
    text-align: center;
    display: inline-block;
    padding: 0.8rem;
    font-weight: bold;
    position: absolute;
    left: 40%;
    width: 20%;
}

.facets {
    margin-bottom: 1rem;
}
    .facets > span.h4 {
        display: inline-block;
        margin: 0;
        margin-right: 0.5rem;
        vertical-align: middle;
    }

    .facets .show > .btn-secondary.dropdown-toggle:focus, .facets .btn-secondary:focus {
        box-shadow: none;
    }

    .facets .dropdown a {
        text-decoration: none;
    }

    .facets .dropdown, .facets .deselect {
        display: inline-block;
        margin-right: 0.5rem;
    }

    .facets .dropdown-item span.badge {
        vertical-align: text-bottom;
    }


.dropdown-item:focus, .dropdown-item:hover {
    background-color: #ccc;
}

.top-search {
    vertical-align: middle;
}

    .top-search .search-button, .top-search .search-button:hover {
        border-color: rgba(0, 0, 0, 0.6);
        text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
        color: #ffffff;
        background-color: #3a3f44;
        margin-top: -1px;
    }

    .top-search .search-button {
        background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539);
        background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539);
        background-image: -webkit-gradient(linear, left top, left bottom, from(#484e55), color-stop(60%, #3a3f44), to(#313539));
        background-image: linear-gradient(#484e55, #3a3f44 60%, #313539);
        background-repeat: no-repeat;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0);
        -webkit-filter: none;
        filter: none;
    }

    .top-search search-button:hover {
        background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d);
        background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d);
        background-image: -webkit-gradient(linear, left top, left bottom, from(#020202), color-stop(40%, #101112), to(#191b1d));
        background-image: linear-gradient(#020202, #101112 40%, #191b1d);
        background-repeat: no-repeat;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0);
        -webkit-filter: none;
        filter: none;
    }

.random-wad-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.no-vis {
    opacity: 0;
}

.random-wad {
    float:left;
    width: 25%;
}
    .random-wad img {
        width: 100%;
        transition: opacity 0.3s linear;
    }

.readme {
    background: #FFF;
    padding: 1rem;
    border-radius: 5px;
}

.lumps .header {
    font-weight: bold;
    border-bottom: 1px solid #696969;
}

.lump-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: monospace;
}

    .lump-list .row {
        margin: 0;
    }
        .lump-list .row .text-right {
            padding-right: 10px;
        }

#nextLumps button, #nextMaps button {
    margin: 1rem auto;
}

#nextMaps {
    width: 100%;
}

#loader {
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

#loader img {
    position: relative;
    top: 50%;
}

.categories .category {
    margin-top: 2rem;
}

.archivesize .badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
    text-align: center;
    background-color: #7a8288;
    border-radius: 10px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.latest-wads ul {
    column-count: 4;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .latest-wads ul a {
        background-color: #32383e;
        border: 1px solid rgba(0, 0, 0, 0.6);
        padding: 10px 15px;
        display: block;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    .latest-wads ul li {
        margin-bottom: 0.2rem;
    }

@media (max-width: 991px) {
    .latest-wads ul {
        column-count: 2;
    }

    .main-header {
        font-size: 2rem;
    }

    .facets > span.h4 {
        display: block;
        margin-bottom: 0.3rem;
        margin-right: 0;
    }

    .w-md-50 {
        width: 50% !important;
    }

    .image-center {
        margin: auto;
    }
}

@media (max-width: 767px) {
    .random-wad {
        width: 50%;
    }

    .container {
        max-width: 720px;
    }

    .search-button {
        display: none;
    }

    .result-element {
        width: calc(50% - 0.2rem) !important;
    }

    .w-md-50 {
        width: 50% !important;
    }
}

@media (max-width: 575px) {
    .latest-wads ul {
        column-count: 1;
    }

    .navbar-brand, .navbar-toggler {
        margin: .5rem 1rem;
    }

    .top-search {
        display: block !important;
        margin: 0 15px 0 15px;
    }    

    .top-search input {
        width: 100%;
        padding: 8px 12px;
        height: 38px;        
    }

    .top-search div {
        display: block !important;
    }

    .navbar-collapse {
        border-top: 1px solid #000;
        padding-top: 1rem;
    }

    .navbar-nav {
        margin: 1rem 0;
    }

        .navbar-nav > li > a {
            border: none;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

    .result-element {
        width: calc(100% - 0.2rem) !important;
    }

    .facets .dropdown, .deselect {
        width: calc(100% - 1rem);
        margin: 0.5rem;
    }

    .facets .deselect {
        width: calc(100% - 2rem);
    }

    .facets {
        transition: max-height linear 1s;
        max-height: 1000px;
    }

        .dropdown-menu.show, .facets a {
            width: calc(100% - 1rem);
        }

    .page-header {
        margin-top: 1rem;
    }

    .facets.hideFacets {
        overflow: hidden;
        max-height: 30px;
    }

    .facets > span.h4 {
        cursor: pointer;
    }

        .facets > span.h4::after {
            content: '▲';
            float: right;
        }

    .facets.hideFacets > span.h4::after {
        content: '▼';
    }

    .w-sm-100 {
        width: 100% !important;
    }

    .w-sm-50 {
        width: 50% !important;
    }

    .map-stats > div {
        margin: 0.2rem auto;
    }

    .d-sm-none {
        display: none;
    }

    .show-adult {
        padding: 0 2rem;
    }
}

.errorMessage {
    padding-top: 1.3em;
}

.show-adult.form-check {
    margin-top: 1rem;
}

.lazyload.mapimage, .lazyload.graphicsimage {
    width: 250px;
}

.lazyload.main-image {
    width: 280px;
    height: 210px;
    display: block;
    visibility: hidden;
}

.col-12 .main-image {
    min-height: 210px;
}

.suggestion-box h3 {
    font-size: 1.1rem;
}

.suggestion-box h4 {
    font-size: 0.9rem;
    font-weight:bold;
}

.suggestion-box {
    padding: 0.2rem;
    margin-top: 0.5rem;
}

.suggestion-box:hover {
    background: #2e3338;
}

.suggestion-box a {
    text-align:center;
    width: 100%;
    display: inline-block;
}

#downloading {
    display:block;
    margin:auto;
}