html, body {
	font-size: 16px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

body {
	background: #f5f1ef;
}

.title {
	text-align: center;
	background: #eee;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

main {
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	bottom: 0;
	width: 100vw;
}

.messagewrapper {
	flex-grow: 1;
	padding: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: scroll;
	scrollbar-width: none;
	background-image: url(bg.png);
	background-blend-mode: soft-light;
	background-color: #ded5cd;
}
.messagewrapper::-webkit-scrollbar,
ul.messages::-webkit-scrollbar {
	display:none;
}

ul.messages {
	list-style: none;
	display: flex;
	flex-direction: column;
	padding: 20px 20px 0;
	overflow: scroll;
	scroll-behavior: smooth;
	scrollbar-width: none;
	margin: 0;
}

.message {
	display: inline-block;
	padding: 10px;
	margin: 5px;
	border-radius: 5px;
	background: #eee;
	position: relative;
	max-width: 70%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message::before {
	position: absolute;
	display: block;
	content: '';
	top: 0;
	border-style: solid;
	border-color: transparent;
}

.message-server {
	margin-right: auto;
	background: #fff;
}

.message-server::before {
	border-top-color: #fff;
	border-width: 13px 0 0 13px;
	left: -10px;
	border-top-left-radius: 5px;
}

.aboutsite .message-server {
	margin-bottom: 15px;
}

.messagewrapper {
	padding-bottom: 0;
	position: relative!important;
}

.message-client {
	margin-left: auto;
	background: #dcf8c6;
}

.message-client::before {
	border-top-color: #dcf8c6;
	border-width: 13px 13px 0 0;
	right: -10px;
	border-top-right-radius: 5px;
}

.ctrl {
	flex: none;
	display: flex;
	flex-direction: column;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	padding: 10px;
	border-top: 1px solid hsla(0, 0%, 0%, 0.2);
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
	background: #f5f1ef;
}

.button {
	font-size: 16px;
	padding: 10px;
	border: 1px solid #03a9f4;
	background: #E1F5FE;
	color: #01579b;
	margin: 10px 5px;
	border-radius: 25px;
	min-width: 100px;
	flex-grow: 1;
	display: inline-block;
	box-shadow: 0 1px 3px rgba(1, 87, 155, 0.2196078431372549);
	text-align: center;
}

.typing-message {
	display: none;
	margin-left: 25px;
	margin-bottom: 20px;
}

a {
	color: #2196f3;
	text-decoration-color: #0277BD;
}

.info {
	text-decoration: none;
	border: 2px solid rgba(0, 0, 0, 0.1);
	padding: 5px;
	color: rgba(0, 0, 0, 0.2);
	width: 48px;
	height: 48px;
	display: flex;
	border-radius: 100%;
	text-align: center;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.back {
	display: block;
	font-size: 42px;
	color: rgba(0, 0, 0, 0.41);
	text-decoration: none;
	/* position: absolute; */
	/* margin: 25px 20px; */
}

.infoblock {
	margin: 20px;
}

.infoblock p {
	margin-bottom: 10px;
}

.phone {
	padding: 0;
	margin: 0;
	display: block;
	position: fixed;
}

@media (min-width: 540px) and (min-height: 560px) {
	body {
		background: #607D8B;
		display: flex;
		height: 100vh;
	}

	main {
		border-radius: 30px;
		overflow:hidden;
		height: 100%;
		max-width: 600px;
		position: static;
		width: 100%;
	}

	.phone {
		position: relative;
		max-width: 392px;
		width: 100%;
		padding: 20px;
		margin: auto;
		background: black;
		height: calc(100vh - 80px);
		border-radius: 50px;
		box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
		max-height: 680px;
	}
}

@media (min-width: 540px) and (min-height: 700px) {
	main {
		border-radius: 0;
	}

	main:before {
		content: '';
		display: block;
		background: #252525;
		width: 80px;
		height: 8px;
		position: absolute;
		top: 35px;
		left: calc(50% - 40px);
		border-radius: 5px;
	}

	.phone {
		height: calc(100vh - 200px);
		padding: 80px 20px;
		position: relative;
	}
}

/**
TYPING INDICATOR
 */
.typing-indicator {
	/* background-color: #E6E7ED; */
	will-change: transform;
	width: auto;
	border-radius: 60px;
	/* padding: 10px; */
	display: table;
	margin: 0 auto;
	position: relative;
}

.typing-indicator::before, .typing-indicator::after {
	position: absolute;
	bottom: -3px;
	left: -3px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background-color: #E6E7ED;
}

.typing-indicator::after {
	height: 10px;
	width: 10px;
	left: -10px;
	bottom: -10px;
}

.typing-indicator span {
	height: 13px;
	width: 13px;
	float: left;
	margin: 3px 2px 2px;
	background-color: rgba(0, 0, 0, 0.5);
	display: block;
	border-radius: 50%;
	opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
	animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
	animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
	animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
	50% {
		opacity: 1;
	}
}

.aspect-ratio {
	position: relative;
	width: 400px;
	height: 0;
	padding-bottom: 100%;
	max-width: 100%;
}

.aspect-ratio iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
}

.topbar {
	display: flex;
	padding: 10px 16px;
	background-color: #eee;
	height: 80px;
	align-items: center;
	box-sizing: border-box;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
	flex: none;
	text-decoration: none;
}

.profileimage {
	width: 60px;
	height: 60px;
	position: relative;
	border-radius: 50%;
	overflow: hidden;
	margin-right: 15px;
	text-align: center;
}

.profileimage img {
	display: block;
	position: relative;
	transition: opacity 150ms ease-out;
	width: 100%;
	height: 100%;
	z-index: 100;
	overflow: hidden;
}

.metainfo {
	display: flex;
	flex-direction: column;
	color: black;
	flex-grow: 1;
}

h1,h6 {
	margin: 1px 0;
}

.metainfo h1,.metainfo h6 {
	font-weight: 400;
}

h1 {
	font-size: 24px;
}

h6 {
	font-size: 15px;
	color: rgba(0, 0, 0, 0.6);
}

.aboutsite p {
	margin: 0 0 5px;
}

.info:hover {
	background: rgba(255, 255, 255, 0.5);
	border: 2px solid rgba(0,0,0,0.5);
	color: rgba(0,0,0,0.5);
}

.welcome {
	margin: auto 30px;
	font-size: 22px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	padding: 20px;
	background: #f5f2f0;
	box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
}

canvas#confetti {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.winscreen {
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: #00000099;
	flex-direction: column;
	align-items: center;
}

.moneybubble {
	width: 30vmin;
	height: 30vmin;
	margin: 20px;
	border-radius: 100%;
	background: #fff;
	padding: 20px;
}

.winscreen h3 {
	color: #fff;
	font-size: 32px;
	text-shadow: 0 0 5px black;
}

canvas#confetti {
	display: none;
}

.aboutimage {
	height: 220px;
	background-image: url(/profil.jpg);
	background-position: center;
	flex: none;
	margin: -20px -20px 20px;
}