* {
  box-sizing: border-box;
}

html,
body {
  font-family: helvetica, arial, sans-serif;
  font-size: 14px;
  color: #aaa;
  background-color: #111;
  margin: 0;
  padding: 0;
  font-weight: 300;
}

body {
  padding-top: 42px;
}

ul {
  list-style: none;
  margin: 5px 0;
  padding: 0;
}

a {
  color: #ca8113;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

select {
  cursor: pointer;
}

input {
  margin: 0;
}

label {
  display: block;
  width: 100%;
  margin: 10px auto;
}

label input {
  margin-top: 5px;
}

input,
select {
  display: block;
  -webkit-appearance: none;
  border: 1px solid #555;
  border-radius: 2px;
  padding: 0 10px;
  height: 30px;
  font-size: 14px;
  width: 100%;
  background-color: #fafafa;
}

select {
  padding-right: 30px;
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) 50%;
  background-size: 12px auto;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMCA3LjMzbDIuODI5LTIuODMgOS4xNzUgOS4zMzkgOS4xNjctOS4zMzkgMi44MjkgMi44My0xMS45OTYgMTIuMTd6Ii8+PC9zdmc+');
}

h1,
h2,
p,
li,
hr {
  margin: 10px 0;
}

h1 {
  font-size: 18px;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ca8113;
}

h2 {
  font-size: 16px;
  font-weight: 500;
}

hr {
  height: 0;
  border: none;
  border-bottom: 1px solid #555;
}

p,
pre,
label {
  margin-top: 2px;
}

pre {
  white-space: normal;
  word-wrap: break-word;
}

button {
  appearance: none;
  border-radius: 0;
  border: none;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  padding: 5px 20px;
  min-width: 150px;
}

button.primary {
  color: #fff;
  background-color: #186a96;
}

button:hover {
  color: #333;
  background-color: #ca8113;
}

strong {
  font-weight: normal;
  color: #ca8113;
}

.highlight {
  color: #ca8113;
}

.inputs {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  padding-top: 10px;
}

.inputs > input,
.inputs > select {
  flex: 1 1 0;
  flex-basis: 100%;
  width: 100%;
  margin-right: 10px;
  margin-bottom: 10px;
}

@media all and (min-width: 480px) {
  .inputs > select {
    flex-basis: 0;
    min-width: 200px;
  }
}

@media all and (min-width: 640px) {
  .inputs > select {
    min-width: auto;
  }
}

@media all and (min-width: 768px) {
  .inputs > input {
    flex-basis: 0;
  }
}

.error,
.could-not-find-matching {
  color: #ea4e4e;
}

.header,
.wrapper {
  padding: 0 10px;
}

.header {
  position: fixed;
  width: 100%;
  height: 42px;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  border-bottom: 1px solid #555;
  background-color: rgba(17, 17, 17, 0.98);
  color: #ca8113;
  z-index: 100;
}

.header h1 {
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  margin-right: 5px;
}

h1 span,
h1 img {
  vertical-align: middle;
}

.wrapper {
  margin: 0 auto;
  max-width: 1024px;
}

.completed > span {
  display: inline-block;
  margin-right: 10px;
  white-space: nowrap;
  margin-bottom: 5px;
}

.completed > span:last-child {
  margin-right: 0;
}

.achievement {
  display: flex;
  flex-direction: row;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #555;
  border-radius: 2px;
}

.achievement h2 {
  margin: 5px 0 2px 0;
}

.achievement p {
  margin: 2px 0 5px 0;
}

.info {
  flex-grow: 1;
}

.completion {
  display: flex;
  align-items: center;
}

.completion svg {
  display: inline-block;
  margin-right: 5px;
}

.completion svg:last-child {
  margin-right: 0;
}

.icon-tick {
  fill: #7dbb11;
}

.icon-cross {
  fill: #ea4e4e;
}

.complete {
  border-color: #9b6412;
}

.complete h2 {
  color: #ca8113;
}

.image {
  display: inline-block;
  margin-right: 10px;
  width: 46px;
  height: 46px;
  border: 1px solid #555;
}

.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 10px;
  z-index: 1000;
}

.modal .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 0;
}

.modal .content {
  margin: auto;
  width: 100%;
  max-width: 480px;
  z-index: 1;
}

.modal form {
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  border: 1px solid #555;
  background-color: #111;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.5);
  margin: 20px auto;
  padding: 0 10px;
}

.button-container {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.button-container button {
  margin-bottom: 10px;
}

@media all and (min-width: 480px) {
  .button-container {
    flex-direction: row-reverse;
  }

  .button-container button:last-child {
    margin-right: 10px;
  }
}

.modal-transition-enter,
.modal-transition-appear,
.modal-transition-exit-done {
  opacity: 0;
}

.modal-transition-enter-active,
.modal-transition-appear-active {
  opacity: 0.9;
  transition: ease-in-out opacity 300ms;
}

.modal-transition-enter-done,
.modal-transition-appear-done {
  opacity: 1;
}

.modal-transition-exit {
  opacity: 1;
}

.modal-transition-exit-active {
  opacity: 0.1;
  transition: ease-in-out opacity 300ms;
}
