/* Global reset for card hover animations */
.card {
  transition: none; /* Remove hover animation from cards */
}

/* Notification Styles */
#notification {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 15px;
  border-radius: 5px;
  background-color: #f8d7da;
  color: #721c24;
  font-weight: bold;
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* General Card Styling */
.card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-body {
  padding: 20px;
}

/* Card Layout (ensure responsive and clean layout) */
.container {
  max-width: 1200px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.col-md-4 {
  flex: 1 0 30%;
  min-width: 300px;
}

/* Styling for PDF viewer canvases */
#pdf1Viewer,
#pdf2Viewer {
  width: 100%;
  height: 500px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

/* Transparency Slider and Input Styles */
input[type="range"],
input[type="number"] {
  width: 100%;
}

input[type="range"] {
  margin-bottom: 15px;
}

input[type="number"] {
  margin-bottom: 15px;
}

/* Color Palette Styling */
#pdf1Colors,
#pdf2Colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#pdf1Colors div,
#pdf2Colors div {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

#pdf1Colors div:hover,
#pdf2Colors div:hover {
  transform: scale(1.2);
}

/* Button Styling */
button {
  margin-top: 10px;
}

/* Font and Text Styling */
#analysisResults p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

/* PDF Uploads and Controls */
#pdf1Properties,
#pdf2Properties {
  margin-top: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* Responsive Media Query */
@media (max-width: 768px) {
  .col-md-4 {
    flex: 1 0 100%;
  }

  #pdf1Viewer,
  #pdf2Viewer {
    height: 300px;
  }
}

#canvasWrapper {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust this as needed */
  overflow: hidden;
}

#canvasWrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Default z-index for the first canvas */
}

#canvasWrapper canvas.overlay {
  z-index: 2; /* Higher z-index for the second canvas to overlay it */
}

@keyframes blinkArtwork {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.blinkArtwork {
  animation: blinkArtwork 1s infinite;
}
.clear-btn {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 14px;
  color: red;
  margin-left: 5px;
  padding: 0;
}

#loadingContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #ccc;
  z-index: 10;
}

#loadingBar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.4s ease-out;
}

/* tab */
.guideline {
  border-left: 2px solid red;
  cursor: move;
  z-index: 15;
}

/* ---- */
/* Hide default input */
.hidden-file-input {
  display: none;
}

/* Custom label as file input button */
.custom-file-upload {
  position: relative;
  display: inline-block;
}

.file-upload-label {
  width: 100% !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px dashed #c2d1e1;
  border-radius: 8px;
  background-color: #f0f8ff;
  color: #303439;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 500;
}

.file-upload-label:hover {
  background-color: #e6f0ff;
}

/* Plus icon styling */
.plus-icon {
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}
