*,
* > * {
  padding: 0;
  margin: 0;
}

body {
  background: darkgrey;
}

header {
  padding: 5px 10px;
  box-sizing: border-box;
}

main {
  max-width: 800px;
  min-height: 500px;

  & menu {
    background-color: rgb(87, 87, 87);
    padding: 30px 20px;
    box-sizing: border-box;
    margin-bottom: 20px;

    & button {
      padding-top: 10px;
      padding-bottom: 10px;

      margin-bottom: 20px;
      border-radius: 10px;
      font-size: 1rem;
    }

    & #btnClear {
      background-color: rgba(201, 0, 0, 0.482);
      color: #fff;
    }

    & > div {
      width: inherit;
      display: flex;
      flex-direction: column;

      & p,
      & span {
        color: #fff;
        margin-bottom: 10px;
      }

      & .rangeContainer {
        width: 100%;
        margin-bottom: 30px;
        padding: 0 40px;
        box-sizing: border-box;

        & input {
          width: 100%;
        }
      }

      & .teclado {
        display: none;
      }
    }
  }

  section {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: start;

    & canvas {
      background: #fff;
      width: 300px;
      height: 300px;
    }
  }
}

footer {
  padding: 0 20px;
  box-sizing: border-box;
  padding-left: 40px;
  margin-top: 20px;
  margin-bottom: 5rem;
}

@media screen and (min-width: 550px) {
  menu {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;

    & > div {
      width: 510px;
    }
  }
}

@media screen and (min-width: 800px) {
  header {
    height: 50px;
  }

  main {
    display: flex;
    flex-direction: row-reverse;
    margin: 1rem auto 3rem auto;

    & menu {
      justify-content: start;
      margin-bottom: 0;

      & > div {
        & .rangeContainer {
          padding: 0;
        }

        & .teclado {
          display: block;
        }
      }
    }

    & section {
      flex: 1;
      padding: 0 20px;

      & .pantalla {
        display: flex;

        & canvas {
          width: 500px;
          height: 500px;
        }
      }
    }
  }

  footer {
    margin: 0;
    height: 120px;
  }
}
