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;
}



/* Боковое меню */
.header {
  width: 300px;
  height: 100%;

  /* position: fixed; */

  color: white;
  background-color: rgb(3, 3, 58);
}

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

.user_photo {
  border-radius: 50%;
  margin-left: 20px;
}




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

  font-size: 16px;
  /* padding-left: 300px; */

  margin-bottom: 50px;
}



/******************************************************************************/

.form {
  box-sizing: border-box;
  width: 600px;

  margin-bottom: 40px;

  padding: 10px;
  padding-top: 110px;
}

.form__field {
  position: relative;

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

  margin-bottom: 20px;
}

.form__field input[type="text"] {
  width: 300px;
}

.group-info {
  position: absolute;
  top: -100px;

  padding: 15px 10px 0px 15px;

  text-align: right;
  background-color: rgb(236, 236, 236);
}

.group-info img {
  border-radius: 50%;
  margin-right: 10px;
}

/* спойлер для полей */
.spoiler {
  max-height: 0;
	overflow: hidden;

	/* Set our transitions up. */
	-webkit-transition: max-height 0.8s;
	-moz-transition: max-height 0.8s;
	transition: max-height 0.8s;
}

.show {
  max-height: 300px;
}

textarea {
  height: 150px;
  resize: none;
  margin-bottom: 20px;
}



/* Loading-animation */
.loading {
  position: relative;
}

.loading::after {
  position: absolute;
  content: '';

  top: calc(50% - 10px);
  right: -40px;

  width: 20px;
  height: 20px;

  background-image: url('../img/loading.png');
  background-size: 100%;
  background-origin: border-box;

  animation-name: spin;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);

  }
}


/***************************** Переключатель ***************************/

:root {
  --button-border-color: rgb(22, 145, 3);
  --button-text-color: rgb(22, 145, 3);

  --main-color: #649FF7;
  --border-color: #D2D2D2;
  --border-color-focus: #649FF7;

  --switch-bg-not-checked-color: #ECECEC;
  --switch-bg-checked-color: #84E674
}

.input__checkbox,
.input__radiobutton {
  display: none;
}

.label__switch {
  position: relative;
  padding-left: 60px;
  /* margin-bottom: 20px; */
}

/* Подложка переключателя */
.label__switch::before {
  content: "";
  position: absolute;

  width: 40px;
  height: 20px;

  top: 0;
  left: 0;

  border: 1px solid var(--border-color);
  border-radius: 10px;

  box-shadow: inset 0px 1px 4px rgba(0, 0, 0, 0.25);

  transition: background-color 0.2s;
}

.input__checkbox + .label__switch::before,
.input__radiobutton + .label__switch::before {
  background-color: var(--switch-bg-not-checked-color);
}

.input__checkbox:checked + .label__switch::before,
.input__radiobutton:checked + .label__switch::before {
  background-color: var(--switch-bg-checked-color);
}

/* переключатель (ручка) */
.label__switch::after {
  content: "";
  position: absolute;

  width: 20px;
  height: 20px;

  top: 0;
  left: 0;

  border: 1px solid var(--border-color);
  border-radius: 50%;

  background-color: white;

  transition: left 0.2s;
}

.input__checkbox + .label__switch::after,
.input__radiobutton + .label__switch::after {
  left: 0;
}

.input__checkbox:checked + .label__switch::after,
.input__radiobutton:checked + .label__switch::after {
  left: 20px;
}

.input__checkbox + .label__switch,
.input__radiobutton + .label__switch {
  /* color: var(--border-color); */
  color: black;
}

.input__checkbox:checked + .label__switch,
.input__radiobutton:checked + .label__switch {
  color: black;
  /* border-bottom: 1px solid var(--button-text-color); */
}

/*************************************************************/


#results {
  border-top: 2px solid gray;
}


.save-request {
  padding: 20px 0;
  margin-bottom: 30px;
  
  text-align: center;
}

.save-request input {
  width: 300px;
}

.save-request button{
  margin-left: 30px;
}

.show-slowly {
  animation-name: show-slowly;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes show-slowly {
  0% {opacity: 0}
  100% {opacity: 1}
}


/**************************************************************/

/* Список результатов */
.results {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  justify-content: space-between;
}

.results__header {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 15px;
  text-align: center;
  border-top: 1px solid #eee;
}

.results__link {
  font-weight: bolder;
}

.results__group-avatar {
  width: 25px;

  margin-right: 10px;
  margin-bottom: 5px;

  border-radius: 50%;
}

.results__section {
  position: relative;
  box-sizing: border-box;
  width: 46%;
  padding: 5px;
}

.title-pointer {
  width: 100%;
  cursor: pointer;
}

.copy-button {
  border: none;
  outline: none;
  font-size: 0;
  padding: 0;
}

.copy-button::before {
  position: absolute;
  content: '';

  top: -10px;
  left: -20px;
  
  width: 40px;
  height: 40px;

  border: 1px solid #cccccc;
  border-radius: 50%;

  background-color: white;
  background-image: url(../img/copy-archives.png);
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;

  cursor: pointer;

  box-shadow: none;
  transition: box-shadow 0.2s;
}

.copy-button:hover::before {
  box-shadow: inset 2px 2px 2px gray;
  transition: box-shadow 0.2s;
}


/*************************************************************/

.history {
  text-align: right;
}

.history__card {
  position: relative;
  
  margin-bottom: 5px;
  padding: 5px;
  border: 1px solid gray;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal {
  position: fixed;
  display: block;

  top: 50%;
  left: 50%;

  -webkit-box-sizing: border-box;
  box-sizing: border-box;

  max-width: 800px;
  height: 80%;

  padding: 30px;

  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  background-color: white;

  z-index: 1;
  overflow-y: auto;
}

@media (max-width: 750px) {
  .modal {
    top: 10px;
    height: 95%;
    padding: 20px;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
  }
}

.button-delete {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0;
  border: none;
  padding: 0;
}

.button-delete::before {
  position: absolute;
  content: '';

  top: 4px;
  right: 4px;

  width: 24px;
  height: 24px;

  /* background-color: red; */
  background-image: url(../img/eraser.png);
  background-size: 100%;

  cursor: pointer;
  opacity: 0.4;

  /* В хроме эта анимация размывает шрифт почему-то... версия хрома 72 */
  /* transition: opacity 0.2s; */ 
}

.button-delete:hover::before {
  opacity: 1;
  /* transition: opacity 0.2s; */
}


/*************************************************************/

.notification {
  position: fixed;

  box-sizing: border-box;
  min-width: 200px;

  bottom: -150px;
  right: 25px;

  transition: bottom 1s;
  z-index: 99;
}

.show-notification {
  bottom: 15px;
  transition: bottom 1s;
}

.close {
  position: relative;
  font-size: 0;
  z-index: inherit;
}

.close::before {
  position: absolute;
  content: '';

  top: -10px;
  left: -15px;

  width: 24px;
  height: 24px;

  background-color: white;
  background-image: url(../img/close.png);
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 1;
}


/*************************************************************/




/* Таблица */

.results__table {
  width: auto;
  margin: auto;
  font-size: 14px;
}

.fix-header {
  position: fixed;
  top: 0;

  width: 960px;
}

.results__table tr th,
.results__table tr td {
  width: 100px;
  word-break: break-all;
}

.results__table tr th:first-child,
.results__table tr th:empty,
.results__table tr td:first-child {
  width: 260px;
}

.board-name {
  /* background-color: aliceblue; */
  background-color: cornflowerblue;
}

.board-name--popup {
  position: relative;
}

.board-name--popup::after {
  position: absolute;
  content: attr(data-name);

  top: 40px;
  left: 10px;

  width: 120%;
  padding: 10px;
  border-radius: 5px;

  font-size: 12px;
  word-break: normal;
  color: gray;

  background-color: #ffffce;
  box-shadow: -2px 2px 4px gray;
}







/***************************************************************/


/* UTILS */

#clipboard {
  position: absolute;
  top: -9999px;
}



.hidden {
  display: none;
}

