@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap&subset=latin-ext');

body {
  font-family: 'Roboto', sans-serif;
}

h1 {
  text-align: center;
  font-size: 2rem;
}

h2 {
  text-align: center;
  font-size: 1.2rem;
}

fieldset {
  margin-top: 1rem;
}

fieldset legend {
  margin-left: -0.4rem;
  font-size: 1.2rem;
}

.mw-800 {
  max-width: 800px;
}

a.flag {
  display: inline-block;
  width: 40px;
  height: 30px;
  text-indent: -10000px;
  margin: 5px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -moz-box-shadow:    inset 0 0 3px #555;
  -webkit-box-shadow: inset 0 0 3px #555;
  box-shadow:         inset 0 0 3px #555;
}
a.flag:hover {
  -moz-box-shadow:    inset 0 0 5px #555;
  -webkit-box-shadow: inset 0 0 5px #555;
  box-shadow:         inset 0 0 5px #555;
}
a.flag:active {
  -moz-box-shadow:    inset 0 0 5px #222;
  -webkit-box-shadow: inset 0 0 5px #222;
  box-shadow:         inset 0 0 5px #222;
}

#lang-hu { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"%3E%3Cg fill-rule="evenodd"%3E%3Cpath fill="%23fff" d="M640 480H0V0h640z"/%3E%3Cpath fill="%23388d00" d="M640 480H0V320h640z"/%3E%3Cpath fill="%23d43516" d="M640 160.1H0V.1h640z"/%3E%3C/g%3E%3C/svg%3E%0A'); }
#lang-en { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"%3E%3Cpath fill="%23012169" d="M0 0h640v480H0z"/%3E%3Cpath fill="%23FFF" d="M75 0l244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0h75z"/%3E%3Cpath fill="%23C8102E" d="M424 281l216 159v40L369 281h55zm-184 20l6 35L54 480H0l240-179zM640 0v3L391 191l2-44L590 0h50zM0 0l239 176h-60L0 42V0z"/%3E%3Cpath fill="%23FFF" d="M241 0v480h160V0H241zM0 160v160h640V160H0z"/%3E%3Cpath fill="%23C8102E" d="M0 193v96h640v-96H0zM273 0v480h96V0h-96z"/%3E%3C/svg%3E%0A'); }
#lang-de { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"%3E%3Cpath fill="%23ffce00" d="M0 320h640v160H0z"/%3E%3Cpath d="M0 0h640v160H0z"/%3E%3Cpath fill="%23d00" d="M0 160h640v160H0z"/%3E%3C/svg%3E'); }
#lang-fr { background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480"%3E%3Cg fill-rule="evenodd" stroke-width="1pt"%3E%3Cpath fill="%23fff" d="M0 0h640v480H0z"/%3E%3Cpath fill="%2300267f" d="M0 0h213.3v480H0z"/%3E%3Cpath fill="%23f31830" d="M426.7 0H640v480H426.7z"/%3E%3C/g%3E%3C/svg%3E%0A'); }

input[type=date].empty:not(:focus) {
  color: transparent;
}

.form-label-group > input,
.form-label-group > select {
  /* margin-top: 1.5rem; */
  padding-top: 1.25rem;
  padding-bottom: .25rem;
}

.form-label-group > select {
  padding-left: .5rem;
}

.form-label-group {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 0 !important;
  padding-right: 1rem !important;
}

.form-label-group > label {
  position: absolute;
  top: .45rem;
  left: .75rem;
  display: block;
  width: 100%;
  margin: 0;
  line-height: 1.5;
  color: #495057;
  pointer-events: none;
  cursor: text; /* Match the input under the label */
  transition: all .1s ease-in-out;
}

.form-label-group input::-webkit-input-placeholder {
  color: transparent;
}

.form-label-group input:-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-moz-placeholder {
  color: transparent;
}

.form-label-group input::placeholder {
  color: transparent;
}

.form-label-group input:required ~ label::after,
.form-label-group select:required ~ label::after,
span.required {
  content: '*';
  font-weight: 500;
  margin-left: 2px;
  color: darkred;
}
span.required {
  font-size: 1rem;
}

.form-label-group input:focus ~ label,
.form-label-group select:focus ~ label {
  top: 0;
  font-weight: 500;
  font-size: .85rem;
  color: #777;
}

.form-label-group input:not([type=date]):not(:placeholder-shown) ~ label {
  top: 0;
  font-weight: 500;
  font-size: .85rem;
  color: #777;
}

.form-label-group input[type=date]:not(.empty) ~ label,
.form-label-group select:not(.empty) ~ label {
  top: 0;
  font-weight: 500;
  font-size: .85rem;
  color: #777;
}

input:-webkit-autofill ~ label,
input:-webkit-autofill:focus ~ label,
input:-webkit-autofill:hover ~ label,
input:-webkit-autofill:active ~ label,
select:-webkit-autofill ~ label,
select:-webkit-autofill:focus ~ label,
select:-webkit-autofill:hover ~ label,
select:-webkit-autofill:active ~ label {
  top: 0;
  font-weight: 500;
  font-size: .85rem;
  color: #777;
}

/* Fallback for Edge
-------------------------------------------------- */
@supports (-ms-ime-align: auto) {
  .form-label-group > label {
    display: none;
  }
  .form-label-group input::-ms-input-placeholder {
    color: #777;
  }
}

/* Fallback for IE
-------------------------------------------------- */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .form-label-group > label {
    display: none;
  }
  .form-label-group input:-ms-input-placeholder {
    color: #777;
  }
}