/**********************************************************
 * General CSS Rules
 **********************************************************/
@font-face {
    font-family: 'Minecraftia';
    font-display: block;
    font-weight: 400;
    font-style: normal;
    src: local('Minecraftia'), url('/assets/Minecraftia.woff') format('woff');
}

*, *::before, *::after {
    box-sizing: border-box;
}

.stroke-text-black {
    text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.test-background {
    background-color: rgba(0, 0, 0, 0.3);
}

.fade-in {
    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 1s; /* Firefox < 16 */
        -ms-animation: fadein 1s; /* Internet Explorer */
         -o-animation: fadein 1s; /* Opera < 12.1 */
            animation: fadein 1s;
}

.basic-shadow {
    -moz-box-shadow: rgba(0, 0, 0, 0.29) 0px 10px 20px, rgba(0, 0, 0, 0.43) 0px 6px 6px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.29) 0px 10px 20px, rgba(0, 0, 0, 0.43) 0px 6px 6px;
    box-shadow: rgba(0, 0, 0, 0.29) 0px 10px 20px, rgba(0, 0, 0, 0.43) 0px 6px 6px;
    /*
    -moz-box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    -moz-box-shadow: 0 0 4px #111;
    -webkit-box-shadow: 0 0 4px #111;
    box-shadow: 0 0 4px #111;
    */
}

.full-flex-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.full-flex-right {
    display: flex;
    flex-direction: row;
    justify-items: center;
    justify-content: space-between;
}

/**********************************************************
 * Background / General Page Styling
 **********************************************************/
body, html
{
    margin:0px;
    padding:0px;
    width:100%;

    min-height: 100%;
    min-width: 100%;

    max-height: 100vh;
}

video#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    min-width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Minecraftia';

    margin: 0;
    /* height: auto; */
    /* fixing some issue idk?? */
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

button, .as-button, .standard-ui {
    text-align: center;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;
    font-family: inherit;
    font-size: 24px;
    padding: 0.5em;
}

.hide-input {
    /* Use setupLazySecret instead */
    -webkit-text-security: square;
    -moz-text-security: square;
    text-security: square;
}

button:hover, .as-button:hover  {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);

    outline: 2px solid rgba(255, 255, 255, 1);
}

a.as-button {
    color: white;
    text-decoration: none !important;
}

p.generic-welcome-text {
    color: white;
    font-size: 48px;

    text-shadow: #555 1px 1px 5px;

    text-align: center;
    position: fixed;
    width: 100%;
    top: 56px;
    z-index: -1;
}

/**********************************************************
 * Credits / loading screen
 **********************************************************/
.main-credits-dialog::backdrop {
    background-color: rgba(0,0,0,0.5);
}

.main-credits-dialog .credits-page {
    background-color: rgba(0,0,0,0.8);
    color: white;
    height: 100%;
    width: 100%;
    border: none;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 10%;
    padding-top: 5%;
    padding-bottom: 3rem;
    overflow: auto;
}

.main-credits-dialog {
    height: 100%;
    width: 100%;
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.main-credits-dialog.fade {
    animation: fade-out 1s ease-out forwards;
}

#draft-page {
    opacity: 0;
}
#draft-page.fade {
    animation: fade-in 1s ease-in forwards;
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pulseright {
    0%, 100% {
        -webkit-filter: drop-shadow(6px 6px 6px #fff); 
        filter: drop-shadow(6px 6px 6px #fff );
    }
    50% {
        -webkit-filter: drop-shadow(10px 10px 10px #fff); 
        filter: drop-shadow(10px 10px 10px #fff );
    }
    /*0%, 100% { box-shadow: 6px 6px 6px #fff, 16px 16px 16px #fff; }
    50% { box-shadow: 8px 8px 8px #fff, 8px 8px 8px #fff; }*/
}
@keyframes pulseglow {
    /* https://codersblock.com/blog/creating-glow-effects-with-css/ */
    0%, 100% {
        -webkit-filter: drop-shadow(0px 0px 6px #fff); 
        filter: drop-shadow(0px 0px 6px #fff );
    }
    50% {
        -webkit-filter: drop-shadow(0px 0px 10px #fff); 
        filter: drop-shadow(0px 0px 10px #fff );
    }
    /*0%, 100% { box-shadow: 6px 6px 6px #fff, 16px 16px 16px #fff; }
    50% { box-shadow: 8px 8px 8px #fff, 8px 8px 8px #fff; }*/
}

.main-credits-dialog .logo {
    width: 10rem;
    animation: pulseglow 2s infinite;
}

.main-credits-dialog .loading-text {
    margin: 1rem;
    font-size: 3rem;
    line-height: 3rem;
}

.main-credits-dialog .subtitle-text {
    line-height: 2rem;
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.main-credits-dialog .thanks {
    font-size: 1.5rem;
}

.main-credits-dialog .credits-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credits-container > div {
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.credits-container > div > span {
    margin-left: 3rem;
    margin-right: 3rem;
    text-align: right;
    line-height: 1em;
}

/**********************************************************
 * Footer
 **********************************************************/
div.floating-footer {
    position: fixed;
    bottom: 4px;
    width: auto; /* WARNING: Don't mess with this. otherwise z-index issues with buttons. */
    text-align: center;
    z-index: 1;

    font-size: 1rem;
    color: white;
}

div.floating-footer > a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    margin-right: 10px;

    text-shadow:
        -1px -1px 0 #555,
        1px -1px 0 #555,
        -1px 1px 0 #555,
        1px 1px 0 #555;
}
div.floating-footer > a:hover {
    text-decoration: underline;
}

/**********************************************************
 * Login Page
 **********************************************************/
:root {
    --login-draaft-height: 216px;

    --draft-main-section-width: max(45%, 4.2rem * 14);
}
div#login-page {
    width: min(100vw, 300px);
    height: min(100vh, var(--login-draaft-height));
    /* background-color: rgba(0, 0, 0, 0.3); */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    opacity: 0;
}
div#login-page.visible {
    opacity: 1;
    transition: opacity 1200ms 0ms;
}
div#login-page.invisible {
    opacity: 0 !important;
    transition: opacity 500ms 0ms;
}

div#login-page > .login-main-button {
    width: 100%;
}

div.helper-buttons {
    width: 100%;    
    height: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

div.helper-button-row {
    width: min(100vw, 600px);

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-top: 3%;
    margin-bottom: 3%;

    margin-left: 2%;
    margin-right: 2%;
}

a.helper-button {
    width: 150px;
}

div#login-response-container {
    position: fixed;
    top: 20px;
    height: 70px;
    width: 100%;
    text-align: center;
}

p#login-response-text {
    color: white;
    font-size: 20px;
}

:root {
    --draft-logo-width: min(25%, 108px);
}

.draaft-logo {
    width: var(--draft-logo-width);

    -webkit-filter: drop-shadow(6px 6px 6px #444);
    filter: drop-shadow(6px 6px 6px #444 ); 
}

#login-draaft-logo {
    position: fixed;
    left: calc(100vw * 0.5 - 0.5 * var(--draft-logo-width));
    top: calc(0.5 * (100vh / 2 - var(--login-draaft-height) / 2 - var(--draft-logo-width)));

    width: var(--draft-logo-width);

    -webkit-filter: drop-shadow(6px 6px 6px #444);
    filter: drop-shadow(6px 6px 6px #444 ); 
}

/**********************************************************
 * Menu Page
 **********************************************************/
div#menu-page {
    display: none;
    opacity: 0;

    width: min(100vw, 500px);
    height: min(100vh, 800px);

    /* Flex Settings */
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
div#menu-page.visible {
    display: flex;
    opacity: 1;
    transition: opacity 900ms 0ms;
}

div#menu-page > img.draaft-logo {
    --draft-logo-width: min(100%, 64px);
    position: fixed;
    top: 16px;
    left: calc(50vw - var(--draft-logo-width) / 2);
    z-index: -1;
}

#menu-join-room {
    margin-bottom: 24px;
    width: 100%;
}

#menu-create-room {
    width: 100%;
}

#menu-rooms {
    width: min(100vw, 500px);

    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#menu-input-roomid {
    width: min(362px, 80%);
}

#menu-roomid-join {
    width: min(90px, 20%);
}

#menu-helpers {
    width: 100%;
    height: 146px;
}

div#menu-helper-buttons {
    height: 100%;
}

div.menu-helper-row {
    justify-content: space-around;
    width: 100%;

    display: flex;
    flex-direction: row;
    margin: 0;
}

/**********************************************************
 * Room Page
 **********************************************************/
div#room-page {
    width: 100%;
    height: 100%;

    box-sizing: border-box;
}

div#room-page-header {
    width: 100%;
    /* height: 100%; */

    box-sizing: border-box;

    display: flex;
    align-items: center;

    /* Adapted from standard-ui */
    text-align: center;
    border: none;
    background-color: rgba(0, 0, 0, 0.6);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;
    font-family: inherit;
    font-size: 24px;
    padding: 0.3em;

    height: 2.4em;

    justify-content: space-around;
}

div#room-page-header-container {
    width: 100%;

    box-sizing: border-box;

    padding: 20px;
}

.room-member-container {
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 1.4em;
}

p.room-member {
    margin: 0px;
    height: 1em;
}

.member-face {
    height: 100%;
    width: auto;
    display: inline-block;
    box-shadow: 0px 0px 4px #AAA;
    margin-right: 11px;
}

.member-name {
    display: inline-block;
}

/* here is the stuff for the gutter :) */
div#room-page-gutter-container {
    width: max(20%, 260px);
    height: 100%;
    z-index: 1;
}

div#room-page-gutter {
    width: 100%;
    height: 100%;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    /* Adapted from standard-ui */
    border: none;
    background-color: rgba(0, 0, 0, 0.6);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;
    font-family: inherit;
    font-size: 24px;
    padding: 0.3em;

    overflow: auto;
}

div#room-page-main {
    width: 100%;
    flex-grow: 1;
    min-height: 0; /* flexbox weirdness */
    padding-left: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

button#copy-room-link {
    width: 100%;
}

div#player-gutter {
    overflow-y: auto;

    font-size: 24px;
    line-height: 1em;
    max-width: 100%;
    padding-bottom: 5px;
    /*! padding-top: 5px; */
    /*! height: 100%; */
    margin-top: 4px;
    /*! box-sizing: border-box; */
}

div#player-gutter p.member-name {
    font-size: 22px;
    line-height: 1em;
    height: 1.2em;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
    /*! padding-bottom: 5px; */
    /*! padding-top: 5px; */
    /*! height: 100%; */
    /*! margin-top: 4px; */
    /*! box-sizing: border-box; */
}

div#player-gutter .room-member-container {
    height: 32px;
}

div#player-gutter .room-member-manager {
    padding: 12px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 2px;
    font-size: 16px;
}

div#player-gutter .room-member-manager-button {
    padding: 4px;
    padding-top: 2px;
    font-size: 16px;
    margin-right: 8px;
}

div#player-gutter .room-member-manager-buttons {
    margin-top: 6px;
    margin-left: 0.12em;
}

div#room-page-gutter #room-copy-link {
    margin-bottom: 12px;
    padding-top: 0.3em;
}

/* Confirm Leave Stuff */
.basic-modal-dialog::backdrop {
    background-color: rgba(0,0,0,0.5);
}

.basic-modal-dialog {
    background-color: rgba(0,0,0,0.4);
    color: white;
}

.basic-modal-dialog form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.basic-modal-dialog p:first-child {
    margin-top: 0;
}

/* ROOM CONFIGURATION! YAY */
#room-page-config-container {
    flex-grow: 1;
    padding: 2em;
}

#room-page-config {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0.3em;
    height: 100%;

    /* Adapted from standard-ui */
    border: none;
    background-color: rgba(0, 0, 0, 0.6);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;
}

#config-area {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: 24px;
    padding: 0.3em;

    overflow: auto;

    align-items: center;
}

.basic-config-down {
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: 100%;
    width: min(100%, 46rem);
    padding-left: 8px;
    padding-right: 8px;
}

.cf-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-bottom: 1rem;
    margin-top: 1rem;
}

.cf-container span, .cf-container a, .cf-container input.standard-ui {
    font-size: 16px;
    margin: 2px;
}

.cf-container a:visited {
    color: #ff6e6e;
}

.cf-container a {
    color: #f7aa66;
}

.cf-container span, .cf-container a {
    margin-right: 1rem;
}

.cf-container input[type="text"].standard-ui {
    padding: 0.25rem;
    width: 17rem;
}
.cf-container input[type="button"].standard-ui {
    padding: 0.25rem;
    width: 17rem;
}
.cf-container input:enabled.standard-ui:hover {
    outline: 2px solid rgba(255, 255, 255, 1);
    background-color: rgba(0, 0, 0, 0.85);
}
.cf-container input:enabled[type="button"].standard-ui:hover {
    cursor: pointer;
}
.cf-container input[type="button"].standard-ui.yes {
    color: #66ff00 !important;
}
.cf-container input[type="button"].standard-ui.no {
    color: red !important;
}

/* DRAFT PAGE */

/* DRAFT HEADER FIRST */
div#draft-page-header-container {
    width: 100%;

    box-sizing: border-box;

    padding: 20px;

    display: flex;
    flex-direction: row;
    align-items: space-between;
    flex-wrap: nowrap;
}
#end-draft-button {
    height: 2.4em;
    text-wrap: nowrap;
    margin-left: 35px;
}
div#draft-page-header {
    width: 100%;
    /* height: 100%; */

    box-sizing: border-box;

    display: flex;
    align-items: center;

    /* Adapted from standard-ui */
    text-align: center;
    border: none;
    background-color: rgba(0, 0, 0, 0.6);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;
    font-family: inherit;
    font-size: 24px;
    padding: 0.3em;

    height: 2.4em;

    justify-content:start;

    text-overflow: ellipsis;
    overflow: hidden;

    min-width: 0;

    flex-wrap: nowrap;
}

#draft-page-header span {
    text-wrap: nowrap;
    padding-right: 1rem;
}
#draft-page-header .header-comma {
    padding-left: 1rem;
}

#draft-page-header .next-picks {
    padding-left: 2rem;
}

#draft-page-header > * {
    flex-shrink: 0;
    text-overflow: ellipsis;
    overflow: hidden;
}

/*
div#draft-page-header div span {
    margin-right: 2rem;
    font-size: 1.4em;
}*/
/*
div#draft-page-header span.next-picks {
    margin-left: 6em;
}
*/

/*
div#draft-page-header div span {
    display: inline-block;
    white-space:nowrap;
}
div#draft-page-header .picking-player {
    width: fit-content;
    height: auto;
    min-height: 100% !important;
    max-height: 100% !important;
    display: flex;
    flex-direction: row;
}

div#draft-page-header .room-member-container {
    width: fit-content;
    height: auto;
    min-height: 100% !important;
    max-height: 100% !important;

    display: inline-block;
}

div#draft-page-header .room-member-container p,div#draft-page-header .room-member-container img {
    display: inline-block;
}

div#draft-page-header .next-players {
    width: fit-content;
    height: auto;
    min-height: 100% !important;
    max-height: 100% !important;
    display: flex;
    flex-direction: row;

    overflow: none;
    text-overflow: ellipsis;
}
*/

/* draft picks :) */

/* Images */
.draft-pick-image {
    height: 100%;
    image-rendering: pixelated;
}
.draft-pick-image.picked {
    filter: brightness(60%);
}

.draft-image-advancement {
    width: 100%;
    height: 100%;
    background-size: 100%;
    padding: 0.5rem;
}
.draft-image-advancement.picked {
    filter: brightness(60%);
}

.draft-picker-image {
    height: 1em;
    width: 1em;
    position: fixed;
    visibility:hidden;
    transform:translateX(-0.1em) translateY(-1.1em);
}
.draft-picker-image.picked {
    visibility: visible;
}

.pick-tooltip {
    position: fixed;
    cursor: default;
    visibility: hidden;
    transform:translateX(-1.4em);
    transform: translateY(1em);
    z-index: 3;

    text-align: center;
    border: none;
    background-color: rgba(0, 0, 0, 0.8);
    outline: 2px solid rgba(255, 255, 255, 0.9);
    color: white !important;
    font-family: inherit;
    font-size: 16px;
    padding: 0.5em;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2em;
    
    max-width: calc(4.2rem * 8);
}

.draft-image-container:hover {
    /* background-color: rgba(0, 0, 0, 0.7); */
    padding: 0.1em;
    transition: 0.04s padding ease-out;
}

.draft-pick-container {
    cursor: pointer;
    height: fit-content;
}

.draft-image-container {
    padding: 0.3em;
    width: 4.2rem;
    height: 4.2rem;
}

.draft-pick-container:hover .pick-tooltip {
    visibility: visible;
    pointer-events: none;
}

.draft-pick-container img.current-user {
    box-shadow: 0px 0px 4px #AAA;
}
.draft-pick-container img.other-user {
    /* opacity: 0.8; */
    filter: brightness(40%);
}

.draft-pool-container {
    text-align: center;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;
    font-family: inherit;
    font-size: 24px;
    padding: 0.0em;
    
    display: flex;
    min-height: 0;
    flex-direction: row;
    justify-content: space-around;
    height: fit-content;
    flex-wrap: wrap;

    width: calc(4.2rem * 6);
}

.draft-pool-container#shared-pool {
    min-height: calc(4.2rem + 1.6em);

    flex-direction: column;
    width: fit-content;
    align-items: center;
}

.draft-pool-container#shared-pool #shared-pool-items {
    width: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.pool-title {
    width: calc(4.2rem * 6);
}

#draft-page {
    width: 100%;
    height: 100%;
}

#draft-page-body {
    height: 100%;
    width: 100%;
    min-height: 0; /* css sucks?? */

    justify-content: space-around;
}

#draft-page-main-container {
    width: var(--draft-main-section-width);
    height: 100%;

    padding-top: 20px;
    padding-bottom: 4rem;

    min-height: 0;
}

.pretty-box {
    border: none;

    background-color: rgba(0, 0, 0, 0.5);
    outline: 2px solid rgba(255, 255, 255, 0.8);

    color: white;
}

#draft-page-body-main {
    justify-content: space-around;
}

#draft-page-main {
    height: 100%;
    width: 100%;

    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    outline: 2px solid rgba(255, 255, 255, 0.8);
    color: white !important;

    overflow: auto;

    flex-wrap: wrap;
    
    justify-content: space-evenly;
    align-items: center;
    align-content: space-evenly;
}

#draft-page-log-container {
    width: var(--draft-main-section-width);

    height: 15%;
    max-height: 15%;

    padding-top: 1rem;
    padding-bottom: 1rem;

    display: flex;
    flex-direction: row;
    align-items: space-between;
}
#draft-page-log {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    justify-content: start;
    align-items: start;

    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.7);
}
.starter-log {
    box-sizing: border-box;
    margin-right: 1rem;
}
.log-line {
    color: white;
    font-size: 1rem;
    height: 1.4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1rem;
    padding: .2rem;
    box-sizing: border-box;
    margin-left: 0.5rem;
}
.log-line img {
    height: 1rem;
}
.log-line p.room-member {
    font-size: 1rem;
    color: white;
    height: 1rem;
    line-height: 1rem;
    margin-right: 0.7rem;
}
.log-line .draft-pick-image {
    margin-left: 0.7rem;
    margin-right: 0.3rem;
}

#draft-page-timer {
    margin-left: calc(1rem + 20px);
    padding: 0.4rem;
}
#draft-page-timer header {
    font-size: 1rem;
}
#draft-page-timer p {
    font-size: 2.2rem;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    line-height: 1rem;
}

#draft-page-gambits {
    min-width: calc(var(--draft-main-section-width) / 1.5);

    /* 1rem from top 4rem from bottom */
    height: calc(100% - 1rem - 4rem);
    margin-top: 1rem;
    margin-right: 20px;

    padding: 1rem;

    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.7);
}

.gambit-button {
    box-sizing: border-box;
    width: 100%;
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.gambit-button .tooltip {
    display: none;

    font-size: 1rem;
}

.gambit-button:hover .tooltip {
    display: block;
}

.gambit-button span {
    min-height: 0;
    text-align: center;
    vertical-align: middle;
}

.gambit-button p {
    margin: 0;
    display: inline;
    margin-right: 1rem;
}

.gambit-button span.tooltip p {
    display: block;
}

.gambit-button img {
    height: 2rem;
    
    image-rendering: pixelated;
    box-sizing: border-box;
    display: inline;
}

.gambit-button.disabled, .gambit-button.noclick {
    filter: brightness(75%);
}
.gambit-button.disabled img {
    content: url("/assets/draaft/ui/cancel.png");
}
.gambit-button.enabled img {
    content: url("/assets/draaft/ui/confirm.png");
}

button.ingame-exit-button {
    position: fixed;

    bottom: 0.7rem;
    left: 0.7rem;

    font-size: 12px;
    line-height: 10px;
}

button.settings-button {
    position: fixed;

    bottom: 0.7rem;
    right: 0.7rem;

    font-size: 12px;
    line-height: 10px;
}

#download-zip {
    position: fixed;

    bottom: 0.7rem;
    left: 8rem;

    font-size: 12px;
    line-height: 10px;
}

video::-webkit-media-controls {
  display: none;
}
video::-moz-media-controls {
  display: none;
}

.button-inline {
    height: 32px;
    display: inline-block;
    margin: 0;
}

p.button-inline {
    margin-right: 4px;
}

img.button-inline {
    padding-top: 10px;
}

#user-settings-dialog {
    width: 60%;
    height: 60%;
}

#user-settings-wrapper {
    max-width: 52rem;
}

.nice-autoscroll {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.7);
}

#documentation-dialog {
    background-color: rgba(0,0,0,0.9);
    width: 95%;
    height: 95%;
    z-index: 2;
}

.documentation-title {
    font-size: 32px;
}

.documentation-line {
    font-size: 24px;
    width: 70%;
}

.doc-pool-title {
    font-size: 28px;
    font-weight: bold;
}

.docs-pick-div {
    outline: 1px solid rgba(255, 255, 255, 0.8);
    padding-right: 1rem;
    margin-bottom: 1rem;
}

span.docs-pick-div > div.full-flex-down {
    align-items: flex-end;
}
span.docs-pick-div > span.full-flex-down {
    align-items: flex-end;
}

div#documentation-gambits > span.docs-pick-div > p {
    margin-left: 1rem;
}

span.docs-pick-div > div.draft-image-container {
    margin-right: 2rem;
}

span.docs-pick-div > div.full-flex-down > p {
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: right;
}

span.docs-pick-div > span.full-flex-down > p {
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: right;
}

#leaderboard-oq1-dialog {
    width: min(100%, 42rem);
    background-color: rgba(0,0,0,0.8);
}

.leaderboard-container {
    display: grid;
    grid-template-columns: auto auto auto;
    margin: auto;
}

.leaderboard-container .duration {
    text-align: right;
    margin-left: 3rem;
}
.leaderboard-container .position {
    text-align: right;
    margin-right: 1.5rem;
}

.leaderboard-items h1 {
    font-size: 34px;
    line-height: 1.5em;
    margin: 6px;
}

.leaderboard-items h2 {
    font-size: 24px;
    line-height: 1.3em;
    margin: 0;
}

.leaderboard-items > p {
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0;
    font-size: 16px;
    text-align: center;
}
