/*======================================================================
GLOBAL STYLES
=======================================================================*/
body {
  background: url(images/final-fantasy.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-size: 100% 100%;
  font-family: "Fira Sans", sans-serif;
}

#title,
#survey-form,
.container {
  text-align: center;
}

/*======================================================================
GLOBAL STYLES
=======================================================================*/
.container,
#discription {
  border: 1px solid black;
}

.container {
  max-width: 10in;
  background: rgba(204, 204, 204, 0.8);
  margin: auto;
  padding: 1px;
}

/*======================================================================
Form styling
=======================================================================*/
#title {
  font-size: 30px;
  padding: 0.3em 0em;
  color: rgb(1, 1, 26);
  text-shadow: 1px 0px 1px #ccc, 0px 1px 1px #eee, 2px 1px 1px #ccc,
    1px 2px 1px #eee, 3px 2px 1px #ccc, 2px 3px 1px #eee, 4px 3px 1px #ccc,
    3px 4px 1px #eee, 5px 4px 1px #ccc, 4px 5px 1px #eee, 6px 5px 1px #ccc,
    5px 6px 1px #eee, 7px 6px 1px #ccc;
}

#survey-form {
  font-size: 18px;
  padding: 25px;
  background-repeat: no-repeat;
  background-size: auto;
}

#description,
.button {
  font-size: 20px;
  font-weight: bold;
}

#name-field,
#age-label,
#email-field,
#password-field,
#age,
#radio-buttons,
#dropdown,
#textarea,
#checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: 0.3em;
}

#radiolist,
label {
  text-align: left;
  padding-top: 4px;
}

label {
  width: 100%;
  padding-left: 4px;
}

input[name="name"],
input[name="age"],
input[name="email"],
input[name="password"],
textarea[name="textarea"] {
  width: 90%;
  padding: 4px;
}

select {
  width: 50%;
  padding: 4px;
}

div {
  margin-bottom: 10px;
}

.button {
  background-color: rgb(5, 33, 44);
  padding: 8px 16px;
  border-radius: 2px;
  border: none;
  color: white;
  cursor: pointer;
}

.button:hover {
  background-color: grey;
}

/*======================================================================
Responsive Styles
=======================================================================*/
@media (min-width: 1281px) {
  #title {
    font-size: 40px;
  }

  #name-field,
  #age,
  #email-field,
  #password-field,
  #dropdown,
  #radio-buttons,
  #textarea,
  #checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
    padding-bottom: 10px;
  }

  input[name="name"],
  input[name="age"],
  input[name="email"],
  input[name="password"]
  textarea[name="textarea"] {
    width: 100%;
    max-width: 90%;
    padding: 4px;
    outline: none;
    border-radius: 5px;
  }

  div {
    margin-bottom: 18px;
  }
}