input[type="range"] {
  -webkit-appearance: none;
  /* Remove default styling */
  width: 100%;
  /* Full width slider */
  height: 8px;
  /* Track height */
  background: #ddd;
  /* Track background color */
  border-radius: 5px;
  /* Rounded track */
  outline: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

input[type="range"]:hover {
  opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000000;
  /* Thumb color */
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000000;
  cursor: pointer;
}

.image_container {
  max-width: 75%;
  max-height: 1000px;
  min-width: 500px;
  min-height: 500px;
  margin: auto;
  text-align: center;
}

img#image {
  max-width: 100%;
}

.controls {
  margin-bottom: 20px;
}

#cropped-result {
  margin-top: 20px;
}

#cropped-image {
  max-width: 100%;
}

.display_none {
  display: none;
}

.file-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.canvas-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid black;
  border-radius: 5px;
  padding: 5px;
  box-sizing: border-box;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.center-all {
  display: flex;
  justify-content: center; /* Horizontally centers the button */
  align-items: center;     /* Vertically centers the button */
  height: 100%;            /* Ensure the parent container has height to center vertically */
}

.marign_right {
  margin-right: 5px;
}

.custom-line-height {
  line-height: 0 !important;
  vertical-align: middle;
}

.hidden {
  display: none;
}

.center {
  margin: auto;
  /* width: 75%; */
  /* border: 3px solid lightgray;  */
  /* padding: 10px; */
}

.centerBorderless {
  margin: auto;
  width: 75%;
  padding: 10px;
}

.centerImage{
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 500px;
}

.centerCanvasMedium {
padding-left: 0;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
width: 500px;
}

.centerCanvasLarge {
padding-left: 0;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
width: 800px;
}

.not_yet_implemented {
  display: none;
}

.page-content {
  min-height: 500px;
}

.tooltip {
  position: relative; /* Positioning context for the tooltip */
  display: inline-block;
  cursor: pointer; /* Show pointer cursor on hover */
  color: #333; /* Text color */
  margin: 0; /* Remove any extra margin */
  padding: 0; /* Remove any extra padding */
}

/* Style for the tooltip text */
.tooltip-text {
  visibility: hidden;
  width: 275px;
  background-color: #555;
  color: #fff;
  text-align: left;
  padding: 8px 20px 8px 20px;
  border-radius: 6px;
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 0;
  z-index: 1000;
}

/* Add an arrow pointing to the left */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%; /* Position the arrow on the left */
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #555 transparent transparent; /* Arrow color */
}

/* Show tooltip on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1; /* Make it visible */
}