html,
body {
  min-height: 100%;
  height: 100%;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

*:before,
*:after {
  box-sizing: border-box;
}

@font-face {
  font-family: Raleway;
  src: url(../fonts/google/Raleway/2_001/Raleway-Light.ttf) format('truetype');
  font-weight: 300;
}

@font-face {
  font-family: Raleway;
  src: url(../fonts/google/Raleway/2_001/Raleway-Regular.ttf) format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: Raleway;
  src: url(../fonts/google/Raleway/2_001/Raleway-Bold.ttf) format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: Open Sans;
  src: url('../fonts/google/Open_Sans/1_10/OpenSans-Regular.ttf');
}

#cs-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 2;
  display: none;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease-out;
}

#cs-overlay.cs-show {
  display: block;
}

#cs-overlay.cs-show.cs-fadeIn {
  background-color: rgba(0, 0, 0, 0.7);
}

#cs-previewOutline {
  width: calc(100% - 40px);
  height: calc(100% - 60px);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  overflow: hidden;
  transition: background-color 0.3s ease-out;
  font-family: Raleway;
}

#cs-previewOutline h3 {
  font-size: 1.4em;
}

#cs-previewOutline button {
  padding: 10px;
  text-align: center;
  font-family: Open Sans;
  width: 180px;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  display: inline-block;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
  color: #fff;
}

#cs-previewOutline .cs-hide {
  display: none;
}

.cs-surveyWrapper {
  background-color: #fff;
  position: absolute;
  display: inline-block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 840px;
  width: 80%;
  padding: 30px;
  font-size: 0.9em;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  border: 1px solid #ccc;
}

#cs-previewOutline .cs-surveyWrapper {
  top: 50%;
}

.cs-topBar {
  width: 100%;
  background-color: #e3e3e3;
  padding: 10px;
  display: flex;
  align-items: center;
}

.cs-topBar img {
  display: inline-block;
}

.cs-topBar h2,
#cs-new .cs-topBar h2 {
  display: inline-block;
  padding: 0;
  margin: 0 0 0 20px;
}

#cs-surveyPercentComplete {
  width: 0%;
  height: 4px;
  background-color: #dafcc7;
  transition: width;
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  transition: width 0.4s ease-out;
}

.cs-questionWrapper {
  padding: 40px 40px 30px 40px;
  border: 1px solid #000;
  width: 80%;
  margin: 20px auto;
  text-align: center;
}

.cs-questionWrapper h3 {
  margin: 0 0 25px 0;
  text-align: left;
  font-weight: 600;
}

.cs-questionWrapper.cs-editableQuestion {
  position: relative;
}

.cs-questionWrapper.cs-editableQuestion h3 {
  position: absolute;
  top: 0;
  left: 0;
}

.cs-questionWrapper.cs-editableQuestion .cs-editableToken {
  width: auto;
  height: auto;
  display: inline-block;
  opacity: 1;
}

.cs-questionWrapper label {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1.2em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  float: none;
  margin: 10px 0 0 0;
  width: auto;
  font-weight: 300;
  text-align: left;
  font-family: Raleway;
}

.cs-questionWrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cs-questionWrapper .cs-checkButton {
  position: absolute;
  top: -1px;
  left: 0;
  height: 23px;
  width: 23px;
  background-color: #eee;
  border: 1px solid #b3b3b3;
}

.cs-questionWrapper label:hover input ~ .cs-checkButton {
  background-color: #ccc;
}

.cs-questionWrapper label input:checked ~ .cs-checkButton {
  background-color: #2196f3;
  border-color: #2196f3;
}

.cs-checkButton:after {
  content: '';
  position: absolute;
  display: none;
}

.cs-questionWrapper label input:checked ~ .cs-checkButton:after {
  display: block;
}

.cs-questionWrapper label .cs-checkButton:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.cs-questionWrapper .cs-radioButton {
  position: absolute;
  top: -1px;
  left: 0;
  height: 23px;
  width: 23px;
  background-color: #eee;
  border-radius: 50%;
  border: 1px solid #b3b3b3;
  box-sizing: border-box;
}

.cs-questionWrapper label:hover input ~ .cs-radioButton {
  background-color: #ccc;
}

.cs-questionWrapper label input:checked ~ .cs-radioButton {
  background-color: #2196f3;
  border-color: #2196f3;
}

.cs-radioButton:after {
  content: '';
  position: absolute;
  display: none;
}

.cs-questionWrapper label input:checked ~ .cs-radioButton:after {
  display: block;
}

.cs-questionWrapper label .cs-radioButton:after {
  left: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.cs-questionWrapper textarea {
  width: 100%;
  height: 150px;
  padding: 10px;
  border: 1px solid #ccc;
  transition: border 0.2s ease-out;
}

.cs-questionWrapper textarea:hover {
  border-color: #707070;
}

.cs-questionWrapper button {
  margin: 30px 0 0 0;
}

#cs-surveyQuestionNumber {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1em;
  color: #000;
}

#cs-previousQuestionButton {
  right: 20px;
}
#cs-nextQuestionButton {
  left: 20px;
}

.cs-animateLeft {
  transform: translate(-200%, -50%);
  opacity: 0;
}

.cs-animateRight {
  transform: translate(70%, -50%);
  opacity: 0;
}
