.wrappet_main {
  width: 100%;
}

.meme-generator-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 10px auto 20px auto;
}

/* Controls Styles */
.controls {
  box-sizing: border-box;
  width: 360px;
  background-color: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 20px;
}

.controls label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 15px;
}

.controls .input-group {
  margin-bottom: 15px;
}

.controls input[type="text"],
.controls input[type="number"] {
  /* Styled number inputs to match text inputs */
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.controls input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  padding: 0;
}

.controls .upload-section label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 2px dashed #4285f4;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  color: #4285f4;
  font-size: 18px;
  font-weight: bold;
  position: relative;
}

.controls .upload-section input[type="file"] {
  display: none;
}

.controls .upload-section .icon {
  font-size: 50px;
  margin-right: 10px;
}

.controls button {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  font-size: 18px;
  cursor: pointer;
  background-color: #ff6f00;
  color: #fff;
  border: none;
  border-radius: 4px;
}

.controls button:hover {
  background-color: #e65100;
}

.post-inner .controls button:hover,
.post-inner .controls button:active,
.post-inner .controls button:focus {
  text-decoration: none;
}

/* Different color for the download button */
#downloadBtn {
  background-color: #34a853; /* Green color */
}

#downloadBtn:hover {
  background-color: #0b8043;
}

/* Canvas Styles */
.canvas-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 380px);
}

#memeCanvas {
  max-width: 100%;
  border: 2px solid #dadce0;
  border-radius: 8px;
  background-color: #fff;
}

.color-options {
  display: flex;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1300px) {
  .meme-generator-container {
    flex-direction: column;
    align-items: center;
  }

  .controls {
    width: 100%;
    max-width: 500px;
    margin: 0;
    margin-bottom: 20px;
  }

  .canvas-container {
    max-width: 100%;
  }
}