body {
  background-color: #e7e7e7;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  margin: 0 auto;
  max-width: 550px;
  height: auto;  
}

@media (max-width: 550px) {
  .container {
    width: 100%;
    margin: 5px auto;
    max-width: 550px;
    height: auto; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.controls {
  width: 100%;
  margin: 5px auto;
  max-width: 550px;
  background: transparent;
  padding: 0px 0px 20px 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  row-gap: 10px;
  align-items: center;
  z-index: 2;
  height: auto;
}

.menu {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
}

#save {
  color: white;
  background-color: green;
  border-radius: 5px;
  margin: 5px;
  border: none;
  padding: 10px;
}

#loadImage{
  color: white;
  background-color: rgb(221, 201, 25);
  border-radius: 5px;
  margin: 5px;
  border: none;
  padding: 10px;
}

#share {
  color: white;
  background-color: rgb(15, 75, 240);
  border-radius: 5px;
  margin: 5px;
  border: none;
  padding: 10px;
}

#clear {
  color: white;
  background-color: red;
  border-radius: 5px;
  margin: 5px;
  border: none;
  padding: 10px;
}


/**/

.brush-size {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
}

.size-btn {
  border: none;
  padding: 8px;
  margin: 2px auto;
  border-radius: 50%;
}

button.selected {
  background-color: #000000; 
  color: white;
  border: none;
}

/**/

#bucketFillTool{
  margin: 0px 3px;
  border-radius: 5px;
  padding: 15px;
  border: none;
}

.color-picker-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

input[type="color"] {
  cursor: pointer;
  opacity: 0;
  position: absolute;
  flex: 1 	;
}

.color-circle {
  display: inline-block;
  flex: 1;
  border-radius: 5px;
  border: 1px 3px 3px 1px solid #000000;
  background-color: #000000;
  cursor: pointer;
  margin:0px 4px 0 0 ;
}

.color-btn {
  flex:0.2;  
  padding:10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button.color-btn:hover,
button:hover {
  transform: scale(1.1);
}


/**/




#Opacitycontrols {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap:1rem;
  width: 100%;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 300px;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  outline: none;
  transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: #ddd;
  border-radius: 3px;
  height: 6px;
}

input[type="range"]::-moz-range-track {
  background: #ddd;
  border-radius: 3px;
  height: 6px;
}

input[type="range"]::-ms-track {
  background: transparent;
  border-color: transparent;
  color: transparent;
  height: 6px;
}

/* Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

input[type="range"]::-ms-thumb {
  width: 14px;
  height: 14px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

/* Hover effect */
input[type="range"]::-webkit-slider-thumb:hover {
  background: #0056b3;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #0056b3;
}

input[type="range"]::-ms-thumb:hover {
  background: #0056b3;
}

/* On-focus style for accessibility */
input[type="range"]:focus {
  background: #ccc;
}















canvas {
  cursor: crosshair;
  border: 2px solid #777777;
  margin: 0 auto;
}

#drawingCanvas {
  position: relative;
  border-radius: 25px; /* Adjust the value to match the internal corners */
  overflow: hidden;
}

@media (min-width: 550px) {
  #drawingCanvas {
    position: absolute;
    left: 50%;
    top: auto;
    transform: translate(-50%);
    
  }
}

footer{
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: 10px;
  z-index: -1;
  width: max-content;
}



.size-btn:nth-child(1) {
  font-weight: 100;
}

.size-btn:nth-child(2) {
  font-weight: 300;
}

.size-btn:nth-child(3) {
  font-weight: 600;
}

.size-btn:nth-child(4) {
  font-weight: 800;
}

.size-btn:nth-child(5) {
  font-weight: 1000;
}