﻿.box {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 76vh;
}

.housing {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.headerr {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between elements */
    margin-bottom: 20px;
}

.key-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Padding doesn't increase total width */
    font-size: 1em;
    text-align: center;
    transition: border-color 0.3s;
}

    .key-input:focus {
        border-color: #007bff; /* Highlight on focus */
        outline: none;
    }

.generate-btn {
    background-color: #007bff;
    color: white;
    /*padding: 12px 20px;*/
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.1s;
    height: 46px;
}

    .generate-btn:hover {
        background-color: #0056b3;
    }

    .generate-btn:active {
        transform: scale(0.98);
    }
.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #0077ff;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

    .download-btn:hover {
        background: #005fcc;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    }

    .download-btn:active {
        background: #004da8;
        transform: translateY(0);
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

/* --- Responsive Styles --- */
@media (min-width: 600px) {
    /* On wider screens, place textbox and button side-by-side */
    .input-group {
        flex-direction: row;
        align-items: center;
    }

    .key-input {
        flex-grow: 1; /* Textbox takes up most of the space */
        margin-right: 10px;
    }

    .generate-btn {
        width: auto; /* Button size adjusts to content */
        min-width: 120px;
    }
}

@media (max-width: 400px) {
    /* Smaller screens adjustments */
    .headerr {
        font-size: 1.5em;
    }

    .housing{
        padding: 20px;
    }
}
