@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--col-primary: #1e1e1e;
	--col-scrollbar: #569cd6;
}

body {
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-family: "JetBrains Mono", serif;
}

.___editor___ {
	width: 80%;
	height: 90%;
	background-color: var(--col-primary);
	border-radius: 1rem;
	color: white;
	outline: none;
	overflow-y: scroll;
	counter-reset: line;
	opacity: 1;
	overflow-x: hidden;
}

.___editor___::-webkit-scrollbar, #___suggestion-container___::-webkit-scrollbar {
	width: 7px;
}
        
.___editor___::-webkit-scrollbar-track, #___suggestion-container___::-webkit-scrollbar-track {
	border-radius: 8px;
	background-color: #e7e7e7;
	border: 1px solid #cacaca;
}

.___editor___::-webkit-scrollbar-thumb, #___suggestion-container___::-webkit-scrollbar-thumb {
	border-radius: 8px;
	background-color: var(--col-scrollbar);
}

.___editor___ div {
	position: relative;
	display: block;
	white-space: pre-wrap;
}


.___editor___ div::before {
	content: counter(line);
  counter-increment: line;
	padding: 1rem;
}

#___suggestion-container___ {
	position: absolute;
	min-width: 100px;
	max-height: 300px;
	background-color: #1c1e21;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	border-radius: 5px;
}

.___suggestion___ {
	display: block;
	width: 100%;
	height: 20px;
	background-color: #1c1e21;
	color: white;
	padding: .25rem;
	border: none;
	outline: none;
	z-index: 1099;
}

.___suggestion___:hover {
	background-color: gray;
	cursor: pointer;
	font-weight: bold;
}

.___suggestion___:focus {
	background-color: gray;
	font-weight: bold;
}

.___first-dummy-suggestion___, .___last-dummy-suggestion___ {
	opacity: 0;
}

.opm-background {
	background-image: url("../opm-wallpaper.jpg");
	background-position: cover;
	background-repeat: no-repeat;
  background-origin: content-box;
	background-color: rgba(200,100,0,.5);
  background-blend-mode: multiply;
	z-index: 1;
}

.opm-editor {
	background-color: transparent !important;
}

.___opm-suggestion-container___ {
	background-color: transparent !important;
	-webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.opm-suggestion {
	background-color: transparent !important;
	-webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
