:root {
    --screen-height: 736px;
}
body {
    display: flex;
    font-family: Verdana, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
    min-width: 100vw;
    position: relative;
}

button,
.button {
    all: unset;
    cursor: pointer;
    border: 1px solid black;
    padding: 8px 12px;
    background-color: #00d0ff;
    font-weight: bold;
    border-radius: 20px;
    background-image: url(/data/images/blur_small.jpeg);
    margin-bottom: 8px;
}
button:hover {
    opacity: .8;
}

.button-link {
    all: unset;
    text-decoration: underline;
    cursor: pointer;
    color: blue;
}

p.hint {
    font-size: 10px;
}

p.align-right {
    text-align: right;
}

.align-center {
    text-align: center;
    width: 100%;
    display: inline-block;
}

table tr {
    vertical-align: top;
}
table tr td:first-child {
    white-space: nowrap;
}

#Data-privacy {
    bottom: 0;
    display: flex;
    gap: 8px;
    position: absolute;
}

.d-none {
    display: none !important;
}

.toggle-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* max-height: 37px; */
    margin-bottom: 18px;
    background:  rgba(255, 165, 0, 0.68);
}
.toggle-text:not(.active) >button:first-child {
    margin-bottom: 0;
}
.toggle-text:not(.active) >*:not(button:first-child){
    display: none;
}
.toggle-text.active {
    max-height: 100%;
}
.toggle-text button {
    border-radius: 0;
}
.toggle-text p {
    margin: 5px 20px 14px;
}
.toggle-text *:not(button:first-child) {
    margin: .5em 1em;
}
.toggle-text span {
    margin-bottom: -.2em !important;
}

#App-header h2 + h3 {
    margin-top: 0;
    margin-bottom: 40px;
}

#Phone-case {
    margin: auto;
    display: inline-block;
    padding: 30px 20px 60px;
    background: black;
    border-radius: 12px; 
}
#Phone-screen {
    background: white;
    border: 1px solid black;
    height: var(--screen-height);
    overflow: scroll;
    width: 414px;
}

#App-container {
    min-height: 100%;
    position: relative;
}

#App-search {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: blue;
    height: 50px;
    padding: 4px;
    box-sizing: border-box;
}
#App-search.hidden {
    height: 0;
    padding: 0;
    overflow: hidden;
}

#Search-input {
	display: flex;
    justify-content: center;
}
#Search-input input {
    width: 80%;
    height: 20px;
    border-radius: 20px;
}

#App-page {
    max-height: var(--screen-height);
    overflow: auto;
    padding-bottom: 10px;
    box-sizing: border-box;
}

#App-page-background {
    position: absolute;
    left: 0;
    opacity: .3;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#App-header {
    padding: 35px 12px 0 0;
	position: relative;
}
#App-header h2 {
	padding: 10px 24px 6px 16px;
    display: inline-block;
    font-size: 28px;
    background: white;
}
video,
img {
    max-width: 100%;
}
video {
    min-width: 100%;
}
#App-page[page="overview"] #App-header {
    padding: 20px 12px 0;
}
#App-page[page="overview"] #App-header h2 {
    box-shadow: 2px 2px 2px black;
}
#App-page[page="overview"] #Apps-container {
    display: block;
}

#App-header.with-img {
	display: flex;
    padding: 0;
    min-height: 200px;
}
#App-header.with-img h2 {
    z-index: 1;
    position: relative;
    display: inline-block;
    align-self: flex-end;
    margin: 50px 0 0 0;
    padding: 10px 24px 6px 12px;
    background: orange;
}
#App-header-img {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#App-menu-side {
	background: #ffffff9e;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 12px;
    height: 100%;
    left: 0;
    min-height: 100%;
    position: absolute;
    top: 0;
	overflow: auto;
	z-index: 10000;
	max-height: 100%;
}
#App-menu-side .spacer {
	height: 23px;
}
#App-menu-side[status="inactive"] {
    display: none !important;
}
#App-menu-side-background {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .8;
    z-index: -1;
}
#App-menu-side .menu-item {
	margin: 0 2px;
}

#App-content {
	position: relative;
    padding: 0 12px;
    background: #ffffffc9;
    padding: 20px 16px;
    box-shadow: 2px 2px 2px black;
}
#App-container[sidebar="hidden"] #App-menu-side {
    width: 0;
	padding: 0;
    overflow: hidden;
}
#App-container[sidebar="toggle"] #App-menu-side[status="inactive"] {
    overflow: hidden;
    display: inline-block;
    width: 50px;
    min-height: 30px;
    height: 30px;
}

#App-page[page="overview"] #App-menu-head {
    display: none;
}
#App-page:not([page="overview"]) #App-menu-head {
	display: flex;
	position: absolute;
	z-index: 1000;
    background: white;
    border: 2px solid;
    border-left: 0;
    border-top: 0;
    left: 0;
    padding: 5px 8px 2px 0;
    top: 0;
}

.main-menu-button {
    all: unset;
    background: url(/data/icons/bars.svg);
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
	width: 54px;
	height: 30px;
    background-color: white;
}
.main-menu-button-space,
.main-menu-button-forward,
.main-menu-button-back {
    all: unset;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 50%;
    height: 23px;
}
.main-menu-button-back {
    background-image: url(/data/icons/arrow-left.svg);
}
.main-menu-button-forward {
    background-image: url(/data/icons/arrow-right.svg);
}

#App-menu-button {
    width: 54px;
    height: 34px;
}

#App-page[page="overview"] #App-menu-button,
#App-container[sidebar="open"] #App-menu-button {
	opacity: 0;
}

.menu-item .title {
    font-size: 12px;
    margin: 4px 0;
}
#App-menu-side .app {
    width: 77px;
}
#App-menu-side .app-icon-container {
    height: 52px !important;
    width: 52px !important;
}

#App-hist-buttons {
    height: 30px;
}
#App-container[sidebar="open"] #App-hist-buttons {
    margin-left: 26px;
}
#App-hist-buttons > button {
	all: unset;
    background: url(/data/icons/chevron-left.svg);
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
	height: 100%;
    width: 30px;
    background-color: white;
}
#App-hist-buttons .forward {
    background: url(/data/icons/chevron-right.svg);
}

.app-icon-container {
    position: relative;
    overflow: hidden;
	background-image: url(/data/images/blur_small.jpeg);
}
.app-icon {
    height: 100%;
    width: 100%;
    object-fit: contain;
}
.app-icon.keyboard {
	transform: scale(1.3);
}
.app-icon.address-book {
    transform: scale(0.7);
}

#Apps-container.center {
    display: flex;
    justify-content: center;
}
#Apps-container .app {
    width: calc(100%/4);
}
#App-container[sidebar="open"] #App-page {
    padding-left: 81px;
}
#App-container[sidebar="open"] #App-page .app {
    width: calc(100%/3);
}

img.keyboard-img {
    width: 145px;
    margin-left: calc(50% - 72px);
}


@media screen and (max-width: 767px) { 
    #Phone-case {
        width: 100vw;
        height: 100vh;
        padding: 0;
        border: 0;
        border-radius: 0;
    }
    #Phone-screen {
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0 !important;
        border-radius: 0 !important;
		overflow: hidden;
    }
	#App-menu-side {
		max-height: 100vh;
	}
	#App-page {
		padding-bottom: 80px;
	}
}


