

/* open-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v40-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('../fonts/open-sans-v40-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/open-sans-v40-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('../fonts/open-sans-v40-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
         url('../fonts/open-sans-v40-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
         url('../fonts/open-sans-v40-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
  }

/* Reset default margin & padding */
html, body {
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(0deg, rgba(225, 225, 225, 1) 0%, rgba(180, 180, 180, 1) 100%);
    color: #333;
    padding: 20px;
}

/* Main Container */
.container {
    background: rgba(245, 245, 245, 0.9); /* Softer white with slight transparency */
    padding: 30px;
    box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid rgba(200, 200, 200, 0.6);
}

/* Heading */
h1 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    color: #222;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }
}

/* Input Container */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Fieldset & Labels */
fieldset {
    border: 1px solid rgba(180, 180, 180, 0.6);
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: #444;
}

/* Input Fields */
input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(170, 170, 170, 0.6);
    background-color: #f2f2f2;
    box-sizing: border-box;
    color: #333;
    outline: none;
    transition: border 0.2s ease-in-out, background 0.2s ease-in-out;
}

input:focus {
    border-color: #666;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(100, 100, 100, 0.2);
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

/* Buttons */
button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    text-align: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.08);
}

/* Muted Button Colors for a Softer Look */
button:first-child { /* Generate Password */
    background-color: #5a80b1; /* Muted Blue */
}

button:nth-child(2) { /* Reset Password */
    background-color: #6aa76d; /* Muted Green */
}

button:last-child { /* Copy Password */
    background-color: #c05b5b; /* Muted Red */
}

button:hover {
    filter: brightness(95%);
}

button:active {
    transform: scale(0.98);
}

/* Result Display */
#result-container:empty:before {
    content: attr(data-placeholder);
    color: #777;
}

#result-container {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    color: #5a80b1;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(90, 128, 177, 0.3);
    border: 1px solid rgba(200, 200, 200, 0.6);
    word-break: break-word;
}

/* Footer */
.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.footer a {
    color: #000;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 500px) {
    .container {
        width: 100%;
        padding: 20px;
    }
}
