/* General Styles */
body {
    font-family: 'Press Start 2P', sans-serif; /* Pixelated font */
    text-align: center;
    margin: 0;
    padding: 20px;
    background-color: #1e1e2e; /* Dark modern background */
    color: #f8f8f2; /* Soft white text */
}

/* Container Styling */
.container {
    max-width: 600px;
    margin: 0 auto;
    background: #282a36; /* Slightly lighter background for contrast */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    border: 2px solid #6272a4; /* Pixelated border look */
}

/* Password Input and Button */
.password-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    padding: 10px;
    font-size: 16px;
    width: calc(100% - 120px);
    box-sizing: border-box;
    border: 2px solid #6272a4;
    border-radius: 5px;
    background: #44475a;
    color: #f8f8f2;
    outline: none;
}

input:focus {
    border-color: #8be9fd; /* Glow effect on focus */
}

#toggle-password {
    padding: 10px;
    font-size: 14px;
    background-color: #50fa7b;
    color: #282a36;
    border: 2px solid #6272a4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Press Start 2P', sans-serif;
}

#toggle-password:hover {
    background-color: #ff79c6; /* Modern pink hover */
    color: #f8f8f2;
}

/* Progress Bar */
.progress-container {
    margin: 10px 0;
}

progress {
    width: 100%;
    height: 20px;
    border: none;
    background-color: #44475a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

progress::-webkit-progress-bar {
    background-color: #44475a;
}

progress::-webkit-progress-value {
    transition: width 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

.weak progress::-webkit-progress-value {
    background-color: #ff5555; /* Red */
}

.moderate progress::-webkit-progress-value {
    background-color: #f1fa8c; /* Yellow */
}

.strong progress::-webkit-progress-value {
    background-color: #50fa7b; /* Green */
}

.very-strong progress::-webkit-progress-value {
    background-color: #FFD700; /* Gold */
}

/* Feedback Display */
pre {
    line-height: 2;
    background: #282a36;
    padding: 20px;
    margin-top: 10px;
    border-radius: 5px;
    text-align: left;
    overflow-x: auto;
    white-space: pre-wrap; /* Keeps newlines */
    word-wrap: break-word; 
    border: 2px solid #6272a4;
    color: #f8f8f2;
    font-family: 'Press Start 2P', sans-serif;
    
    /* Add these for better readability: */
    line-height: 1.6;  /* Increase line spacing */
    margin-bottom: 20px; /* Space after the pre block */
}

.pixel-lock {
    width: 50px;       /* Adjust as needed */
    height: 50px;      /* Adjust as needed */
    margin-right: 10px; /* Optional spacing to the right */
    vertical-align: left;
    image-rendering: pixelated; /* Preserves that ‘pixel art’ style if you want */
}

.nav-link {
    color: #50fa7b;
    text-decoration: none;
    font-size: 14px;
    padding: 8px;
    border: 2px solid #6272a4;
    border-radius: 5px;
    transition: all 0.3s;
  }
  
  .nav-link:hover {
    background-color: #99d877;
    color: #000000;
  }

.crack-container {
    background-color: #2e2e38;
    border: 2px dashed #bd93f9;
}

.crack-container h1 {
    color: #ff79c6;
}

.crack-input input {
    border-color: #ff79c6;
}

.crack-input button{
    background-color: #bd93f9;
    border-color: #ffb86c;
    color: #282a36;
}

#crackProgress::-webkit-progress-value {
    background-color: #ff79c6;
    transition: width 0.3s ease;
}

.crack-container pre {
    border: 2px solid #ff79c6;
    background-color: #44475a;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow: auto;
}

#startCrack {
    padding: 10px;
    font-size: 14px;
    background-color: #ff79c6;
    color: #282a36;
    border: 2px solid #6272a4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Press Start 2P', sans-serif;
}

#startCrack:hover{
    background-color: #ff79c6;
    color: #f8f8f2; 
}

.button {
    padding: 10px;
    font-size: 14px;
    background-color: #50fa7b; /* Green */
    color: #282a36;
    border: 2px solid #6272a4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Press Start 2P', sans-serif;
  }
  .button:hover {
    background-color: #ff79c6; /* Pink on hover */
    color: #f8f8f2;
  }
  