/*****************************************
				VARIABLES
*****************************************/
/*****************************************
				HELPERS
*****************************************/
.btn--blue {
  color: white;
  background-color: #109CBF;
}
.btn--blue:hover {
  background-color: #0A8CAC;
}

.segmented-button {
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}
.segmented-button input[type=radio] {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}
.segmented-button input[type=radio]:checked + label {
  background-color: #e3e3e3;
}
.segmented-button label {
  font-family: "Rajdhani", "DIN", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  height: 36px;
  line-height: 36px;
  padding: 0 8px;
  border-right: 1px solid #e3e3e3;
}
.segmented-button label:hover {
  background-color: #fafafa;
  cursor: pointer;
}
.segmented-button label:first-of-type {
  border-radius: 4px 0 0 4px;
}
.segmented-button label:last-of-type {
  border-right: none;
  border-radius: 0 4px 4px 0;
}

/*****************************************
				PAGE STYLES
*****************************************/
div[data-tab] {
  max-width: 840px;
}

.control {
  margin-bottom: 32px;
  margin-right: 16px;
}
.control:last-of-type {
  margin-right: 0;
}

input[type=range] {
  max-width: 100px;
}

#gradient-preview {
  margin-bottom: 12px;
  height: 140px;
}

.color-pickers {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.swatch-wrapper {
  display: flex;
}

.picker {
  display: inline-block;
  margin-right: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.picker:hover {
  box-shadow: 0 3px 12px -3px rgba(0, 0, 0, 0.5);
}
.picker:hover:after {
  opacity: 0.7;
}
.picker:after {
  content: url(../img/palette-white.svg);
  opacity: 0.5;
}
.picker.white-icon:after {
  -webkit-filter: invert(1);
          filter: invert(1);
}

.picker-input,
input[type=number] {
  font-family: "Input Mono", "Input Mono Reg", "Courier", monospace;
  display: inline-block;
  height: 44px;
  width: 130px;
  border: 1px solid #B3B3B3;
  border-radius: 2px;
  color: #232323;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.swap-colors {
  display: flex;
  width: 44px;
  height: 44px;
  padding: 0 4px;
  justify-content: center;
  align-self: center;
  background-color: transparent;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.1s ease, background-color 0.1s ease;
}
.swap-colors:hover {
  opacity: 0.8;
  background-color: #e3e3e3;
}
.swap-colors img {
  max-width: 100%;
}

#css-textarea {
  font-family: "Input Mono", "Input Mono Reg", "Courier", monospace;
  margin-top: 12px;
  padding: 16px;
  width: 100%;
  height: 92px;
  font-size: 14px;
  line-height: 17px;
  color: #232323;
  border: 1px solid #B3B3B3;
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar {
  max-width: 840px;
}
