@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: #e0e5ec;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.password-generator {
  background-color: #e0e5ec;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 20px 20px 60px #bebebe,
              -20px -20px 60px #ffffff;
  width: 300px;
}

.password-display,
.button {
  font-family: 'Open Sans', sans-serif;
  border: none;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: inset 8px 8px 8px #bebebe,
              inset -8px -8px 8px #ffffff;
  text-align: center;
}
.password-display {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
}
.button {
  width: 100%;
  background-color: #e0e5ec;
  color: #5e6367;
  cursor: pointer;
  font-size: 1rem;
}
.button:active {
  box-shadow: inset 4px 4px 5px #bebebe,
              inset -4px -4px 5px #ffffff;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}
.slider-container input[type="number"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    width: 50px;
    text-align: center;
    font-size: 1rem;
}
.slider-container input[type="range"] {
  margin-left: 10px;
  flex-grow: 1;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 1rem;
  background: #adc6ff;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}
.slider:hover {
    opacity: 1;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #3264fe;
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #3264fe;
    cursor: pointer;
}

input[type='number']:focus {
  outline: none;
  box-shadow: none;
  border: 1px solid #3264fe;
}

.options-section {
  margin-bottom: 1rem;
}

.option-label {
  display: block;
  margin: 0.5rem 0;
}

.checkbox-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkbox-container input[type="checkbox"] {
  -webkit-appearance: button;
  appearance: button;
  background-color: #e0e5ec;
  margin: 0 0.5rem;
  font: inherit;
  color: currentColor;
  width: 2em;
  height: 2em;
  border-radius: 0.5em;
  display: grid;
  place-content: center;
}
.checkbox-container input[type="checkbox"]::before {
  content: '';
  width: 1em;
  height: 1em;
  border-radius: 0.2em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
}

.checkbox-container input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.tooltip {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px; /* Use half of the width (120px/2) to center the tooltip */
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Tooltip visible state */
.tooltip.show {
  visibility: visible;
  opacity: 1;
}

footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content a img {
  width: 24px;
  height: auto;
  transition: transform 0.3s;
}

.footer-content a:hover img {
  transform: scale(1.1);
}