@font-face {
    font-family: 'Source Code Pro';
    src: url('fonts/SourceCodePro-Regular.ttf');
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    color: #00E640;
    display: flex;
    flex-direction: column;
    font-family: 'Source Code Pro', monospace;
    max-height: 100vh;
    min-height: 100vh;
}


/* Green borders, margins, and navy blue background */

header, aside, #sketch-holder {
    border: 1px solid #00E640;
    border-radius: 10px;
    margin: 2px;
}

header, aside {
    background-color: #013243;
}


/* Page content */

header {
    padding: 14px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
}

main {
    display: flex;
    flex: 1;
    flex-direction: row;
    /* flex-direction: column; */
}

a:link, a:visited {
    color: #00E640;
}

#left-asides, #right-asides {
    display: flex;
    flex-direction: column;
}

#left-asides {
    margin-left: 2px;
}

#right-asides {
    margin-right: 2px;
    width: 200px;
}

aside {
    padding: 14px;
}

.group p:first-of-type {
    margin-bottom: 0;
}

.group p+p:not(:last-of-type) {
    margin: 0;
}

.group p:last-of-type {
    margin-top: 0;
}

#store {
    flex: 1;
}

#store button, #map-aside button {
    color: #000;
    min-width: 100%;
    text-align: center;
    text-shadow: none;
}

#sketch-holder {
    background-color: #000;
    flex: 1;
    margin: 5px;
    overflow: hidden;
    position: relative;
}

#usersPanel {
    /* position: fixed;
    left: 50px;
    top: 108px;
    z-index: 99;
    user-select: none;
    pointer-events: none;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.5); */
}

#usersPanel .userPanel-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#usersPanel .userPanel-name {
    max-width: 200px;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#usersPanel .userPanel-score {
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wavesPanel .wavePanel-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #00E640;
    margin-bottom: 10px;
}

#wavesPanel .wavePanel-name {
    max-width: 200px;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wavesPanel .wavePanel-score {
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}


#wave {
    /* position: fixed;
    text-align: center;
    user-select: none;
    pointer-events: none;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 99;
    margin-top: 100px;
    text-shadow: 1px 1px 1px solid rgba(255, 0, 0, 1.5); */
    font-weight: bold;
    font-size: 28px;
    margin: 10px 0px;
}

#wave p {
    margin: 0px;
    font-size: 14px;
}

canvas {
    bottom: 0;
    display: block;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
}

button, select {
    background-color: #22313F;
    color: #00E640;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85em;
    text-shadow: 1px 1px 0 #000;
}

button {
    height: 30px;
}

.horiz-buttons {
    display: flex;
    flex-direction: row;
    min-width: 100%;
}

.horiz-buttons button {
    display: block;
    flex: 1;
    text-align: center;
}

#status {
    font-size: 0.95em;
}

#info {
    flex: 1;
}

#info-div {
    display: none;
    margin: 0;
}

#info p {
    font-size: 0.8em;
}

#info-buttons {
    display: none;
}

#info-buttons button {
    color: #000;
    font-size: 0.8em;
    text-shadow: none;
}


/* Misc. buttons */

.io {
    background-color: rgb(224, 130, 131);
}

#sell {
    background-color: rgb(248, 148, 6);
}

#upgrade {
    background-color: rgb(25, 181, 254);
}


/* Tower types */

.gun {
    background-color: rgb(249, 191, 59);
}

.laser {
    background-color: rgb(25, 181, 254);
}

.slow {
    background-color: rgb(68, 108, 179);
}

.sniper {
    background-color: rgb(207, 0, 15);
}

.rocket {
    background-color: rgb(30, 130, 76);
}

.bomb {
    background-color: rgb(102, 51, 153);
}

.tesla {
    background-color: rgb(255, 255, 0);
}