body {
  font-family: Arial, sans-serif;
  background: #222;
  color: #fff;
  margin: 0;
  padding: 0;
}
.meme-editor {
  max-width: 900px;
  margin: 30px auto;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px #0008;
}
.toolbar {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #222;
}
.btn {
  background: #444;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.editor-container {
  display: flex;
  padding: 20px;
}
.canvas-container {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
#'meme-canvas' {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0006;
  max-width: 100%;
  max-height: 500px;
}
.sidebar {
  flex: 1;
  margin-left: 20px;
}
.text-tools {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.text-options {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
input[type="text"], select {
  padding: 6px;
  border-radius: 4px;
  border: none;
  font-size: 16px;
}

.sidebar.sticker-tools {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar.sticker-tools h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.sidebar.sticker-tools button {
  margin-bottom: 8px;
  width: 100%;
}

.sidebar.sticker-tools label {
  font-size: 14px;
  color: #ccc;
}

.sidebar.sticker-tools input[type="range"] {
  width: 100%;
  margin-top: 4px;
}

.menu-navigator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 10px;
  text-align: center;
}

@media (max-width: 700px) {
  .meme-editor {
    max-width: 200vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .toolbar {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .editor-container {
    flex-direction: column;
    padding: 10px;
  }
  .canvas-container {
    max-width: 100vw;
    max-height: 50vw;
    padding: 0;
  }
  #meme-canvas {
    max-width: 100vw;
    max-height: 50vw;
    width: 100%;
    height: auto;
  }
  .sidebar {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }
  .sidebar.sticker-tools,
  .text-tools {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
  }
  .text-options {
    flex-wrap: wrap;
    gap: 6px;
  }
  input[type="text"], select, input[type="color"], input[type="range"] {
    width: 100%;
    box-sizing: border-box;
  }
}
