body {
    background-color: black;
    color:white;
    font-size: 15px;
    margin: 0;
    height: 100%;
    
    background-image: url("img/background.jpg");
    background-size: cover;
    background-position: center;

    position: relative;
}

#viewportCanvas {
    display: block;
    background-image: url("img/dbackground.svg");
    background-size: cover;
    background-position: center;
}

.overlay-parent {
}

#top-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    
    /* transform: translate(-50%, -50%);   */
}

#progress-overlay {
    position: absolute;
    right: 160px;
    top: 20px;
}

#bottom-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0%);

    /* Purely informational text; let touches, gestures and clicks reach the map */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.site-menu-button {
    position: absolute;
    top: 30px;
    right: 20px;

    border-radius: 10px;
    background: #212529;
    padding: 8px;
}

.floating-site-menu-container {
    position: absolute;
    top: 140px;
    right: 30px;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.floating-site-menu-entry {
    margin: 10px;
}

.floating-site-menu-button {
    position: relative;
    
    background: #212529;
    padding: 1px;

    width: 60px;
    height: 60px;
    border-radius: 30px;
}

.floating-site-corner-container {
    position: absolute;
    bottom: 30px;
    right: 30px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    background: #212529;
    border-radius: 10px;
    padding: 4px;
}

.corner-site-menu-button {
    --bs-btn-font-size: 22px;
    margin: 4px;
}

.floating-biome-key {
    position: absolute;
    left: 30px;
    top: 100px;    

    background: #212529;
    border-radius: 10px;
    padding: 8px;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

#biome-key-offcanvas {
    --bs-offcanvas-width: 200px;
}

.biome-color-key-row {
    width: 130px;
}

.biome-color-key-label {
    
}

#layer-drop-down {
}

.floating-site-menu-entry a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-layer-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.world-layer-img {
    padding-bottom: 2px;
}

.world-layer-item {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    flex-basis: 96;
    margin: 8px;
    
    outline-style: solid;
    outline: gray solid 2px;
    border-radius: 6px;
}

.world-layer-item > button {
    padding: 0px;
    width: 100%;
    height: 100%;
    vertical-align: top;
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

.layer-popover {
    --bs-popover-max-width: 400px;
    --bs-popover-border-color: var(--bs-primary);
    --bs-popover-header-bg: var(--bs-primary);
    --bs-popover-header-color: var(--bs-white);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
  }

#world-seed-textbox {
    font-family: "Consolas","Menlo","Monaco","Liberation Mono","Courier New",monospace;
    width: 150px;
}

.world-footer {
    margin-bottom: 0;
    color: rgb(167, 167, 167);
    text-shadow: 0px 0px 2px black;
    text-align: center;
}

#world-seed-label {
    font-family: "Consolas","Menlo","Monaco","Liberation Mono","Courier New",monospace;
    font-size: 60px;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
}

#about-label {
    font-size: 30px;
}

.progress-bar-length {
    width: 480px;
}

#site-drop-down {
    height: 36.5;
    width: 43;
}

.ver-obsolete {
    color: red;
    text-decoration: line-through;
}

.ver-obsolete-light {
    color: red;
}

.seed-options {
    display: flex;
    flex-flow: row;

    border-radius: 10px;
    background: #212529;
    padding: 4px;
}

.seed-option-item {
    display: flex;
    flex-flow: row;
    margin: 2px;
}

.seed-row-share {
    margin-left: 4px;
}

.version-selector-container {
    
}

.version-drop-down {
    
    
}

.dropdown-menu {
    background: #343a40;
}

.dropdown-item {
    color: white;
}

.site-header {
    display: none;
}

.fa-auto-icon-size {
    /* Large */
    font-size: 1.25em;
    line-height: .05em;
    vertical-align: -0.075em;
}

.inlined-loading-images {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    top: 0px;
    left: 0px;
}

#location-checkbox-list,
#alt-biome-checkbox-list {
    display: flex;
    flex-flow: column;
    flex-direction: column;
    flex-wrap: nowrap;
}

.alt-biome-color-box {
    margin-left: 20px;
}

/* Tapping a checkbox label toggles it; don't let repeated taps select the label text */
#location-checkbox-list,
#alt-biome-checkbox-list {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.alt-biome-unavailable {
    text-decoration: line-through;
}

#alt-biome-status {
    color: rgb(167, 167, 167);
}

.color-box {
    width: 24px;
    height: 24px;
    margin-right: 6px !important;
    margin-top: 3px !important;
    background: #000;
}

.location-category-item {
    display:inline;
    width: 100%;
    margin-bottom: 10px;
    font-size: 20px;
}

.location-category-cell {
    margin: 0px;
    float: left;
}

.location-subcategory {
    margin-left: 50px;
}

.locations-rendered-none {
    color: red;
}

.locations-rendered-some {
    color: yellow;
}

.locations-rendered-all {
    color: white;
}

.loc-color-key {
    margin-top: 20px;
    margin-left: 20px;
}
.loc-color-key > p {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-top: 3px;
}

.phone-only-button {
    display: none;
}

#world-progress-label {
    text-shadow: 0px 0px 2px #000000;
    z-index: 1;
}

:not(:fullscreen) .show-not-full-screen {
    display: block;
}

:fullscreen .show-not-full-screen {
    display: none;
}

:not(:fullscreen) .show-full-screen {
    display: none;
}
:fullscreen .show-full-screen {
    display: block;
}

/* Tablet settings */
@media only screen and (max-width: 1200px) {
    #top-overlay {
        top: 30px;
        left: 50%;
        transform: translate(-50%, 0%);
        z-index: 2;
    }

    #progress-overlay {
        top: 80px;
        left: 50%;
        transform: translate(-50%, 0%);
        z-index: 1;
    }

    #world-progress-label {
        display:block;
        text-align: center;
        width: 100%;
    }

    .seed-options {
        justify-content: center;
    }

    .floating-site-menu-container {
        /*
        top: 50%;
        right: 20px;
        transform: translate(0%, -50%);
        */
    }
}

/* Phone settings */
@media only screen and (max-width: 800px) {
    #top-overlay {
        top: 0px;
        left: auto;
        transform: translate(0%, 0%);
        width: 100%;
    }

    .progress-bar-length {
        width: 100%;
    }
    #progress-overlay {
        top: 130px;
        left: 0px;
        transform: translate(0%, 0%);
        width: 100%;
    }

    .seed-options {
        flex-flow: column;
    }

    .seed-option-item {
        flex-basis: 100%;
        /* border-style: outset;
        border-color: black;
        */
        margin: 1px;
    }

    .generator-start-button {
        width: 50%;
    }
    .site-header {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    /*
    .custom-dropdown {
        width: 90vw;
    }
    */
    
    .generator-input{
        width: 100%;
    }

    .site-menu-button {
        display: block;
        position: absolute;
        right: 0px;
        top: 0px;
        padding: 2px;
        padding-right: 4px;
        z-index: 20;
    }

    /*
    .floating-site-corner-container {
        top: 0px;
        right: 112px;
        bottom: auto;
        left: auto;
        padding: 0px;
        margin: 0px;
    }

    .corner-site-menu-button {
        margin-top: 2px;
        margin-right: 2px;
        margin-bottom: 0px;
        --bs-btn-font-size: 1rem;
        height: 38px;
    }
    */

    .floating-site-corner-container {
        bottom: 6px;
        right: 6px;
        padding: 0px;
        margin: 0px;
    }

    .corner-site-menu-button {
        padding: 2px;
        margin: 4px;
        --bs-btn-font-size: 1rem;
        height: 30px;
    }

    .corner-help {
        display: none;
    }

    #site-drop-down {
        height: 35;
        width: 39;
        margin-top: 1.5;
        margin-right: 1.5;
    }

    #world-seed-label {
        font-size: 30px;
    }
    
    #about-label {
        font-size: 15px;
    }

    #world-seed-textbox {
        font-family: "Consolas","Menlo","Monaco","Liberation Mono","Courier New",monospace;
        width: 100px;
    }

    .floating-site-menu-button {
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }

    .floating-site-menu-container {
        /*
        top: 50%;
        right: 10px;
        transform: translate(0%, -50%);
        */
        top: 200px;
        right: 10px;
    }
        
    .fa-auto-icon-size {
        /* normal */
        font-size: 16px;
        line-height: 16px;
        vertical-align: baseline;
    }

    .phone-only-button {
        display: block;
    }

    .not-phone-only-button {
        display: none !important;
    }

    #viewportCanvas {
        background-image: url("img/pbackground.svg");
    }
}

/* Tiny phone settings */
@media only screen and (max-width: 400px) {
    .ver-prefix {
        display: none;
    }
}