:root {
  --background-gradient: linear-gradient(to right, #18222d, #1a2530);
  --text-color: #94c0dc;
  --focus-color: #2980b9;
  --hover-color: #27ae60;
  --submit-color: #1a2530;
}

@import url('https://fonts.googleapis.com/css?family=Inconsolata:400,700');

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 80%;
}

[type=submit], [type=text],
[type=email],
textarea, label {
  border-radius: 5px;
}

form {
  border-radius: 5px;
  background: var(--background-gradient);
  box-shadow: inset 3px 3px 15px -5px rgba(0, 0, 0, 0.1);
  padding: 2em;
}

[type=submit] {
  background: var(--submit-color);
  display: inline-block;
  padding: 0.3em 1em 0.5em;
  cursor: pointer;
  background: var(--background-gradient);
  box-shadow: inset 3px 3px 15px -5px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  color: var(--hover-color);
  border: 1px solid rgba(41, 128, 185, 0.3);
  font-size: 90%;
}
[type=submit]:focus {
  background: #3498db;
  color: white;
}
[type=submit]:hover {
  background: var(--hover-color);
  color: white;
}
[type=submit]:active {
  background: var(--submit-color);
  color: white;
}

input,
textarea, label {
  transition: all 0.2s ease-out;
}
input:hover,
textarea:hover, label:hover {
  transition: all 0.2s ease-in;
}

* {
  position: relative;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

*,
body {
  font-family: 'Inconsolata', sans-serif;
  font-weight: 400;
}

body {
  font-size: 19px;
  line-height: 1.3em;
  background: linear-gradient(to left, #1d2835, #1f2b38);
  color: var(--text-color);
}

legend {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: var(--focus-color);
}

label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-20%) translateY(50%);
  background: rgba(26, 37, 48, 0.5);
  border: 1px solid rgba(41, 128, 185, 0.5);
  padding: 0 1em 0.2em;
  cursor: pointer;
  transform-origin: 0 0;
}

input,
textarea {
  font-size: 100%;
}
input:focus,
textarea:focus {
  outline: none;
  border: 1px solid var(--focus-color);
  background: #1a2530;
  box-shadow: inset 3px 3px 10px 0 rgba(0, 0, 0, 0.1);
}
input:focus + label, input.active + label,
textarea:focus + label,
textarea.active + label {
  background: var(--focus-color);
  transform: translateX(-20%) translateY(-50%);
}

::-webkit-input-placeholder {
  color: rgba(41, 128, 185, 0.3);
}

[type=text],
[type=email],
textarea {
  border: none;
  background: inherit;
  color: var(--text-color);
  border: 1px solid rgba(41, 128, 185, 0.3);
  padding: 1em 0.5em 0.5em;
  width: 100%;
  -webkit-filter: blur(5px);
}
[type=text]:focus, [type=text].active,
[type=email]:focus,
[type=email].active,
textarea:focus,
textarea.active {
  -webkit-filter: blur(0px);
}

.control {
  margin-bottom: 1.3em;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2em;
    border-radius: 5px;
    position: relative;
    width: 80%;
    max-width: 500px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
}
