.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#previewContainer {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#previewContainer img {
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
}

.modal-content texarea{
  border:0;
}

.modal-button{
  display:flex;
  place-content: space-between;

}

.upload-icon img{
  height:30px;
  width:Auto;
  cursor:pointer;
}

.upload-icon {
  position: relative;
}

.upload-icon::after {
  content: "Bild hochladen";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.upload-icon:hover::after {
  opacity: 1;
}

#closeModal{
  background-color: white;
  border:0;
  cursor:pointer;
}

#submitPostBtn{
  color:black;
  font-size:20px;
    background-color: #fec50d;
    border:0;
    padding:10px;
    border-radius: 5px;
    cursor:pointer;
}

#postText{
  border:0;
  font-size:20px;
  padding:5px;
}

.thumb {
  position: relative;
  display: inline-block;
}

.thumb img {
  width: 200px;
  height: 200px;
  border-radius: 6px;
  object-fit: cover;
}

.delete-thumb {
  position: absolute;
      top: 5px;
    right: 5px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 5px;
      height: 35px;
    width: 35px;
        background-size: contain;
  background-image:url(../images/delete.svg);
}


.alt-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
      height: 35px;
    width: 35px;
        background-size: contain;
  background-image:url(../images/edit.svg);
      border: 3px solid white;
  padding: 2px 5px;
}
.thumb {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}