@font-face {
  src: url("jedi.otf");
  font-family: Jedi;
}
:root{
  
  --lightsaber-handle: #777777;
  --lightsaber-glow: #ff0000;
  --lightsaber-blade: #ff6666;

}


body {
  margin: 0;
  background-image: url(dark-images/darkmode.png);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}
h1 {
  font-family: Jedi;
  font-weight: bold;
  font-size: 80px;
  font-weight: 800;
  line-height: 60px;
  width: 1000px;
  margin-top: 200px;
  margin-bottom: 0;
  color: #decd11;
  text-shadow: 5px 5px 2px black;
  text-align: center;
  line-height: 5rem;
  letter-spacing: 0.25rem;
}

#title-details {
  color: #9e2a2b;
  text-shadow: 2px 1px 1px #540b0e;
}

#title-glow {
  background: linear-gradient(45deg, #decd11, #ff4500, #4b0082);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

h2 {
  color: #d5d4d8;
  height: 28px;
  margin-left: 52px;
  font-weight: 400px;
  font-size: 25px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.generate-password {
  width: 191px;
  height: 42px;
  margin-top: 30px;
  margin-bottom: 50px;
  border-radius: 20px;
  padding: 9px 15px;
  gap: 12px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: inset 5px -5px 3px rgba(0, 0, 0, 0.5);
  border-bottom: 2px;
  background: linear-gradient(to right, #decd11, #ff4500, #4b0082);
}

.options {
  color: #9e2a2b;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.option-one,
.option-two {
  background-color: white;
  width: 211px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  text-shadow: 1px 1px 1px black;
  box-shadow: inset 5px -5px 3px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}
.option-two {
  box-shadow: inset -5px -5px 3px rgba(0, 0, 0, 0.5);
}
.option-one:hover,
.option-two:hover,
.generate-password:hover {
  opacity: 60%;
  transform: scale(1.05);
}

.option-one::before,
.option-two::before {
  content: "Click to copy";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.option-one:hover::before,
.option-two:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.card {
  margin-top:40px;
 color: #d5d4d8;
  padding: 0 50px;
  height:50px;
  border-radius: 10px;
  display:flex;
  flex-direction:row;
  justify-content: center;
  align-items: center;
  gap:20px;
  background-color: rgba(0, 0, 0, 0.5);
}
.rainbow-button {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 40px;
  padding: 10px 20px;
  margin:20px;
  margin-bottom: 80px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.28px solid transparent;
  transition: transform 0.2s;
  background-image: 
    linear-gradient(#fff, #fff),
    linear-gradient(#fff 50%, rgba(255,255,255,0.6) 80%, rgba(0,0,0,0)),
    linear-gradient(90deg, 
    #decd11, #ff4500, #4b0082
      );
  background-size: 200%;
  background-clip: padding-box, border-box, border-box;
  background-origin: border-box;
}
.rainbow-button::after {
  
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lightsaber-glow), transparent);
  transition: width 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .rainbow-button {
    background-image: 
      linear-gradient(#121213, #121213),
      linear-gradient(#121213 50%, rgba(18,18,19,0.6) 80%, rgba(18,18,19,0)),
      linear-gradient(90deg, 
      #decd11, #ff4500, #4b0082
      );
  }
}

.rainbow-button::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  z-index: 0;
  height: 20%;
  width: 60%;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
  #decd11, #ff4500, #4b0082
  );
  filter: blur(12.8px);
  animation: rainbow 4s linear infinite;
}

.rainbow-button:hover {
  transform: scale(1.05);
}

.rainbow-button:active {
  transform: scale(0.95);
}




.button-text {
  margin-left: 4px;
  color: white;
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.lightsaber {
  position: absolute;
  left: 50%;
  top: 530px;
  transform: translateY(-50%) rotate(90deg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.lightsaber-handle {
  width: 10px;
  height: 80px;
  background: linear-gradient(to right, #444, var(--lightsaber-handle), #444);
  border-radius: 4px;
  position: relative;
}

.lightsaber-handle::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -2px;
  width: 14px;
  height: 10px;
  background-color: #333;
  border-radius: 3px;
}

.lightsaber-handle::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -2px;
  width: 14px;
  height: 10px;
  background-color: #333;
  border-radius: 3px;
}

.lightsaber-blade {
  width: 6px;
  height: 0;
  background-color: var(--lightsaber-blade);
  border-radius: 3px;
  box-shadow: 0 0 10px 2px var(--lightsaber-glow);
  transition: height 0.5s ease;
  position: relative;
  top: -2px;
}

.lightsaber.active .lightsaber-blade {
  height: 200px;
}


