@import url("https://fonts.googleapis.com/css2?family=Muli:wght@400;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  font-family: "Muli", sans-serif;
  background-color: #3b3b98;
  color: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  padding: 0.6rem;
}

h2 {
  margin: 0.6rem 1.2rem;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.container {
  background-color: #23235b;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  padding: 1.2rem 1.8rem;
  width: 29.5rem;
  max-width: 100%;
  border-radius: 5px;
}

.result-container {
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 0.5rem 0.7rem;
  height: 2.14rem;
  position: relative;
}
.result-container .btn {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 2rem;
  max-height: 100%;
  width: 2rem;
  font-size: 1.05rem;
  margin: 0.08rem;
}
.result {
  word-wrap: break-word;
  max-width: calc(100% - 2.1rem);
  font-weight: bold;
}

.btn {
  border: none;
  background-color: #3b3b98;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  background-color: rgb(70, 70, 156);
}

.btn:focus,
.length:focus {
  outline: none;
}

.btn-large {
  display: block;
  background-color: hsl(240, 49%, 20%);
  box-shadow: 0 3px 5px rgb(71, 71, 160, 0.3);
  width: 100%;
  padding: 0.5rem;
  border-radius: 500px;
  font-family: inherit;
}

.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
}

.length {
  background-color: #3b3b98;
  border: none;
  border-radius: 5px;
  color: #fff;
  width: 3.1rem;
  padding: 0.2rem 0.2rem 0.2rem 0.6rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: bold;
}
.uppercase,
.lowercase,
.numbers,
.symbols {
  width: 1.1rem;
  height: 1.1rem;
}

@media (orientation: portrait) {
  .result {
    font-size: 0.8rem;
  }
}
