body {
  background-color: #f5f5f5 !important;
}

.row {
  margin-top: 5%;
}

.form-control:focus {
  border-color: #1d764a !important;
  box-shadow: none !important;
}
.form-control {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.form-check-label {
  cursor: pointer;
}

.form-check-label:hover {
  background-color: #f1f1f1;
}

.disabled {
  pointer-events: none;
  filter: grayscale(1);
}

#survey {
  display: block;
  max-width: 1200px;
  min-width: 730px;
  margin: auto;
  border-radius: 10px;
  border: solid rgba(46, 46, 46, 0.25) 1px;
  margin-top: 40px;
  margin-bottom: 20px;
  width: 45%;
  overflow: hidden;
  height: auto;
  background-color: white;
  border-left: #222222 solid 15px;
  box-shadow: 0 4px 12px 0px rgba(0, 0, 0, 0.15);
}

#survey-content {
  font-family: "Roboto", sans-serif;
  margin-top: 5%;
  margin-left: 12%;
  margin-right: 12%;
}

#alueorganisaatio {
  cursor: not-allowed;
}

#survey-content label {
  font-weight: 500;
  font-size: 1.05em;
}

.required::after {
  content: "*";
  color: #309060;
  display: inline-block;
  width: 0.5em;
  text-align: center;
}

#survey-content h1 {
  font-size: 2.35em;
  word-break: break-word;
  color: #000000;
}

#survey-content table {
  text-align: center;
}
#survey-content th {
  font-weight: normal;
  padding: 1rem;
}
.table thead th {
  font-weight: bold !important;
  border-top: none !important;
}
th:nth-child(1) {
  width: 40%;
  text-align: left;
}
th:nth-child(4) {
  width: 35%;
}
input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
#survey-content h5 {
  margin-bottom: -2%;
  color: #535353;
}

.kuvaus {
  color: rgb(77, 77, 77);
  font-size: 1em;
  margin-top: 10px;
}

.ratingRow {
  margin-top: 1%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.075);
  border: rgba(0, 0, 0, 0.1) solid 1px;
  border-radius: 5px;
}

.ratingBox {
  color: white;
  cursor: pointer;
  text-align: center;
  height: fit-content;
  margin-right: 2%;
  margin-left: 2%;
  padding: 1%;
  border: rgba(0, 0, 0, 0.15) solid 1px;
  transition: 0.1s;
  opacity: 0.4;
  box-shadow: 0 3px 8px 0px rgba(0, 0, 0, 0.2);
}

.ratingBox h4 {
  margin: 0;
}

.ratingBox:hover {
  opacity: 1 !important;
}

.red {
  background-color: rgb(212, 33, 33);
}
.yellow {
  background-color: rgb(229, 233, 12);
}
.blue {
  background-color: rgb(20, 100, 219);
}
.green {
  background-color: rgb(25, 218, 25);
}

#logo {
  width: 25%;
}

#success-screen {
  text-align: center;
  display: none;
  font-family: "Roboto", sans-serif;
  position: absolute;
  width: fit-content;
  padding: 5%;
  border: rgba(0, 0, 0, 0.25) solid 1px;
  background-color: rgb(255, 255, 255);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px 0px rgba(0, 0, 0, 0.137);
  margin-right: 20px;
}

#success-screen hr {
  border-top: 1px solid rgb(20, 20, 20);
}

@media only screen and (max-width: 500px) {
  #survey {
    width: 100%;
    min-width: auto;
    margin-top: 0;
    font-size: 1.25em;
    border-left: #111111 solid 10px;
  }
  #survey-content {
    margin-right: 8%;
    margin-left: 8%;
  }
  #survey-content label {
    font-size: 0.85em;
  }
  h1 {
    font-size: 1.5em !important;
  }
  .kuvaus {
    font-size: 0.7em !important;
  }
  p {
    font-size: 0.75em !important;
  }
  .ratingBox {
    transition: 0s;
  }
  thead th {
    word-break: break-all;
    font-size: 0.7em;
    padding: 0.6rem !important;
  }

  .ratingBox {
    min-width: 40% !important;
    margin: 5px;
  }
}

@media only screen and (max-width: 370px) {
  #survey {
    border-left: #1a1a1a solid 7px;
  }
  #survey-content th {
    word-break: break-word;
  }
}
