.flip-icons {
  transform: scaleX(-1);
  display: inline-block;
}

.rotate-90-icons {
  transform: rotate(90deg);
  display: inline-block;
}

.preview-container {
  width: 100%;
  text-align: center;
}

.image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 3px;
}

html[data-theme=dark] .image-container {
  border: 1px solid #353a40 !important;
}

.sample-button {
  position: absolute;
  top: 5px;
  left: 5px;
}

.bg-checker {
  background-image: url('../images/checker.png');
  background-size: 128px 128px;
}

.image-size {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.image-container:hover .color-buttons,
.image-container:hover .edit-buttons {
  opacity: 1 !important;
}

.edit-buttons {
  position: absolute;
  top: 185px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease-in-out;
}

.color-buttons {
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease-in-out;
}

.image-container .image-overlay img,
.image-container .solid-color {
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-overlay {
  position: relative;
  display: inline-block;
}

.image-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: color;
  pointer-events: none;
}

.custom-overlay::before {
  background-color: var(--dynamic-color);
}

.alpha-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.color-picker {
  height: 225px !important;
}

.tab-content {
  height: 165px !important;
  border-bottom: 1px solid #e1e1e1 !important;
}

html[data-theme=dark] .tab-content {
  border-bottom: 1px solid #353a40 !important;
}

.custom-form-control {
  width: 100% !important;
  min-height: 1rem !important;
  border: 1px solid #e1e1e1 !important;
  border-radius: 3px !important;
  font-size: .8rem !important;
  color: #888 !important;
  outline: none !important;
  padding: 4px 8px !important;
}

html[data-theme=dark] .custom-form-control {
  border: 1px solid #353a40 !important;
}

.custom-form-control:focus {
  border: 1px solid #0c77be!important;
}

.color-form-control {
  width: 100% !important;
  padding: 1px !important;
}

.color-box {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e1e1e1;
  border-radius: 20px;
}

.color-container,
.texture-container {
  position: relative;
}

.material-title {
  position: absolute;
  top: -22;
  left: 50%;
  transform: translateX(-50%);
}

.text-sm {
  font-size: 0.75rem;
}

.nav-tabs .nav-link.active {
  border: 1px solid #e2e2e7;
  background-color: #f3f3f7;
}

.nav-tabs .nav-item,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
  border-radius: 10px 10px 0 0 !important;
  border-bottom: none !important;
}

.nav-tabs.nav-tabs-sm .nav-link {
  font-size: 0.85rem;
}

.color-titles {
  margin-top: 0px;
}

.color-title {
  margin-top: 6px;
}

.color-values {
  margin-top: 0px;
}

.color-value {
  margin-top: 3px;
  width: 50px;
}

.texture-check {
  margin: -7px -7px 0 0;
}