body {
  background: #000 url('/img/stars.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.twinkling {
  position: fixed;
  display: flex;
  justify-content: center;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: transparent url('/img/flicker.svg') repeat top center;
  animation: move-twink-back 600s linear infinite;
  overflow: hidden;
}

@keyframes move-twink-back {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -10000px 5000px;
  }
}

a {
  text-decoration: none;
}

.icon-container {
  z-index: 1;
  display: fixed;
  position: fixed;
  width: 40px;
}

.flex-container {
  position: absolute;
  top: 50vh;
  transform: translateY(-50%);
  max-height: 100vh;
  max-width: 100vw;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  margin: auto;
}

.logo {
  flex: 0.5;
  margin-bottom: 50px;
  padding: 5px;
  min-width: 300px;
}

.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form {
  flex: 1;
  background-color: #15172b;
  border-radius: 20px;
  padding: 10px;
  max-width: 899px;
  margin: 10px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.form-element {
  flex: 1;
  border: #303245 2px solid;
  border-radius: 20px;
  margin: 5px;
  padding: 10px;
  min-width: 200px;
}

h1 {
  margin-top: 0px;
  margin-bottom: 1px;
  color: #eee;
  font-family: sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

h2 {
  margin-top: 0px;
  color: #eee;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-align: center;
}

.input {
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  color: #eee;
  font-size: 16px;
  min-height: 30px;
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  padding: 0px 20px 0;
}

.button {
  background-color: #08d;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  cursor: pointer;
  font-size: 16px;
  margin-top: 12px;
  min-height: 30px;
  text-align: center;
  width: 100%;
}

.button:active {
  background-color: #06b;
}

.textarea {
  display: none;
  background-color: #303245;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  font-size: 18px;
  margin-top: 12px;
  height: 100px;
  width: 100%;
  text-align: center;
  resize: none;
  padding: 0px 20px 0;
  overflow-y: scroll;
}

.flex-container::-webkit-scrollbar {
  background-color: #22294a;
}

.flex-container::-webkit-scrollbar-track-piece {
  background-color: transparent;
}

.flex-container::-webkit-scrollbar-button:no-button {
  background-color: transparent;
}

.flex-container::-webkit-scrollbar-thumb {
  background-color: #06b;
  border-radius: 15px;
}

textarea::-webkit-scrollbar {
  background-color: #22294a;
  border-radius: 15px;
}

textarea::-webkit-scrollbar-track-piece {
  background-color: transparent;
}

textarea::-webkit-scrollbar-button:no-button {
  background-color: transparent;
}

textarea::-webkit-scrollbar-thumb {
  background-color: #06b;
  border-radius: 15px;
}

.button-calc {
  background-color: red;
  border-radius: 12px;
  border: 0;
  box-sizing: border-box;
  color: #eee;
  cursor: pointer;
  font-size: 18px;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  min-height: 40px;
  max-width: 400px;
  text-align: center;
  width: 100%;
}

.overlay-close-button {
  background-color: #08d;
  border-radius: 30px;
  color: #eee;
  cursor: pointer;
  font-size: 18px;
  height: 60px;
  width: 60px;
  text-align: center;
  margin: auto;
}

#map {
  display: none;
  position: absolute;
  border-radius: 12px;
  width: 96vw;
  height: 98vh;
  top: 46%;
  left: 47%;
  margin-top: -45vh;
  margin-left: -45vw;
}

.alerts-container {
  position: absolute;
  margin: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98vw;
}

.alert {
  flex: 1;
  margin: 10px;
  border-radius: 12px;
  padding: 12px;
  background-color: #f44336;
  color: white;
  text-align: center;
}

.alert-close-button {
  margin: auto;
  margin-left: 5px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
}

/* скрытие кнопок спинбокса */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* иначе нижний бар скрывает контент */
@media (max-width: 979px) {
  .button-calc {
    margin-bottom: 16vh;
  }
}