html{
	--font-family: "inter ui", -apple-system, BlinkMacSystemFont, roboto, "segoe ui", Helvetica, Arial, sans-serif;
	--font-family2: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	height: 100%;
}


body {
	font-family: var(--font-family);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: .3rem;
	padding-top: 0;
}

.palette-output {
	flex: 1;
	width: 100%;
	margin-top: 3.5rem;
	padding-top: .3rem;
	max-width: 100%;
	/* overflow-x: auto; */
	display: flex;
	flex-direction: row;
	gap: 0.3rem;
	transform-origin: left;
}

.palette-output.complementary{
	flex-wrap: wrap;
}

.palette-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 0.3rem;
}

.palette-column {
	min-width: 8rem;
	flex: 1;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: .3rem;
}


.color-info {
	background-color: inherit;
	width: 100%;
	text-align: center;
	margin-top: 40px;
	margin-bottom: auto;
}



.color-info .hex {
	font-size: 1.5rem;
	font-weight: bold;
}
.color-info .name {
	font-size: 1.1rem;
	font-weight: 500;
	opacity: 0.85;
	margin-top: 8px;
}
.color-info .rgb {
	font-size: 1rem;
	font-weight: 400;
	opacity: 0.7;
	margin-top: 2px;
}




#action-nav {
  width: 100vw;
  overflow-x: clip;
  position: fixed;
  max-width: 100vw !important;
  height: 3.5rem;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  gap: .5rem;
}

.btn {
	appearance: none;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
	background: #fff;
	color: #111;
	font-size: 1.25rem;
	font-weight: 100;
	box-shadow: 0 8px 24px 0 rgba(0,0,0,0.08);
	cursor: pointer;
	border: none;
	will-change: box-shadow,transform;
	transition: all .3s;
}


.btn-circle {
	user-select: none;
	width: 2.5rem;
	border-radius: 50%;
	font-size: 1rem;
	color: #222;
	border: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	outline: 2px solid transparent;


}
.btn-circle:hover{
	will-change: box-shadow,transform;
	transition: all .3s;
	box-shadow: 0 12px 32px 0 rgba(91, 139, 255, 0.13);
	transform: scale(1.08);
}

.btn-circle div:active{
	outline-color: #5b8bff;
}

.btn-circle .icon img{
	border: none;
	height: 100%;
	width: auto;
}

.btn-circle .icon{
	height: 1.35rem;
}

.icon img{
	height: 100%;
}

#action-nav .btn .icon img{
	filter: contrast(62%);
}

body .btn-overlay.active .icon img{
	filter: invert(100%) !important;
}

.btn-overlay{
	padding: .2rem !important;
}

.btn.active {
  color: #fff;
  box-shadow: 0 12px 32px 0 rgba(91, 139, 255, 0.18);
}

.btn div{
	border-radius: inherit;
	background-color: none !important;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.btn.active div{
	background-color: #5b8bff;
}

.btn .active svg{
	transform: scaleX(-1);
}


nav#action-nav .btn {
	background: transparent;
	border: none;
	border-radius: 6px;
	padding: 0.4rem 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s;
	box-shadow: none;
	color: #222;
	font-size: 1.2rem;
	margin-left: 0.2rem;
	margin-right: 0.2rem;
	width: 2.75rem;
	min-width: 2.75rem;
	height: 2.75rem;
}
nav#action-nav .btn:hover{
background: #f2f3f5;
color: #111;
}
nav#action-nav .btn:active {
background: #e0e3ea;
}
nav#action-nav .btn .icon img {
width: 1.5rem;
height: 1.5rem;
display: block;
}

.btn{
	position: relative;
	overflow: visible;
}

.btn::after{
	content: attr(titlehover);
	pointer-events: none;
	position: absolute;
	opacity: 0;
	will-change: opacity;
	transition: .3s opacity;
	padding: .33rem .43rem;
	top: 111%;
	font-weight: 400 !important;
	font-size: .88rem;
	border-radius: inherit;
	background: #2e2d2ded;
	color: white;
	font-family: var(--font-family2);
	text-wrap: nowrap;
	z-index: 7;
}

.btn-inner .icon img{
	filter: contrast(.5);
	position: relative !important;
	z-index: 2 !important;
}

.btn-inner::after{
	content: "";
	display: none;
}

.btn-inner-hover::after{
	top: 0;
	left: -121%;
	content: attr(titlehover) !important;
	display: initial;
	z-index: 3;
}

.btn:hover::after{
	opacity: 1;
	will-change: opacity;
	transition: .3s opacity;
}

.menu-btn{
	position: relative;
}

.menu-btn .modern-select.active{
	visibility: visible;
}


.menu-btn .modern-select{
	position: absolute;
	visibility: hidden;
	top: 101%;
	left: -.3rem;
	display: flex;
	flex-direction: column;
	z-index: -1;
	border-radius: .3rem;
	background-color: white;
	padding: .3rem;
	box-shadow: 0 .1rem .3rem rgba(156, 171, 187, 0.3);
}

body .modern-select > .btn{
	height: unset !important;
	padding: .1rem .6rem !important;
	max-width: unset;
	width: unset !important;
	justify-content: flex-start !important;
}

.btn-desc{
	margin:.35rem;	
	font-size: .95rem;
	color: #444;
	font-weight: 400;
}

#picker-box{
	padding: .2rem !important;

}

#open-file-input{
	display: none;
	
}

.o-hidden{
	border-radius: inherit;
	overflow: hidden;
	height: 100%;
}






.color-inputs{
	cursor: pointer;
	padding: 0px;
	padding-block: 0px;
	appearance: none;
	border: none;
	border-width: 0px;
	box-sizing: border-box;
	padding-inline: 0px;
	/* scale the color input so you wont see it's ugly borders */
	transform: scale(3);
	min-height: 100%;
	min-width: 100%;
	margin: auto auto;
}

.color-picker-container{
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: clip;
	border: 5px solid white;
	box-sizing: border-box;	
}







/* Pdf export - printing */

@media print {

	#action-nav{
		display: none;
	}

	.palette-output{
		margin-top: 0;
	}
	
}

@page {
	size: landscape;
}




#github-link{
	margin-left: 0 !important;
	margin-right: auto !important;
	padding: 0 !important;
}

nav#action-nav #github-link img{
	height: .9rem;
}

#action-nav h2{
	margin: 0 !important;
    line-height: 0;
    font-weight: 400;
    letter-spacing: .3px;
    font-family: var(--font-family2);
}