@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

:root {
	--light-blue: #00cbff;
	--blue: #009dec;
	--blue-alt: #00aaff;
	--white-ish: #e3e7f1;
	--black: #1b1d20;
	--light-black: #333436;
	--dark-grey: #3f4143;
	--grey: #A4A9B7;
	--red: #e41645;
	--white: #ffffff;
	--light-grey: #9F9F9F;
	--light-red: #fd4a5d;
}

::-moz-selection {
	color: var(--white);
	background-color: var(--black);
}

::selection {
	color: var(--white);
	background-color: var(--black);
}

::placeholder {
	color: var(--dark-grey) !important;
	opacity: 1;
}

:-ms-input-placeholder {
	color: var(--dark-grey) !important;
}

::-ms-input-placeholder {
	color: var(--dark-grey) !important;
}

html, section {
	overflow-x: hidden;
}

body {
	background-color: var(--black);
	color: var(--primary-color);
	font-family: 'Poppins', sans-serif;
	overflow-x: hidden;
	font-size: 14px;
}

#loader {
	transition: all 0.3s ease-in-out;
	opacity: 1;
	visibility: visible;
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	height: 100%;
	width: 100%;
	background: #fff;
	z-index: 9000;
}
#loader img {
	width: 25%;
}

#loader.hidden {
	animation: fadeOut 1s;
	animation-fill-mode: forwards;
}

@keyframes fadeOut {
	100% {
		opacity: 0;
		visibility: hidden;
	}
}

@media (max-width: 576px){
	#loader img {
		width: 50%;
	}
}

/* Spacing */

.mt-24 {
	margin-top: 24px !important;
}

.mb-24 {
	margin-bottom: 24px !important;
}

.mt-18 {
	margin-top: 24px !important;
}

.my-24 {
	margin-top: 24px !important;
	margin-bottom: 24px !important;
}

.py-54 {
	padding-bottom: 54px;
	padding-top: 54px;
}

.my-54 {
	margin-bottom: 54px;
	margin-top: 54px;
}

.mb-54 {
	margin-bottom: 54px;
}

.mt-54 {
	margin-top: 54px;
}

/* Colors */

.c-blue {
	color: var(--blue) !important;
}

.c-grey {
	color: var(--grey);
}

.c-white {
	color: var(--white);
}

.bg-blue {
	background-color: var(--blue) !important;
}

.bg-grey {
	background-color: var(--light-black);
}

/* Buttons */

.btn {
	text-transform: uppercase;
	border-radius: 8px;
}

.btn-small {
	font-size: 13px;
	padding: 0.25rem 1.5rem;
}

.btn-medium {
	font-size: 14px;
	padding: 8px 16px;
}

.btn-large {
	font-size: 18px;
	font-weight: 600;
	padding: 12px 54px;
}

.btn-outline-white {
	border: 1px solid var(--white-ish);
	color: var(--white-ish);
	font-weight: 600;
	background-color: transparent;
	box-shadow: 0 6px 12px rgb(0 0 0 / 30%);
}

.btn-outline-white:hover {
	color: var(--white);
	border-color: var(--white);
}

.btn-outline-white:focus {

}

.btn-outline-blue {
	border: 2px solid var(--blue);
	color: var(--blue);
	font-weight: 600;
	background-color: transparent;
	box-shadow: 0 6px 12px rgb(0 157 236 / 30%);
}

.btn-blue {
	color: var(--white);
	background-color: var(--blue);
	box-shadow: 0 6px 12px rgb(0 157 236 / 30%);
}

.btn-blue:hover {
	color: var(--white);
	background-color: var(--blue-alt);
	box-shadow: 0 8px 16px rgb(0 157 236 / 30%);
}

.btn-red {
	color: var(--white);
	font-weight: 600;
	background-color: var(--red);
	box-shadow: 0 6px 12px rgb(236 0 0 / 30%);
}

.btn-outline-red {
	border: 2px solid var(--red);
	color: var(--red);
	font-weight: 600;
	background-color: transparent;
	box-shadow: 0 6px 12px rgb(236 0 0 / 30%);
}

.btn-link {
	color: var(--white-ish);
	text-decoration: none;
}

.btn-link:hover, .btn-link:active, .btn-link:focus {
	color: var(--light-blue);
	text-decoration: none;
}

/* Navbar */

.navbar {
	padding: 16px 54px;
}

.navbar + section {
	margin-top: 131px;
}

.nav-dark {
	position: fixed;
	width: 100%;
	background-color: rgb(27 29 32 / 95%);
	z-index: 100;
	backdrop-filter: blur(5px);
}

.nav-dark .nav-item a {
	text-transform: unset;
	font-size: 16px;
	font-weight: 500;
	color: var(--grey);
	transition: .3s all ease-in-out;
}

.nav-item a:hover, .social-icons a:hover {
	text-decoration: none;
	color: var(--white);
	transition: .3s all ease-in-out;
}

.nav-item {
	margin-right: 54px;
}

.crumbs-container {
	min-height: calc(100vh - 184px);
	border-radius: 13px;
	border: 2px solid var(--dark-grey);
	margin-left: 54px;
	margin-right: 54px;
}

#codeTextArea {
	height: 440px;
}

.CodeMirror {
	height: 440px;
	border-radius: 13px;
	border-right: 1px solid var(--dark-grey);
	border-bottom-right-radius: 0px;
	border-top-right-radius: 0px;
}

#crumbs .details-container {
	height: 97%;
	position: relative;
}

.crumb-details {
	font-family: 'Share Tech Mono', monospace;
	font-size: 15px;
	color: #767677;
	margin-right: 20px;
	text-shadow: 2px 2px 4px #0e0e0e;
	width: max-content;
}

.crumb-form-details {
	font-family: 'Share Tech Mono', monospace;
	font-size: 15px;
	color: #767677;
	text-shadow: 2px 2px 4px #0e0e0e;
	position: absolute;
	bottom: 0px;
}

.custom-select {
	display: inline-block;
	width: unset;
	padding: .375rem 1.75rem .375rem 1rem;
	font-size: 14px;
	color: var(--white-ish);
	background-color: var(--black);
	border: 1px solid var(--white-ish);
	border-radius: 8px;
}

.custom-select:focus {
	border-color: transparent; 
	outline: 0;
	box-shadow: none; 
}

.save-btn {
	font-size: 14px;
	padding: .375rem 1.5rem;
	text-transform: capitalize;
	font-weight: 400;
}

.alert {
	position: absolute;
	padding: .75rem 1.25rem;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	border-radius: .25rem;
	z-index: 1000;
	width: 100%;
	background-color: rgb(27 29 32 / 86%);
	color: var(--white-ish);
	backdrop-filter: blur(1px);
}

.alert-danger {
	position: relative;
	color: var(--light-red);
	text-shadow: none;
	border-color: var(--light-red);
}

.errorlist {
	padding-left: 0px;
	list-style: none;
	color: var(--light-red);
	margin-bottom: 8px;
	text-shadow: none;
}

.close {
	color: var(--white-ish);
	text-shadow: none;
	font-size: 1rem;
	opacity: 1;
	transition: all .3s ease-in-out;
}

.close:hover {
	color: var(--light-blue);
	transition: all .3s ease-in-out;
}

.tooltip-inner {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
}

.details-container input, .details-container textarea {
	border: 1px solid var(--dark-grey);
	background-color: transparent;
	border-radius: 5px;
	color: var(--grey);
	padding: .125rem .75rem;
	width: 100%;
}

.right-bar {
	padding: 20px;
	height: 100%;
}

.utilities {
	display: flex;
	justify-content: space-between;
}

.CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
	background: var(--dark-grey);
}

.CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div {
	background: var(--grey);
}

#crumbs label {
	display: inline-block;
	margin-bottom: .5rem;
	font-size: 13px;
	text-transform: lowercase;
}

.dropdown-menu {
	padding: 0px;
	right: 53px;
	width: calc(100vw - 104px);
	background-color: var(--light-black);
	color: var(--grey);
	height: calc(100vh - 173px);
	top: 95%;
	border-radius: 12px;
	overflow-y: auto;
}

.dropdown-item {
	display: inline; 
	width: auto;
}

.dropdown-container {
	padding: 32px;
}

/* Snippets List */

#snippets .card-body .val {
	text-transform: lowercase;
}

#snippets .card-body .val.language {
	text-transform: capitalize;
}

.snippet .description {
	color: #6f7880;
	font-weight: 500;
}

.snippet {
    background-color: var(--black);
    font-size: 14px;
    font-weight: 500;
    min-width: 264px;
    margin-bottom: 24px !important;
}

.snippet .card-body {
	color: var(--white-ish);
}

.snippet a {
	transition: unset !important;
}

.snippet a:hover {
	transition: unset !important;
}

.snippet .title {
	color: #e2777a;
}

.snippet .desc {
	color: #7ec699;
}

.snippet .val {
	color: #ae81ff;
}

.snippet .val.language {
	color: #e6db74;
}

.sidebar .sidebar-heading, .sidebar .info {
	margin-bottom: 24px;
}

/* Responsiveness */
/* 576 */

@media (max-width: 576px){

	.navbar {
		padding: 16px 32px;
	}

	.navbar-toggler {
		border: 1px solid var(--dark-grey);
		padding: 8px;
	}

	.navbar-toggler-icon {
		color: var(--white-ish);
		height: unset;
	}

	.crumbs-container {
		margin-left: 16px;
		margin-right: 16px;
	}

	.CodeMirror {
		border-right: none;
	}

	.crumb-form-details {
		margin-left: 16px;
		position: relative;
		margin-top: 16px;
	}

	.utilities {
		margin-left: 16px;
	}

	.dropdown-menu {
	    right: 12px;
	    width: calc(100vw - 24px);
	}

}