/* root css */
* {
    margin: 0;
    padding: 0;
    font-family:"times new roman", times, roman, serif;
}

:root {
    --black: #000000;
    --blue: #1e90ff;
    --gray: #706f6b;
    --white: #ffffff;
    --whitegray: #F7F7F7;
    --green: #05980c;
}


body {
    background-color: var(--whitegray) !important;
}

.navbar {
    background-color: var(--white);
    border-top: var(--blue) 4px solid;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

p, label, input, h1 {
    color: var(--black);
}
p6 {
    font-size: 11px;
}
h2 {
    font-size: 22px !important;
}

a span {
    color: var(--black);
}
.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    border: var(--black) !important;
    border-width: 2px !important;
    border-style: solid;
}
.nav-link img {
    margin: 1.1rem;
}

.nav-link.active {
    background-color:  var(--whitegray) !important;
    color: #fff;
}

#nav-panel {
    background-color:  var(--white);
}

/* Main panel */
.main-panel {
    background:  var(--white);
}

.main-panel #images {
    background: var(--white);
}

#library-panel {
    max-height: 850px;
    overflow-y: auto;
    overflow-x: hidden;
}


.image-container {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.max-image-size {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
}

.custom-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #007bff;
  margin-right: 8px;
}

.custom-input {
    width: 30rem !important;
}

/* canvas */
#c {
    background-color: var(--white);
    margin-top: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}
#c2 {
    background-color: var(--white);
    margin-top: 10px;
    border: var(--blue);
    border-width: 2px;
    border-style: solid;
    pointer-events: none;
}

#mask-canvas {
    background-color: var(--white);
    margin-top: 10px;
    border: var(--gray);
    border-width: 2px;
    border-style: solid;
    pointer-events: none;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.custom-radio label {
    background: var(--white);
    padding: 1rem;
}

.button-container {
  max-height: 20rem; /* Set your specific height here */
  overflow-x: auto;
  white-space: nowrap;
}

.color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.table-colors {
  max-height: 25rem; /* Specify your desired maximum height here */
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Disable horizontal scrolling */
  white-space: nowrap; /* Prevent line breaks */
}

.panel {
    background-color: var(--white);
    padding: 2rem;
}

.img-fluid-2 {
    cursor: pointer;
}

.color-input-container {
    border-radius: 10px 20px 15px 5px;
    border: 2px solid var(--whitegray);
}

.generated-image {
    max-width: 100%;
    cursor: pointer;
}

.lds-ring {
    display: none; /* Initially hide the spinner */
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.btn-group {
  position: relative;
  width: 200px; /* Adjust the width as needed */
}

.btn-group::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #007bff; /* Primary color for active button */
  transition: all 0.3s ease-in-out;
  border-radius: 0.25rem;
  z-index: -1;
}

.btn.active {
  background-color: #007bff !important; /* Primary color for active button */
  color: #fff !important;
}

/* Additional styling for inactive buttons */
.btn:not(.active) {
  background-color: #fff !important;
  color: #007bff !important; /* Primary color for inactive buttons */
  border-color: #007bff !important;
}

.img-elements {
    background-color: var(--white) !important;
    cursor: pointer;
    height: 8rem;
}

.disabled {
    pointer-events: none;
    opacity: 0.2;
}

.equal-width-buttons {
    width: 10rem;
}
