* {
  outline: 0;
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f4f4f4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23e6e6e6' fill-opacity='0.4'%3E%3Cpolygon fill-rule='evenodd' points='8 4 12 6 8 8 6 12 4 8 0 6 4 4 6 0 8 4'/%3E%3C/g%3E%3C/svg%3E");
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
  justify-content: center;
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .canvas-container {
    padding: 12px;
  }

  #meme-canvas {
    max-width: calc(100vw - 48px);
    height: auto;
  }

  .info-box,
  .twitter-import-box,
  .disclaimer {
    max-width: calc(100vw - 32px);
  }

  .button-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .social-icons {
    gap: 12px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .sticker-thumb {
    width: 40px;
    height: 40px;
  }

  #sticker-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    padding: 0 8px;
  }
}

button {
  cursor: pointer;
  background: none;
}
button:disabled {
  cursor: not-allowed;
}

a {
  text-decoration: none;
  color: inherit;
}

h1 {
  margin-top: 24px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: #000;
}

.controls {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#sticker-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticker-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
  display: inline-block;
}

.sticker-thumb:hover {
  border: 2px solid #007bff;
}

.canvas-container {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin-bottom: 32px;
}

#meme-canvas {
  display: block;
  background: #eee;
  max-width: 100%;
  border-radius: 8px;
}

.sticker-control {
  position: absolute;
  pointer-events: none;
}

.sticker-handle,
.sticker-rotate,
.sticker-remove {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
}

.sticker-rotate {
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffe066;
}

.sticker-handle {
  right: -12px;
  bottom: -12px;
  background: #d1ffd6;
}

.sticker-remove {
  top: -12px;
  right: -12px;
  background: #ff6b6b;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50%;
}

button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-weight: 600;
  cursor: pointer;
  margin: 2px 0;
  transition: background 0.2s;
}

button:hover {
  background: #0056b3;
}

.welcome-box {
  background: #ff69b43a;
  border: 1.5px solid #ff69b4;
  border-radius: 12px;
  padding: 18px 24px 16px 24px;
  margin: 16px 0 12px 0;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 182, 213, 0.08);
  font-weight: 500;
  color: #ac4478;
}

.info-box {
  background: #fff0f6;
  border: 1.5px solid #ffb6d5;
  border-radius: 12px;
  padding: 18px 24px 16px 24px;
  margin: 24px 0 12px 0;
  max-width: 600px;
  color: #ff69b4;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 182, 213, 0.08);
}

.pink-btn {
  background: #ff69b4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(255, 105, 180, 0.12);
  transition: background 0.2s;
}
.pink-btn:hover {
  background: #ff1493;
}

.button-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.upload-btn {
  background: #4a5568;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 16px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.upload-btn:hover {
  background: #2d3748;
}

.controls-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 24px 0 24px 0;
}

.sticker-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-top: 8px;
  margin-bottom: 16px;
}

#sticker-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

#download-btn {
  margin-top: 16px;
  margin-bottom: 16px;
}

.button-group {
  display: flex;
  gap: 10px;
}

.disclaimer {
  margin-top: 18px;
  margin-bottom: 32px;
  text-align: center;
  color: #888;
  font-size: 13px;
  max-width: 400px;
}

.twitter-import-box {
  background: #f4f8ff;
  border: 1.5px solid #b3d1ff;
  border-radius: 10px;
  padding: 14px 18px 10px 18px;
  margin: 24px 0 12px 0;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.twitter-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.twitter-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.twitter-import-box input[type="text"] {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #b3d1ff;
  font-size: 15px;
  width: 160px;
}

.twitter-import-box button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  font-size: 15px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.twitter-import-box button:hover {
  background: #0056b3;
}

.bos-link {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: #ff69b4;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(255, 105, 180, 0.12);
  transition: background 0.2s;
}

.bos-link:hover {
  background: #ff1493;
  text-decoration: none;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 12px 0 12px 0;
}

.social-icon {
  width: 48px;
  height: 48px;
  background: #ff69b4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.3);
}
