.smiley-overlay-container {
  max-width: 850px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  text-align: center;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.smiley-title {
  color: #333;
  font-size: 24px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.smiley-subtitle {
  color: #666;
  font-size: 18px;
  margin-bottom: 20px;
}

.upload-area {
  border-radius: 10px;
  padding: 40px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
  background-color: transparent;
  position: relative;
  width: 100%;
  max-width: 850px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  border: 2px solid white;
}

.upload-area:hover {
  border-color: #999;
}

.upload-area.dragover {
  background-color: #f0f0f0;
  border-color: #4caf50;
}

.upload-instructions {
  display: flex;
  color: #777;
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.upload-instructions p {
  margin: -2px 0;
}
img.icon-img-up {
  width: 60px;
  margin-bottom: 18px;
}
.editor-area {
  display: none;
}

canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.download-btn,
.share-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

.download-btn {
  background-color: #4caf50;
  color: white;
}

.download-btn:hover {
  background-color: #45a049;
}

.share-btn {
  background-color: #1da1f2;
  color: white;
}

.share-btn:hover {
  background-color: #0d8ecf;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.canvas-container {
  width: 100% !important;
  height: 100%;
}

canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#editorArea {
  max-width: 850px;
  background-color: transparent;
  padding: 10px;
  box-sizing: border-box;
  width: 100%;
  border: 2px solid white;
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  #editorArea {
    max-width: 300px;
  }
}
