* {
  margin: 0;
  padding: 0;
}
html{
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
html, body{
    background-color: #36393f;
    color: #dcddde;
    margin: 0;
}

h1, #info {
    display: inline;
}

h3{
    margin: 20px 0 15px 0;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 30px;
    text-align: center;
    background-color: #36393f;
}

a {
    color: #8ab4f8
}

div{
    box-sizing: border-box;
}

#spectator_list, .spectator_list{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 30px 60px;

    max-width: 1280px;
    margin: auto;
    padding: 0 20px;

}
.discord_avatar { 
    vertical-align: middle;
    border-radius: 50%;
}

.player_avatar {
    width: 96px; height: 96px;
    display: inline-block;
}
._player_avatar {
    transform: scale(0.3) translate(-94px, -124px);
    width: 96px; height: 96px;
}

@media screen and (max-width: 1280px) {
    #spectator_list, .spectator_list{
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 640px) {
    #spectator_list, .spectator_list{
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

.server_chat{
    display: grid;
    grid-template-columns: 400px 1fr; 
    padding: 0px 20px;
}

@media screen and (max-width: 800px) {
    .server_chat{
        display: block;
        padding: 0px 10px;
    }
}

.player_day{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.icon, .player_avatar_icon{
    max-height: 24px;
    max-width: 24px;
}

._player_avatar_icon {
    transform: scale(0.3) translate(-124px, -124px);
    width: 96px; height: 96px;
}

.savedInventoryIcon {
    width: 32px;
    height: 32px;
    transform: scale(0.5) translate(-50%, -50%);
    display: inline-block;
}

.inventoryIcon{
    width: 64px;
    height: 64px;
    margin: 2px;

    text-align: center;
    text-shadow: -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000, 1px 1px 2px #000;
    color: #fff;
    font-weight: 900;
    /*position: fixed;*/
    
}

.item_count{
    position: relative;
    top: -5px;
    font-size: 26px;
}

.item_percentage {
    position: relative;
    bottom: -32px;
    font-size: 24px;
}

.player{
    display: grid;
    grid-template-columns: 32px 1fr 80px;   
    grid-gap: 10px 10px;
    height: 24px;
}
.player .days{
    text-align: right;
}
.scroll{
    margin:4px 4px; 
    /*background-color: #f9F9F9;*/
    /*box-shadow: 0px 2px 4px 0px rgba(#000, 0.08);*/
    width: 100%; 
    
    text-align:justify; 

    box-sizing: border-box;
    overflow-y: scroll; 
    padding: 10px 10px 10px 0;
}
.player .name{
    text-overflow: ellipsis;
    overflow: hidden; 
    white-space: nowrap;
}


.switch{
    display: none;
    text-align: center; 
    margin:auto;
}

.server_chat .time{
    color: #888;
}
.total {
    font-size: 12px;
    color: #888;
}

.server_chat .chat{
    padding-left: 20px;
}
@media screen and (max-width: 800px) {
    .server_chat .switch{
        display: block;
    }
    .server_chat .chat .time {
        display: block;
        font-size: 10px;
        height: 12px;
    }
    .server_chat .chat .msg {
        margin: 10px 0;
    }
    .server_chat .chat{
        min-height: 100px;
        padding-left: 0px;
    }
    .server_chat .server_info {
        display: none;
    }

    footer{
        font-size: 10px;
        height: 20px;
    }
    h1{
        font-size: 24px;
    }
    #title{
        font-size: 18px;
        margin: 12px
    }
}

/**************************/

#topbar, #toolbar{
    width: 100%;
    padding: 0 10px;
}


#center {
    padding: 0; 
    position: relative;
    overflow: hidden;
}

.modal {
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.hide {
    display: none !important; /* Hidden by default */
}

#rmenu.show {
  z-index: 500;
  position: absolute;
  background-color: rgba(0,0,0,0.4);
  padding: 3px 6px;
  display: block;
  margin: 0;
  list-style-type: none;
  list-style: none;
}

.modal-content {
  background-color: #fefefe;
  color: #333;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 680px;
  position: relative;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 15px;
  top: 0px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

textarea{
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 16px;
  resize: none;
}


.greenbtn {
  appearance: none;
  background-color: #2ea44f;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
}

.greenbtn:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.greenbtn:hover {
  background-color: #2c974b;
}

.greenbtn:focus {
  box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
  outline: none;
}

.greenbtn:disabled {
  background-color: #94d3a2;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.greenbtn:active {
  background-color: #298e46;
  box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}



/* Tooltip container */
.tooltip {
  position: relative;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 80px;
  background-color: #333;
  color: #ddd;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}
/*
.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}*/

/******************/

/*
#hud-day {
  background-color: #000000;
  position: relative;
  top: 20px;
  right: 0px;
  width: 100px;
  height: auto;
  min-height: 10px;
  margin: 0 0 0 auto;
}*/



#hud-top-right {
  background-color: rgba(0, 0, 0, .6);
  position: absolute;
  top: 0px;
  right: 0px;
  width: auto;
  height: auto;
  max-width: 360px;
  padding: 4px 10px;
  margin: 0 0 0 auto;
}

#hud-top-left {
  background-color: rgba(0, 0, 0, .6);
  /*
  position: relative;
  top: 20px;
  right: 0px;
  width: auto;
  height: auto;
  */
  position: absolute;
  top: 0px;
  left: 0px;
  width: 360px;
  max-width: 360px;
  height: auto;
  padding: 4px 10px;
  margin: 0 0 0 auto;
}
/*
#hud-search {
  background-color: rgba(0, 0, 0, .5);
  
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-100%, 0);
  height: auto;
  padding: 2px 10px;
  margin: 0 0 0 auto;
}*/


/*
.search-nav button{
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    border: 0px;
}*/



#hud-search>div{
    margin: 0 0 16px 0;
}
#playerlist_header, #playerlist_header_count { 
  font-weight: 800;
  display: grid;
  grid-template-columns: 3fr 3fr 20px;    
}

#playerlist_header_count{
    margin-top: 15px;
}

#playerlist_state {
  text-align: right;
  cursor: pointer;

}


.player_detail{
    display: grid;
    grid-template-columns: 30px 1fr 80px 10px;   
    grid-gap: 10px 10px;
    height: 24px;   
}

.player_detail .days, .player_detail_header .days{
    text-align: right;   
}

.player_detail .name, .player_detail_header .name{
    text-overflow: ellipsis;
    overflow: hidden; 
    white-space: nowrap;
    cursor: pointer;
}

.player_detail .more,
.player_detail .icon{
    cursor: pointer;
}

.player_detail_header{
    display: grid;
    grid-template-columns: 30px 1fr 120px 10px;   
    grid-gap: 10px 10px;
    height: 34px;
    width: 100%;
    margin-bottom: 15px;
}

.player_detail_header{
    font-size: 24px;
}
.player_detail_header .name{
    font-weight: 800;
}

.player_detail_icon {
    transform: scale(2) translate(-5px, 23px);
}




#hud-chat {
  position: absolute;
  bottom: 41px;
  left: 0px;
  width: 520px;
  max-width: 520px;
  height: auto;
  margin: 0 0 0 auto;
}

#hud-chat-content {
  background-color: rgba(0, 0, 0, .6);
  padding: 5px 10px;
}

#chat-output{
    overflow-x: hidden;
    text-overflow: ellipsis;
    overflow-y: scroll;
    height: 200px;
    /*margin: 5px 10px;*/
}


#chat-input{
    width: 326px;
}


#chat-tabs-wrapper{
    
}
#chat-tabs { 
  display: inline-flex;
  padding: 2px 10px;
  background-color: rgba(0, 0, 0, .6);
  color: rgba(255,255,255,.6);
}


#chat-tabs>div {
    min-width: 40px;
    margin:  0 5px;
    text-align: center;
}
#chat-tabs>div:hover{
    color: rgba(255,255,255,.75);
}

#chat-tabs>div.sel{
    font-weight: 800;
    color: rgba(255,255,255,1);
}
.chat-tab {
    width:  50px;
}

.tab {
    color: rgba(220,221,222, .5);
}
.tab.selected {
    color: rgba(220,221,222, 1);
}



#hud-inventory {
  /*background-color: rgba(0, 0, 0, .5);*/
  position: absolute;
  bottom: 6px;
  left:  50%;
  height: auto;

  padding: 2px 10px;
  margin: 0 auto;
  transform:scale(0.5) translate(-100%, 50%)
}

#hud-inventory-backpack {
  position: absolute;
  bottom: 50%;
  right:  0px;
  margin: auto 0;
  transform: scale(0.5) translate(50%, 100%)
}
.inventory_backpack {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.slot {
    width: 68px; height: 68px;
}
.slot.empty{
    background: url("img/slot.png") -0px -0px;
}
.slot.active {
    background: url("img/slot_active.png") -0px -0px;
}
.slot.head {
    background: url("img/slot_hat.png") -0px -0px;
}
.slot.hands {
    background: url("img/slot_hand.png") -0px -0px;
}
.slot.body {
    background: url("img/slot_chest.png") -0px -0px;
}
#hud-inventory-container {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
}
#hud-inventory-bundle-hover{
    position: absolute;
    z-index: 2;
}


.autocomplete {
    margin-top: 10px;
    height: 134px;
    overflow-y: scroll;
    background: #ddd;
}
.autocomplete>span{
    padding: 2px 6px;
}
.autocomplete>div{
    /*display: grid;
    grid-template-columns: 1fr 1fr;*/
    cursor: pointer;
    padding: 0 6px;
}

.autocomplete>div:hover{
    background: #95adde;
}

.autocomplete .active-autocomplete{
    background: #95adde;
}

.autocomplete-input {
    padding: 0 6px;
}
/*220°, 33%, 80%*/

[onclick]{
    cursor: pointer;
}
[onclick]:hover{
    text-decoration: underline;
}


.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.clocksegments {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr  1fr 1fr 1fr 1fr   1fr 1fr 1fr 1fr  1fr 1fr 1fr 1fr;
    height: 10px;
    margin-bottom: 5px;
    position: relative;
}
.clocksegments div:nth-child(2n) {
    filter: brightness(80%);
}
.segment-pointer {
    background-color: #000000;
    position: absolute;
    width: 4px;
    height: 10px;
}
.segment-day {
    background-color: #ffd358;
}

.segment-dusk {
    background-color: #a65c55;
}

.segment-night {
    background-color: #303658;
}

.tool, .dropdown-val { 
    /*border: 1px solid #222;*/
    display: inline-block;
    padding: 2px 5px;
    position: relative;
    color: #8ab4f8;
}

.tool:hover {
    /*background-color: #555;*/
    border-bottom: 2px solid #8ab4f8;
    padding: 2px 5px 0px 5px;
}
.dropdown-val:hover {

}
.dropdown-val {
    display: block;
    width:  100%;
    padding: 2px 10px;
}
.tool.disabled {
    color: #bbb;
}

.tool.disabled:hover {
    background-color: #36393f;
}

.tool.selected {
    border-bottom: 2px solid #8ab4f8;
    padding: 2px 5px 0px 5px;
    /*background-color: #555;*/
    /*text-decoration: underline;*/

}

.tool .dropdown {
    display: none;
    position: absolute;
    z-index: 100;
    background-color: #36393f;
    width: 256px;
    padding: 5px 10px;
    left: -6px;
    border: 2px solid #8ab4f8;
    /*border-radius: 5px;*/

}
.invInput, #hud-top-right input {
    background-color: #36393f;
    border: 0;
    text-align:  center;
    /*color: #dcddee;*/ 
    color: #598c41;
    
}
.invInput[disabled], #hud-top-right input[disabled] {
    color: #ea9898;
}

#hud-top-right input{
    background: none;
    width: 36px;
}
[onclick].tool:hover, .tool a{
    text-decoration: none;
}
.tool:hover .dropdown{
    display: block;
}

.tool .dropdown.show{
    display: block;
}

.top-right{
    position: absolute; 
    float: right; 
    right: 10px; 
    padding: 2px 0
}

.toolbar-right {
    position: absolute; float: right; right:10px;
}

.stat-not-important {
    font-size: 10px;
    color: #999;
    font-family: monospace;
}

#modal-entity-debug textarea{
    height: 500px;
    font-size: 12px;
}

.genOptionGroup {
    display: flex;
    border: solid 1px #f8f8f8;
    margin-bottom: 10px;
    flex-wrap: wrap;

}
.genOption{
    padding: 2px 5px;
    color: #999;
}
.genOption.selected {
    color: #333;
    font-weight: 800;
}

#modal-settings .modal-content{
    width: 880px;
}

#modal-settings textarea {
    height: 600px;
}

#modal-settings-worldgen .modal-content{

    width: 80%;
}

.modal-buttons {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    background-color: rgba(0,0,0,0.8);
    /*background: rgb(0,0,0);
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 5%, rgba(0,0,0,0.8) 95%, rgba(0,0,0,0) 100%);*/

    padding: 20px;
}

#modal-settings-server [onclick] {
    color: #322eff;
}

#modal-settings-server input {
    width: 48px;
}

.grid-settings-server {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}



#stats-selected-entitylist-selected, #hud-setpiece-content{
    max-height: 200px;
    overflow-y: auto;
}

.size22 {
    filter: invert( 0.78 );
    width: 15px;
    height: 15px;
}

.menubtn {
    border: none;
    background: rgba(0,0,0,0);
    padding: 4px;
    border-radius: 7px;
}

.menubtn.act{
    background-color: #646973
}

.menubtn:hover, .menubtn:focus-visible {
    background-color: #4e535d;
    outline: none;
}


select {
    background: #121212; 
    color:#598c41;
}

