:root {
	--hue: 223;
	--bg: hsl(var(--hue), 10%, 90%);
	--fg: hsl(var(--hue), 10%, 10%);
	--primary: hsl(var(--hue), 90%, 50%);
	--trans-dur: 0.5s;
	--trans-timing: cubic-bezier(0.76, 0.05, 0.24, 0.95);
	--trans-timing-in: cubic-bezier(0.76, 0.05, 0.86, 0.06);
	--trans-timing-out: cubic-bezier(0.05, 0.76, 0.06, 0.86);
}
*{
	scrollbar-width: none;
	letter-spacing: 1px;
	transition: 0.3s;
	
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	overflow: -moz-scrollbars-vertical;
	-webkit-overflow-scrolling: touch;	
	scroll-behavior: smooth;
}


input {
	color: var(--fg);
	font: 1em/1.5 sans-serif;
}
/*
body:has(.switch__input:checked) {
	background-color: var(--fg);
}
*/
.switch {
    margin: auto;
    position: absolute;
    top: 10px;
    right: 10px;
	cursor: pointer;
	z-index: 1;
}
.switch__icon,
.switch__input {
	display: block;
}
.switch__icon {
	position: absolute;
	top: 0.375em;
	right: 0.375em;
	width: 0.75em;
	height: 0.75em;
	transition: opacity calc(var(--trans-dur) / 2),
		transform calc(var(--trans-dur) / 2);
}
.switch__icon polyline {
	transition: stroke-dashoffset calc(var(--trans-dur) / 2);
}
.switch__icon--light,
.switch__icon--light polyline {
    transition-delay: calc(var(--trans-dur) / 2);
    transition-timing-function: var(--trans-timing-out);
    margin-top: 3px;
    margin-right: 3px;
}
.switch__icon--dark {
	opacity: 0;
	transform: translateX(-0.75em) rotate(30deg) scale(0.75);
	transition-timing-function: var(--trans-timing-in);
	margin-top: 3px;
}
.switch__input {
	background-color: hsl(210, 90%, 70%);
	border-radius: 0.75em;
	box-shadow: 0 0 0 0.125em hsla(var(--hue), 90%, 50%, 0),
		0.125em 0.125em 0.25em hsla(var(--hue), 90%, 10%, 0.2);
	outline: transparent;
	position: relative;
	width: 3em;
	height: 1.5em;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color var(--trans-dur) var(--trans-timing),
		box-shadow 0.15s linear;
}
.switch__input:focus-visible {
	box-shadow: 0 0 0 0.125em hsl(var(--hue), 90%, 50%),
		0.125em 0.125em 0.25em hsla(var(--hue), 90%, 10%, 0.2);
}
.switch__input:before,
.switch__input:after {
	content: "";
	display: block;
	position: absolute;
}
.switch__input:before {
	background-color: hsl(50, 90%, 50%);
	border-radius: inherit;
	mask-image: linear-gradient(
		120deg,
		hsl(0, 0%, 0%) 20%,
		hsla(0, 0%, 0%, 0) 80%
	);
	-webkit-mask-image: linear-gradient(
		120deg,
		hsl(0, 0%, 0%) 20%,
		hsla(0, 0%, 0%, 0) 80%
	);
	inset: 0;
	transition: background-color var(--trans-dur) var(--trans-timing);
}
.switch__input:after {
	background-color: hsl(0, 0%, 100%);
	border-radius: 50%;
	box-shadow: 0.05em 0.05em 0.05em hsla(var(--hue), 90%, 10%, 0.1);
	top: 0.125em;
	left: 0.125em;
	width: 1.25em;
	height: 1.25em;
	transition: background-color var(--trans-dur) var(--trans-timing),
		transform var(--trans-dur) var(--trans-timing);
	z-index: 1;
}
.switch__input:checked {
	background-color: hsl(290, 90%, 40%);
}
.switch__input:checked:before {
	background-color: hsl(220, 90%, 40%);
}
.switch__input:checked:after {
	background-color: hsl(0, 0%, 0%);
	transform: translateX(1.5em);
}
.switch__input:checked ~ .switch__icon--light,
.switch__input:checked ~ .switch__icon--light polyline {
	transition-delay: 0s;
	transition-timing-function: var(--trans-timing-in);
	margin-top: 3px;
}
.switch__input:checked ~ .switch__icon--light {
	opacity: 0;
	transform: translateX(-0.75em) rotate(-30deg) scale(0.75);
	margin-top: 3px;
}
.switch__input:checked ~ .switch__icon--light polyline {
	stroke-dashoffset: 1.5;
}
.switch__input:checked ~ .switch__icon--dark {
	opacity: 1;
	transform: translateX(-1.5em);
	transition-delay: calc(var(--trans-dur) / 2);
	transition-timing-function: var(--trans-timing-out);
	margin-top: 3px;
}
.switch__sr {
	overflow: hidden;
	position: absolute;
	width: 1px;
	height: 1px;
}









/* style.css */







/** DIALOG **/
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000a1;
    display: none;
    z-index: 9998;
}
.dialog {
    max-width: 400px;
    min-width: 280px;
    z-index: 9999;
    margin: 0 10px;
    color: #fff;
    background: #8e9eab;
    background: -webkit-linear-gradient(to top, #8e9eab, #66727b);
    background: linear-gradient(to top, #8e9eab, #66727b);
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: clamp(12.9px, 15px, 1.2em) !important;
    transform: translateY(-50%) translateX( calc(-50% - 10px));
    border: solid 1px #152d4f;
    border-radius: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: auto !important;
    box-shadow: 0 0 50px 0px #3646937d;
}
body.dark dialog{
	background: #0f0c29;
    background: -webkit-linear-gradient(to bottom, #24243e, #302b63, #0f0c29);
    background: linear-gradient(to bottom, #24243e, #302b63, #0f0c29);
    background-size: contain;
    background-attachment: fixed;
}
.dialog-content {
	margin-bottom: 10px;
	line-height: 25px;
	overflow-wrap: break-word;
	text-shadow: 0 0 6px #000;
}
.dialog-buttons {
	/* text-align: center; */
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 0 10px;
}
.dialog-buttons button{
	outline: 1px;
	padding: 5px;
	margin: 10px 0 5px 0;
	border: 0;
	border-radius: 3px;
	width: 100%;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
}
.dialog-buttons button:hover:not(.no-hover), .dialog-buttons button:focus, .dialog-buttons button:active{
	/*box-shadow: 0 4px 0 #bd0000;*/
	font-weight: 700;
}
.dialog-buttons button:nth-child(1){
    color: #000;
    background-color: #a6e22e;
}
.dialog-buttons button:nth-child(2){
}




/* 🌑 Основни цветове */
body {
	background: #232222;
	font-family: Arial, sans-serif;
	color: #333;
	align-items: center;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	position:fixed;
	top: 0;
	left: 0;
	width: 100vw;
	width: 100dvw;
	background: #E0EAFC;  
	background: -webkit-linear-gradient(to left, #CFDEF3, #E0EAFC);
	background: linear-gradient(to left, #CFDEF3, #E0EAFC);
    background-size: contain;
    background-attachment: fixed;
}

body.dark{
    background: #0f0c29;
    background: -webkit-linear-gradient(to bottom, #24243e, #302b63, #0f0c29);
    background: linear-gradient(to bottom, #24243e, #302b63, #0f0c29);
    background-size: contain;
    background-attachment: fixed;
}

body.dark #messages div{
	background-color: #ccc;
}
body.dark #messages div b{
	color: #f53eff;
	
}

body.light #messages div{
	background-color: #ccc;
}

.pmOverlay + #messages, .pmOverlay + #messages + #chatForm{
	filter: blur(30px);
	pointer-events: none;
}
.pmMessages{
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    height: calc(100vh - 195px);
    height: calc(100dvh - 195px);
    display: inline-flex;
    flex-direction: column;
}
.pm_title{
    color: #fff;
    padding: 5px 5px 10px 5px;
    margin-bottom: 10px;
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-bottom: dashed 1px #ccc;
    align-items: center;
	background-color: #02666f;
}
removechat{
	margin-left: 5px;
}
#pmIcons{
    position: relative;
    z-index: 999;
    display: inline-flex;
    gap: 5px;
    top: 10px;
    left: 15px;
    flex-wrap: wrap;
    width: calc(100% - 80px);
}
#pmIcons span{
	display: inline-block;
    border-radius: 5px;
    background: aliceblue;
    font-size: 12px;
    padding: 5px;
	text-wrap-mode: nowrap;
	user-select: none;
	cursor: pointer;
}
#pmIcons span.selected{
	box-shadow: inset 0 5px 5px -5px #ff0909;
	background: #cc0000;
	color: #ffffff;
}
#pmIcons span name {
	display: inline-block;
	max-width: 50px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}


/* 💬 Контейнерът на чата */
#chatbox {
    border-radius: 8px;
    padding: 10px 16px 5px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
	overscroll-behavior: contain;
    height: calc(100vh - 75px);
    height: calc(100dvh - 75px);
    min-height: calc(100vh - 175px);
    min-height: calc(100dvh - 175px);
    transition: max-height 0.5s ease;
    position: fixed;
    bottom: 15px;
    width: 95%;
    max-width: 1350px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px 20px rgb(109 109 109 / 20%);
	background: #8e9eab;
	background: -webkit-linear-gradient(to top, #eef2f3, #8e9eab);  
	background: linear-gradient(to top, #eef2f3, #8e9eab); 

    background-size: contain;
    background-attachment: fixed;
}
.dark #chatbox{
	background: #0F2027;
	background: -webkit-linear-gradient(to top, #24243e, #302b63, #0f0c29);
	background: linear-gradient(to top, #24243e, #302b63, #0f0c29);
    background-size: contain;
    background-attachment: fixed;

}
#chatbox.blur::after {
    content: '💤 Тук ли си? Чатът е на пауза и те чака!';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    /* white-space: nowrap; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    height: 100px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    text-wrap-style: balance;
    line-height: 26px;
}


#messages.blur{
	filter: grayscale(1);
	pointer-events: none;
}
/* 📜 Съобщения */
#messages {
    /* flex: 1; */
    overflow-y: auto;
	overscroll-behavior: contain;
    margin-bottom: 10px;
    counter-reset: section 0;
    word-break: break-word;
    overflow-wrap: break-word;
    /* border: solid 1px #bdbdbd; */
    border-radius: 8px;
    /* box-shadow: 0 0 20px 20px rgb(109 109 109 / 20%); */
    height: 100vh;
    height: 100dvh;
	color: #fff;
	display: inline-flex;
    flex-direction: column;
}

#messages a {
    color: #dededf;
    word-wrap: break-word;
    border-bottom: dashed 1px #f9f9f9;
    text-decoration: none;
    font-size: 14px;
    font-variant: small-caps;
    font-weight: 700;
}





/* балончета от „мен“ (текущия user) */
.message.me {
	align-self: end;        /* лепи ги вдясно */
	width: 75%;
	height: fit-content;
}

/* балончета от „другите“ */
.message.other {
	align-self: flex-start;        /* лепи ги вляво */
	width: 75%; 
	height: fit-content;
}

/* балончета от „другите“ */
.message.inactive {
	filter: brightness(0.8) contrast(0.8);
	pointer-events: none;
}
.message.other.inactive:after{
    content: 'Неактивен';
    position: absolute;
    color: #fff;
    bottom: 8px;
    font-size: 11px;
}

.bubble.other{
	align-self: flex-start;        /* лепи ги вляво */
	width: 75%; 
	height: fit-content;
	background: linear-gradient(0deg, #577ad1c7, #2a51b745);
	color: #ffffff;
}

.bubble.me{
	align-self: flex-end;        /* лепи ги вляво */
	width: 75%; 
	height: fit-content;
	background: linear-gradient(0deg, #148901, #52eb4621);
	color: #ffffff;
}





#messages div, .pmMessages div{
    margin: 30px 5px 20px 5px;
    padding: 10px 8px 8px 8px;
    border-radius: 8px;
    position: relative;
}
#messages div:last-child{
	/*animation: fadeIn 1s ease-in-out;*/
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#messages div:before{
	/*
	counter-increment: section;
	content: counter(section) " ";
	*/
    content: attr(data-decryptedYser);
    padding: 6px;
    position: absolute;
    margin-top: -35px;
    margin-left: -9px;
    font-size: 14px;
    /* background-color: #002b51; */
    border-radius: 8px;
    font-weight: 400;
}
body.dark #messages div p,
body.dark .pmMessages div p,
body.dark #messages div:before{
    color: aliceblue;
}

body.light #messages div p, 
body.light .pmMessages div p, 
body.light #messages div:before{
    color: #000;
}

time{
    font-size: x-small;
    display: block;
    text-align: end;
    margin-top: 0px;
}
#messages p, .pmMessages p{
    padding: 5px 5px 5px 5px;
    margin: 5px 5px 5px 5px;
}
/* 📝 Формата за въвеждане */
.pmOverlay form{
    display: flex;
    gap: 10px;
}
#chatForm {
    display: flex;
    gap: 6px;
    margin: 5px;
}


 input[type="text"] {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	outline: none;
	font-size: 14px;
	width: 33%;
}
body.dark  input[disabled] {
    flex: 0;
    color: transparent;
    border: 0;
    width: 40px;
    text-overflow: ellipsis;
	color: #fff;
}
body.light  input[disabled] {
    flex: 0;
    color: #000;
    border: 0;
    width: 40px;
    text-overflow: ellipsis;
}
button {
	padding: 6px 12px;
	background: #0088cc;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	transition: background 0.2s;
}

button:hover {
	background: #006fa1;
}

.has-new{
	color: red;
	font-weight: 600;
}

#logoutMsg{
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
	mix-blend-mode: difference;
}















#cookieConsent1 {
	height:100vh;
    font-size: 14px;
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;	
    align-items: center;
    z-index: 9999;
    border-radius:0;
    display: grid;
    place-content: center;
    gap: 1ch;
	user-select: none;
	transition: unset;
	background-color: #000000ab;
}

#cookieConsent1 a {
    color: #fff;
    text-decoration: underline;
	
	transition: unset;
}
#closeCookieConsent {
	/*display: table;
	margin: 200px auto;
    max-width: none;
    height: auto;
    border: 0;
    
    bottom: 50%;
	left:0;
	right:0;*/
	padding:15px;
	background-color:rgba(0,0,0,0.85);
	border:solid 1px #999;
	
	transition: unset;
}
#closeCookieConsent h1{
	color:#fff;
	margin:10px 5px;
	
	transition: unset;
}

#closeCookieConsent:hover {
    color: #FFF;
	
	transition: unset;
}

#closeCookieConsent span {
    margin:0 auto;
	padding-top: 13px;
	
	transition: unset;

}

/*************/

.slideunlock-wrapper {
	margin-top:20px;
	
	transition: unset;
 /* width: 360px;
  position: relative;
  padding: 50px;
  background: #ECF0F1;
  margin: 0 auto;*/
}

.slideunlock-slider {
    /* padding: 10px; */
    position: relative;
    border-radius: 3px;
    background-color: #c6c6c6;
    overflow: hidden;
    text-align: right;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding-right: 10px !important;
    height: 50px;
    padding-top: 18px;
    padding-right: 0px;
    padding-left: 10px;
	  min-width:260px;
  max-width:310px;
  
	transition: unset;
}

.slideunlock-slider.success {
	padding-top: 12px;
	color:#58ac58;
	font-weight:800;
	 -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
								  
	transition: unset;
}

.slideunlock-label {
  width: 40%;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #5cb85c;
  z-index: 999;
  border-radius: 2px;
  cursor: pointer;
  padding-top: 11px !important;
  color:#fff;
  font-size:17px;
  font-weight:800;
  text-align:center;
  
	transition: unset;
}
.slideunlock-label:hover {
	background: #58ac58;
	
	transition: unset;
}

.slideunlock-label-tip { z-index: 9; 
	transition: unset;}
@media screen and (max-width: 640px) {

.slideunlock-wrapper { /*width: 64%;*/ }
}

.slideunlock-lable-tip{
	opacity: 1;
	color: darkgreen;
	padding-right: 5px;
	display: block;
	float: right;
	top: -14px;
	position: inherit;
	
	transition: unset;
}