:root {
  --modal-duration: 1s;
  --modal-color: #428bca;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  margin: 10% auto;
  width: 40%;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  animation-name: modalopen;
  animation-duration: var(--modal-duration);
}

.modal-header h2,
.modal-footer h3 {margin: 0; color: #fff;}
.modal-header {
  background: var(--modal-color);
  padding: 15px; color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.modal-body {padding: 10px 20px; background: #fff;}
.modal-footer {
/*background: var(--modal-color); padding: 10px; color: #fff;text-align: center;*/
  background: #fff; padding: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.close {color: #ccc; float: right; font-size: 30px; color: #fff;}
.close:hover, .close:focus {color: #000; text-decoration: none; cursor: pointer;}

/*
.form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
*/
.form input, .form select {
  font-family: "Roboto", sans-serif; font-size: 14px; outline: 0; background: #f2f2f2;
  width: 100%; border: 0; margin: 0 0 15px; padding: 15px;
  box-sizing: border-box;
}
.form select {padding: 5px;}
.form button {
  font-family: "Roboto", sans-serif; text-transform: uppercase; font-size: 14px; outline: 0; background: #4CAF50;
  width: 100%; border: 0; padding: 15px; color: #FFFFFF;
  -webkit-transition: all 0.3 ease;
  transition: all 0.3 ease;
  cursor: pointer;
}
.form button:hover,.form button:active,.form button:focus {background: #43A047;}
.form .message {margin: 15px 0 0; color: #b3b3b3; font-size: 12px;}
.form .message a {color: #4CAF50; text-decoration: none;}
.form .register-form {display: none;}

@keyframes modalopen {
  from {opacity: 0;}
  to {opacity: 1;}
}