@charset "utf-8";
/* CSS Document */

/* CSS Gradient Tool */
.gradient-tool {
  margin: 30px 0 22px;
}

.gradient-preview-wrap {
  margin-bottom: 22px;
}

.gradient-preview {
  width: 100%;
  height: 250px;
  border: 1px solid #ddd;
  background: linear-gradient(90deg, #0088cc 0%, #02bf57 100%);
}

.gradient-css-wrap {
  margin-bottom: 25px;
}

.gradient-css-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

#gradientCss {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  color: #333;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 0;
  outline: none;
  font-family: Consolas, monospace;
  font-size: 15px;
}

.gradient-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.gradient-control h3 {
  margin-top: 0;
}

#gradientType,
#radialShape,
#radialPosition {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  outline: none;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  cursor: pointer;
}

#gradientType:hover,
#radialShape:hover,
#radialPosition:hover {
  border-color: #bbb;
}

#gradientType:focus,
#radialShape:focus,
#radialPosition:focus {
  border-color: #0088cc;
}

.gradient-range-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 15px;
  align-items: center;
}

#angleSlider,
.stop-position-slider {
  width: 100%;
  accent-color: #0088cc;
  cursor: pointer;
}

.gradient-number-wrap {
  display: flex;
  align-items: center;
  height: 44px;
  background: #fff;
  border: 1px solid #ddd;
}

.gradient-number-wrap:focus-within {
  border-color: #0088cc;
}

.gradient-number-wrap input {
  width: 100%;
  height: 42px;
  padding: 8px 4px 8px 10px;
  color: #333;
  background: transparent;
  border: 0;
  outline: none;
  font-family: Consolas, monospace;
  font-size: 16px;
  text-align: right;
}

.gradient-number-wrap span {
  padding-right: 10px;
  color: #777;
  font-family: Consolas, monospace;
  font-size: 16px;
}

.radial-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.radial-controls[hidden] {
  display: none;
}

.gradient-colors {
  margin-top: 5px;
}

.gradient-help {
  margin: 0 0 12px;
  color: #777;
  font-size: 14px;
}

.gradient-stop {
  display: grid;
  grid-template-columns: 70px minmax(140px, 1fr) minmax(180px, 1fr) 90px auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #ddd;
}

.gradient-stop:last-child {
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.stop-picker {
  width: 70px;
  height: 44px;
  padding: 3px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  cursor: pointer;
}

.stop-hex {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  outline: none;
  font-family: Consolas, monospace;
  font-size: 16px;
}

.stop-hex:hover {
  border-color: #bbb;
}

.stop-hex:focus {
  border-color: #0088cc;
}

.stop-position-wrap {
  display: flex;
  align-items: center;
  height: 44px;
  background: #fff;
  border: 1px solid #ddd;
}

.stop-position-wrap:focus-within {
  border-color: #0088cc;
}

.stop-position {
  width: 100%;
  height: 42px;
  padding: 8px 4px 8px 8px;
  color: #333;
  background: transparent;
  border: 0;
  outline: none;
  font-family: Consolas, monospace;
  font-size: 16px;
  text-align: right;
}

.stop-position-wrap span {
  padding-right: 8px;
  color: #777;
  font-family: Consolas, monospace;
}

.gradient-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: #dc3545;
  font-size: 14px;
}

@media screen and (max-width: 991px) {
  .gradient-stop {
    grid-template-columns: 70px 1fr 1fr 90px;
  }

  .remove-color {
    grid-column: 2 / 5;
    justify-self: start;
  }
}

@media screen and (max-width: 767px) {
  .gradient-preview {
    height: 200px;
  }

  .gradient-controls,
  .radial-controls {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gradient-stop {
    grid-template-columns: 60px 1fr;
  }

  .stop-picker {
    width: 60px;
  }

  .stop-position-slider {
    grid-column: 1 / 3;
  }

  .stop-position-wrap {
    grid-column: 1 / 2;
  }

  .remove-color {
    grid-column: 2 / 3;
  }
}

@media screen and (max-width: 480px) {
  .gradient-css-row {
    grid-template-columns: 1fr;
  }

  .gradient-range-row {
    grid-template-columns: 1fr 80px;
  }
}