:root {
  --install-focus-color: #919c9c;
  --install-button-color: #0583d6;
  --modal-z-index: 9999;
  --background-z-index: 9998;
  --modal-background-color: #fff;
}

button {
    outline: 0
}

#installModalWrapper {
    height: 100vh;
    width: 100vw;
    overflow: auto;
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--modal-z-index);
    display: flex;
    justify-content: center;
    align-items: center
}

#descriptionWrapper {
    margin-bottom: 3em
}

#installModal {
    position: absolute;
    background: var(--modal-background-color);
    font-family: sans-serif;
    box-shadow: 0 25px 26px rgba(32, 36, 50, .25), 0 5px 9px rgba(51, 58, 83, .53);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 0;
    animation-name: opened;
    animation-duration: 150ms;
    z-index: var(--modal-z-index);
    max-width: 56em
}

@keyframes opened {
    from {
        transform: scale(.8, .8);
        opacity: .4
    }

    to {
        transform: scale(1, 1);
        opacity: 1
    }
}

@keyframes mobile {
    from {
        opacity: .6
    }

    to {
        opacity: 1
    }
}

@keyframes fadein {
    from {
        opacity: .2
    }

    to {
        opacity: 1
    }
}

#background {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #e3e3e3b0;
    backdrop-filter: blur(5px);
    z-index: var(--background-z-index);
    animation-name: fadein;
    animation-duration: 250ms
}

#headerContainer {
    display: flex;
    justify-content: space-between;
    margin: 40px;
    margin-bottom: 32px
}

#headerContainer h1 {
    font-size: 23px;
    font-weight: bold;
    color: #111 !important;
    margin-top: 20px;
    margin-bottom: 7px
}

#headerContainer img {
    height: 122px;
    width: 122px;
    background: #d3d3d3;
    border-radius: 10px;
    /*padding: 12px;*/
    margin-right: 24px
}

#buttonsContainer {
    display: flex;
    justify-content: flex-end;
    position: relative;
    height: 100px;
    background: #dedede75;
    width: 100%;
    right: 0;
    border-radius: 0 0 12px 12px
}

#installButton,
#installCancelButton,
#openButton {
    text-align: center;
    align-content: center;
    align-self: center;
    vertical-align: middle;
    justify-self: flex-end;
    line-height: 200%;
    flex: 0 0 auto;
    display: inline-block;
    background: #0078d4;
    color: #fff;
    cursor: pointer;
    border: solid 1px transparent;
    outline: 0
}

#openButton {
    background: var(--install-button-color)
}

#openButton:focus {
    outline: auto;
    outline: -webkit-focus-ring-color auto 1px
}

#installButton,
#installCancelButton {
    min-width: 130px;
    margin-right: 30px;
    background: var(--install-button-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    padding-top: 10px;
    padding-bottom: 9px;
    padding-left: 20px;
    padding-right: 20px;
    outline: 0;
    color: #fff
}

#closeButton {
    background: 0 0;
    border: none;
    color: #000;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 20px;
    font-weight: 600;
    outline: 0;
    cursor: pointer;
}

#closeButton:focus,
#installButton:focus,
#installCancelButton:focus {
    box-shadow: 0 0 0 3px var(--install-focus-color)
}

#contentContainer {
    margin-left: 40px;
    margin-right: 40px;
    flex: 1
}

#contentContainer h3 {
    font-size: 15px;
    color: #3c3c3c;
    margin-bottom: 12px;
    font-weight: bold;
    margin-top: revert;
}

#contentContainer p {
    font-size: 14px;
    color: #3c3c3c
}

#featuresScreenDiv {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-right: 20px
}

#featuresScreenDiv h3 {
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    line-height: 225%;
    margin-top: 0
}

#keyFeatures {
    overflow: hidden;
    padding-right: 2em
}

#keyFeatures ul {
    padding-inline-start: 22px;
    margin-block-start: 12px
}

#featuresScreenDiv #keyFeatures li {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 29px;
    color: rgba(51, 51, 51, .72)
}

#screenshotsContainer {
    max-height: 220px;
    display: flex;
    max-width: 30em
}

#screenshotsContainer button {
    border: none;
    width: 4em;
    transition: background-color .2s
}

#screenshotsContainer button:focus,
#screenshotsContainer button:hover {
    background-color: #bbb
}

#screenshotsContainer button svg {
    width: 28px;
    fill: #6b6969
}

#screenshots {
    display: flex;
    scroll-snap-type: x mandatory;
    flex-wrap: wrap;
    flex-direction: column;
    overflow-x: scroll;
    width: 22em;
    max-height: 220px;
    -webkit-overflow-scrolling: touch
}

#screenshots div {
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    height: 14em;
    width: 100%;
    background: #efefef
}

#screenshots img {
    height: 100%;
    object-fit: contain
}

#screenshots::-webkit-scrollbar {
    display: none
}

#tagsDiv {
    margin-top: 1em;
    margin-bottom: 1em
}

#desc {
    width: 100%;
    max-width: 40em;
    font-size: 14px;
    color: #7e7e7e;
    text-overflow: ellipsis;
    overflow: hidden
}

#logoContainer {
    display: flex
}

#tagsDiv span {
    background: grey;
    color: #ff7f50;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 4px;
    font-weight: 700;
    border-radius: 24px;
    margin-right: 12px;
    padding-top: 1px
}

#iosText {
    color: var(--install-button-color);
    text-align: center;
    font-weight: 700;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    background: rgba(239, 239, 239, .17);
    margin: 0;
    padding: 2em
}

#manifest-description {
  font-size: 0.95rem!important;
  font-family: sans-serif;
  line-height: 1.5rem;
  text-align: left;
}

@media (max-height:780px) {
    #buttonsContainer {
        height: 70px;
        background: 0 0
    }
}

@media (max-width:1220px) {
    #installModal {
        margin: 0;
        border-radius: 0;
        min-height: 100%;
        width: 100%;
        animation-name: mobile;
        animation-duration: 250ms
    }

    #screenshots {
        justify-content: center
    }
}

@media (max-width:962px) {
    #headerContainer h1 {
        margin-top: 0;
        margin-bottom: 0
    }

    #logoContainer {
        align-items: center
    }

    #desc {
        display: none
    }

    #headerContainer {
        margin-bottom: 24px
    }

    #headerContainer img {
        height: 42px;
        width: 42px
    }
}

@media (max-width:800px) {
    #background {
        display: none
    }

    #installModal {
        overflow: scroll;
        box-shadow: none;
        max-width: 100%;
        height: 100%
    }

    #screenshotsContainer {
        width: 100%
    }

    #screenshots img {
        height: 180px
    }

    #buttonsContainer {
        display: flex;
        justify-content: center;
        bottom: 0;
        margin-bottom: 0;
        border-radius: 0;
        padding-top: 1em;
        padding-bottom: 1em
    }

    #buttonsContainer #installButton {
        margin-right: 0
    }

    #featuresScreenDiv {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 0
    }

    #headerContainer {
        margin: 20px
    }

    #desc {
        display: none
    }

    #contentContainer {
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 5em
    }

    #headerContainer img {
        height: 60px;
        width: 60px;
        margin-right: 12px
    }

    #buttonsContainer {
        position: fixed;
        bottom: 0;
        background: #efefef2b;
        backdrop-filter: blur(10px)
    }
}

@media (max-width:400px) {
    #headerContainer h1 {
        font-size: 26px;
        font-weight: bold;
    }

    #headerContainer img {
        height: 40px;
        width: 40px
    }

    #featuresScreenDiv h3 {
        font-size: 18px;
        margin-bottom: 0
    }

    #keyFeatures ul {
        margin-top: 0
    }
}

@media all and (display-mode:standalone) {
    button {
        display: block
    }
}

@media (prefers-color-scheme:dark) {
    :host {
        --modal-background-color: #ff7f50
    }

    #featuresScreenDiv #keyFeatures li,
    #installModal h1,
    #installModal h2,
    #installModal h3,
    #installModal p {
        color: #111 !important
    }

    #closeButton svg path {
        fill: #ff7f50;
        opacity: 1
    }

    #buttonsContainer {
        background: rgb(36 36 36)
    }
}

@media (inverted-colors:inverted) {
    :host {
        --install-focus-color: #6e6363;
        --install-button-color: #ff872b;
        --modal-background-color: #ff7f50
    }

    #featuresScreenDiv #keyFeatures li,
    #installModal h1,
    #installModal h2,
    #installModal h3,
    #installModal p {
        color: #111 !important
    }

    #closeButton svg path {
        fill: #ff7f50;
        opacity: 1
    }

    #buttonsContainer {
        background: rgb(36 36 36)
    }
  }