@font-face {
    font-family: 'BlenderPro';
    src: url('../fonts/BlenderPro-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'BlenderPro';
    src: url('../fonts/BlenderPro-Thin.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

body {
    font-family: 'BlenderPro', sans-serif;
    font-weight: 300;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 950px;
    text-align: center;
    font-weight: 300;
    box-sizing: border-box;
}

h1 {
    color: #6e1f68;
    font-size: 1.8em;
    font-weight: bold;
}

input[type="text"],
input[type="number"] {
    width: calc(100% - 24px);
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'BlenderPro', sans-serif;
}

/* General button styles */
button {
    background-color: #6e1f68;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-family: 'BlenderPro', sans-serif;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Hover effect for buttons */
button:hover {
    background-color: #5a1452;
}

/* Specific styles for button-group layout */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.button-group button {
    flex: 1 1 200px; /* Ensure minimum size to fit comfortably */
    max-width: 200px; /* Keeps buttons consistent in size */
}

/* Ensure modal buttons match the general button styles */
.modal-content button {
    width: 100%;
    margin-top: 10px;
}

.result-container {
    background-color: #fff;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.9em;
}

th {
    background-color: #6e1f68;
    color: white;
    font-weight: bold;
    font-family: 'BlenderPro', sans-serif;
}

td {
    background-color: #f9f9f9;
}

table tr:nth-child(even) td {
    background-color: #f1f1f1;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.record-table td {
    border: none;
    padding: 4px;
}

.record-table tr td:first-child {
    font-weight: bold;
    color: #333;
}

/* Modal styles */
#timerModal, #passwordModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding-top: 20%;
    font-family: 'BlenderPro', sans-serif;
    box-sizing: border-box;
}

#timerDisplay, #generatedPassword {
    font-size: 24px;
}

.modal-content {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    text-align: left;
    max-width: 90%;
    width: 400px;
    font-family: 'BlenderPro', sans-serif;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.styled-input {
    width: 90%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    font-size: 1em;
    font-family: 'BlenderPro', sans-serif;
}

.styled-input:focus, input[type="text"]:focus, input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .button-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .button-group button {
        flex: 1 1 calc(33.33% - 12px); /* 3 buttons per row */
    }
}

@media (max-width: 900px) {
    .button-group button {
        flex: 1 1 calc(50% - 12px); /* 2 buttons per row */
    }
    input[type="text"], input[type="number"], .styled-input {
        width: 100%;
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 90%;
        padding: 15px;
    }

    #timerDisplay, #generatedPassword {
        font-size: 20px;
    }

    .button-group button {
        flex: 1 1 100%; /* Full width on small screens */
        max-width: none;
    }
}

@media (max-width: 400px) {
    .button-group button {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 1.4em;
    }
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    background-color: #f4f4f9;
    font-size: 0.9em;
    color: #333;
    width: 100%;
    position: relative; /* Ensure it stays at the bottom without overlapping */
    bottom: 0;
    left: 0;
    box-sizing: border-box;
}

.footer p, .footer a {
    margin: 0;
    padding: 5px;
}

.footer a {
    color: #6e1f68;
    text-decoration: none;
    margin: 0 5px;
}

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

/* Ensure body stretches and allows footer to position correctly */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between; /* Pushes content and footer apart */
}
