body {
  font-family: 'Century Gothic', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: white;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.username-link {
  color: #ED1C24;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.username-link:hover {
  text-decoration: underline;
}

.username-verified {
  color: #28a745;
}

.create-note,
.back-to-wall,
.alert-btn {
  background-color: #ED1C24;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Century Gothic', Arial, sans-serif;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
}

.create-note:hover,
.back-to-wall:hover,
.alert-btn:hover {
  background-color: #c8102e;
}

.alert-dot::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  background-color: yellow;
  border-radius: 50%;
}

.login-container {
  max-width: 400px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}

.logo {
  display: block;
  margin: 0 auto 20px;
  width: 400px;
  height: 100px;
  cursor: pointer;
}

h2, h3 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.profile-form-container {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profile-form-container > div {
  margin-bottom: 15px;
}

.form-container {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.form-container label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.website-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.website-title-input,
.website-url-input {
  flex: 1;
}

.remove-website-btn {
  background-color: #dc3545;
}

.remove-website-btn:hover {
  background-color: #c82333;
}

input[type="text"],
input[type="password"],
textarea,
select,
input[type="color"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

input[type="text"]:focus {
  border-color: #ED1C24;
  outline: none;
}

input[type="text"]:disabled {
  background-color: #f8f9fa;
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 100px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

textarea#commentInput {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  height: 100px;
  resize: vertical;
}

textarea.reply-input {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  height: 100px;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type="file"] {
  margin: 10px 0;
}

button {
  background-color: #ED1C24;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  position: relative;
}

button:hover {
  background-color: #c8102e;
}

.cancel-btn {
  background-color: #dc3545;
}

.cancel-btn:hover {
  background-color: #c82333;
}

.edit-btn {
  background-color: #007bff;
}

.edit-btn:hover {
  background-color: #0056b3;
}

#verifyEmailButton:disabled {
  background-color: #6c757d;
  color: #ffffff;
  opacity: 0.5;
  cursor: not-allowed;
}

.error {
  color: red;
  display: none;
  margin: 10px 0;
  min-height: 20px;
}

.note {
  background-color: white;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.note p:not(#postText) {
  margin-bottom: 20px;
}

.note p {
  margin: 5px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note p a {
  color: #007bff;
  text-decoration: underline;
}

.note p a:hover {
  text-decoration: none;
}

.post-meta {
  background-color: white;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

.url-button {
  background-color: #ED1C24;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Century Gothic', Arial, sans-serif;
  display: inline-block;
  margin: 0 5px;
  width: 50px;
  text-align: center;
}

.url-button:hover {
  background-color: #c8102e;
}

.note-image,
#generatedImagePreview {
  max-width: 300px;
  width: 300px;
  height: 300px;
  object-fit: contain;
  margin: 10px 0;
  border-radius: 5px;
}

.note-video {
  width: 100%;
  max-height: 600px;
  margin-top: 10px;
}

.note-video.youtube {
  aspect-ratio: 16 / 9;
}

.note-video.tiktok {
  aspect-ratio: 9 / 16;
  min-height: 400px;
}

.note-video.instagram,
.note-video.facebook {
  width: 100%;
  max-height: 600px;
  aspect-ratio: 9 / 16;
}

.video-preview-item {
  width: 100%;
  margin-bottom: 10px;
}

.video-preview-item iframe {
  width: 100%;
  max-height: 600px;
}

.video-preview-item iframe.youtube {
  aspect-ratio: 16 / 9;
}

.video-preview-item iframe.tiktok,
.video-preview-item iframe.instagram,
.video-preview-item iframe.facebook {
  aspect-ratio: 9 / 16;
  min-height: 400px;
}

.tags {
  color: #007bff;
  cursor: pointer;
  margin: 10px 0;
}

.tags span {
  background: #e0e0e0;
  padding: 5px 10px;
  border-radius: 15px;
  margin-right: 5px;
}

.tags span:hover {
  text-decoration: underline;
}

.wall-grid {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  gap: 20px;
  box-sizing: border-box;
}

.wall-column {
  width: 48%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  height: auto !important;
  overflow: visible !important;
}

.wall-note {
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  min-height: auto;
  height: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

.wall-note:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.wall-note-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 10px auto;
  border-radius: 5px;
}

.wall-note-video {
  width: 100%;
  height: auto;
  min-height: 600px;
  aspect-ratio: 9 / 16;
  margin-top: 10px;
  box-sizing: border-box;
}

.wall-note-video.youtube {
  min-height: 200px;
  aspect-ratio: 16 / 9;
}

.wall-note-video.instagram {
  width: 100%;
  height: 450px;
  aspect-ratio: 9 / 16;
  margin-top: 10px;
}

.wall-note-video.facebook {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.video-meta {
  margin-top: 5px;
}

.video-meta .username {
  font-weight: bold;
  color: #333;
  font-size: 14px;
  margin: 0;
}

.video-meta .timestamp {
  color: #666;
  font-size: 12px;
  margin: 0;
}

.post-image {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-video {
  width: 100%;
  max-height: 400px;
  margin-top: 10px;
}

.post-video.youtube {
  aspect-ratio: 16 / 9;
}

.post-video.tiktok,
.post-video.instagram,
.post-video.facebook {
  width: 100%;
  max-height: 600px;
  aspect-ratio: 9 / 16;
}

.comment {
  background-color: #f8f9fa;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}

.comment p {
  margin: 5px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.reply-btn {
  background-color: #6c757d;
}

.reply-btn:hover {
  background-color: #5a6268;
}

.comment-date,
.notification-date {
  color: red;
  font-weight: bold;
}

.like-btn {
  background-color: #6c757d;
}

.like-btn:hover {
  background-color: #5a6268;
}

.unlike-btn {
  background-color: #007bff;
}

.unlike-btn:hover {
  background-color: #0056b3;
}

.reply-box {
  margin-left: 20px;
  margin-top: 10px;
}

.reply-input {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  height: 100px;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.reply-submit {
  background-color: #ED1C24;
}

.reply-submit:hover {
  background-color: #c8102e;
}

.reply-emoji-button {
  background: #ED1C24;
  border: none;
  cursor: pointer;
  font-size: 16px;
  width: 30px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  margin-left: 10px;
  color: white;
}

.reply-emoji-button:hover {
  background: #c8102e;
}

.notification {
  background-color: #e9ecef;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}

.notification a {
  color: #007bff;
  cursor: pointer;
}

.notification a:hover {
  text-decoration: underline;
}

#notificationList .notification p strong {
  font-weight: bold !important;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.member-item p {
  margin: 0;
}

.banned {
  color: red;
}

.unban-btn {
  background-color: #ffc107;
}

.unban-btn:hover {
  background-color: #e0a800;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  width: 80%;
  text-align: center;
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-content a {
  color: #007bff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 10px 0;
  z-index: 1001;
  pointer-events: auto;
}

.modal-content a:hover {
  text-decoration: underline;
}

#notificationList {
  max-height: 60vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.send-message-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.send-message-modal .modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  width: 80%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: #ED1C24;
  outline: none;
}

.modal-input:disabled {
  background-color: #f8f9fa;
  opacity: 0.7;
}

.modal-button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.modal-send-btn {
  background-color: #ED1C24;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-send-btn:hover {
  background-color: #c8102e;
}

.modal-cancel-btn {
  background-color: #dc3545;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-cancel-btn:hover {
  background-color: #c82333;
}

.emoji-picker {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 120px;
  z-index: 1000;
}

.emoji-picker span {
  cursor: pointer;
  font-size: 20px;
}

.emoji-picker span:hover {
  transform: scale(1.2);
}

.note-form {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.button-group {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.section {
  margin-top: 20px;
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-with-icon {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

.video-icon,
.image-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #333;
  pointer-events: none;
  z-index: 10;
}

.emoji-icon {
  font-size: 24px;
  cursor: pointer;
}

.video-input-group {
  margin-bottom: 10px;
}

input[type="text"].videoInput,
input[type="text"]#textToImageInput {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

#tagInput {
  display: none;
}

#imagePreview {
  display: block;
  margin: 10px auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 300px;
  height: 300px;
}

.template-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: white;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.template-item p {
  margin: 0;
}

.username,
.note-text {
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-text a {
  color: #007bff;
  text-decoration: underline;
}

.note-text a:hover {
  text-decoration: none;
}

.notification-dot::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
}

.sort-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.sort-btn {
  background-color: #ED1C24;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Century Gothic', Arial, sans-serif;
  flex: 1;
  max-width: 120px;
  text-align: center;
}

.sort-btn:hover {
  background-color: #c8102e;
}

#video-container {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  overflow: visible !important;
}

.post-video.full-height {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  max-height: none !important;
}

.post-video.full-height.youtube {
  aspect-ratio: 16 / 9;
}

.post-video.full-height.tiktok {
  aspect-ratio: 9 / 16;
  min-height: 400px;
}

.post-video.full-height.instagram {
  aspect-ratio: 9 / 16;
}

.post-video.full-height.facebook {
  aspect-ratio: 9 / 16;
}

.monitored-word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.monitored-word p {
  margin: 0;
}

#monitoredWordsList,
#flaggedPostsList {
  margin-top: 10px;
}

.add-word-btn {
  background-color: #ED1C24;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.add-word-btn:hover {
  background-color: #c8102e;
}

.delete-word-btn {
  background-color: #dc3545;
  color: white;
  padding: 6px 8px;
  width: auto;
  min-width: 44px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.delete-word-btn:hover {
  background-color: #c82333;
}

.mark-safe-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.mark-safe-btn:hover {
  background-color: #0056b3;
}

.preview-video-btn {
  background: white;
  color: #ED1C24;
  border: 1px solid #ED1C24;
}

.preview-video-btn:hover {
  background: #f8f9fa;
}

#addImageButton.reselect-image,
#editAddImageButton.reselect-image {
  background-color: white;
  color: #ED1C24;
  border: 1px solid #ED1C24;
}

#addImageButton.reselect-image:hover,
#editAddImageButton.reselect-image:hover {
  background-color: #f8f9fa;
}

@media (max-width: 600px) {
  .logo {
    width: 300px;
    height: 75px;
  }

  .container,
  .login-container {
    padding: 10px;
  }

  .header-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .username-link {
    font-size: 14px;
  }

  .create-note,
  .back-to-wall,
  .alert-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .website-entry {
    flex-direction: column;
    align-items: stretch;
  }

  .website-title-input,
  .website-url-input {
    width: 100%;
  }

  .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .edit-btn,
  button,
  #verifyEmailButton {
    width: 100%;
    margin: 5px 0;
  }

  .send-message-modal .modal-content {
    width: 80%;
  }

  .modal-button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-send-btn,
  .modal-cancel-btn {
    width: 100%;
    margin: 5px 0;
  }

  .wall-grid {
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    height: auto !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .wall-column {
    width: 48%;
    gap: 10px;
    margin: 0 auto;
    height: auto !important;
    overflow: visible !important;
  }

  .wall-note {
    padding: 8px;
    min-height: auto;
    justify-content: flex-start;
    height: auto !important;
    overflow: visible !important;
  }

  .wall-note-image {
    height: auto;
    object-fit: contain;
  }

  .wall-note-video {
    height: auto;
    min-height: 400px;
    aspect-ratio: 9 / 16;
  }

  .wall-note-video.youtube {
    min-height: 150px;
    aspect-ratio: 16 / 9;
  }

  .wall-note-video.instagram {
    width: 100%;
    height: 250px;
    aspect-ratio: 9 / 16;
    margin-top: 10px;
  }

  .wall-note-video.facebook {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .play-icon {
    font-size: 24px;
  }

  .username,
  .note-text {
    font-size: 12px;
  }

  .modal-content {
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
  }

  .notification-date,
  .comment-date {
    font-size: 12px;
  }

  .reply-box {
    margin-left: 10px;
  }

  .emoji-icon {
    font-size: 20px;
  }

  .emoji-picker {
    width: 100px;
    padding: 5px;
    gap: 5px;
  }

  .emoji-picker span {
    font-size: 18px;
  }

  .note-image,
  #imagePreview,
  #generatedImagePreview {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1/1;
  }

  .note p:not(#postText) {
    margin-bottom: 15px;
  }

  .post-meta {
    padding: 6px 10px;
  }

  .sort-btn {
    padding: 8px 12px;
    max-width: 100px;
    font-size: 14px;
  }

  .monitored-word,
  .add-word-btn,
  .delete-word-btn,
  .mark-safe-btn {
    width: 100%;
    margin: 5px 0;
  }

  .delete-word-btn {
    padding: 6px 8px;
    width: auto;
    min-width: 44px;
  }

  .alert-btn {
    width: 100%;
    margin: 5px 0;
  }

  .notificationList {
    max-height: 50vh;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .textarea#commentInput {
    height: 100px;
    resize: vertical;
  }

  .textarea.reply-input {
    height: 100px;
    resize: vertical;
  }
}

@media (max-width: 600px) {
  .post-video.full-height {
    overflow: hidden !important;
  }
  .post-video.full-height.tiktok {
    min-height: 300px !important;
    max-height: none !important;
  }
  .post-video.full-height.facebook {
    aspect-ratio: 9 / 16;
  }
}