* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
}

.background {
    display: block;
    width: 100%;
    max-width: 450px;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    object-fit: fill;
    object-position: top center;
}

.button {
    position: absolute;
    left: 50%;
    bottom: calc(5.5% + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(88%, 500px);
    max-width: 500px;
    z-index: 10;
    padding: 0 8px;
}

#downloadButton {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 400px;
    height: auto;
    cursor: pointer;
    display: block;

}





@media (max-width: 430px) {
    .button {
        bottom: calc(4% + env(safe-area-inset-bottom, 0px));
        width: min(94%, 500px);
        gap: 8px;
        padding: 0 6px;
    }

    #downloadButton,
    #telegramButton {
        max-width: none;
    }
}

@media (max-width: 390px) {
    .button {
        bottom: calc(3.5% + env(safe-area-inset-bottom, 0px));
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .button {
        bottom: calc(3% + env(safe-area-inset-bottom, 0px));
        width: 96%;
        gap: 5px;
        padding: 0 4px;
    }
}

@media (max-height: 700px) {
    .button {
        bottom: calc(2.5% + env(safe-area-inset-bottom, 0px));
    }
}