/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 01.01.2020, 19:43:59
    Author     : borowski
*/
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  font-family: sans-serif;
  line-height: 130%;
  font-size: 10pt;
}

#map {
  z-index: 100;
}

#questionaire { 
  position: absolute;
  width: 1200px;
  max-width: 97%;
  max-height: 97%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0px auto;
  background: white;
  box-shadow: 1px 1px 5px #333;
  padding: 25px;
  overflow-y: auto;
  z-index: 900;
  overflow: auto;
  border-radius: 5px;
}

input[type=text], input[type=number], input[type=date], input[type=email], textarea {
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 100%;
  padding: 10px 7px;
  font-family: sans-serif;
  font-size: 1rem;
}

textarea {
  height: 10em;
}

.dialog-maximize {
  display: none;
}

.brand-logo {
  max-width: 100%;
  margin-bottom: 20px;
}

.progress {
  text-align: center;
  margin-bottom: 2em;
}

.progress progress {
  margin-right: 10px;
}

.question {
  font-size: 1.3rem;
  margin-bottom: 20px;
  line-height: 130%;
}

.StaticText, .MultipleChoiceQuestion, .TextInputQuestion, .QuestionGroup {

}

.MultipleChoiceQuestion .answers {
  list-style: none;
  padding: 0px;
  margin: 0px;
  display: block;
}

.MultipleChoiceQuestion .answers li {
  list-style: none;
  margin: 10px 0px;
  display: block;
}

.MultipleChoiceQuestion .answers label {
  padding-left: 30px;
  position: relative;
  display: block;
}

.MultipleChoiceQuestion .answers input {
  position: absolute;
  left: 0px;
  top: -2px;
}

.GisPointQuestion, .GisRouteQuestion {

}

.QuestionGroup > div {
  margin-bottom: 25px;
}

.QuestionGroupChildQuestions .question {
  font-size: 1.1rem;
}

.MatrixQuestion table {
  width: 100%;
  border-collapse: collapse;
}

.MatrixQuestion table th,
.MatrixQuestion table td {
  text-align: center;
  border-bottom: 1px solid #aaa;
  padding: 5px 10px;
}

.MatrixQuestion table .matrix-question-question {
  text-align: left;
}

.error {
  color: #f95c07;
  margin-bottom: 1em;
}

.legal {
  position: absolute;
  left: 0px;
  bottom: 0px;
  font-size: 0.8rem;
  z-index: 2500;
  background: white;
}

.legal a {
  color: #1c6e93;
  text-decoration: none;
  display: inline-block;
  padding: 5px 10px;
}

/**/

/* SURVEY ACTIONS */
.survey-actions {
  z-index: 1000;
  text-align: right;
  position: fixed;
  bottom: 10%;
  right: 10px;
  transition: all 250ms ease-in-out;
}

.hide-actions .survey-actions {
  right: -300px;
}

.survey-actions div {
  margin-bottom: 10px;
}

.action-button {
  width: 55px;
  height: 55px;
  border-radius: 30px;
  border-style: none;
  color: transparent;
  box-sizing: border-box;
  transition: all 50ms ease-in-out;
  font-weight: bold;
  box-shadow: 0px 0px 0px 3px rgba(255,255,255,0.6);
  background-color: #e2e2e2;
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: 12px 12.5px;
  cursor: pointer;
}

.action-button:hover {
  width: auto;
  color: black;
  padding: 0 25px 0 55px;
}
.button-route {
  background-image: url('../images/button_route.svg');
}

.button-finish {
  background-color: #24c470;
  background-image: url('../images/button_finish.svg');
}

.button-help {
  background-image: url('../images/button_help.svg');
}

.button-route:hover, .button-finish:hover {
  color: white;
}

/* MODAL */
.dialog-modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  overflow: auto;
}

.dialog-modal.minimized,
.dialog-not-modal {
  position: fixed;
  bottom: 0;
  padding: 10px 10px 0px 10px;
  left: 0;
  right: 0;
  z-index: 3000;
  overflow: auto;
  top: unset;
  background: transparent;
}

.dialog-modal.minimized .dialog-header {
  padding: 20px;
  text-align: center;
}

.dialog-modal.minimized .dialog-minimize,
  .dialog-modal.minimized .dialog-close {
  display: none;
}

.dialog-modal.minimized .dialog-maximize {
  display: inline-block;
}

.dialog-container {
  background: white;
  box-shadow: 0px 0px 5px #333;
}

.dialog-header {
  text-align: right;
  padding: 20px 20px 0px 20px;
  margin-bottom: -20px;
}

.dialog-header .dialog-minimize,
.dialog-header .dialog-close {
  width: 30px;
  height: 30px;
  border: 1px solid #aaa;
  background: white;
  border-radius: 5px;
  border: 1px solid #aaa;
  margin-left: 10px;
  cursor: pointer;
}

.dialog-header .dialog-minimize {
  font-size: 0px; 
  background: white url('../images/button_minimize.svg') no-repeat center center;
  background-size: 15px 15px;
}

.dialog-header .dialog-close {
  font-size: 0px; 
  background: white url('../images/button_close.svg') no-repeat center center;
  background-size: 15px 15px;
}

.dialog-body img {
  max-width: 100%;
  height: auto;
}

.dialog-not-modal .dialog-container {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.dialog-not-modal .dialog-body {
  padding: 20px 20px 0px 20px;
}

@media(min-width: 800px) {
  .dialog-not-modal .dialog-body {
    padding: 30px 200px 0px 200px;
    margin-bottom: -60px;
  }  
}

.dialog-modal .dialog-container {
  width: 90%;
  max-width: 1000px;
  position: relative;
  margin: 4rem auto;
  border-radius: 10px;
}

.dialog-modal .dialog-body {
  padding: 20px 20px 10px 20px ;
}

.dialog-modal.minimized .dialog-body,
.dialog-modal.minimized .dialog-footer {
  display: none;
}

.dialog-footer {
  padding: 10px 20px 20px 20px;
  display: flex;
}

.dialog-footer > div {
  flex: 1;
}

.dialog-footer > div:last-child {
  text-align: right;
}

.dialog-button {
  font-weight: bold;
  border-radius: 3px;
  padding: 10px 20px;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.dialog-button-next {
  background: #24c470;
  color: white;
  margin-right: 10px;
}

.dialog-button-prev {
  background: #ddd;
  color: #333;
}

.dialog-button-delete {
  background: #d0323d;
  color:white;
}