
* {
    box-sizing: border-box;
}

body, html {
    background-color: var(--bg1);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 2px;
    color: var(--c1);
    -webkit-overflow-scrolling: touch;
    -moz-overflow-scrolling: touch;
    overflow-scrolling: touch;
    overflow: hidden;
}

div{
    border-radius: 1px;
}

div::-webkit-scrollbar {
 width: 9px;
 height: 9px;
}
div::-webkit-scrollbar-thumb {
 background-color: var(--bg1);
}

h1, h2, h3{
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    font-weight: normal;
    overflow: hidden;
    white-space: wrap;
}

h1 {
    font-size: 16px;
    margin: 10px 0px 10px 0px;
    color: var(--c1);
}

p{
    margin: 0;
    padding: 0;
}

.text, p{
    flex: 1 1 auto;
    white-space:normal;
    word-break:break-word;
    font-size: 15px;
}

.a-fw {
    color: var(--c1);
    padding: 0 5px;
    text-decoration: none;
    padding: 10px 20px 10px 20px;
    margin: 0px 20px 10px;
    flex: 0 0 auto;
    font-size: 14px;
    background-color: var(--checkbox-border);
    width: fit-content;
}

    .a-fw:hover {
        background-color: var(--bg1-transparent);
    }

main {
    flex: 1 1 auto;
    background-color: var(--bg2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.header-label {
    font-size: 12px;
    color: var(--c3);
    text-transform: uppercase;
    margin-left: 70px;
    letter-spacing: 2px;
}

.label{
    flex: 0 1 100px;
    margin: 0px 0px 5px 0px;
    font-size: 14px;
    color: var(--c2);
}

.menu{
    order: 1;
    display: none;
}

.preselect-cont{
    flex: 0 0 auto;
    display: flex;
    position: relative;
    padding: 0 20px;
}

.preselect {
    border: 1px solid var(--accent);
    flex-direction: column;
    display: none;
    position: absolute;
    width: 90vw;
    top: 50px;
    left: 20px;
    z-index: 900;
    height: 60vh;
}

.tab-row{
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 35px;
    margin-top: 15px;
    position: relative;
}

.tabrow-border{
    height: 1px;
    background-color: var(--bg1);
    z-index: 400;
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
}

.tabs{
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding-left: 17px;
    overflow: hidden;
}

.tab {
    flex: 0 1 200px;
    max-width: 200px;
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0px 3px;
    background-color: var(--bg1);
    font-size: 16px;
    color: var(--c1);
    z-index: 300;
    border: 1px solid transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab:hover {
    background-color: var(--bg1-transparent);
}

.tab-active {
    flex: 0 1 200px;
    width: 200px;
    height: 40px;
    background-color: var(--bg2);
    z-index: 500;
    border: 1px solid var(--bg1);
    border-bottom: none;
}

.app-box-filler{
    flex: 1 1 450px;
    margin: 5px;
    height: 0;
    order:2;
}

.app-box {
    flex: 1 1 450px;
    max-height: 450px;
    background-color: var(--bg3);
    padding: 15px;
    position: relative;
    margin: 5px 10px 10px 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 1px 4px 8px var(--client-bg1);
    max-width: 800px;
}

.app-box-headline{
    color: var(--c1);
    font-size: 16px;
}

.app-box-headline-about {
    color: var(--c1);
    font-size: 18px;
    margin-bottom:5px;
}

.app-box-label {
    flex: 0 0 auto;
    color: var(--c1);
    font-size: 13px;
}

.app-box-text-header {
    flex: 0 0 auto;
    color: var(--c3);
    font-size: 15px;
    padding: 5px 0px;
}

.app-box-text-link {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 15px;
    margin: 20px 0px 0px 0px;
    cursor: pointer;
}

div.app-box-row {
    display: flex;
    flex-flow: row wrap;
    margin: 0px 0px 20px 0px;
}

div.app-box-header {
    flex: 1 1 0;
    display: flex;
    flex-flow: column nowrap;
    margin: 0px 10px 0px 20px;
    min-height: 80px;
}

.app-box-picture {
    width: 80px;
    height: 80px;
    position: relative;
    line-height: 48px;
    margin-bottom: auto;
}

.app-box-picture-about {
    width: 110px;
    height: 110px;
    position: relative;
    line-height: 48px;
    margin-bottom: auto;
}

.checkbox{
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border: 0.5px solid var(--checkbox-border);
    margin-right: 5px;
}

div.category {
    padding: 3px 10px;
    background-color: var(--bg1);
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    margin: 5px 5px 0px 0px;
}

div.app-box-info {
    flex: 0 0 auto;
    position: relative;
    border: 1px solid var(--bg1);
    padding: 10px;
    margin-top: 10px;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.app-box-info-icon {
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
    fill: var(--accent);
    cursor: pointer;
    margin: 0px 5px 0px 5px;
    position: relative;
    display: flex;
}

.page {
    flex: 1 1 auto;
    display: flex;
    background-color: var(--bg2);
    padding: 10px 20px 0px 20px;
    overflow: hidden;
    position: relative;
}

.sidebar{
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 0 0 10px;
}

.listcont{
    flex: 1 0 auto; 
    position: relative; 
}

.links{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rotate-open{
    transform: rotate(180deg);
    transition-duration: 0.3s;
}

.smallview-footer{
    display: flex;
    flex-wrap: wrap;
}

.mainright-info{
    display: flex;
    align-items: center
}

.button-cont{
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
}

.display-none{
    display: none;
}

/******* BUTTONS */

button{
    background-color: var(--button-bg);
    border: none;
    box-shadow: none;
    color: var(--c1);
    font-size: 14px;
    cursor: pointer;
    height: 40px;
    min-height: 40px;
    margin: 5px 0;
    overflow: hidden;
    padding: 0 20px;
}

button:hover, .button-column:hover{
    background-color: var(--bg1);
}

.button-accent{
    background-color: var(--accent);
    color: var(--c0);
}

.button-accent:hover{
    background-color: #19d1c3;
}

.button-column{
    flex: 0 0 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    padding: 0 15px;
    flex-wrap: nowrap;
    width: fit-content;
    width: -moz-fit-content;
    width: -webkit-fit-content;
}

.version-button{
    font-size: 14px;height: 28px;display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2.5px 2.5px 0;
    background-color: var(--c0);
    border: 1px solid var(--accent);
    cursor: pointer;
}

.version-button:hover, .version-button-active{
    background-color: var(--accent);
}

:disabled{
    border: 1px solid var(--highlight-bg);
    border-radius: 1px;
    color: var(--c2);
    cursor: default !important;
    background-color: none !important;
    fill: var(--c2);
    opacity: 0.4;
}

.filter-headline{
    align-items: center;
    justify-content: space-between;
    background-color: var(--accent);
    padding: 0 20px;
    margin-top: 10px;
    height: 40px;
    display: none;
}

.margin-right{
    margin-right: 20px;
}

.popup-background {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    -moz-overflow-scrolling: touch;
    overflow-scrolling: touch;
    z-index: 600;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: var(--bg1-transparent);
    transition: opacity 200ms;
}

.popup-header {
    color: var(--c1);
    font-size: 15px;
}

.popup-main {
    background-color: var(--bg3);
    color: var(--c1);
    position: absolute;
    top: 10%;
    left: 10%;
    height: 80%;
    width: 80%;
    font-size: 15px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    -moz-overflow-scrolling: touch;
    overflow-scrolling: touch;
    z-index:600;
}

.popup-close {
    position:absolute;
    height: 15px;
    width: 15px;
    fill: var(--accent);
    cursor: pointer;
    top:20px;
    right:20px;
}

div.service-apps-header {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    background-color: var(--bg1);
    cursor: pointer;
    margin: 5px 0px;
    align-items: center;
    font-size: 14px;
    width: fit-content;
    width: -moz-fit-content;
    padding-right: 10px;
}

/* MEDIA QUERIES */
@media only screen and (max-width: 560px) {
    .text{
        flex: 0 0 auto;
        white-space:normal;
    }
}

@media screen and (max-width: 500px){
    .page{
        flex-direction: column;
    }

    .tab {
        font-size: 14px;
    }

    .tab:hover{
        background-color: var(--accent);
    }

    .filter-headline{
        display: flex;
        cursor: pointer;
    }

    button{
        margin: 5px 0;
    }

    .button-column{
        flex: 1 0 40px;
        justify-content: center;
    }

    .button-cont{
        flex-direction: column;
    }

    .margin-right{
        margin-right: 0px;
        width: 100%;
    }

    .sidebar{
        padding: 10px 0;
        height: 120px;
    }

    .app-box-filler{
        display: none;
    }
}

@media only screen and (max-width: 250px) {
    .header-label{
        display: none;
    }

    .page{
        padding: 10px;
    }

}
