@import url("https://fonts.googleapis.com/css?family=Nunito:900|Roboto");

body {
    margin: 0;
    background-color: rgb(20, 20, 20);
    font-family: Arial, Roboto, monospace;
    color: rgb(240, 240, 240);
}

#hidden {
    position: relative;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}
#app-mount {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.panel {
    flex-shrink: 0;
    background-color: hsl(0, 0%, 20%);
    border-radius: .5rem;
    overflow: hidden;
    max-width: 90%;
    transition-duration: .5s;
    transition-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
.panel {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.panel.hidden {
    transition-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045);
    transform: scale3d(0, 0, 0);
}
.panel-header {
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    background-color: hsl(0, 0%, 15%);
    box-shadow: 0 0 .5rem hsla(0, 0%, 0%, .2);
    box-sizing: border-box;
    padding: .5rem;
    font-family: Nunito, Arial;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#pnl-nickname .panel-header {
    justify-content: center;
}
.icon-button:active {
    opacity: .75;
}
.icon-button img {
    width: 2rem;
    height: 2rem;
    display: flex;
}
.icon-button img:not([src]) {
    visibility: hidden;
}
#pnl-nickname .panel-content {
    box-sizing: border-box;
    padding: .5rem 1rem;
}
.input-label {
    font-size: 1.1rem;
}
.panel-content input, .panel-content textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1rem;
    border: none;
}
.full-width-row {
    width: 100%;
    display: flex;
    justify-content: center;
}
.button {
    position: relative;
    display: inline-block;
    background-color: hsl(190, 100%, 25%);
    padding: .5rem;
    border-radius: .5rem;

    user-select: none;
    -webkit-user-select: none;
}
.button:active {
    box-shadow: inset 0 0 .25rem 0 black;
}
#error-box {
    background-color: hsl(0, 100%, 25%);
}

#pnl-nickname .panel-header {
    justify-content: center;
}

#pnl-prelobby {
    max-width: initial;
    width: 100%;
    height: 100%;
}
#pnl-prelobby .panel-content {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 75%;
    /*gap: .5rem;*/
}

#pnl-textarea {
    position: relative;
    width: 100%;
    box-shadow: 0 0 .5rem hsla(0, 0%, 0%, .2);
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: .5rem 1rem;
    box-sizing: border-box;
}
#pnl-textarea input {
    display: flex;
    margin: 0;
    grid-column: 1 / 2;
    resize: none;
    align-self: center;
    padding: .5rem;
    background-color: hsl(0, 0%, 30%);
    border-radius: .5rem;
    color: white;
    background-color: transparent;
    box-shadow: inset 0 .25rem .5rem hsl(0, 0%, 10%);
}
#pnl-textarea #btn-send {
    grid-column: 2 / 3;
    align-self: center;
}
#pnl-messages {
    grid-row: 1 / 2;
    align-self: end;
    box-sizing: border-box;
    padding: .5rem 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100%;
}

.spacer { /* I know, using spacers is very outdated but idk how I should space without it */
    height: 1rem;
    width: 1px;
}

#pnl-messages li {
    flex-shrink: 0;
    padding: .5rem .25rem;
    width: 100%;
    display: block;
    transition-duration: .2s;
    border: none;
    box-sizing: border-box;
    font-size: 1.1rem;
}
#pnl-messages li:nth-child(odd) {
    background-color: hsl(0, 0%, 17.5%);
}
#pnl-messages li .timestamp {
    font-size: 1;
    color: hsla(0, 0%, 100%, .3);
}
#pnl-messages li.announcement {
    background: linear-gradient(to left, #00D4FF .5rem, transparent .5rem), transparent;
}
#pnl-messages li:nth-child(odd).announcement {
    background: linear-gradient(to left, #00D4FF .5rem, transparent .5rem), hsl(0, 0%, 17.5%);
}

#pnl-online {
    position: fixed;
    top: 0;
    right: 0;
    max-width: 100%;
    height: 100%;
    transform: translate3d(100%, 0, 0);

    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    box-sizing: border-box;
    overflow: auto;
}
#pnl-online .panel-content {
    width: 100%;
}
#pnl-online li {
    flex-shrink: 0;
    padding: .5rem .25rem;
    width: 100%;
    display: block;
    transition-duration: .2s;
    border: none;
    box-sizing: border-box;
    font-size: 1.1rem;

    user-select: none;
    -webkit-user-select: none;
}
#pnl-online li:nth-child(odd) {
    background-color: hsl(0, 0%, 17.5%);
}

#scoreboard {
    position: relative;
    top: 0;
    left: 0;
    width: 75vw;
}
.scoreboarditem {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.scoreboarditem:nth-child(odd) {
    background-color: hsl(0, 0%, 15%);
}