* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  padding: 1em;
  background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#302e42));
  background: linear-gradient(180deg, #ffffff 0%, #302e42 100%);
  display: -webkit-box;
  display: flex;
  justify-content: space-around;
  color: #302e42;
}

.instructions {
  font-size: 1.0em;
  color: #aaa;
  text-align: left;
  margin: 0;
  margin-bottom: 40px;
}

.card {
  background: #fff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
  padding-bottom: 40px;
}
.card header {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
          align-items: center;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1em;
  padding: 8px;
}
.card header h1 {
  margin: 0;
}
.card header .button-as-link {
  margin-right: 1em;
}
.card aside {
  padding-left: 10px;
  padding-right: 30px;
}

.card_body {
  display: -webkit-box;
  display: flex;
}

.card_right-column {
  padding-right: 4px;
}

canvas {
  background: #f4f8f9;
}

.tileset-container {
  position: relative;
}

.tileset-container_selection {
  position: absolute;
  outline: 3px solid cyan;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
}

.layers {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.layers button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  font-family: inherit;
  outline: 0;
  background: transparent;
  border: 0;
  padding: 8px 0;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.layers button.active {
  font-weight: bold;
  color: #0884f1;
}

.button-as-link {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  text-decoration: underline;
  background: transparent;
  color: #7f808e;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.primary-button {
  border: 0;
  background: #4e84fa;
  border-top: 4px solid transparent;
  border-bottom: 4px solid #3166c7;
  color: #fff;
  border-radius: 6px;
  outline: 0;
  padding: 6px 8px;
  cursor: pointer;
}

label {
  text-transform: uppercase;
  margin-bottom: 0.5em;
  font-weight: bold;
  display: block;
}