body {
  margin: 0;
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;

  background-image: url("/assets/images/background-image.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

section {
  background-color: navy;
  padding: 15px;
  border-radius: 8px;
}

aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  padding-bottom: 5px;
}

.btn {
  width: 150px;
  height: 100px;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 8px;
}

.btnNumber {
  background-color: whitesmoke;
}

.btnOperator {
  background-color: blanchedalmond;
}

.btnEqual {
  background-color: darkturquoise;
}

.btnClear {
  width: 80px;
  height: 80px;
  background-color: salmon;
  color: white;
}

#input-field,
#result {
  border: 1px solid black;
  background-color: cadetblue;
  color: white;
  text-align: right;
  border-radius: 8px;
  padding-right: 5px;
}

#result {
  width: 515px;
  height: 80px;
  font-size: 2rem;
}

#input-field {
  font-weight: bold;
  width: 600px;
  height: 80px;
  font-size: 2.5rem;
}

aside:nth-child(2) {
  padding-bottom: 8px;
}

.btnClear,
#result {
  vertical-align: middle;
}

.btnNumber:hover {
  color: white;
  background-color: slateblue;
}

.btnOperator:hover {
  color: white;
  background-color: cornflowerblue;
}

.btnEqual:hover {
  color: white;
  background-color: yellowgreen;
}

.btnClear:hover {
  background-color: orangered;
}

#result.bold-and-large-text {
  font-weight: bold;
  font-size: 4rem;
}

@media (max-width: 768px) {
  section {
    padding: 12px;
  }

  .btn {
    font-size: 1.5rem;
    width: 100px;
    height: 60px;
    border-radius: 7px;
  }

  #input-field {
    font-size: 1.8rem;
  }

  #input-field,
  #result {
    height: 50px;
  }

  #result.bold-and-large-text {
    font-size: 3rem;
  }

  #result {
    width: 345px;
    font-size: 1rem;
  }

  #input-field {
    width: 400px;
  }

  .btnClear {
    width: 50px;
    height: 50px;
  }

  #result.bold-and-large-text {
    font-size: 3rem;
  }

  aside {
    gap: 2.5px;
    padding-bottom: 3px;
  }

  aside:nth-child(2) {
    padding-bottom: 6.5px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 9px;
  }

  #input-field {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 1.2rem;
    width: 80px;
    height: 50px;
    border-radius: 6px;
  }

  #input-field,
  #result {
    height: 40px;
  }

  #result.bold-and-large-text {
    font-size: 2rem;
  }

  #result {
    width: 273px;
    font-size: 0.8rem;
  }

  #input-field {
    width: 315px;
  }

  .btnClear {
    width: 40px;
    height: 40px;
  }

  aside {
    gap: 1.8px;
    padding-bottom: 2px;
  }

  aside:nth-child(2) {
    padding-bottom: 5px;
  }
}

@media (max-width: 375px) {
  section {
    padding: 6px;
  }

  #input-field {
    font-size: 1.2rem;
  }

  .btn {
    font-size: 1rem;
    width: 60px;
    height: 40px;
    border-radius: 5px;
  }

  #input-field,
  #result {
    height: 30px;
  }

  #result.bold-and-large-text {
    font-size: 1.7rem;
  }

  #result {
    width: 200px;
    font-size: 0.6rem;
  }

  #input-field {
    width: 230px;
  }

  .btnClear {
    width: 30px;
    height: 30px;
  }

  aside {
    gap: 1.2px;
    padding-bottom: 0.8px;
  }

  aside:nth-child(2) {
    padding-bottom: 4px;
  }
}
