@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
* {
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #e9e9e3;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes full height of the viewport */
    margin: 0;
}

header {
    background-color: #0c233f;
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px; /* Reduce padding */
    position: absolute;
    top: 0;
}

header img {
    width: 15%; /* Reduce logo size */
    height: auto; /* Maintain aspect ratio */
}

nav {
    margin-top: 10px; /* Space between logo and nav */
}

nav ul {
    list-style: none; /* Remove bullet points */
    display: flex; /* Flexbox for horizontal layout */
    justify-content: center; /* Center the navigation items */
    padding: 0; /* Remove default padding */
}

nav ul li {
    margin: 0 15px; /* Space between each link */
}

nav ul li a {
    text-decoration: none; /* Remove underline from links */
    color: #fff; /* Link color */
    font-weight: bold; /* Make links bold */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

nav ul li a:hover {
    color: #5a6c81; /* Change color on hover */
}

main {
    flex: 1; /* Allow main content to take remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    margin-bottom: 20px;
}

.container p {
    padding-top: 10px;
    padding-bottom: 10px;
}

.password-box {
    margin-bottom: 15px;
}

#password, #otpSecureLinkInput, #otpPasswordInput {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 18px;
    text-align: center;
}

#copyBtn, #copyOtpLinkBtn, #generateBtn, #generateOtpLinkBtn {
    padding: 14px;
    margin: 10px 5px;
    background-color: #0c233f;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

#copyBtn:hover, #copyOtpLinkBtn:hover, #generateBtn:hover, #generateOtpLinkBtn:hover {
    background-color: #5a6c81;
}

/* Container for strength meter and controls */
.strength-controls-container {
    display: flex;
    flex-direction: column; /* Stack strength meter on top, controls below */
    justify-content: center; /* Center them horizontally */
    align-items: center; /* Center both sections */
    margin-top: 20px;
}

/* Strength Meter Styles */
.strength-meter {
    display: flex;
    align-items: center; /* Keep bar and text on the same line */
    gap: 10px; /* Space between bar and text */
    margin-bottom: 15px; /* Add space below the strength meter */
}

#strengthBar {
    width: 200px;
    height: 10px;
    border-radius: 5px;
    background-color: lightgrey;
    transition: background-color 0.3s;
}

#strengthText {
    font-weight: bold;
}

/* Controls Styling */
.controls {
    display: flex;
    align-items: center; /* Keep label, slider, and input on the same line */
    gap: 10px; /* Space between label, slider, and number input */
}

.controls input[type="range"] {
    width: 150px; /* Adjust width of the range slider */
}

.controls input[type="number"] {
    width: 50px; /* Adjust width of the number input */
}


/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: red;
}

footer {
    background-color: #e9e9e3;
    color: black;
    text-align: center;
    padding: 10px;
    position: relative;
    width: 100%;
}

footer a {
    text-decoration: none;
    color: black;
}

@media (max-width: 768px) {
    header img {
        width: 50%;
    }

    .container {
        width: 90%;
    }

    #password, #otpSecureLinkInput, #otpPasswordInput {
        width: 100%;
    }
}
