body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    color: #007BFF;
}

.software-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.software-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    padding: 20px;
    text-align: center;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.software-item:hover {
    transform: translateY(-5px);
}

.software-item img {
    max-width: 100px;
    height: auto;
}

.description {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.password-prompt {
    position: relative;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-prompt input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.password-prompt .toggle-password {
    position: absolute;
    right: -40px;
    top: calc(50%); /* Adjust to give a slight gap between input and button */
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 5px 5px 0;
}

.download-btn {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
    width: fit-content;
    margin: 20px auto;
}

.download-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .software-item {
        width: 90%;
    }

    .popup-content {
        align-items: center;
    }

    .password-prompt {
        flex-direction: row;
        justify-content: center; /* Center the entire password prompt */
        gap: 10px;
        position: relative;
    }

    .password-prompt input {
        width: auto; /* Allow the input to shrink to fit its content */
        text-align: center; /* Center the text inside the input field */
    }

    .password-prompt .toggle-password {
        position: absolute;
        right: -40px;
        top: calc(50%); /* Adjust to give a slight gap between input and button */
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1;
        background-color: #f4f4f4;
        padding: 10px;
        border: 1px solid #ddd;
        border-left: none;
        border-radius: 0 5px 5px 0; /* Slight adjustment to eliminate gap */
    }
}
