* {
  padding: 0;
  margin: 0;
  border: 0;
}

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

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 400;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.container {
  flex: 1 0 auto;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  background-color: #000;
  margin-bottom: 30px;
}

.header__container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  width: 80px;
  height: 80px;
  position: relative;
}

.header__logo img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

.header__menu {
  display: flex;
  font-size: 3vw;
}

.header__menu a {
  color: #fff;
  margin: 0 8px;
}

.autorization {
  position: relative;
  color: #fff;
  font-size: 3vw;
}

@media (max-width: 850px) {
  .header__menu {
    font-size: 25px;
  }
  .autorization {
    font-size: 25px;
  }
}

@media (min-width: 1400px) {
  .header__menu {
    font-size: 42px;
  }
  .autorization {
    font-size: 42px;
  }
}

.autorization span {
  cursor: pointer;
}

.autorization__poppup {
  z-index: 999;
  display: none;
  position: absolute;
  top: 100%;
  right: 0%;

  min-width: 200px;
  height: auto;
  padding: 15px 10px;
  background-color: #000;
  font-size: 20px;
}

.autorization__poppup span {
  cursor: auto;
}

.autorization__poppup input {
  margin-bottom: 5px;
  font-size: 20px;
}

.autorization__poppup a {
  color: #fff;
  font-size: 22px;
  text-decoration: underline;
}

.autorization .usr-image {
  position: relative;
  width: 70px;
  height: 70px;
}

.autorization .usr-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.autorization .auth-button {
  width: auto;
  height: 40px;
  color: #000;
  background-color: #fff;
  font-size: 20px;
  padding: 3px 6px;
  border-radius: 10px;
  cursor: pointer;
}

.autorization.active .autorization__poppup {
  display: block;
}

.content__container {
  display: flex;
  flex-direction: row;
  min-height: 100%;
  align-items: flex-start;
}

.main {
  flex: 1 1 75%;
  display: flex;
  flex-direction: column;
  padding-right: 10px;
}

.add-post {
  width: 100%;
  min-height: 36px;
  font-size: 30px;
  text-align: center;
  background-color: #000;
  color: #fff;
  border-radius: 16px;
  padding: 4px 8px;
}

.add-post:hover span {
  color: #999;
}

.main__categorie-block {
  padding: 10px 5px;
}

.main__categorie {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 500;
  color: #000;
}

.main__categorie span:hover {
  text-decoration: underline;
  font-weight: 700;
}

.main__posts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
}

.main__post {
  flex: 0 0 19%;
  min-width: 290px;
  max-width: 300px;
  max-height: 375px;
  margin: 0 15px 20px;
  display: flex;
  flex-direction: column;
}

.burger {
  display: none;
}

.mainpost__title {
  font-size: 40px;
  margin-bottom: 12px;
}

.mainpost__img {
  width: 100%;
  height: 38vh;
  position: relative;
  margin-bottom: 12px;
}

.mainpost__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mainpost__text {
  font-size: 18px;
  min-height: 60vh;
}

.mainpost__comments input {
  font-size: 24px;
  border: 1px solid #000;
  margin-bottom: 4px;
  padding: 8px 10px;
}

.mainpost__comments textarea {
  font-size: 24px;
  resize: none;
  padding: 8px 10px;
  border: 1px solid #000;
  width: 100%;
}

.mainpost__comments button {
  border: 1px solid #000;
  border-radius: 10px;
  color: #fff;
  background: #000;
  width: 200px;
  height: 50px;
  font-size: 36px;
}

@media (max-width: 520px) {
  .mainpost__text {
    font-size: 20px;
  }
  .comments-form textarea {
    max-height: 100px;
  }
}

.post {
  color: #000;
}

.post__title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  display: block;
  width: 100%;
}

.post__image {
  min-width: 100%;
  min-height: 200px;
  position: relative;
  margin-right: -1px;
}

.post__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__text {
  font-size: 20px;
  margin-top: 10px;
  flex: 1 0 auto;
}

.post__bottominfo {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.post__categorie,
.post__views {
  font-size: 16px;
  font-weight: 400;
}

.sidebar {
  flex: 0 0 300px;
  background-color: black;
  color: #fff;
  border-radius: 20px;
  padding: 10px 5px;
  min-height: 90vh;
}

.sidebar .post {
  color: #fff;
}

.sidebar__comment {
  color: #fff;
}

.sidebar__lastcomments {
  padding: 0 8px;
}
.footer {
  background-color: #8c8c88;
}

@media (max-width: 1020px) {
  .sidebar {
    display: none;
  }
  .burger {
    z-index: 100;
    margin: 2px 0 0 0;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background-color: #fff;
    text-align: center;
    border-radius: 50%;
  }
  .burger span {
    transition: 0.4s;
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: #000;
    margin: 21px 0 0 0;
  }
  .burger::before,
  .burger::after {
    transition: 0.4s;
    content: "";
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: #000;
    position: absolute;
    right: 7px;
  }
  .burger::before {
    top: 13px;
  }
  .burger::after {
    bottom: 13px;
  }
  .burger.active {
    z-index: 100;
    background-color: #fff;
  }
  .burger.active span {
    transition: 0.4s;
    opacity: 0;
  }
  .burger.active::before,
  .burger.active::after {
    transition: 0.4s;
    background-color: #000;
  }
  .burger.active::before {
    transform: rotate(45deg);
    top: 21px;
  }
  .burger.active::after {
    transform: rotate(-45deg);
    bottom: 21px;
  }
  .menu {
    display: none;
  }
  .main__categorie-block {
    padding: 10px 0;
  }
  .header {
    position: relative;
  }
  .menu.active {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: #333;
    z-index: 1;
  }
}

@media (max-width: 350px) {
  .main__post {
    margin: 0;
    margin-bottom: 20px;
  }
}

.comment-block {
  display: flex;
  align-items: stretch;
  margin-bottom: 18px;
}

.comment-left {
  flex: 0 0 120px;
  width: 120px;
  position: relative;
}

.comment-left .poppup {
  position: absolute;
  bottom: 5px;
  font-size: 20px;
  font-weight: 700;
  left: 0;
  display: none;
  background-color: #fff;
  z-index: 100;
}

.comment-left:hover .poppup {
  display: block;
}

.comment-left .comment-image {
  position: relative;
  height: 100px;
  width: 100px;
  margin-bottom: 10px;
}

.comment-left .comment-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-left .comment-name {
  padding-bottom: 6px;
  white-space: nowrap;
  font-size: 18px;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  position: relative;
}

.comment-right {
  font-size: 18px;
  margin-left: 20px;
  padding-right: 6px;
  display: flex;
  width: 100%;
}
.comment-text {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.comment-date {
  flex: 1 0 150px;
  font-size: 14px;
  text-align: right;
}
@media (max-width: 520px) {
  .comment-right {
    flex-direction: column;
  }
  .comment-text {
    flex: 1 0 auto;
  }
  .comment-date {
    flex: 0 0 auto;
  }
  .comment-left {
    flex: 0 0 70px;
    width: 70px;
  }
  .comment-left .comment-image {
    height: 60px;
    width: 60px;
  }
  .poppup,
  .comment-name {
    font-size: 15px;
  }
  .comment-left .poppup {
    top: 70px;
  }
}

.sidebar .comment-name {
  padding-bottom: 6px;
  white-space: nowrap;
  font-size: 24px;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
}

.sidebar .comment-text {
  font-size: 20px;
}

.paginator a {
  font-size: 24px;
  color: #000;
}

.paginator a:hover {
  font-weight: bold;
}

.paginator span {
  display: inline-block;
  font-size: 26px;
  color: #888;
  width: 40px;
  height: 40px;
  background-color: rgba(145, 145, 145, 0.281);
  margin-right: 12px;
  text-align: center;
  padding-top: 6px;
}

.prof-setting h4 {
  font-size: 30px;
  font-weight: 600;
  text-decoration: underline;
}

.prof-setting__body {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.prof-setting__body textarea {
  resize: none;
  border: 1px solid #000;
  padding: 6px;
  width: 100%;
  height: 260px;
  font-size: 22px;
}

.prof-setting__body .row {
  flex: 0 0 33%;
}

.prof-setting__body .right-row {
  flex: 0 0 33%;
}

.prof-setting__body b {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #444;
}

.prof-setting__body p {
  font-size: 22px;
  margin-bottom: 8px;
  color: #000;
}

.prof-setting__body form input {
  background-color: #fff;
  border: 1px solid #000;
  font-size: 18px;
  letter-spacing: 0.1px;
  margin-bottom: 8px;
  max-width: 300px;
}

.prof-setting__body form button {
  font-size: 22px;
  text-align: center;
  border-radius: 10px;
  color: #fff;
  background-color: #000;
  padding: 4px 8px;
  margin-bottom: 8px;
}

.prof-setting__body form button:hover {
  background-color: #333;
  text-decoration: underline;
}

.prof-setting__body .user-img {
  position: relative;
  width: 300px;
  height: 400px;
}

.prof-setting__body .user-img img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.profile {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
}

.profile__left {
  flex: 0 1 300px;
}

.profile__image {
  position: relative;
  height: 300px;
  max-width: 300px;
  margin-bottom: 16px;
}

.profile__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__name {
  font-size: 36px;
  font-weight: 600;
}

.profile__right {
  padding-left: 30px;
  flex: 1 0 auto;
}
.profile__bottom {
  flex: 1 0 100%;
  font-size: 20px;
}
.profile__bottom h4 {
  font-size: 28px;
  font-weight: 600;
}

.profile .about {
  font-size: 20px;
}

.add-button {
  font-size: 24px;
  color: #fff;
  padding: 4px 5px;
  text-align: center;
  cursor: pointer;
  background-color: #000;
  max-width: 400px;
}

.add-button .hide {
  display: none;
}
.hide span {
  display: block;
  margin-top: 12px;
}
.add-button:hover .hide {
  display: block;
}
