* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

body {
    margin: 40px 50px;
    padding: 0;
    color: #999999;
    background-color: #000;
    font-size: 12px;
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* Header *******************************************************************************/

.header {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

div.header h1 {
    font-size: 2.1rem;
    font-weight: normal;
    line-height: normal;
    color: #CCCCCC;
}

/* Navigation bar ***********************************************************************/

.navbar {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #555;
}

.navbar a {
    margin: 0px 20px 14px 20px;
    padding: 7px 10px;
    text-align: right;
    font-size: 0.8rem;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

.navbar a:link, .navbar a:visited, .navbar a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.navbar a:hover, .navbar a:active, .navbar a.active {
    color: #02CCFC;
    text-decoration: underline;
    text-underline-offset: 10px;
}

/* App gallery *******************************************************************/

.main {
    padding: 40px 0 20px 0;
    min-height: 800px;
}

/* min 2 and max 7 items per grid row. size of item + paddding + margin = 170px */
div.app_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(170px, 100%/8)), 1fr));
    align-content: start;
}

div.app_item {
    display: inline;
    margin: 20px;
    padding: 5px;
    height: auto;
    min-width: 170px;
    text-align: center;
}

a.app_item_link {
    text-decoration: none;
    color: #999999;
}

img.icon {
    display: inline;
    margin: 5px;
}

div.desc {
    text-align: center;
    font-weight: normal;
    font-size: 0.8rem;
    padding: 5px 0 0 0;
    width: auto;
    margin: 5px;
    text-decoration: none;
    color: #999999;
}

/* App details page ***********************************************************************/

.cont_main {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.side {
    flex-basis: 370px;
    flex-shrink: 0;
    padding: 40px 35px 40px 0;
}

.main_detail {
    flex-basis: calc(100% - 370px);
    flex-shrink: 0;
    padding: 40px 0 40px 0;
}

.cont_main_header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    flex-direction: row;
}

.app_logo_link {
    padding: 0;
    width: 100px;
}

.app_logo {
    width: 100px;
    height: 100px;
}

.app_icon {
    flex-basis: 100px;
    flex-shrink: 0;
    flex-grow: 0;
}

.app_title {
    flex-basis: calc(100% - 130px);
    flex-shrink: 0;
    flex-grow: 0;
    display: inline;
    padding: 0;
    height: auto;
    width: auto;
    text-align: left;
    font-size: 2.3rem;
}

.app_description {
    padding: 50px 0 0 0;
    font-size: 0.95rem;
}

.app_description p {
    padding: 10px 0 0 0;
    text-align: justify;
}

.privacy_policy {
    display: block;
    width: 300px;
    padding: 20px 0 0 0;
    color: #999999;
    text-align: center;
}

/* Misc ***************************************************************************/

.def_link {
    color: #02ccfc;
}

.main h1 {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 20px;
    font-weight: normal;
    line-height: normal;
    color: #666666;
}

.impressum p {
    padding: 3px 0;
    color: #999999;
}

.impressum_link {
    color: #666666;
}

/* Footer *************************************************************************/

.footer {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    color: #353535;
    border-top: 1px solid #555;
    padding: 10px;
    width: 100%;
}

.fl_left {
    text-align: left;
    padding: 10px;
}

.fl_right {
    text-align: right;
    padding: 10px;
}

.impressum {
    color: #353535;
    text-decoration: none;
}

/* Responsive layout **************************************************************/

/* When the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
    .navbar, .footer {
        flex-direction: column;
    }
}

@media screen and (max-width: 1000px) {
    .cont_main {
        flex-direction: column-reverse;
    }

    .fl_right {
        text-align: left;
    }
}
