* {
  margin: 0;
  padding: 0;
}

body {
  background-color: rgb(38, 52, 63);
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
  color: rgb(213, 213, 213);
  font-weight: 500;
  margin: 20px 0;
  text-align: center;
}

main {
  align-items: center;
  display: flex;
  flex-direction: column;
}

#color-palette {
  background-color: rgb(53, 71, 84);
  border-radius: 3px;
  box-shadow: 1px 1px 3px rgba(171, 171, 171, 0.6);
  display: flex;
  justify-content: center;
  padding: 0 5px;
  transition: 0.3s;
}

.color {
  border-radius: 3px;
  height: 40px;
  width: 40px;
  margin: 10px 5px;
}

.color:hover {
  box-shadow: 0 0 3px rgba(240, 240, 240, 0.9);
  cursor: grab;
}

.color:active {
  cursor: grabbing;
}

#button-container {
  align-items: center;
  background-color: rgb(53, 71, 84);
  border-radius: 3px;
  box-shadow: 1px 1px 3px rgba(170, 170, 170, 0.6);
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 10px;
  transition: 0.3s;
  width: 190px;
}

#color-palette:hover,
#button-container:hover,
#pixel-board:hover {
  box-shadow: 1px 1px 5px rgba(170, 170, 170, 0.75);
}

input {
  border: 1px solid rgba(211, 211, 211, 0.3);
  border-radius: 3px;
  height: 28px;
  max-width: 40px;
  outline: none;
  text-align: center;
}

button {
  background-color: rgb(210, 210, 210);
  border: 1px solid rgba(211, 211, 211, 0.3);
  border-radius: 3px;
  height: 30px;
  transition: 0.3s;
}

button:hover {
  color: white;
  box-shadow: 0 0 3px rgba(240, 240, 240, 0.9);
  background-color: rgb(130, 130, 130);
  cursor: pointer;
}

button#generate-board {
  width: 50px;
}

button#clear-board {
  justify-self: flex-end;
  width: 60px;
}

#pixel-board {
  background-color: rgb(53, 71, 84);
  border-radius: 3px;
  box-shadow: 1px 1px 3px rgba(170, 170, 170, 0.6);
  display: flex;
  flex-flow: row wrap;
  height: 210px;
  margin-top: 20px;
  padding: 10px;
  transition: 0.3s;
  width: 210px;
}

.pixel {
  background-color: white;
  border: 1px solid black;
  height: 40px;
  width: 40px;
}

.pixel:hover {
  cursor: alias;
}
