body {
  margin: 0;
  padding: 0;
  height: 100%;
  font: 13px Helvetica, Arial, sans-serif;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.msg {
  font-size: 1.4em;
}

/* Login and Logout buttons */
.btn-login, .btn-logout {
  background-color: #4CAF50;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 12px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1.4em;
  cursor: pointer;
}
.btn-logout {
  background-color: #AF4C50;
}

/* Navigation bar */
/* http://css-snippets.com/simple-horizontal-navigation/ */
nav {
  background-color: #03787C;
  align-items: center;
  z-index: 200;
}
nav ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}
nav li {
  font-size: 1.2em;
  line-height: 40px;
  height: 40px;
  border-bottom: 1px solid #888;
}
nav a {
  text-decoration: none;
  color: #fff;
  display: block;
  transition: .3s background-color;
}
nav a:hover {
  background-color: #005f5f;
}
nav a.active {
  background-color: #fff;
  color: #444;
  cursor: default;
}
@media screen and (min-width: 600px) {
  body {
    /* navbar fixed top */
    margin-top: 50px;
  }
  nav {
    /* navbar fixed top */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  nav ul {
    display: inline-block;
    float: right;
  }
  nav li {
    min-width: 180px;
    border-bottom: none;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    /* display inline */
    display: inline-block;
    float: left;
  }
  nav a {
    padding: 0px 10px;
  }
  nav div.info {
    display: inline-block;
    height: 50px;
    line-height: 50px;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  nav .title {
    display: inline-block;
    color: #ffb;
    font-size: 1.6em;
    padding: 0px 30px;
    margin: 0;
  }
  nav img {
    display: inline-block;
  }
}

/* Drop down */

nav li.dropdown {
  min-width: 32px;
  border-bottom: none;
}
nav li.dropdown a {
  text-transform: uppercase;
}
nav li.dropdown li {
  min-width: 32px;
  display: block;
  float: none;
  font-size: 1em;
}
nav li.dropdown ul {
  background-color: #03787C;
  position: absolute;
  top: 100%;
  display: none;
}
nav li.dropdown:hover ul {
  display: block;
}

/* Spinner (https://www.w3docs.com/snippets/css/how-to-create-loading-spinner-with-css.html) */

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin {
  animation: spin 1.5s linear infinite;
  border: solid 5px #cfd0d1;
  border-bottom-color: #1c87c9;
  border-radius: 50%;
  display: inline-block;
  height: 50px;
  width: 50px;
}
#waiting {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(170, 170, 170, 0.4);
  text-align: center;
  z-index: 210;
}
#waiting-block {
  margin-top: 160px;
  margin-left: auto;
  margin-right: auto;
  width: 200px;
  text-align: center;
}

/* Main */

.page {
  text-align: center;
}

.page-main {
  background-color: #e3f0f0;
  font-family: Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;
  margin-top: 70px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  width: 840px;
}
.page-head {
  background-color: #03787C;
  color: #fff;
  font-size: 1rem;
  padding: 40px;
}
.page-title {
  font-size: 2rem;
  margin-bottom: 20px;
}
.page-body {
  font-size: 1rem;
  padding: 20px 40px;
}
.page-body p {
  margin-bottom: 10px;
  margin-top: 10px;
}
.div-logout {
  background-color:white;
  padding:1rem 0;
  text-align:center;
}

.legend {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
.redstar {
  font-size: 1rem;
  color: red;
}
.required {
  font-size: 0.8rem;
  color: red;
}
.question {
  margin-bottom: 0.5rem;
}
.answer {
  display: block;
  font-size: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}
.field {
  display: block;
  margin-top: 0.5rem;
}
label.field span {
  padding-left: 0.5rem;
}

.page-main textarea {
  resize: none;
}
.page-main button {
  background-color: #03787C;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 12px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: .9rem;
  cursor: pointer;
}
.page-main button.btn-prev {
  background-color: white;
  color: black;
  margin-right: 10px;
}
.page-main button:disabled {
  background-color: #98C8C9;
  cursor: inherit;
}
