body {
  margin: 0;

  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}

/************************/
/*                      */
/*    Страница входа    */
/*                      */
/************************/

.login {
  display: flex;
  height: 100vh;
  width: 100%;

  justify-content: center;
}

.login__button {
  display: block;
  margin: auto;

  padding: 10px 20px;
  border-radius: 5px;

  color: white;
  text-decoration: none;

  background-color: blue;
}






.container {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 960px;
}

header .user-greeting {
  border-bottom: 1px solid black;
  text-align: right;
  padding-right: 20px;
}

.main__search {
  display: flex;
  flex-direction: row;
}


.search__form {
  width: 640px;
}

.form-block {
  margin: 10px 0px;
}

input[type="date"] {
  margin-top: 5px;
}

img.group_logo {
  margin-left: 10px;
  border-radius: 50%;
  transform: translateY(15px);
}




.loading {
  width: 100px;
  height: 100px;

  margin: auto;
  margin-top: 100px;

  background-image: url(../img/Bars-2s-200px.gif);
  background-size: 100%;
}


.result__string {
  position: relative;

  padding: 5px 10px;
}

.result__string li {
  display: flex;
  justify-content: flex-start;

  padding: 10px 30px;
}

.result__string li:nth-child(2n-1) {
  background-color: rgb(255, 255, 255);
}

.result__string li:nth-child(2n) {
  background-color: #ecebeb
}

.result__link {
  width: 320px;
}

.result__link a {
  position: relative;
  display: inline-block;
  

  padding-left: 30px;
}

.result__link a:visited {
  color: #c1c1c1;
}

.result__likes {
  position: relative;
  width: 70px;

  padding-left: 30px;
}

.result__date {
  position: relative;
  width: 120px;

  padding-left: 30px;
}

.result__link a::before,
.result__likes::before,
.result__date::before {
  position: absolute;
  content: "";

  top: 1px;
  left: 0px;

  width: 16px;
  height: 16px;

  background-size: 100%;
  background-repeat: no-repeat;
}

.result__link a::before {
  background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0ZWQgYnkgSWNvTW9vbi5pbyAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIxNnB4IiBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiI+CjxwYXRoIGZpbGw9IiMwMDZERjAiIGQ9Ik0xNCAxNnYtMTFsLTEgMXY5aC0xMnYtMTJoOWwxLTFoLTExdjE0eiIvPgo8cGF0aCBmaWxsPSIjMDA2REYwIiBkPSJNMTYgMGgtNWwxLjggMS44LTYuOCA2LjggMS40IDEuNCA2LjgtNi44IDEuOCAxLjh6Ii8+Cjwvc3ZnPgo=);
}

.result__likes::before {
  background-image: url(../img/like.png);
}

.result__date::before {
  background-image: url(../img/calendar.png);
};


/* Класс для js */
.post__view {
  position: relative;
}

.post__view .button__popup {
  position: relative;
  font-size: 0;
  background-color: transparent;
  border: none;
  outline: none;

  cursor: pointer;
}

.post__view .button__popup::before {
  position: absolute;
  content: "";

  top: -16px;
  left: 0px;

  width: 24px;
  height: 24px;

  background-size: 100%;
  background-repeat: no-repeat;
  background-image: url(../img/view.png);
}

.popup__relative {
  position: relative;
}

.popup {
  position: absolute;
  top: -10px;
  right: -340px;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 300px;

  box-sizing: border-box;
  padding: 10px;

  background-color: white;
  border: 1px solid #c4c4c4;
}

/* Стрелочка небольшая */
.popup::before {
  position: absolute;
  content: "";

  top: 7px;
  left: -11px;

  width: 20px;
  height: 20px;

  background-color: white;
  border-left: 1px solid #c4c4c4;
  border-bottom: 1px solid #c4c4c4;

  transform: rotate(45deg);
}

.button__close {
  font-size: 0;
  background-color: transparent;
  border: none;
  outline: none;

  cursor: pointer;
}

.button__close::before {
  position: absolute;
  content: "";

  top: 5px;
  right: 5px;

  width: 24px;
  height: 24px;

  background-image: url('../img/cross.png');
}

.popup img {
  width: 100%;
}






/********* Компонент кнопка ************/

.button {
  padding: 10px 20px;
 

  background-color: transparent;
}

.button-active {
  text-decoration: underline;
}