@import url("https://fonts.googleapis.com/css?family=Oswald&display=swap");

body {
  font-family: Oswald, serif;
  background-color: rgb(0, 0, 0);
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* for NAV */
.nav-link {
  color: rgb(241, 222, 11);
}

.navbar-nav .nav-link.active {
  color: rgb(10, 247, 25);
  font-size: larger;
}


.row-главная p {
  color: #0920ef;
  font-size: 20px;
}
.row-главная {
  display: flex;
}

.post-filter label {
  color: #0ce63b;
}
.post-filter option {
  background-color: #007bff;
}
.post-filter select {
  background-color: #007bff;
}




.navbar-brand img {
  width: 60px;
  height: 60px;
border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
animation: myAnim 2s ease-in 0s 1 normal none;
 } 
@keyframes myAnim {
  0% {
    animation-timing-function: ease-in;
    opacity: 0;
    transform: translateY(-250px);
  }

  38% {
    animation-timing-function: ease-out;
    opacity: 1;
    transform: translateY(0);
  }

  55% {
    animation-timing-function: ease-in;
    transform: translateY(-65px);
  }

  72% {
    animation-timing-function: ease-out;
    transform: translateY(0);
  }

  81% {
    animation-timing-function: ease-in;
    transform: translateY(-28px);
  }

  90% {
    animation-timing-function: ease-out;
    transform: translateY(0);
  }

  95% {
    animation-timing-function: ease-in;
    transform: translateY(-8px);
  }

  100% {
    animation-timing-function: ease-out;
    transform: translateY(0);
  }
}

.navbar-brand-st img {
  width: 100px!important;
  height: 30px!important;
  margin-right: 50px;
  animation: myAnim 2s ease-in 0s 1 normal none;
}
@media (max-width: 576px) {
  .navbar-brand-st img {
    width: 100px!important;
    margin-right: 50px;
    animation: myAnim 2s ease-in 0s 1 normal none;
  }

}

.navbar-toggler {
  background-color: rgb(241, 222, 11);
}


/* верхняя надпись для всех */
h1 {
  color: #0d32d7;
  text-align: center;
  margin-top: 30px;
  font-size: 40px;
}
.row p {
  color: aliceblue;
  font-size: 20px;
}
.row p1 {
  color: #0ce63b;
}


/* Рисунки на всех страницах */
.card {
  background: #340ede;
}

.card-text {
  color: rgb(108, 241, 170);
  font-size: 1.5em;
}

.card a {
  text-decoration: none;
}

.card-title {
  color: aliceblue;
}

.card h5 {
  font-size: 25px;
}

.card button {
  width: 300px;
  height: 50px;
  font-size: larger;
}
.row p {
  color: aliceblue;
  font-size: 20px;
}


  /* Анимация мерцания */
  @keyframes policeBlink {
    0% {
      color: red;
      text-shadow: 0 0 10px red;
    }

    50% {
      color: blue;
      text-shadow: 0 0 10px blue;
    }

    100% {
      color: red;
      text-shadow: 0 0 10px red;
    }
  }

  .police-shine {
    animation: policeBlink 1s infinite;
    font-weight: bold;
    font-size: 30px;
  }

  a.police-shine {
    text-decoration: none;
  }
   
/* for project-list */ /* POSTS */

#project-list h3 {
  font-size: 25px;
}
#project-list h4 {
  font-size: 15px;
}
#project-list p {
  font-size: 15px;
  margin: 0.5px;
}



#project-list button {
  font-size: 10px;
  margin: 0.5px;
  width: 100px;
}

#project-list .like-button {
  font-size: 23px;
  width: 70px;
}

#project-list span {
  font-size: 10px;
}

/* ЛАЙКО ДОЖДЬ */
.like-button {
  background: none;
  border: none;
  cursor: pointer;
  position: relative; /* для отображения падающих звезд внутри кнопки */
  /* overflow: hidden; скрывает звезды, если они выходят за границы кнопки */
}
.button-like {
  font-size: 20px;
}

.star {
  position: absolute;
  font-size: 15px;
  animation: fall 1s linear;
  opacity: 0;
}

@keyframes fall {
  0% {
    transform: translateX(-50%) translateY(-50px);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(50px); /* Делаем более длинный путь падения */
    opacity: 0;
  }
}


h3 {
  font-size: 10px;
  word-wrap: break-word; /* Перенос слов, если заголовок слишком длинный */
  white-space: normal; /* Позволяем заголовку растягиваться */
  flex-grow: 0; /* Чтобы заголовок не растягивал блок */
}

.project-description {
  font-size: 16px;
  color: #333;
  padding: 10px;
  border-top: 1px solid #ddd;
  max-height: 80px; /* Максимальная высота для вертикального скролла */
  overflow-y: auto; /* Вертикальная прокрутка */
  overflow-x: hidden; /* Скрыть горизонтальную прокрутку */
  word-wrap: break-word; /* Разбивать длинные слова */
}

/* В мобильной версии, кнопки будут адаптированы */
@media (max-width: 768px) {
  .edit-button,
  .delete-button {
    width: 100%; /* Растягиваем на всю ширину */
    margin-bottom: 10px; /* Добавляем отступы внизу для разделения */
  }
}

/* for project form */
.project-form-container {
  display: none;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.project-form input,
.project-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
}
.project-form input[type="file"] {
  padding: 3px;
}

.project-form button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
}

.project-form button:hover {
  background-color: gold;
}


.post-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f1f1f1;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  color: #333;
  text-transform: capitalize;
}

