body {
  display: grid;
  gap: 10px;
}

.canvases {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
canvas {
  border: 1px solid black;
}

.divs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.change-color {
  width: 200px;
  height: 200px;
  background-color: #ff0000;
  position: relative;
}

.moon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffac1c, #cc5500);
  transform-origin: 100px 0;
  position: absolute;
  left: 0;
  top: 100px;
  animation: move 60s linear infinite;
}

.earth {
  width: 90px;
  height: 90px;
  position: absolute;
  left: 55px;
  top: 55px;
  border-radius: 50%;
  background: radial-gradient(circle at center, lightblue, lightgreen, green);
}

.color-slider {
  background-color: #ddd;
  width: 200px;
  height: 200px;
  display: grid;
  grid-template-rows: 6fr 1fr;
  row-gap: 5px;
  padding: 5px;
}
.color-screen {
  background-color: black;
}
.slider-container {
  display: flex;
  gap: 3px;
}

.slider {
  width: 100%;
}
.rect {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: none;
}

.rect-red {
  background: red;
}
.rect-green {
  background: green;
}
.rect-blue {
  background: blue;
}

/* border slider */
.test-border {
  width: 300px;
  height: 300px;
  display: grid;
  background-color: #ccc;
  padding: 25px;
  position: relative;
}

.div-border {
  background-color: #cc5500;
}

.slide-border {
  position: absolute;
  width: 145px;
  opacity: 0.7;
}

#tl {
  left: 25px;
  top: 10px;
}
#tr {
  right: 25px;
  top: 10px;
  direction: rtl;
}
#br {
  right: 25px;
  bottom: 10px;
  direction: rtl;
}
#bl {
  left: 25px;
  bottom: 10px;
}
/* animation */
@keyframes move {
  0% {
    rotate: 0;
  }
  100% {
    rotate: 360deg;
  }
}
