body {
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  z-index: 2;
  position: relative;
}

.generator-container {
  max-width: 800px;
  width: 90%;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1;
  position: relative;
  margin: 20px 0;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.controls input[type="text"],
.controls select,
.controls button {
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 5px;
  border: 1px solid #00ffff;
  background-color: rgba(0, 50, 50, 0.7);
  color: #00ffff;
  transition: all 0.3s ease;
}

.controls input[type="text"]::placeholder {
  color: #00cccc;
}

.controls input[type="text"]:focus,
.controls select:focus,
.controls button:focus {
  outline: none;
  box-shadow: 0 0 8px #00ffff;
}

.controls button:hover {
  background-color: #00ffff;
  color: #111;
  cursor: pointer;
}

.canvas-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  border: 2px solid #00ffff;
  border-radius: 8px;
  overflow: hidden;
}

#memeCanvas {
  display: block;
  /* CHANGED: Initial background color from grey to black */
  background-color: #000;
}

.corner-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;
  opacity: 0.9;
  z-index: 999;
  border-radius: 8px;
}

.paste-instruction {
  background-color: rgba(0, 255, 255, 0.15);
  color: #00ffff;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
  animation: fadeIn 1.2s ease-out forwards;
  opacity: 0;
  margin-top: 10px;
  z-index: 2;
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  h1 {
    font-size: 24px;
  }
  .controls input,
  .controls select,
  .controls button {
    font-size: 12px;
    padding: 8px 10px;
  }
  #memeCanvas {
    width: 100%;
    height: auto;
  }
  .corner-logo {
    width: 150px;
    bottom: 10px;
    right: 10px;
  }
}