
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}
#postsome-container {
  width: 100%; /* Take full width of parent */
  max-width: 600px; /* But don't get too wide on large screens */
  margin: auto; /* Center it */
}

#postsome-container canvas {
  width: 100%; /* Make canvas responsive */
  height: auto; /* Adjust height accordingly */
}
#play-beat-button {
      background-color: #181616;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 17px;
    font-size: 16px;
}

#play-beat-button:hover {
  background-color: #333;
}
.create-post {
  width: 80%;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#image-preview {
  width: 100%;
  height: 500px;
  display: flex;
background-color: #c2c2c2;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
}

#image-preview canvas {
  max-width: 100%;
  max-height: 100%;
}

#template-select {
  margin-top: 20px;
}

#template-select label {
  font-size: 16px;
  font-weight: bold;
  margin-right: 10px;
}

#template-select select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

button[type="submit"] {
  background-color: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button[type="submit"]:hover {
  background-color: #3e8e41;
}

@media only screen and (max-width: 768px) {
  .create-post {
    width: 90%;
  }
  #image-preview {
    height: 300px;
  }
}

@media only screen and (max-width: 480px) {
  .create-post {
    width: 100%;
    padding: 10px;
  }
  #image-preview {
    height: 398px;
  }
  textarea {
    height: 39px;
  }
}