@font-face {
  font-family: 'Carandache';
  src: url('./assets/carandache-office-sans-black.otf') format('opentype'); /* or .ttf and format('truetype') */
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: "Dejavu", sans-serif;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(./assets/background.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -1;
  filter: blur(5px);
  transform: scale(1.05); /* avoid visible edges from blur */
}

.container {
  width: 600px;
  height: 570px;
  background-color: #f5f3ef;
  border-radius: 18px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50% ,-50%);
}

.title {
  text-align: center;
  margin-top: 35px;
}

.title h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.password {
  position: relative;
  width: 90%;
  margin: 30px auto 0 auto;
}

.password-text {
  width: 100%;
  height: 90px;
  padding: 12px 90px 20px 20px;
  font-size: 35px;
  border: none;
  background-color: #eceae8;
  outline: none;
  border-radius: 18px;
}

.password button {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  height: 35%;
  width: 14%;
  padding: 0 10px;
  border: none;
  background-color: black;
  color: white;
  cursor: pointer;
  font-size: 20px;
  border-radius: 12px;
}

#copy {
  right: 45px;
  margin-right: 70px;
}

#repeat {
  right: 5px;
  margin-right: 20px;
}

#copy:hover, #repeat:hover {
  background-color: rgba(0, 0, 0, 0.664);
}

.status-box {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 30px;
  font-size: 16px;
  font-weight: 500;
  background-color: #fff3cd;
  color: #aa8412;
  border-radius: 12px;
  padding: 10px 20px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings {
  width: 90%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Carandache', sans-serif;
  font-size: 20px;
  color: #333;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-row.vertical {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #ccc;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: black;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: black;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: black;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.range-value {
    position: absolute;
    right: 0;
    margin-right: 30px;
    font-weight: bold;
}