/* You can directly import the Google Fonts stylesheet in HTML instead of using @import in CSS */
/* @import url(https://fonts.googleapis.com/css?family=Merriweather); */

/* Define your color variable */
:root {
  --red: #e74c3c;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  background: #f1f1f1;
  font-family: "Merriweather", sans-serif;
  padding: 1em;
}

h1 {
  text-align: center;
  color: #a8a8a8;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
}

form {
  max-width: 600px;
  margin: 20px auto;
}

input,
textarea {
  border: 0;
  outline: 0;
  padding: 1em;
  border-radius: 8px;
  display: block;
  width: 100%;
  margin-top: 1em;
  font-family: "Merriweather", sans-serif;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  resize: none;
}

input:focus,
textarea:focus {
  box-shadow: 0 0px 2px rgba(var(--red), 1) !important;
}

label {
  display: block;
  color: #767676;
  margin-left: 0.5em;
  margin-top: 1em;
  font-family: "Merriweather", sans-serif;
  font-size: 13px;
  font-weight: bold;
}

#input-submit {
  color: white;
  background: var(--red);
  cursor: pointer;
}

#input-submit:hover {
  box-shadow: 0 1px 1px 1px rgba(170, 170, 170, 0.6);
}

textarea {
  height: 126px;
}

.half {
  float: left;
  width: 48%;
  margin-bottom: 1em;
}

.right {
  width: 50%;
}

.left {
  margin-right: 2%;
}

@media (max-width: 480px) {
  .half {
    width: 100%;
    float: none;
    margin-bottom: 0;
  }
}

/* Clearfix */
.cf::before,
.cf::after {
  content: " ";
  display: table;
}

.cf::after {
  clear: both;
}
