:root {
  --widthMainContent: 56rem;
  --margin-body: 0.5rem;
  --headLineHeight: 8.5rem;
  --footerHeight: 5rem;
}

body {
  margin: var(--margin-body);
}
/*
#formContainer { background-color: #dFda;}
.formQuestion, .headLineTitle{  background-color: #ddd9; }
.options, .optionsTitle{ background-color: antiquewhite; }
*/

#formContainer {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--widthMainContent);

  overflow: hidden;
}


.formLine, #headLine{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  padding: 0.5rem 0rem;
}
.formLine{
  border-bottom: #ddd 0.075rem solid;
}
.formLine:last-of-type {
  border-bottom: none;
  padding-bottom: var(--footerHeight);
}


#headLine{
  height: var(--headLineHeight);
  box-sizing: border-box;

  box-shadow: 0px 60px 60px -30px #7770;

  border-bottom: red 0.075rem solid;
}
#headLine, #footerForm{
    z-index: 1;
    position: relative;
    transition: box-shadow 0.5s;
}
#headLine:not([data-scroll='0']){
  box-shadow: 0px 60px 60px -50px #777F;
}

.formQuestion, .headLineTitle{
  box-sizing: border-box;
  width: 50%;
  padding: 1rem;
}
.headLineTitle{
  display: flex;
    flex-direction: column;
    justify-content: flex-end;

  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 2rem;
  /*font-size: 3rem;
  line-height: 2.7rem;*/
}
.headLineTitle p{
  margin: 0px;
}
#questionsContainer {
  /*height: 36rem;*/
  height: calc( 100vh - var(--headLineHeight) - var(--footerHeight) - (2 * var(--margin-body)) );
  overflow: auto;
}
#questionsContainer.disable {
  transition-property:
    filter;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;


  filter: blur(3px) opacity(.3);
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#questionsContainer.disable::before {
  content: "";
  width: 100%;
  height: 100%;
  /* background-color: red; */
  position: sticky;
  display: block;
  top: 0;
}
.options, .optionsTitle{
  display: inline-flex;
  box-sizing: border-box;
  width: 50%;
  min-width: 45ch;
  min-height: 3rem;
}
.optionsTitle {
  align-items: flex-end;
}
.optionsTitle p{
  text-align: center;
  width: 25%;

  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}


.formQuestion {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: .8rem;
}

.options label{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  width: 25%;
  height: 100%;
  border-radius: 0.5rem;
}
.options label:hover{
  background-color: #EEE;
}
.options label input{
  width: 1rem;
  height: 1rem;
  margin: 0.5rem;
  color: red;
}

#footerForm {
  height: var(--footerHeight);

  box-shadow: 0px -3.5rem 8rem 6rem #FFFF;
}
#footerForm:not([data-end-scroll="false"]){
  box-shadow: 0px -3.5rem 8rem 6rem #FFF0;
}
#counterContainer {
  min-width: 20rem;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
  border-top: solid .075rem #ddd;

  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}
#counterBar {
  border-top: red 0.075rem solid;
  width: 0;
  display: block;
  margin: -1.075rem auto 1rem auto;
  transition: width .5s ease-in-out;
}

#counter.allok {
  height: 3rem;
  width: 12rem;
  line-height: 3rem;
  background-color: #FF5858;
  color: white;
  border-radius: 1.5rem;
  font-size: 1.2rem;
  margin-top: -2.5rem;
}
#counter.allok:hover {
  cursor: pointer;
  background-color: #FF0000;
}
#counter.resultshow{
  transition-duration: 1s;

  width: 50%;
  /*height: auto;*/
  min-height: 50vh;
  min-width: 20rem;
  /*line-height: 3rem;
  background-color: #f59c9c;*/
  border-radius: 1.5rem;
  margin-top: -65vh;

  box-shadow: 0px 60px 60px -50px #777f;

  display: flex;
    flex-direction: column;
    justify-content: center;

  padding: 2.5rem 1rem;
  box-sizing: border-box;
}
#counter{
  width: 10rem;
  min-width: 10rem ;
  height: 2rem;
  min-height: 2rem;
  line-height: 2rem;
  background-color: #DDD;
  border-radius: 1rem;
  box-shadow: 0px 60px 60px -50px #7770;

  text-align: center;
  margin: 0 auto;

  transition:
    width .5s ease-in-out,
    min-width .5s ease-in-out,
    height .5s ease-in-out,
    min-height .5s ease-in-out,
    line-height .5s ease-in-out,
    background-color .5s ease-in-out,
    border-radius .5s ease-in-out,
    font-size .5s ease-in-out,
    margin-top .5s ease-in-out,
    box-shadow .5s ease-in-out;

}
#scorePanel{
  border-bottom: solid 1px;
}
#scorePanel .score {margin: 0;}
#scorePanel .label {
  font-size: 1.8rem;
  margin: 0.5rem 0 2rem 0;
}

#scorePanel.visible { color: #000F; }
#scoreSubtitle.visible { color: #777F; }

#scorePanel,
#scoreSubtitle {
  max-width: 15rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
  color: #0000;

  transition-property:
    color;
  transition-duration: .5s;
  transition-timing-function: ease-in-out;
}


#scoreSubtitle {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: .6rem;
  margin-top: 2rem;
}
#scoreSubtitle p{
  margin: 0 0 0.4rem 0;
  line-height: .9rem;
}
#brand {
  width: 6.5rem;
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  padding: .5rem;
  background-color: white;
}

@media only screen and (max-width: 560px){
  .formQuestion, .headLineTitle, .options {width: 100%;}
  .optionsTitle{display: none; width: 0%;}

  .formLine, #headLine{
    flex-wrap: wrap;}

  .options label::before{
    content: "";
    margin: 0.5rem 0.5rem 0rem 0.5rem;
    text-align: center;
    /*font-size: 0.9rem;*/
    height: 1.7rem;
    max-width: 15ch;

    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
  }
  .options label:nth-child(1)::before{ content: "Concordo Plenamente"; }
  .options label:nth-child(2)::before{ content: "Concordo"; line-height: 2rem;}
  .options label:nth-child(3)::before{ content: "Discordo"; line-height: 2rem;}
  .options label:nth-child(4)::before{ content: "Discordo Plenamente"; }

  .options label::after{
    content: " ";
    margin: 0rem 0rem 0.75rem 0rem;
  }
  #brand { display: none;}

}

@media only screen and (max-width: 380px){
  .options label{
    width: 50%;
    height: 50%;
  }
  .options{
    min-width: auto;
    flex-wrap: wrap;
  }
  #counter.resultshow{
    height: auto;
  }
}
