:root {
  --font: #FBFBFE;
  --accent: #1565C0;
  --display: #2B2A33;
  --background: #1C1B22;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;

  font-family: 'Open Sans', sans-serif;
  color: var(--font);

  background-color: var(--background);

}
#form {
  z-index: 2;
}
h1 {
  position: absolute;
  font-size: 100px;
  font-weight: bolder;
  z-index: 1;
  top: 0;
  color: var(--display);
  cursor: default;
  user-select: none;
}

tr {
  display: flex;
  justify-content: center;
}
td {
  text-align: center;
  background-color: var(--display);
  width: 140px;
  height: 100px;
  border-radius: 10px;
  box-shadow: 5px 5px 5px black;
  border: 3px solid transparent;
  transition: all 0.2s;
  position: relative;

  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
td[name='cell']:hover {
  border: 3px solid var(--background);
}
td[name='cell']:active {
  border: 3px solid var(--accent);
  transition: all 0s;
}
td[name='cell'] img {
  display: block;
  margin-bottom: 5px;
  max-height: 40px;
  max-width: 40px;
}



td[name='cell-edit'] input {
  color: var(--font);
  width: 95%;
  background-color: var(--background);
  border: 2px solid var(--accent);
  border-radius: 5px;
  margin: 2px;
}
td[name='cell-edit'] span {
  font-size: small;
}
td[name='placeholder'] {
  background: none;
  box-shadow: none;
}
tr:nth-last-child(2) td[name='placeholder']:last-child {
  display: none;
}
td[name='add'] {
  background: none;
  box-shadow: none;
}

.settings {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  transition: all 0.2s;
}
.settings path {
  fill: var(--font);
  transition: all 0.2s;
}
.settings:hover {
  background-color: var(--font);
}
.settings:hover path {
  fill: var(--background);
}
.settings:active {
  transform: scale(0.9);
  transition: all 0.1s;
}

.add {
  border-radius: 50%;
  transition: all 0.2s;
}
.add path {
  fill: var(--font);
  transition: all 0.2s;
}
.add:hover {
  background-color: var(--font);
}
.add:hover path {
  fill: var(--background);
}
.add:active {
  transform: scale(0.9);
  transition: all 0.1s;
}

.remove {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 50%;
}
.remove path {
  fill: var(--font);
  transition: all 0.2s;
}
.remove:hover {
  background-color: var(--font);
}
.remove:hover path {
  fill: var(--background);
}
.remove:active {
  transform: scale(0.9);
  transition: all 0.1s;
}

.menu {
  position: absolute;
  top: 10px;
  right: 10px;
}
.menu path {
  fill: var(--font);
  transition: all 0.2s;
}
.menu svg {
  border-radius: 50%;
  margin-left: 5px;
}
.menu svg:hover {
  background-color: var(--font);
}
.menu svg:hover path {
  fill: var(--background);
}
.menu svg:active {
  transform: scale(0.9);
  transition: all 0.1s;
}



.over {
  border: 3px solid var(--accent);
}
.noPointerEvents * {
  pointer-events: none;
}
