body {
  font-family: sans-serif;
  background: #c0a78f;
  margin: 0;
  padding: 0;
  text-align: center;
}

.container {
  width: 90%;
  margin: 10px auto;
  background: #c0a78f;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

form textarea {
  width: 98%;
  height: 80px;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  resize: none;
  text-align: left;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.file-label, .button-group button {
  flex: 1;
  background: #000;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.file-label input {
  display: none;
}

form button:hover,
.file-label:hover {
  background: #333;
}

#publishButton {
  background: #28a745;
  color: #fff;
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
}

#publishButton:hover {
  background: #1c7c31;
}

#progressBar {
  width: 100%;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  display: none;
}

#progressFill {
  width: 0%;
  height: 14px;
  background: #000;
}

#statusMessage {
  margin: 10px 0;
  font-weight: bold;
}

#micIcon {
  font-size: 2em;
  display: none;
  margin: 10px 0;
}

#stopRecording {
  display: none;
  margin-top: 10px;
  background: #dc3545;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

#confirmButtons {
  margin-top: 10px;
  display: none;
  gap: 10px;
  justify-content: center;
}

#confirmButtons button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
}

#btnSi {
  background-color: #28a745;
}

#btnNo {
  background-color: #dc3545;
}

.post {
  background: #c0a78f
  padding: 15px;
  border-radius: 10px;
  margin: 15px auto;
  border: 0px solid #ddd;
  text-align: center;
  width: 96%;
  max-width: 800px;
}

.post p {
  text-align: left;
  margin: 0 0 10px 0;
  word-wrap: break-word;
}

.post img, 
.post video {
  display: block;
  width: 90%;
  max-width: 90%;
  height: auto;
  margin: 10px auto;
  border-radius: 6px;
  object-fit: contain;
}

/* Player audio personalizzato */
.audio-container {
  width: 100%;
  max-width: 500px;
  margin: 15px auto;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.audio-container audio {
  display: none;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-audio-btn {
  background: #000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-progress-container {
  flex-grow: 1;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}

.audio-progress {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.1s;
}

.audio-time {
  font-size: 14px;
  color: #555;
  min-width: 40px;
  text-align: center;
}

.refresh-btn {
  background: #000;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin: 10px 0;
}

.refresh-btn:hover {
  background: #333;
}

.emoji-button {
  background: #000;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin: 5px 0;
}

.emoji-button:hover {
  background: #333;
}

#emojiPanel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  gap: 8px;
}

#emojiPanel button {
  font-size: 26px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.1s;
}

#emojiPanel button:hover {
  transform: scale(1.2);
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 10px;
  }
  
  .post img,
  .post video,
  .audio-container {
    width: 100%;
    max-width: 100%;
  }
  /* Stile per il logo 
  .button-group {
    flex-direction: column;
  }*/
}