body {
    overflow: hidden;
    width: 100%;
}

* {
    max-width: 100%;
}

.app-container {
    width: 95%;
    margin: 0.5rem auto;
    overflow-x: hidden;
}

.password-display {
    flex-direction: column;
}

.copy-btn {
    width: 100%;
    height: 48px;
}

@media (min-width: 576px) {
    .app-container {
        width: 90%;
    }

    .password-display {
        flex-direction: row;
    }

    .copy-btn {
        width: auto;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .app-container {
        width: 24rem;
        max-width: 700px;
    }

    .password-generator {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    .app-container {
        max-width: 27rem;
    }

    .character-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .app-container {
        max-width: 30rem;
    }
}

@media (max-width: 375px) {
    .app-header h1 {
        font-size: 1.5rem;
    }

    .option label {
        font-size: 0.9rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .app-container {
        margin: 0.5rem auto;
    }

    .password-generator {
        padding: 1rem;
    }
}
