/*
----------------------------------------------------
© A 723.nl project - All rights reserved 2009-2025
All cool kids from the 90's know how to code.
----------------------------------------------------
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1e1e1e;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 20px;
  width: 100%;
}

.logo {
  max-width: 100px;
}

main {
  max-width: 800px;
  max-height: 700px !important;
  width: 90%;
  margin: 20px auto;
  padding: 25px;
  background-color: #2c2c2c;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  flex: 1;
}

h1 {
  font-size: 1.3em;
  font-style: italic;
  text-align: center;
  color: #FE7636;
  /* color: #fda300; */
  margin-bottom: 20px;
}

h4 {
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
  color: #FE7636;
  margin-bottom: 20px;
}

.alert-warning {
  color: #fff;
  height: 7rem !important;
  width: 100% !important;
  border: none !important;
  border-radius: 0px !important;
  background: #181818 !important;
  text-align: center !important;
}

.btn-outline-warning {
  cursor: pointer !important;
  color: #fff !important;
  border-color: #FE7636 !important;
}

.btn-outline-warning:hover {
  content: "";
  -webkit-transform: translateY(-1px) all 500ms ease;
	transform: translateY(-1px);
  background: #FE7636 !important;
}

.madeby a {
  color: #ff864e;
  text-decoration: none;
}

.madeby a:hover {
  color: #fc8d59;
  border-bottom: 2px solid #fc8d59;
  text-decoration: none;
}

.password-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

#password-output {
  width: 85%;
  padding: 15px;
  font-size: 1.2rem;
  border: 2px solid #444;
  border-radius: 10px;
  background-color: #1e1e1e;
  color: #fff;
  outline: none;
}

#copy-password {
  padding: 15px;
  background-color: #FE7636;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

#copy-password:hover {
  background-color: #FE7636;
}

.slider-container {
  margin-bottom: 30px;
}

#password-length {
  width: 100%;
  margin-top: 10px;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #444;
  border-radius: 5px;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#password-length:hover {
  opacity: 1;
}

#password-length::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #FE7636;
  border-radius: 50%;
  cursor: pointer;
}

#password-length::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #FE7636;
  border-radius: 50%;
  cursor: pointer;
}

.option {
  background-color: #1e1e1e;
  border: 3px solid #FE7636 !important;
  border-radius: 10px;
  padding: 15px;
}

.label-text {
  font-size: 1.1rem;
  white-space: nowrap;
  margin-right: 15px;
}

.label-text i {
  margin-right: 8px;
  color: #FE7636;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #FE7636;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

#generate-password {
  width: 100%;
  padding: 15px;
  background-color: #FE7636;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

#generate-password:hover {
  background-color: #fc8d59;
  -webkit-transform: translateY(-1px);
	transform: translateY(-1px);
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px;
  width: 90%;
  background-color: #333;
  color: #fff;
  padding: 15px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#cookie-banner a {
  color: #FE7636;
  text-decoration: none;
  transition: border-bottom 0.3s ease;
}

#cookie-banner a:hover {
  border-bottom: 2px solid #FE7636;
}

#cookie-banner button {
  background-color: #FE7636;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#cookie-banner button:hover {
  background-color: #e59400;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: #fff;
  width: 100%;
  margin-top: auto;
}

footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

footer ul li {
  margin: 0 15px;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #FE7636;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background-color: #2c2c2c;
  margin: 10% auto;
  padding: 25px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.modal.show .modal-content {
  opacity: 1;
  transform: translateY(0);
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  transition: color 0.3s ease;
}

.close:hover {
  color: #FE7636;
}

/* Popup Notification */
.popup {
  position: fixed;
  top: 20px; /* Show at the top */
  left: 50%;
  transform: translateX(-50%);
  background-color: #FE7636;
  color: #fff;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.popup.show {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    width: 90%; /* Responsive width */
    margin: 20px auto;
    padding: 20px;
  }

  h4 {
    font-size: 1.5rem;
  }

  .password-display {
    flex-direction: column;
    gap: 15px;
  }

  #password-output {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h4 {
    font-size: 1.3rem;
  }

  #password-output {
    font-size: 1rem;
  }

  #copy-password,
  #generate-password {
    font-size: 1rem;
    padding: 10px;
  }

  .label-text {
    font-size: 1rem;
  }
}
