* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  background-color: whitesmoke;
}

/****** BODY FADE IN ANIMATION ******/
body {
  -webkit-animation: fadeInAnimation ease 0.5s;
  animation: fadeInAnimation ease 0.5s;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@-webkit-keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/****** TOP HEADER ******/
.topheader {
  padding: 5px;
  font-size: xx-small;
  text-align: center;
  letter-spacing: 3px;
  background-color: slategrey;
  color: #fff;
}

.topheader2 {
  padding: 5px;
  font-size: xx-small;
  text-align: center;
  letter-spacing: 3px;
  background-color: slategrey;
  color: #fff;
  display: none;
}

/****** HEADER ******/
.header {
  height: 80px;
  padding-left: 10px;
  background-color: #fff;
  border-bottom: 5px solid #4f608b;
  display: flex;
  justify-content: space-between;
}

.logo img {
  width: 261px;
  height: 80px;
}

/****** NAVIGATION ******/
.nav {
  margin-top: 27px;
  margin-right: 40px;
  overflow: hidden;
}

.nav li {
  display: inline;
  padding: 10px;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: bold;
}

.nav li a {
  padding-bottom: 5px;
  color: #4f608b;
}

.nav li a:hover {
  border-bottom: 3px solid #9d240f;
}

li.currentpage a {
  color: #9d240f;
  border-bottom: 3px solid #9d240f;
}

/* Responsive icon */
.nav .icon {
  display: none;
  font-size: x-large;
}

@media screen and (max-width: 900px) {
  .nav li a {
    display: none;
  }

  .nav {
    margin: 20px 10px 0 0;
  }

  .topheader {
    display: none;
  }

  .topheader2 {
    display: block;
  }

  .nav a.icon {
    float: right;
    display: block;
  }

  .nav a.icon:hover {
    text-decoration: none;
  }
}

@media screen and (max-width: 900px) {
  .nav.responsive {
    position: relative;
  }

  .nav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .nav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

@media screen and (max-width: 376px) {
  .header {
    height: 60px;
  }

  div.logo img {
    width: auto;
    height: 60px;
  }

  .nav li {
    padding: 0;
  }

  .nav {
    margin-top: 11px;
  }

  .nav:hover {
    text-decoration: none;
  }
}

/* The Overlay (background) */
#myNav.overlay {
  height: 100%;
  width: 100%;
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  background-color: black;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }

  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

/******************************** CONTENT **********************************************/

input {
  outline: #818181;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

section h1 {
  margin: 20px auto 0;
  text-align: center;
  color: #d1d1d1;
  font-weight: 300;
  font-size: 2rem;
}

@media screen and (max-width: 900px) {
  section h1 {
    font-size: 1.4rem;
  }
}

.row {
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  justify-content: center;
  margin: 0 auto;
  flex-direction: row;
}

@media screen and (max-width: 900px) {
  .row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.box {
  width: 320px;
  height: 720px;
  border: 1px solid #c1c1c1;
  margin: 10px;
  padding: 10px;
  border-radius: 5px;
  line-height: 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.box label {
  font-size: small;
  color: #777;
}

input.input {
  height: 2.3rem;
  outline: none;
  border: none;
  font-size: 18px;
  text-align: center;
  width: 100%;
  border-radius: 5px;
}

.res {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.res label {
  margin-bottom: 5px;
  font-size: small;
  color: #777;
}

.table {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-content: space-between;
  width: 100%;
}

tr {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  height: 2.6rem;
  width: 100%;
}

th {
  background-color: #e1e1e1;
  font-size: small;
  text-align: center;
  font-weight: normal;
  width: 50%;
  height: auto;
  color: #777;
}

.topleft {
  border-top-left-radius: 5px;
  width: 70.57px;
}

.bottomleft {
  border-bottom-left-radius: 5px;
}

.bottomright {
  border-bottom-right-radius: 5px;
}

th:nth-child(2) {
  width: 196.19px;
  margin-right: -13px;
  }

td {
  background-color: #fff;
  width: 100%;
  height: 100%;
}

.cell {
  height: 100%;
  border: 1px solid #e1e1e1;
  font-size: 18px;
  text-align: center;
  width: 100%;
}

#resHeader{
  line-height: 1.4rem;
  margin-bottom: 15px;
}

.box.results {
  height: 320px;
  justify-content: center;
  margin: -10px auto 10px;
}

.res {
  border: 1px solid #e1e1e1;
  height: 2.6rem;
  font-size: 18px;
  text-align: center;
}

#res1 {
  font-size: 25px;
}



button {
  width: 280px;
  height: 50px;
  border-radius: 5px;
  border: 1px solid #d1d1d1;
  font-size: large;
  letter-spacing: 1px;
  cursor: pointer;
  color: #c1c1c1;
}

button:hover {
  background-color: #708090;
  color: #fff;
}

.info {
  max-width: 640px;
  height: auto;
  padding: 20px 20px;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  font-size: small;
  background-color: #fff;
  line-height: 1.5rem;
  margin-bottom: 50px;
}

.info-items {
  padding-left: 2rem;
}

.info p {
  margin-bottom: 0.5rem;
}

/******************************** END CONTENT **********************************************/

/****** FOOTER ******/
footer {
  display: block;
  background-color: lightslategrey;
  padding: 5px;
  text-align: center;
  font-size: x-small;
  letter-spacing: 1px;
  color: #fcf7f8;
}
