html, body {
    margin: 0px;
    padding: 0px;
    min-height: 100%;
    height: 100%;
    /* background-image: url(../images/background.jpg); */
    /* background-size: cover; */
    background-color: #010101;
}

.text-component {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#wrapper {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px;
}

.text-component.admin {
    top: 30px;
}

#content {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    margin-left: 35vw;
    margin-right: 5vw;
    background-image: url(../images/cillin-perera.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

footer {
    position: absolute;
    top: 10vh;
    bottom: 10vh;
    left: 5vw;
    width: 25vw;
    display: flex;
    align-items: center;
    padding-top: 0px;
    line-height: 2;
    text-align: center;
    white-space: nowrap;
    color: #eeeeee;
    font-family: 'Lato', sans-serif;
    font-size: 12pt;
}

footer img {
    width: 18vw;
}

footer > div {
    overflow: auto;
    flex: 1 0 auto; 
    max-height: 80vh;
    padding-right: 5vw;
    border-right: 1px solid white;
}

footer .sites,
footer .phones {
    margin-top: 20px;
}

.phones-group {
    line-height: 1.3;
    margin-bottom: 1em;
}

a {
    color: #eeeeee;
    text-decoration:none;
}

/* admin add component panel */
.avicms-static-component {
    background-color: white;
    top: unset !important;
    height: 40px;
}

@media screen and (max-width: 782px) {
    #wrapper {
        /* position: fixed; */
        /* z-index: 1; */
        height: 30vh;
        margin-left: 30px;
        margin-right: 30px;
        background-color: #010101;
    }
 
    #content {
        margin-left: 0;
        margin-right: 0;
    }

    footer {
        position: relative;
        left: unset;
        top: unset;
        right: unset;
        bottom: unset;
        display: block;
        margin: 10px;
        margin-top: calc(30vh + 45px);
        padding-top: 10px;
        width: auto;
    }

    footer img {
        width: 80%;
    }

    footer > div {
        overflow: visible;
        max-height: 100%;
        border-right: none;
        padding-right: 0;
    }

    footer .phones {
        padding-bottom: 20px;
    }
}
