@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wdth,wght@75..100,300..800&display=swap');

* {
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	
	font-family: "Open Sans", serif;
}
html, body {
	height: 100%;
	width: 100%;
	overflow: hidden;
}

body {
	min-width: 320px;
	min-height: 480px;
	background-position: left center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}
body:before {
	content: "";
	background: #000;
	height: 100%;
	width: 100%;
	display: block;
	opacity: 0.5;
	position: fixed;
	z-index: -1;
}
.header {
	height: 10%;
	background-color: rgba(0, 0, 0, 0.50);
}
.logo {
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.logo img {
	max-height: 100px;
}

.content { 
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loader-container {
	text-align: center;
    background: #00000091;
    padding: 15px;
    border-radius: 15px;
}

.loader {
    border: 8px solid #f3f4f6;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
	margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat {
    width: 480px;
    max-width: 95%;
    border-radius: 15px;
    overflow: hidden;
    margin: 5% auto;
    height: 100%;
    background: #00000091;
}
.chat:not(.active) {
	display: none;
}

.chat-header {
	height: 80px;
    background: #ed4e5694;
    width: 100%;
    display: flex;
    padding: 15px;
    align-items: center;
}
.chat-header * {
	margin: 0;
}
.chat-avatar {
	height: 50px;
    width: 50px;
	position: relative;
	margin-right: 15px;
}
.chat-avatar > img {
	height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
    border-radius: 50%;
}
.chat-avatar > span {
	position: absolute;
    top: 0;
    width: 5px;
    height: 5px;
    background: #55c155;
    border-radius: 50%;
}

.chat-header > .chat-name {
	font-weight: bold;
}
.chat-name > span {
	font-size: 12px;
    display: block;
    color: #fef;
}

.chat-header > .chat-link {
	margin-left: auto;
}

.link-offer {
	position: relative;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #9d72cd 0%, #ed4e56 100%);
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.4s ease, background-color 0.4s easy;
	padding: 5px 10px;
	text-decoration: none;
	border-radius: 5px;
    display: block;
	z-index: 1;
}

.link-offer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ed4e56 0%, #9d72cd 100%);
    z-index: -1;
    transition: left 0.4s ease;
}

.link-offer:hover::before {
    left: 0;
}

.chat-link > a {
	
}

.chat-message .link-offer {
	font-weight: normal;
    text-align: center;
    padding: 10px;
}

.chat-body { 
    padding: 15px;
    overflow-y: auto;
    height: calc(100% - 80px - 15px);
}

.chat-message {
	
}
.chat-message + .chat-message,
#chat-typing > .chat-message {
	margin-top: 15px;
}

.chat-message-body {
	width: auto;
    background: #fff;
    color: #000;
    padding: 10px;
    border-radius: 15px;
    display: inline-block;
}

.chat-message-text {
	margin-bottom: 10px;
    font-size: 14px;
}
.chat-message-text img {
	height: 220px;
    border-radius: 15px;
    opacity: 0.7;
	transition: .3s;
}
.chat-message-text a:hover img {
	opacity: 1;
}

.chat-message-gallery {
	gap: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.chat-message-gallery > a {
	margin: 0;
	height: 80px;
}
.chat-message-gallery > a > img {
	width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.chat-message-body > span {
	float: right;
    font-size: 12px;
    color: grey;
}

.chat-message-footer {
	
}

.chat-message-typing {
	
}

.chat-footer {
	
}

.chat-message-typing {
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.fancybox-active {
	height: 100%!important;
}