* {
    box-sizing: border-box;
  }

body {
    padding: 20px;
    margin: 10px;
    background-color: whitesmoke;
}

.container {
    border-radius: 10px;
    border: 1px solid teal;
    margin-left: auto;
    margin-right: auto;
    /* Wider than the original 400px: the pickers now read "USD — United States
       Dollar" instead of a bare code, which will not fit in half of 400px. */
    max-width: 560px;
    padding: 0px 24px 24px 24px;
    justify-content: center;
    align-items: center;
    display: block;
    box-shadow: 16px 16px 21px -14px rgba(0,0,0,0.21);
    -webkit-box-shadow: 16px 16px 21px -14px rgba(0,0,0,0.21);
    -moz-box-shadow: 16px 16px 21px -14px rgba(0,0,0,0.21);
    /* background-color: #67bde6; */
    background-color: #6B7A8F;
}

form#currency-converter {
    display: grid;
     grid-template-columns: 1fr 1fr 1fr 1fr;
     grid-template-rows: 1fr 1fr 1fr 1fr;
}

h1#app-title {
    text-align: center;
    /* background: floralwhite; */
    background: #F7882F;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

input,select {
    margin: 5px;
    /* Was padding: 0 with the field spanning only columns 3-4, so the text sat
       flush against the border and long currency names were cut off. Column 2
       was empty anyway — give it to the field. */
    padding: 7px 9px;
    grid-column: 2 / span 3;
    min-width: 0;
    border-radius: 3px;
    border: 1px solid teal;
    background: #F7C331;
    font-size: 1rem;
}

/* The datalist arrow and long values both need room; stop the browser's default
   size attribute from squeezing the field. */
input[list] {
    width: 100%;
}

button.submit {
  grid-column: 2/span 2;
  margin-top: 20px;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid teal;
  background: #DCC7AA;
}

#final-result, #from-value {
    font-size: 1.4rem;
    text-align: center;
}

.result {
    text-align: center;
    font-family: Consolas, monaco, monospace;
    /* font-family: "Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace; */
}

label {
    grid-column: 1 / span 1;
    align-self: center;
    /* color: white; */
}

.name-tag {
    font-size: 11px;
    margin-top: 5px;
    color: white
}