.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

.button {
    display: inline-block;
    margin: 0.625rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    width: 100%;
    max-width: 12.5rem;
    text-align: center;
    color: white;
}

.alert-button {
    background-color: #007BFF;
}

.confirm-button {
    background-color: #28A745;
}

.prompt-button {
    background-color: #FFC107;
}

.custom-button {
    background-color: #DC3545;
}

@media (max-width: 1440px) {
    .button-group {
        gap: 0.6rem;
    }
    .button {
        margin: 0.6rem;
        padding: 0.7125rem 1.425rem;
        font-size: 0.8125rem;
        max-width: 11.875rem;
    }
}

@media (max-width: 1024px) {
    .button-group {
        gap: 0.575rem;
    }
    .button {
        margin: 0.575rem;
        padding: 0.675rem 1.35rem;
        font-size: 0.75rem;
        max-width: 11.25rem;
    }
}

@media (max-width: 768px) {
    .button-group {
        gap: 0.55rem;
        flex-direction: column;
        align-items: center;
    }
    .button {
        margin: 0.55rem;
        padding: 0.6375rem 1.275rem;
        font-size: 0.6875rem;
        max-width: 10.625rem;
    }
}

@media (max-width: 600px) {
    .button {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .button {
        margin: 0.525rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.675rem;
        max-width: 9.375rem;
    }
}

@media (max-width: 375px) {
    .button {
        margin: 0.5rem;
        padding: 0.5625rem 1.125rem;
        font-size: 0.625rem;
        max-width: 7.8125rem;
    }
}
