/* entire document styles */
:root {
  --background-color: #202124;
  --primary-color: #e8eaed;
  --second-color: #3c4043;
  --third-color: #5f6368;
}
* {
  color: var(--primary-color);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-family: arial, sans-serif;
  background-color: var(--background-color);
}
body {
  width: fit-content;
  margin: 0 auto;
}

/* <fieldset> tag styles */
fieldset {
  margin: 10px;
  border: 3px double var(--primary-color);
  border-radius: 10px;
  padding: 2.5px;
}

/* <a> tag styles */
a {
  color: #8ab4f8;
  text-decoration: none;
}
a:visited {
  color: #c58af9;
}
a:hover {
  text-decoration: underline;
}

/* error field styles */
#error_field {
  width: 100%;
  height: 150px;
  overflow-y: auto;
  margin: 10px;
}

/* history styles */
#history_field {
  margin: 0 15px;
}
.history_record {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--second-color);
  align-items: center;
}

/* buttons section */
div#buttons {
  display: flex;
  justify-content: space-between;
}

/* <input> and <select> tag styles */
select {
  padding: 4px 0px 4px 5px;
  border-radius: 14px;
  cursor: pointer;
  margin: 2.5px 0;
}
input, select {
  outline: none;
  background-color: var(--background-color);
  border: 1px var(--second-color) solid;
}

input[type="number"] {
  padding: 5px 10px;
  border-radius: 14px;
  margin: 2.5px 0;
}
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="button"] {
  background-color: var(--second-color);
  border: 1px solid var(--second-color);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  margin: 2.5px;
}
input:hover, select:hover, input:focus, select:focus {
  border: 1px var(--third-color) solid;
}
@media screen and (max-width: 550px) {
  input {
  width: 100%;
  }
  select {
  width: 100%;
  }
}
