* {
    padding: 0;
    margin: 0;
}

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    font: 14px/1.5 Verdana, sans-serif;
}

body, input, table, button, form {
    font: inherit;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    min-height: 100vh; /* Минимална височина на екрана */
    padding-top: 50px;      /* Добавяне на място под хедъра (според височината на хедъра) */
    padding-bottom: 50px;   /* Добавяне на място над футъра (според височината на футъра) */
    box-sizing: border-box; /* Включване на падинга в размера на body */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box; /* Включва вътрешните отстъпи в размера на хедъра */
    background-color: #fff;
    color: #fff;
    padding: 5px 20px;
    font-size: 1rem;
    z-index: 1000;          /* Поставя хедъра над останалото съдържание */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

/* Лого */
header .logo {
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: color 0.3s;
    margin-left: 0;
    font-style: italic;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 0.2em;
    background-color:#fff;
    border-radius: 0.2em;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}


nav {
    display: flex;
}

nav a {
    text-decoration: none;
    color: black;
    margin-right: 10px;
    font-size: 1rem;
    padding: 10px;
    transition: color 0.3s, border-bottom 0.3s;
}

nav a:last-child {
    margin-right: 0;
}

nav a:hover {
    color: #ffcc00;
    border-bottom: 2px solid #ffcc00;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background-color: #a9a8a3;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
                rgba(0, 0, 0, 0.12) 0px -12px 30px,
                rgba(0, 0, 0, 0.12) 0px 4px 6px,
                rgba(0, 0, 0, 0.17) 0px 12px 13px,
                rgba(0, 0, 0, 0.09) 0px -3px 5px;
    font-family: Arial, sans-serif;
}

footer p {
    margin: 2px 0;
}

.footer-links {
    margin-top: 5px;
    font-size: 1rem;
}

.footer-links a {
    color: #090909;
    text-decoration: none;
    padding: 0 6px;
}

.footer-links a:hover {
    color: #ffcc00;
}


.footer-links a:hover {
    text-decoration: underline;
}

.separator {
    color: #555;
    padding: 0 6px;
    user-select: none; /* За да не може да се маркира разделителя */
}


/*login css*/
html {
    height: 100%;
  }
  body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(#141e30, #243b55);
  }

  .login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
  }

  .login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
    font-size: 1.8em;
  }

  .login-box .user-box {
    position: relative;
  }

  .login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
  }

  .login-box .user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;
  }

  .login-box .user-box input:focus ~ label,
  .login-box .user-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #ffea00;
    font-size: 12px;
  }

  .login-box p {
      color: white;
  }

  /* СТИЛ ЗА BUTTON */
  .login-button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #e80909;
    font-size: 16px;
    background: none;
    border: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: 0.5s;
    margin-top: 40px;
    letter-spacing: 4px;
    cursor: pointer;
  }
  .login-button:hover {
    background: #e80909;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #f1a0a0,
                0 0 25px #e80909,
                0 0 50px #e80909,
                0 0 100px #f1a0a0;
  }
  .login-button span {
    position: absolute;
    display: block;
  }

  .login-button span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e80909);
    animation: btn-anim1 1s linear infinite;
  }

  @keyframes btn-anim1 {
    0% {
      left: -100%;
    }
    50%, 100% {
      left: 100%;
    }
  }

  .login-button span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #e80909);
    animation: btn-anim2 1s linear infinite;
    animation-delay: 0.25s;
  }

  @keyframes btn-anim2 {
    0% {
      top: -100%;
    }
    50%, 100% {
      top: 100%;
    }
  }

  .login-button span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #e80909);
    animation: btn-anim3 1s linear infinite;
    animation-delay: 0.5s;
  }

  @keyframes btn-anim3 {
    0% {
      right: -100%;
    }
    50%, 100% {
      right: 100%;
    }
  }

  .login-button span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #e80909);
    animation: btn-anim4 1s linear infinite;
    animation-delay: 0.75s;
  }

  @keyframes btn-anim4 {
    0% {
      bottom: -100%;
    }
    50%, 100% {
      bottom: 100%;
    }
  }

/*register css*/
html {
    height: 100%;
  }

  body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: linear-gradient(#141e30, #243b55);
  }

  .login-register-div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    padding: 40px;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,0.6);
    border-radius: 10px;
    color: #fff;
  }

  .login-register-box h1 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
    font-size: 1.8em;
  }

  .form-group {
    position: relative;
  }

  .form-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
  }

  .form-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;
  }

  .form-group input:focus ~ label,
  .form-group input:valid ~ label {
    top: -20px;
    left: 0;
    color: #ffea00;
    font-size: 12px;
  }

  /* Animated button styling */
  .animated-button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #e80909;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: 0.5s;
    margin-top: 40px;
    letter-spacing: 4px;
    border: none;
    background: none;
    cursor: pointer;
  }

  .animated-button:hover {
    background: #e80909;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px #f1a0a0,
                0 0 25px #e80909,
                0 0 50px #e80909,
                0 0 100px #f1a0a0;
  }

  .animated-button span {
    position: absolute;
    display: block;
  }

  .animated-button span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e80909);
    animation: btn-anim1 1s linear infinite;
  }

  .animated-button span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #e80909);
    animation: btn-anim2 1s linear infinite;
    animation-delay: 0.25s;
  }

  .animated-button span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #e80909);
    animation: btn-anim3 1s linear infinite;
    animation-delay: 0.5s;
  }

  .animated-button span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #e80909);
    animation: btn-anim4 1s linear infinite;
    animation-delay: 0.75s;
  }

  @keyframes btn-anim1 {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
  }

  @keyframes btn-anim2 {
    0% { top: -100%; }
    50%, 100% { top: 100%; }
  }

  @keyframes btn-anim3 {
    0% { right: -100%; }
    50%, 100% { right: 100%; }
  }

  @keyframes btn-anim4 {
    0% { bottom: -100%; }
    50%, 100% { bottom: 100%; }
  }

  .second-option {
    margin-top: 20px;
    text-align: center;
  }

  .second-option a {
    color: #e80909;
    text-decoration: none;
  }

  .second-option a:hover {
    text-decoration: underline;
  }
.form-control {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #fff;
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid #fff;
  outline: none;
  background: transparent;
}
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #0e131d inset !important; /* черен фон */
    -webkit-text-fill-color: #fff !important; /* цвят на текста */
    transition: background-color 5000s ease-in-out 0s;
}

/*Profile Details*/
.info-section {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: left;

}

.info-section h1 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
}

.profile-photo {
    margin-bottom: 20px;
    text-align: center;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px;
}

.description {
  font-size: 16px;
  margin-bottom: 10px;
  text-align: center;
}

/* Submit-style Buttons (Edit/Delete) */
.edit-del-buttons {
  margin-top: 20px;
  display: flex;
  gap: 1em;
  justify-content: flex-end;
  font-style: normal;
}

.submit-btn {
  background-color: #4c86af;
  color: white;
  padding: 5px 15px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.submit-btn:hover {
  background-color: #2d4e67;
}

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 100px); /* - header (50px) - footer (50px) */
  padding: 10px; /* предотвратява залепване при малки екрани */
}
/*END OF Profile Details*/

/*Profile Update*/
.edit-delete {
    background-color: #fff;
    padding: 10px 5px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    margin: 30px auto;

}
/* Заглавие на секцията */
.edit-delete h2 {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
}
/* Стилове за формата */
.update-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Полета във формата */
form p {
    font-size: 12px;
    color: black;
    width: 80%;
    margin-bottom: 2px;
}

.update-form input[type="text"],
.update-form input[type="email"],
.update-form input[type="file"] {
    width: 100%;
    padding: 4px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    color: black;
}

/* Бутон за редактиране */
.edit-btn {
    background-color: #4c86af;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.edit-btn:hover {
    background-color: #2d4e67;
}

/* Стил за бутона за връщане назад */
.back-btn {
    background-color: #4c86af;
    color: white;
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block; /* Прави линка да се държи като бутон */
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.back-btn:hover {
    background-color: #2d4e67;
    color: white;
}

.profile-update-btn {
    margin: 1em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1em;
}

/* Скриване на CSRF токена */
form input[name="csrfmiddlewaretoken"] {
    display: none;
}

/* PROFILE DELETE*/
 .profile-delete {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px);
    box-sizing: border-box;
    padding: 0;

}

.container {
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px); /* Ограничаване на височината до 100% от прозореца, минус малко пространство */
    overflow-y: auto; /* Скрол вътре в контейнера само ако съдържанието го изисква */
    box-sizing: border-box; /* Включване на padding в размера */
}

.container h1 {
    color: red;
    font-style: italic;
}

.container img {
    width: 100%;
    max-width: 350px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.profile-delete-btn {
    display: flex;
    justify-content: flex-end;
    gap: 1em;
}

.profile-delete-yes {
    background-color: #4c86af;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.profile-delete-yes:hover {
  background-color: #2d4e67;
}


.back-delete-btn {
    background-color: #4c86af;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}


.back-delete-btn:hover {
  background-color: #2d4e67;
}

/* Основна секция */
.create-publication, .update-publication {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 24px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 400px;
}

/* Заглавие */
.create-publication h1, .update-publication h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #222;
}

/* Форма */
#create-publication-form {
    display: flex;
    flex-direction: column;
}

#update-publication-form {
    display: flex;
    flex-direction: column;
}

.publication-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Полета на формата */
.publication-container input[type="text"],
.publication-container input[type="file"],
.publication-container textarea,
.publication-container select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.2s ease-in-out;
}

.publication-container input[type="text"]:focus,
.publication-container input[type="file"]:focus,
.publication-container textarea:focus,
.publication-container select:focus {
    border-color: #007bff;
    outline: none;
}

/* Текстова област */
.publication-container textarea {
    resize: vertical;
    min-height: 80px;
}

/* Бутон за създаване */
.publication-create-btn, .publication-update-btn {
    background-color: #4c86af;
    color: white;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 6px;
}

.publication-create-btn:hover, .publication-update-btn {
    background-color: #4c86af;
}

.feed-wrapper {
    display: flex;
    flex-direction: column;
    padding-right: 1em;
    margin-top: 2em;
    margin-bottom: 1em;
}

.post-container {
  max-width:950px;
  width: 600px;
  margin: 20px auto 50px auto;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.post-footer {
    padding: 10px 0 0 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  margin-right: 10px;
    overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-user-info {
  flex-grow: 1;
}

.user-address {
    font-size: 0.8em;
}

.post-user-info strong {
  display: block;
}

.post-image img {
  width: 100%;
  display: block;
}

.media {
    gap: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.media:only-child .post-image,
.media:only-child .video-wrap,
.media > div:only-child {
  max-width: 100%;
}

.post-image img,
.video-wrap video {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.post-content {
  padding: 10px;
}

.likes {
  font-weight: bold;
}

.caption {
  margin: 1em 0;
}

.comment {
  border-top: 1px solid #eee;
  padding: 10px 15px;
  font-size: 14px;
}

.comment strong {
  font-weight: bold;
}

.comment-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px 15px;
}

.comment-input input {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

.comment-input button {
  margin-left: 10px;
  background-color: #1877f2;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
}

.post-edit-delete {
    display: flex;
    margin: 0.2em;
}

.post-edit-delete img {
    margin-top: 5px;
    margin-right: 5px;
    width: 1.3em;
    height: 1em;
    object-fit: contain;
    display: block;
}

.post-edit-delete button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.post-delete-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.post-delete-container {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.delete-post-btn,
.go-back-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 2px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

.delete-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.delete-post-btn {
    background-color: #e74c3c;
    color: white;
}

.go-back-btn {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.delete-post-img {
    display: flex;
    flex-direction: column;
}

.delete-post-img img {
    max-height: 200px;
    width: auto;
}

/* comment */
.comment-form .form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.comment-form textarea {
    flex: 1;
    resize: none;
    padding: 8px;
    font-size: 14px;
    border-radius: 2px;
    border: 1px solid #ccc;
    margin-left: 5px;
}

.comment-button,
.likes_logic button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

.comment-button:hover {
    background-color: #2980b9;
}

.likes_logic button:hover {
    background-color: #2980b9;
}

.likes_logic {
    display: flex;
    flex-direction: column;
    padding-left: 6px;
}

.likes_logic .buttons-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.likes_logic form {
    margin: 0;
}

/* All comments container with scroll */
.all-comments {
    margin-top: 12px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

/* Optional: Custom scrollbar styling */
.all-comments::-webkit-scrollbar {
    width: 8px;
}

.all-comments::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 4px;
}

.all-comments::-webkit-scrollbar-track {
    background-color: #eee;
    border-radius: 4px;
}

.comment-box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-box strong {
    color: #2c3e50;
    font-weight: bold;
}

.comment-box small {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 4px;
}

.all-comments .comment-info {
    color: white;
}

html, body {
    height: 100%;
    overflow: hidden;
}

#wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header, footer {
    flex-shrink: 0;
}

#content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 45px;
}

/*contact*/
.contact-form-container {
    max-width: 400px;
    margin: 10px auto;
    padding: 5px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
  }

  .contact-form-container h2 {
    text-align: center;
    margin-bottom:5px;
    font-size: 20px;
    color: #333;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
  }

.contact-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}


.contact-form-container input,
.contact-form-container textarea {
  padding: 10px;
  font-size: 10px;
  margin-bottom: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
  border-color: #66afe9;
  box-shadow: 0 0 4px rgba(102, 175, 233, 0.6);
}

.contact-form-container .form-error {
  color: #d9534f;
  font-size: 14px;
  margin-top: -15px;
  margin-bottom: 15px;
}

.contact-form-container .messages {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.contact-form-container .messages li {
  background-color: #d4edda;
  color: #155724;
  padding: 10px 15px;
  margin-bottom: 10px;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
}

.contact-form-container button[type="submit"] {
  padding: 5px 15px;
  font-size: 14px;
  background-color: #4c86af;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}


.contact-form-container button[type="submit"]:hover {
  background-color: #2d4e67;
}

.dropbtn {
  display: none;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-bar input[type="text"] {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    width: 600px;
}

.search-bar button {
    padding: 5px 15px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #004c99;
}

.search-bar-fixed {
    position: fixed;
    top: 40px;
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-right: 20px;
    width: 500px;
    height: 25px;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 5px 5px;
}

.forbidden-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.forbidden {
    color: #ff0000;
    margin-bottom: 20px;
}

.forbidden-img {
    max-width: 100%;
    width: 450px;
    height: 450px;
    margin-bottom: 20px;
}

.current-user {
    display: flex;
    align-items: center;
    color: black;
    position: absolute;
    left: 235px;
    font-weight: bold;
}

.current-user img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ccc;
    margin-right: 10px;
    overflow: hidden;
}

.alert-danger {
    color: yellow;
}
@media (max-width: 768px) {
    header {
        padding: 5px;
    }

    header nav {
        display: none;
    }

    .login-box {
        width: 300px;
    }

    .login-register-div {
        width: 300px;
    }

    .post-container {
        margin: 10px 10px 100px;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .comment-button,
    .likes_logic button {
        padding: 2px 8px;
        font-size: 0.85rem;
        margin-right: 3px;
    }

    .post-content {
        font: 10px / 1.5 Verdana, sans-serif;
    }

    .likes_logic {
        font: 10px / 1.5 Verdana, sans-serif;
    }

    .likes_logic .buttons-row {
        margin-top: 10px;
    }

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

    .post-image,
    .video-wrap {
        max-width: 100%;
        width: 100%;
    }

    .dropbtn {
        display: inline-block;
        margin-left: 50px;
        padding: 2px 15px;
        border-radius: 5px;
        border: none;
        background: #ffcc00;
    }

    .dropbtn:hover {
        background-color: #ecd01a;
    }

    .dropdown-nav {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: white;
        min-width: 150px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        flex-direction: column;
    }

    .dropdown-content a {
        padding: 8px 12px;
        text-decoration: none;
        color: black;
        display: block;
    }

    .dropdown-content a:hover {
        background-color: #f0f0f0;
    }

    .dropdown-nav:hover .dropdown-content {
        display: flex;
    }

    .search-form {
        width: 200px;
        height: 22px;
        margin: 0;
    }

    .comment-form textarea {
    padding: 5px;
    font-size: 10px;
    }
    .post-header {
        padding: 5px;
    }

    .edit-delete {
        max-height: 70vh;
        max-width: 900px;
        width: 100%;
    }

    .update-form input[type="text"] {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .profile-update-btn {
        margin: 0;
    }

    .back-delete-btn {
        padding: 5px;
    }

    .create-publication, .update-publication {
        padding: 10px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .current-user {
        left: 170px;
    }

    .current-user-name {
        font-size: 12px;
    }

}










