html, body {
    margin: 0;
    padding: 0;
}
body {
    font-family: Roboto Slab;
}

h1 {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 16px;
    background-color: #eee;
    border: 0px;
    z-index: 1;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset; */
}

progress::-webkit-progress-bar {
    background-color: #eee;
    border: 0px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset; */
}

progress::-webkit-progress-value {
    background-color: #2196F3;
    border: 0px;
    /* border-radius: 2px; */
}

progress::-moz-progress-bar {
    background-color: #2196F3;
    border: 0px;
    /* border-radius: 2px; */
}

.content {
    padding: 4px;
    margin-bottom: 120px;
}

.button {
    padding: 4px 16px;
    background-color: transparent;
    border: 1px solid gray;
    border-radius: 4px;
    cursor: pointer;
}

.toast {
    border: 1px solid gray;
    border-radius: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    padding: 8px;
    background-color: white;
    box-shadow: rgba(0,0,0,0.5) 5px 5px 5px;
    max-width: 90%;
}

.toast.dark {
    border: 1px solid gray;
    background-color: black;
    color: gray;
}
.toast.station {
    border: 1px solid white;
    background-color: lightgray;
    color: midnightblue;
}

.toast-close {
    margin-left: 16px;
    cursor: pointer;
    color: gray;
}

.error {
    color: crimson;
}

.button.action, .button.settings, button.chat {
    line-height: 3em;
}

.button span.text {
    position: absolute;
    bottom: 4px;
    text-align: center;
    width: 100%;
    left: -4px;
    padding: 4px;
}

.button.door {
    height: 150px;
    width: 150px;
    vertical-align: bottom;
    position: relative;
}

.button.door:before{
    content: " ";
    display: block;
    background-image: url('../assets/sprites.png');
    overflow: hidden;
    top: 0px;
    left: 0px;
    margin-right: auto;
    margin-left: auto;

    background-position: -1271px -266px;
    height: 26px;
    width: 33px;
}

.icon-player-ship-red {
    background-position: -1271px -266px;
    height: 26px;
    width: 33px;
}


.action, .door {
    margin: 4px;
}

.settings {
    
}

.dropdown-container {
    display: none;
    position: absolute;
    z-index: 2;
    padding: 8px;
    border: 1px solid gray;
    border-radius: 4px;
    background-color: white;
    box-shadow: rgba(0,0,0,0.5) 5px 5px 5px;
}

.top-bar {
    text-align: left;
}

.bottom-bar {
    text-align: right;
}

.left-inv-selector,.right-inv-selector {
    display: inline-block;
    height: 200px;
    overflow: scroll;
    width: calc(50% - 22px);
    margin: 10px;
    border: 1px solid black;
}

.clickable-inventory-item {
    border: 1px dashed seagreen;
    border-radius: 4px;
    min-height: 36px;
    margin: 2px;
    padding: 4px;
    cursor: pointer;
}

.inventory-item {
    color: gray;
    min-height: 36x;
    margin: 3px;
    padding: 4px;
}

#viewer {
    background-color: #0A0A0A;
    width: 100%;
    height: 100%;
}

#progress {
    position: fixed;
    bottom: 0px;
    display: block;
}

#chat-log {
    width: 98%;
    height: 300px;
}

#chat input[type="text"] {
    width: 78%;
    line-height: 3em;
}

#chat button {
    width: 18%;
}

#shipstatus {
    display: flex;
    flex-direction: row;
    text-align: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

#shipstatus div {
    flex-grow: 1;
    flex-basis: 1;
    width: 30%;
}

#shipstatus #activity {
    order: 2;
    width: 100%;   
}

#delete-game {
    cursor: pointer;
    text-decoration: none;
    color: red;
}

#delete-game:hover {
    text-decoration: underline;
}

@media screen and (min-width: 320px) {
    #viewer {
        height: 260px;
    }
    .button.door {
        width: 48%;
    }
}

@media screen and (min-width: 768px) {
    #viewer {
        height: 450px;
    }
    .button.door {
        width: 150px;
    }
}

@media screen and (min-width: 1280px) {
    #viewer {
        height: 600px;
    }
}

@media screen and (max-height: 500px) {
    #progress {
        bottom: 0;
    }

    #viewer {
        height: 260px;
    }
}