/* @import url('https://fonts.googleapis.com/css?family=Lato'); */
@import url('https://fonts.googleapis.com/css?family=Cabin:400,700|Lato:400,700|Open+Sans:400,700');
@import url('./normalize.min.css');


html {
  font-size: 10px;
}

body * {
  box-sizing: border-box;
  font-family: 'Lato', sans-serif;
  color: #727272;
  outline: none;
}

body {
  background: linear-gradient(to bottom, rgb(232, 232, 232), rgb(245,245,245));
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  min-height: 100vh;
}

body button{
  user-select: none;
}

body input[type="text"] {
  color: rgb(130,130,130);
  box-shadow: inset 1px 1px 3px #e5e5e5!important;
  background-color: linear-gradient(to top, rgb(232,232,232),rgb(260, 260, 260))!important;
}

body input[type="text"]::placeholder {
  color: rgb(180,180,180);
}

.clearfix::after {
  clear: both;
  display: block;
  width: 100%;
  content: '';
}

.container {
  max-width: 1170px;
  margin: 0 auto;
}

.main-component nav {
  background-color: #F7F7F7;
}

.main-component nav li {
  display: inline-block;
  list-style-type: none;
}

.main-component nav li a {
  user-select: none;
  display: inline-block;
  text-decoration: none;
  padding: 20px 30px;
  background-color: #F7F7F7;
  transition: all 0.5s ease;
  color: #727272;
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  outline: none;
}

.main-component nav li a:hover {
  background-color: #f2f2f2;
}

.nav-adaptive-btn {
  display: none;
  height: 63px;
}

.open-adaptive-menu{
  height: auto;
}

.nav-adaptive-btn span {
  position: absolute;
  left: 30px;
  top: 18px;
  font-size: 30px;
  color: #848484;
  cursor: pointer;
}

.add-test-container {
  max-width: 768px;
  margin: 0 auto;
  background-color: #F7F7F7;
  margin-top: 30px;
  border-radius: 10px;
  padding: 30px 20px 15px;
  box-shadow: 0px 0px 20px #cacaca;
  margin-bottom: 30px;
}

.add-test-component {
  /* background-color: #EDEDED; */
  padding-top: 10px;
}

.add-test-component span.title-text {
  display: block;
  font-size: 1.4rem;
  color: rgb(170, 170, 170);
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  letter-spacing: 0.037em;
  margin-top: 15px;
}
.add-test-component span.title-text:nth-of-type(1) {
  margin-top: 5px;
}
.add-test-component span.title-text:nth-of-type(2) {
  margin-bottom: 10px;
}

.add-test-component .add-test-header {
  text-align: center;
}

/* .add-test-component .add-test-header input {
  margin: 0 auto;
} */

.add-test-component .title-input, .description-input {
  width: 80%;
  height: 34px;
}

.add-test-component textarea.title-input {
  resize: vertical;
}

.add-test-component .description-input {
  margin-bottom: 40px;
  width: 80%;
}

.add-test-component button {
  font-weight: bold;
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  width: 40%;
}

.add-test-component button, .add-test-component input{
  width: 60%;
  height: 34px;
  border-radius: 5px;
  color: rgb(142, 142, 142);
  border: 1px solid rgb(232, 232, 232);
}

.add-test-component .submit-form {
  padding-top: 15px;
  display: flex;
}

.add-test-component .submit-inner-wrapper {
  width: 60%;
  display: flex;
  flex-wrap: wrap;
}

.add-test-component .submit-inner-wrapper input, .add-test-component .submit-inner-wrapper button{
  margin: 10px;
  margin-bottom: 5px;
}

.add-test-component .select-image {
  width: 100%;
}

.add-test-component .select-image input {
  display: block;
  margin-bottom: 10px;
  width: 75%;
  background-color: rgb(232,232,232);
  padding-left: 8px;
  font-weight: normal!important;
  font-family: 'Open Sans', sans-serif!important;
}

.add-test-component img.preview {
  border: 3px solid #ededed;
  margin-left: 10px;
  margin-top: 7px;
}


.add-test-component .question-edit-buttons {
  width: 100%;
}

.add-test-component .submit-form button {
  width: 35%;
}

.add-test-component .send-input {
  text-align: right;
  width: 40%;
}



.add-test-component .submit-form input {
  margin-top: 10px;
  margin-right: 10px;
  font-weight: bold;
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
  box-shadow: inset 1px 1px 4px rgb(220, 220, 220)!important;
}

.question-rating {
  display: inline-block;
  position: relative;
  right: 31px;
  top: 10.5px;
}

.question-rating-number {
  display: inline-block;
  position: relative;
  bottom: 10px;
  width: 53%;
  padding: 6.1px 0;
  padding-left: 3px;
  border-left: 1px solid rgba(200,200,200,.2);
  background: linear-gradient(to top, rgb(240,240,240),rgb(243,243,243));
  box-shadow: inset 0 0 2px rgb(200,200,200);
  /* border-right: none; */
  color: rgb(130,130,130);
}

.question-rating-buttons{
  display: inline-block;
  width: 47%;
  cursor: pointer;

}

.question-rating-button{
  height: 17px;
  padding-left: 2px;
  padding-right: 7px;
  box-shadow: inset 0 0 1px rgb(200,200,200);
  border: 1px solid rgba(200, 200, 200,.6);
  background-color: rgb(227, 227, 227);
}

.question-rating-button:nth-of-type(1) {
  border-top-right-radius: 8px;
}

.question-rating-button:nth-of-type(2) {
  border-bottom-right-radius: 8px;
}

.question-rating-button span {
  font-size: 13px;
  position: relative;
  bottom: 3px;
}

.add-test-item {
  position: relative;
  border-bottom: 1px solid #e8e8e8;
  padding-top: 13px;
}

.add-test-item:nth-of-type(2) {
    border-top: 1px solid #e8e8e8;
}

.add-test-item span.question-counter {
  position: relative;
  top: 4px;
  font-size: 1.9rem;
  font-weight: bold;
  color: rgb(195, 195, 195);
}

.add-test-item span.question-mark{
  position: relative;
  top: 5px;
  text-align: right;
  color: rgb(210,210,210);
  font-size: 37px;
}

.add-test-item .answer-circle {
  position: relative;
  top: 2px;
  font-size: 24px;
  color: rgb(205, 205, 205);
}

.add-test-item input, .title-input, .description-input{
  display: inline-block;
  width: 70%;
  font-size: 1rem;
  padding: 0 10px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgb(232, 232, 232);
  background: linear-gradient(to top, rgb(239,239,239),rgb(242,242,242));
  color: #4f4f4f;
  box-shadow: inset 1px 1px 3px #e5e5e5;
  font-family: 'Open Sans', sans-serif;
}

.answer-input-wrapper {
  padding-left: 80px;

}

.add-test-item span.icon{
  position: relative;
  top: 1px;
  right: 22px;
  font-size: 22px;
  height: 30px;
  width: 30px;
  color: rgb(210, 210, 210);
  cursor: pointer;
  transition: all 0.1s ease;
}

.add-test-item span.icon:hover::before{
  transform: scale(1.05);
  color: rgb(185, 185, 185);
}

.question-input-wrapper{
  margin-bottom: 15px;
  padding-left: 5px;
}

.add-test-item .question-input {
  margin-left: 20px;
  margin-right: 5px;
}

.add-test-item .question-input::placeholder {
  color: rgb(180,180,180);
}

.add-test-item .answer-input {
  display: inline-block;
  width: 80%;
  margin-left: 10px;
}

.add-test-item .answer-input::placeholder {
  color: rgb(180,180,180);
}


.add-test-item button{
  display: block;
  margin: 25px auto;
  width: 25%;
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgb(232, 232, 232);

}

/* main-page */
.main-page {
  padding-top: 50px;
  display: flex;
  flex-wrap: wrap;
}

.main-page-item {
  box-shadow: 0 0 20px #cacaca;
  width: 30%;
  margin-right: 1%;
  margin-bottom: 58.5px;
}

.main-page-item {
  width: 30%;
  margin-right: 5%;
  transition: all 0.3s ease;
}

.main-page-item:nth-child(3n) {
  margin-right: 0;
}

.main-page-item a {
  text-decoration: none;
}

.main-page-item img{
  width: 100%;
  transform: scale(1);
  transition: all 0.3s ease;
}

.main-page-item img.cover-icon {
  position: absolute;
  width: 20%;
  left: 40%;
  top: 40%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-page-item .main-page-item-img {
  position: relative;
  overflow: hidden;
}

.main-page-item .main-page-item-img::before {
  top: 0;
  left: 0;
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s ease;
}

.main-page-item .main-page-item-description {
  height: 95px;
  background-color: #fefefe;
  margin-top: -3px;
  padding: 15px;
  box-shadow: inset 0 -2px 4px #cacaca;
}

.main-page-item:hover img {
  transform: scale(1.12);
}

.main-page-item:hover img.cover-icon {
  opacity: 0.3;
}

.main-page-item:hover .main-page-item-img::before {
  opacity: 0.2;
}

.main-page-item:hover{
  transform: scale(1.04);
  box-shadow: 0 0 30px #cacaca;
}

.main-page-item .main-page-item-description .main-page-item-title {
  font-size: 1.4rem;
  margin-top: 5px;
  font-weight: bold;
}

.main-page-item .main-page-item-description .main-page-item-info {
  margin-top: 7px;
}
/* main-page */

/* test-component */
.test-component {
  perspective: 950px;
  user-select: none;
}
.test-component-item {
  z-index: 1;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: 0 auto;
  background-color: #F7F7F7;
  margin-top: 90px;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0px 0px 20px #cacaca;
  margin-bottom: 30px;
  text-align: center;
}

.test-component-animation {
  animation: testComponentAnimation 2s;
  transform-origin: 0% 0%;
}

@keyframes testComponentAnimation {
  0%{
    transform: rotateX(0deg);
  }
  100%{
    transform: rotateX(360deg);
  }
}

.item-component-item-header {
  border-bottom: 1px solid #EDEDED;
  padding-bottom: 20px;
  display: inline-block;
  margin-left: -60px;
}

.test-component-item-number {
  font-size: 1.7rem;
  font-weight: bold;
  color: rgb(160, 160, 160);
  margin-left: 30px;
}

.test-component-question {
  font-size: 1.6rem;
  font-weight: bold;
  color: rgb(160, 160, 160);
}

.test-component-item-answers {
  font-size: 1.4rem;
  padding-left: 80px;
  color: rgb(165, 165, 165);
  margin: 20px 0 8px;
}

.test-component-item-answers div{
  margin: 5px 0px;
  text-align: left;
  cursor: pointer;
}

.test-component-item-answers .answer-circle {
  font-size: 24px;
  color: rgb(210, 210, 210);
  margin-right: 10px;
  position: relative;
  top: 1px;
  transition: all 0.3s ease;
}

span.answer-circle-active {
  color: #42AB9E!important;
}

.next-question button {
  display: block;
  margin: 30px auto 5px;
  width: 45%;
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgb(232, 232, 232);
  font-weight: bold;
  font-family: "Lato", sans-serif;
  font-size: 1.05rem;
}

.results-block {
  /* position: absolute; */
  margin: auto;
  left: 0;
  right: 0;
  max-width: 640px;
  margin: 0 auto;
  background-color: #F7F7F7;
  margin-top: 70px;
  border-radius: 10px;
  padding: 40px;
  padding-bottom: 0;
  box-shadow: 0px 0px 20px #cacaca;
  margin-bottom: 30px;
  text-align: center;
  transition: all 1s ease;
}

.result-text {
  font-size: 1.5rem;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 100px;
  color: rgb(140,140,140);
}

.result-text span {
  font-weight: bold;
  color: rgb(150,150,150);
}

.result-number {
  position: relative;
  font-size: 3.5rem;
  text-align: center;
  color: rgb(170,170,170);
  margin-bottom: 80px;
}

.result-number span{
  position: absolute;
  left: 0;
  right: 0;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  top: -60px;
  font-size: 190px;
  color: rgb(200,200,200);
  opacity: 0.37;
  /* transform-origin: center center;
  animation: resultCircleAnimation 10s infinite linear; */
}

/* @keyframes resultCircleAnimation {
  0%{
    transform: rotateZ(0deg);
    transform: scale(1);
  }
  25%{
    transform: rotateZ(90deg);
  }
  50%{

    transform: scale(1.1);
    transform: rotateZ(180deg);
  }
  100%{
    transform: rotateZ(360deg);
    transform: scale(1);
  }
} */

.result-slider {
  display: inline-block;
  height: 20px;
  width: 40%;
  border-radius: 10px;
  background-color: rgb(230,230,230);
  box-shadow: inset 0 0 10px #cacaca;
  margin-bottom: 50px;
}

.result-slider-line {
  background-color: rgb(195,195,195);
  height: 100%;
  border-radius: 10px;
}

.read-more {
  opacity: 0;
  max-height: 0px;
  transition: opacity 1s, max-height 2s ease;
  overflow: hidden;
}

.read-more span:nth-of-type(1) {
  font-size: 1.2rem;
  display: block;
}

.read-more span:nth-of-type(2) {
  font-size: 60px;
  cursor: pointer;
  opacity: 0.5;
  animation: arrowDownAnimation 1s infinite;
}

.read-more-text span.fa-angle-up {

  font-size: 60px;
  cursor: pointer;
  opacity: 0.5;
  animation: arrowDownAnimation 1s infinite;
}

.read-more-text div {
  text-align: center;
}



.read-more-text{
  display: block;
  padding: 10px 0 10px;
  text-align: left;
  font-size: 1.2rem;

}

@keyframes arrowDownAnimation {
  0%{
    transform: translateY(0px);
  }
  50%{
    transform: translateY(4px);
  }
  100%{
    transform: translateY(0px)
  }
}

/* test-component */

@media screen and (max-width: 1170px) {
  .main-page {
    padding-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .main-page-item {
    width: 400px;
    margin-right: 0%;
  }

  .main-component nav {

  }

  .nav-adaptive-btn {
    display: block;
  }

  .open-adaptive-menu{
    max-height: 200px!important;
  }

  .nav-links {
    position: absolute;
    z-index: 2;
    width: 100%;
    max-height: 0px;
    transition: max-height .5s ease;
    overflow: hidden;
  }



  .main-component nav li {
    width: 100%;
  }

  .main-component nav li a {
    width: 100%;
    padding: 25px 0;
    text-align: center;
  }
}
