body {
  margin: 0;
  line-height: 1.4;
  font-family: "OpenSansRegular";
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0 0 0px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.head-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  margin-right: 260px;
  font-family: "RobotoRegular", sans-serif;
  font-weight: 500;
  text-align: center;
  font-size: 60px;
  line-height: 1.2;
}

.logo {
  display: flex;
  margin-left: 20px;
  align-items: center;
}

.logo-img {
  height: 50px;
  margin-right: 5px;
}

.logo-text {
  font-family: "RobotoRegular", sans-serif;
  font-size: 30px;
  color: SaddleBrown;
}

/*Page*/
.page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #fafafa;
}

/* Container */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

/*TEXTS*/
.texts__settings {
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: right;
  font-family: arial;
  font-weight: 700;
  color: #5c5c5c;
  line-height: 1.2;
  font-size: 18px;
  margin: 10px auto 20px;
}

.texts__area {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  margin: 0 auto 20px;
  overflow: hidden;
  color: #5c5c5c;
}

a.texts__dir,
.texts__level a,
.link-show,
a.next-text {
  color: #61afef;
  text-decoration: none;
  cursor: pointer;
}

a.texts__dir:hover {
  color: rgb(0, 162, 255);
}

a.texts__dir:hover .lang-from,
a.texts__dir:hover .lang-to {
  border-bottom: 2px solid rgb(0, 162, 255);
}

a.next-text:hover,
a.link-show:hover,
.texts__level a:hover {
  color: rgb(0, 162, 255);
  border-bottom: 2px solid rgb(0, 162, 255);
}

.simple-text.active,
.hard-text.active {
  color: rgb(0, 162, 255);
  border-bottom: 2px solid rgb(0, 162, 255);
}

.texts__level,
.text-show,
.text-next {
  margin-left: 70px;
}

.text-show,
.text-next {
  text-align: center;
}

.text__block {
  display: flex;
  justify-content: end;
}

.text__block .text__sample {
  padding: 20px;
}

.text-user,
.text__block {
  border: 1px dashed #dfdfdf;
  border-radius: 5px;
  background-color: white;
  font-size: 19px;
  line-height: 1.2;

  text-align: justify;
}

textarea:focus {
  outline: none;
  border-color: #a3a3a3;
}

.text__block.block-transl {
  transition: opacity 0.4s ease-out, font-size 0.2s ease-out;
  opacity: 0;
  font-size: 0;
  padding: 0 20px;
  margin: 5px 0;
}

.text__block.block-transl.active {
  transition: opacity 0.9s ease-out, font-size 0.2s ease-out;
  opacity: 1;
  font-size: 19px;
  padding: 20px 20px;
}

.text__sample {
  transition: opacity 0.6s ease-out;
  opacity: 0;
}

.text__sample.active {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.text-user {
  resize: vertical;
  min-height: 150px;
  color: #4e4e4e;
  padding: 20px;
  font-family: "OpenSansRegular";
  z-index: 1;
}

textarea::-webkit-input-placeholder {
  color: rgb(189, 189, 189);
}

.footer {
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 100%;
  z-index: 1;
  background-color: white;
}

.author {
  font-weight: bold;
  text-align: center;
  font-family: "RobotoRegular";
  color: grey;
  font-size: 15px;
  line-height: 1.1;
}

@font-face {
  font-family: "RobotoRegular";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "OpenSansRegular";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

@media (max-width: 1100px) {
  .head-block {
    justify-content: center;
  }

  .logo {
    position: absolute;
    top: 6px;
    left: 0;
  }

  .logo-img {
    height: 45px;
  }

  .logo-text {
    font-size: 25px;
  }

  h1 {
    font-size: 45px;
    margin-right: 0;
  }

  .texts__settings {
    font-size: 17px;
  }

  .texts__level,
  .text-show,
  .text-next {
    margin-left: 30px;
  }

  .texts__area {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 850px;
  }
}

@media (max-width: 900px) {
  .logo {
    top: 5px;
    margin-left: 10px;
  }

  .logo-img {
    height: 35px;
  }

  .logo-text {
    font-size: 25px;
  }

  h1 {
    font-size: 35px;
  }

  .texts__settings {
    margin: 5px auto;
  }

  .text-show {
    max-width: 76px;
  }

  .text-next {
    max-width: 100px;
  }

  .texts__area {
    max-width: 750px;
    margin-top: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .logo {
    top: 4px;
  }

  .logo-img {
    height: 30px;
  }

  .logo-text {
    font-size: 20px;
  }

  h1 {
    font-size: 30px;
  }

  .texts__settings {
    max-width: 580px;
    flex-wrap: wrap;
    line-height: 1.2;
  }

  .text-show,
  .text-next {
    max-width: none;
  }

  .text-show,
  .texts__level,
  .texts__dir,
  .text-next {
    margin-bottom: 5px;
  }

  .texts__area {
    max-width: 570px;
  }

  .text-user,
  .text__block {
    font-size: 17px;
  }

  .text__block .text__sample {
    padding: 10px;
  }

  .text__block.block-transl {
    padding: 0 10px;
    font-size: 0;
  }

  .text__block.block-transl.active {
    padding: 10px 10px;
    font-size: 17px;
  }

  .text-user {
    min-height: 120px;
    padding: 10px;
  }

  a.texts__dir:hover,
  a.next-text:hover,
  a.link-show:hover {
    color: #61afef;
    text-decoration: none;
    border-bottom: none;
  }

  a.texts__dir:hover .lang-from,
  a.texts__dir:hover .lang-to {
    border-bottom: none;
  }
}

@media (max-width: 575px) {
  .logo {
    top: 2px;
  }

  .logo-img {
    height: 23px;
  }

  .logo-text {
    font-size: 18px;
  }

  h1 {
    font-size: 23px;
  }

  .page {
    padding-bottom: 25px;
  }

  .texts__settings {
    max-width: 500px;
    font-size: 15px;
    margin-bottom: 0;
  }

  .texts__area {
    max-width: 450px;
  }

  .text-user,
  .text__block {
    font-size: 16px;
  }

  .text__block.block-transl {
    font-size: 0;
  }

  .text__block.block-transl.active {
    font-size: 16px;
  }

  .footer {
    height: 30px;
  }

  .author {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .head-block {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    position: static;
    margin-left: 0;
    margin-top: 10px;
    margin-bottom: 2px;
  }

  .texts__settings {
    max-width: 300px;
    margin-bottom: 5px;
  }

  .texts__level {
    order: -1;
    padding-left: 10px;
    padding-right: 10px;
  }

  .text-show,
  .texts__level,
  .texts__dir,
  .text-next {
    text-align: center;
    flex-basis: 300px;
    margin-left: 0;
    margin-bottom: 3px;
  }

  .texts__area {
    margin: 0 10px;
    max-width: none;
  }
}
