body {
  padding: 165px 5vw 0 5vw;
  display: flex;
  height: 100vh;
  flex-direction: column;
  background: honeydew;
}

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

canvas {
  margin-bottom: 10px;
  width: 100%;
  image-rendering: pixelated;
}

button.record {
  width: max(30%, 220px);
}

.clips-list {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  overflow-y: scroll;
  padding-bottom: 50px;
}

@media (max-width: 1000px) {
  .clips-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 875px) {
  .clips-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 725px) {
  .clips-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 525px) {
  .clips-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 375px) {
  .clips-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.clips-list::-webkit-scrollbar {
  display: none;
}


.clips-list article.clip {
  width: 100%;
  border: solid 1px black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: 100px;
  flex-shrink: 0;
  background: white;
}

.clip input {
  flex-grow: 0;
  font-size: 1rem;
  width: 60%;
  outline: none;
  border: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  word-break: break-word;
  border-radius: 2px;
  margin-right: 10px;
}

.clip input:hover {
  background: hsl(0, 0%, 80%);
}

.clip input::selection {
  background: lime;
}

.clip div.buttons {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.clip button {
  display: inline-block;
  padding: 0;
  outline: none;
  font-size: 16px;
  border: none;
}

.clip button:first-child {
  line-height: 0px;
  height: 100%;
  display: flex;
  align-items: center;
}

.clip button:last-child {
  margin-top: -4px;
  font-size: 14px;
}