@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,700&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  color: hsl(240, 25%, 95%);
  background: hsl(240, 25%, 20%);
  font-family: 'IBM Plex Mono', monospace;
  padding: 3rem;
}
/* absolute position the icon in the top left corner of the heading */
h1 {
  position: relative;
  font-size: 2.25rem;
  padding: 0.25rem;
  font-weight: 400;
}
.icon {
  position: absolute;
  top: 0%;
  right: 100%;
  transform: translateY(-50%);
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: hsla(240, 25%, 50%, 0.3);
}
.icon svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px hsla(240, 25%, 0%, 0.5));
}

/* display the input in a wrapping row
flip the hue for the color and background
*/
form {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: hsl(240, 25%, 20%);
  background: hsla(240, 25%, 95%, 1);
  padding: 1rem 1.25rem;
  border-radius: 5px;
  width: 100%;
  max-width: 800px;
}
/* display the text for the label and the input element in a column */
form label {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 2;
}
/* remove the default background and border in favor of a border-òeft */
form label input {
  font-size: 1.1rem;
  color: inherit;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  border-left: 0.25rem solid currentColor;
}
/* remove the default background and border from the button */
form button {
  align-self: flex-end;
  background: none;
  border: none;
  color: inherit;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.25rem;
  /* margin: 0.25rem 0; */
}

form button svg {
  display: block;
  width: 100%;
  height: 100%;
}
