html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    background: black;
    color: white;
}

#connect {
    width: 80%;
    margin: 10px 10%;
    height: 50px;
    font-size: 20px;
}

#connect.connected {
    display: none;
}

#editor {
    display: none;
    margin: 0;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#editor.connected {
    display: flex;
}

.btn-color {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    font-size: 0px;
    vertical-align: top;
    padding: 0;
    margin: 0px;
    margin-left: -2px;
    margin-top: -2px;
}

#tools {
  flex: 0 0 170px;
  display: flex;
  flex-direction: row;
  padding: 5px;
  align-items: center;
  background: #222222;
  border-bottom: 2px solid white;
  overflow: auto;
}

#palette {
  flex: 1;
  margin-left: 2px;
}

#color, #clear {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  margin-left: 10px;
}


#canvasContainer {
  flex: 1;
  font-size: 0;
}

@media (min-aspect-ratio: 1/1) {
    #editor {
        flex-direction: row;
    }

    #tools {
        flex: 0 0 120px;
        flex-direction: column;
        border-bottom: none;
        border-right: 2px solid white;
    }

    #color, #clear {
      margin-left: 0px;
      margin-top: 10px;
    }
}
