html, body {
  height: 100%;
}

body {
  font-family: 'Times New Roman', sans-serif;
  color: green;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}

p {
  font-weight: 500;
  margin-left: 0px; 
}

b {
  margin-left: 4px; 
}

a {
  color: #000099;
  text-decoration: underline;
  cursor: pointer;
  /*margin-left: 22px; /* 30px; */
}

a:hover {
  color: #990000;
  text-decoration: none;
}

/* Обязательно внести в стили позиционирование для блока-обёртки */
/*.txt16 {
  margin: 6 10 0 10px; font-size:18px;
  position: relative;
  width: 100%;
}*/

/* При загрузке странички блок-шаблон скрыт */
.answer-template {
  display: none;
}

/* Класс 'answer' добавляется в js файле*/
.answer {
  position: fixed;
  left: 57%; /*55%; /*52%*/
  /*top: -9%;*/
  bottom: 70%;
  width: 182px;
  height: 182px;
  border: 1px solid black;
  border-radius: 7px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.8);
  z-index: 1;
  opacity: 0;
  /* добавила префиксы для transition и transform */
  -webkit-transition: opacity 0.4s, -webkit-transform 0.3s;
  transition: opacity 0.4s, -webkit-transform 0.3s;
  transition: transform 0.3s, opacity 0.4s;
  transition: transform 0.3s, opacity 0.4s, -webkit-transform 0.3s;
}

/* Анимация */
.active {
  /* добавила префикс для transform */
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  opacity: 1;
}

/* При клике на определенный класс появляется соответствующий фон */
.correct-back {
  background: url(q1.gif);
}

.incorrect-back {
  background: url(q2_an.gif);;
}

.inaccurate-back {
  background: url(q3.gif);
}

/* Здесь стили для 'x' */
.close {
  position: absolute;
  width: 10%;
  height: 10%;
  right: -8px;/*-5.7%*/
  top: -8px;/*-4%*/
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: rgba(61, 61, 61, 0.8);
  font-weight: bold;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
  line-height: 0.75;
  text-align: center;
  box-shadow: 0px 0px 10px #000;
  /* добавила префиксы для transition и transform */
  -webkit-transition: background-color ease .7s, -webkit-transform ease .7s;
  transition: background-color ease .7s, -webkit-transform ease .7s;
  transition: transform ease .7s, background-color ease .7s;
  transition: transform ease .7s, background-color ease .7s, -webkit-transform ease .7s;
  /* добавила префикс transform */
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  cursor: default;
}

.close:hover {
  /* добавила префикс для transform */
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  background-color: rgba(255, 0, 0, 0.8);
}
