/* Existing styles */
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  width: 100vw;
  margin: 0;
  background-color: white;
  overflow-y: auto;
  overflow-x: hidden;
}

h1 {
  margin-bottom: 20px;
  top: 10px;
}

#app {
  width: 80%;
  text-align: center;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px; /* Adjust based on the space needed */
}

#app textarea {
  height: 150px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 30px;
  box-shadow: 0 0 20px rgb(0, 0, 0, 0.5);
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  color: white;
  background-color: black;
  resize: vertical;
  outline: none;
  line-height: 2;
}

#image-label {
  cursor: pointer;
  display: inline-block;
  margin-top: 20px; /* Add margin to ensure space between elements */
}

#default-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

#image-container {
  display: none; 
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

#image {
  width: 50%;
  height: auto;
  max-width: 800px;
  cursor: crosshair;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
}

#color-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

#color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ccc;
  margin-right: 10px;
}

#hex-code {
  font-size: 1.2em;
  font-weight: bold;
}

#buttonContainer button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  background-color: purple;
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 100%;
}

#clear-image:hover {
  background-color: red;
}

#enlarge i {
  margin-right: 5px;
}

#generateFiles,
#downloadFiles {
width: 90%;
height: 50px;
background-color: purple;
color: white;
font-size: 20px;
padding-top: 10px;
padding-bottom: 10px;
border-radius: 10px;
border: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

#generateFiles:hover,
#downloadFiles:hover {
background-color: #4d004d;


}

/* New CSS Editor Container styles */
.css-editor-container {
  width: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto; /* Center horizontally */
  padding: 20px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: purple;
  color: white;
}

.css-editor-container div {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.css-editor-container textarea {
  height: 150px;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 30px;
  box-shadow: 0 0 20px rgb(255, 255, 255, 0.5);
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  color: white;
  background-color: black;
  resize: vertical;
  outline: none;
  line-height: 2;
}

.css-editor-container label {
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  text-align: center;
}


#waitGif {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  width: 250px;
  height: 250px;
  z-index: 9999;
  display: none;
}

#api-icon {
   position: fixed;
   top: 5%;
   right: 20px;
   font-size: 16px;
   cursor: pointer;
   z-index: 400;
  color: black;
  padding: 10px;
   border-radius: 5px;
   box-shadow: 0 2px 10px rgb(0, 0, 0,0.6);
 }


footer {
  position: fixed;
  bottom: 0;
  width: 100vw;
  height: 50px;
  left: 0;
  right: 0;
  text-align: center;
  background-color: purple;
  border-top: 2px solid white;
}

footer p {
  font-size: 14px;
  color: white;
}