/* body */
body {
    background-image: url("img/2.0/qpbg_dark.png");
    background-size: 160px;
    background-color: #a12722;
    animation: qpbg_anim 10s linear infinite;
    font-family: "Silkscreen", sans-serif;
    width: 100vw;
    font-size: 20px;
    color: #eeeae6;
    overflow-x: hidden;
    padding-bottom: 60px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

body>* {
    clear: both;
}

* {
    box-sizing: border-box;
    image-rendering: pixelated
}
/* header */
.gui-extension {
    background-image: url("img/2.0/gui/qp_gui_extend.png?");
    background-size: contain;
    width: 10px;
    height: 155px;
}



button {
    text-align: center;
}

.gui-base {
    background-image: url("img/2.0/gui/qp_gui_base.png?");
    background-size: contain;
    width: 80px;
    height: 155px;
}

.logo-big {
    display: grid;
    justify-items: center;
}

.logo-big span {
    position: relative;
    top: -10px;
}

@media only screen and (max-width: 700px) {
    .logo-big {
        display: none !important
    }

    #logo-c .gui-extension {
        justify-items: unset !important;
    }

    .logo-small {
        padding-left: 20px;
    }
}

@media only screen and (min-width: 700px) {
    .logo-small {
        display: none !important
    }
}

#logo-c .gui-extension {
    min-width: 340px;
    align-items: center;
    width: 100vw;
    display: block;
    justify-items: center;
}

#logo-c .gui-extension img {
    position: relative;
    top: 10px;
    height: 125px;
}

#logo-c .darkmode {
    background-image: url("img/2.0/gui/light_dark_mode.png?");
    height: 80px;
    width: 80px;
    position: absolute;
    right: 20px;
    background-size: 160px;
    background-position: 0% 0%;
    top: 35px;
    border: 0;
    background-color: transparent;
}

.quakepluslogo-small {
    top: 15px !important;
}
/* downloads */
#dl-c .gui-extension {
    min-width: 270px;
    padding-left: 5px;
    align-content: end;
    transition: min-width 0.5s ease;
}

#dl-c span {
    position: relative;
    align-content: start;
    top: 0;
    color: #4a0505;
    float: left;
    text-align: left;
    padding-left: 10px;
}

#dl-c p {
    clear: both;
}

#dl-c {
    z-index: 10;
    position: absolute;
    width: fit-content;
}

#dl-c .gui-base {
    min-width: 80px;
}

#dl-c .gui>a>* {
    float: left;
}

#dl-c .gui:hover .gui-extension {
    min-width: 325px;
}

#dl-c .gui:hover {
    animation: gui_hover 0.5s;
}

.gui {
    clear: both;
}

.removed {
    display: none;
}

a, a:hover {
    color: #eeeae6;
}
/* info */
#info-c {
    margin-left: 400px;
    background-color: #a12722;
    padding: 0 10px 10px 10px;
    margin-right: 20px;
    max-width: 100vw;
    z-index: 0;
    margin-bottom: 60px;
    border: 6px solid #4a0505;
}

#info-c h1 {
    text-shadow: 2.5px 2.5px #440006;
}

#info-c p {
    text-shadow: 1.25px 1.25px #440006;
}

#cl-c {
    overflow: auto;
}

.media-flex {
    display: flex;
    gap: 10px;
    flex-direction: row;
    width: calc(100% - 10px);
    margin-top: 2em;
}

#logo-c {
    position: sticky;
    top: 0;
    z-index: 100;
}

.media-flex>* {
    max-width: 90%;
    min-width: 50%;
}

video {
    aspect-ratio: 86 / 48;
    background-image: url("vid/1_4_special_railguns.png");
    background-size: cover;
    min-width: 50.5% !important;
}

.date {
    float: right;

    padding: 10px;
}

button {
    border: none;
    margin: 0px;
    padding: 0px;
    background-color: initial;
    align-items: normal;
    display: block;
}

button:focus {
    outline: 0;
}

.breaker {
    height: 10px;
}

footer {
    z-index: 100;
}

.vh-versions, .downloads {
    overflow: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wh-versions::-webkit-scrollbar, .downloads::-webkit-scrollbar {
  display: none;
}

.vh-button  {
    display: inline-block;
    padding: 0 0.2em;
    background-color: #b8342c;
    border-color: #4a0505;
    border-style: solid;
    border-width: 4px 2px;
    color: white;
}

.vh-button.selected {
    background-color: #a12722;
}

.vh-button:first-child {
    border-width: 4px 2px 4px 4px;
}

.vh-button:last-child {
    border-width: 4px 4px 4px 2px;
}

/* animations */
@media only screen and (min-width: 900px) and (max-width: 1175px) {
    #dl-c .gui-extension {
        min-width: 400px !important;
        transition: none !important;
    }
}

@media only screen and (max-width: 1175px) {
    #dl-c .gui-base {
        display: none;
    }

    .media-flex {
        flex-direction: column;
    }

    .media-flex *, video {
        max-width: 100vw !important;
    }

    #dl-c .gui-extension {
        min-width: 100%;
        width: 100%;
    }

    #dl-c .gui {
        width: 100%;
    }

    #dl-c {
        width: 100%;
    }

    #dl-c p {
        width: 100%;
    }

    #info-c {
        margin: 0 0 50px 0;
        position: initial;
        left: initial;
        top: initial;
        max-width: 100vw;
        width: 100vw;
    }

    #info-c p {
        margin: 0;
    }

    #dl-c {
        position: initial;
    }

    /* .media-flex {
        flex-direction: column;
        width: 100%;
        margin-top: 2em;
    }

    .media-flex>*{
        max-width: calc(100% - 20px);
    } */
}

@keyframes gui_hover {
    0% {
        filter: saturate(1)
    }
    50% {
        filter: saturate(1.3)
    }
}

@keyframes qpbg_anim {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 160px 160px;
    }
}
