* {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
    height: 100%; /* */
	font-family: monospace;
	/* padding: 1em; */
	background: linear-gradient(180deg, #f9f9f9 10%, #f0f0f0 100%); /* */
	color: #595959;
}

body.help-mode,
body.help-mode * {
  cursor: help !important;
}


.btn-font {
	font-family: monospace;
	font-size: 12px;
	cursor: pointer;
	border: 0;
	color: #fff;
	font-weight: bold;
	border-radius: 3px;
	outline: 0;
	padding: 8px 16px;
}

.btn-font:hover {
	transform: scale(1.01); /* Slightly enlarge the button on hover */
}

.btn-font:hover {
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
}

header {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 16px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#app-title {
	font-size: 1.5em;
	font-weight: 600;
	margin-right: 0.5em;
}

.card {
	background: #fff;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
	padding-bottom: 16px;
	width:100%;
}

.card header {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #ddd;
	margin-bottom: 1em;
	padding: 16px;
	justify-content: center;
}

.card header h1 {
	margin: 0;
}

.card header .button-as-link {
	margin-right: 1em;
}

.card aside {
	padding-left: 16px;
	padding-right: 16px;
}

.button-as-link {
	appearance: none;
	text-decoration: underline;
	background: transparent;
	color: #7f808e;
	border: 0;
	outline: 0;
	cursor: pointer;
}

.layers button.active {
	font-weight: bold;
	color: #0884f1;
}

.button-group {
  display: flex;
  /* width: 100% !important; /* or set a fixed width if desired */
  flex-wrap: wrap;
  flex-grow: 1;
}

.button-group .primary-button {
  flex: 1;
  text-align: center;
  border-radius: 0;
  margin-right: -1px; /* avoid double borders */
  border-left: 1px solid #142034 !important;
  /* border-left: 1px solid #3166c7; */
}

.button-group .primary-button:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.button-group .primary-button:last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  margin-right: 0;
}

.primary-button {
	border: 0;
	background: #3D4F65;
	border-top: 4px solid transparent !important;
	border-bottom: 4px solid #142034 !important;
	color: #fff;
	font-weight: bold;
	border-radius: 3px;
	outline: 0;
	padding: 8px 16px;
}

.primary-button.active {
  font-weight: 700;
  background: #142034;
  border-bottom-color: #0c1420;
}

.old-primary-button.active {
  font-weight: 700;
  background: #3166c7;
  border-bottom-color: #1f4eaa;
}

.old-blue-button {
	border: 0;
	background: #4e84fa;
	border-top: 4px solid transparent;
	border-bottom: 4px solid #3166c7;
	color: #fff;
	font-weight: bold;
	border-radius: 3px;
	outline: 0;
	padding: 8px 16px;
}

/* Green button style */
.green-button {
	background: #4caf50 !important; /* Green background */
	border-top: 4px solid transparent !important;
	border-bottom: 4px solid #388e3c  !important; /* Darker green border */
}

.grey-button {
	background: #737373;
	border-top: 4px solid transparent !important;
	border-bottom: 4px solid #595959 !important;
}

.gold-button {
	background: #bbb09b;
	border-top: 4px solid transparent !important;
	border-bottom: 4px solid #ada28e !important;
	/* color: #595959; */
}

.dropdown-content {
	position: absolute;
	background-color: #fff;
	width: 100%;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
	z-index: 1;
	border-radius: 3px;
	overflow: hidden;
	margin-top: 4px;
	display: flex;
	flex-direction: column;
}
.dropdown-item {
	background: none;
	border: none;
	padding: 10px 16px;
	text-align: left;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	width: 100%;
}
.dropdown-item:hover {
	background-color: #f1f1f1;
}

.pen-icon {
	visibility: hidden;
}

.layers .active {
	visibility: visible !important;
}

.grid-basic {
	background-size: 32px 32px;
}

.grid.no-lines {
	background-image: none !important;
	background-size: 32px 32px;
}

canvas {
	display: block;
	margin: 0;
	padding: 0;
}

/* Base button style */
.dropdown-button {
	border: 0;
	color: #fff;
	font-weight: bold;
	border-radius: 3px;
	outline: 0;
	padding: 8px 16px;
	cursor: pointer;
	position: relative;
}

/* Dropdown container */
.dropdown {
	position: relative;
	display: flex;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
	display: none;
	top: 3em;
	position: absolute;
	background-color: #fff;
	min-width: 170px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 1;
	border-radius: 3px;
	overflow: hidden;
}

.dropdown-content-drawing-layers {
	min-width: 230px;
}

/* Dropdown content links */
.dropdown-content div {
	color: #333;
	padding: 10px 16px;
	text-decoration: none;
	display: inline-block;
	font-size: 14px;
	cursor: pointer;
}

/* Hover effects for dropdown links */
.dropdown-content div:hover {
	background-color: #f1f1f1;
}

/* Show dropdown when hovering or clicking */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
	display: block;
}

/* TOGGLES */
.slider {
	width: 50px;
	height: 25px;
	border-radius: 12px;
	background-color: #ddd;
	display: flex;
	align-items: center;
	padding: 5px;
	cursor: pointer;
	position: relative;
	transition: background-color 0.3s ease;
}

.slider.on {
	background-color: #4caf50;
}

.slider-button {
	width: 22px;
	height: 22px;
	background-color: white;
	border-radius: 50%;
	position: absolute;
	left: 2px;
	transition: transform 0.3s ease;
}

.slider.on .slider-button {
	transform: translateX(25px);
}

.pen-icon {
	visibility: hidden;
}

.layers .active {
	visibility: visible !important;
}

/* TOGGLES */

.toggle-btn-text {
	font-family: monospace !important;
}

.font-size-14 {
	font-size: 14px;
}

/* center-align all your button elements */
button[class*='btn-font'],
button.dropdown-button {
	vertical-align: middle;
}

/* unify primary-button bottom border color */
.undo-redo-container button {
	border-bottom: 4px solid #3166c7;
}

/* full-width, blocky dropdown items */
.dropdown-item {
	display: block;
	width: 100%;
}
.dropdown-item:hover {
	background-color: #f1f1f1;
}

/* FLEX for Header */
.flex-row-group {
	display: flex;
	width: 100% !important;
	column-gap: 4px;
    row-gap: 8px;
    flex-wrap: wrap;
}

/* STICKY LEFT AND RIGHT SIDE TO THE GRID */
.body-with-notes {
	display: flex;
	align-items: flex-start;
	overflow-x: hidden;
}

.canvas-wrapper {
	flex: 1 1 auto;
	min-width: 0;
	overflow: auto;
}

/*
.grid {
	display: inline-block; /* shrink to fit the canvas 
	background-image:
		repeating-linear-gradient(#ccc 0 1px, transparent 1px 100%),
		repeating-linear-gradient(90deg, #ccc 0 1px, transparent 1px 100%);
	background-size: var(--tile-size) var(--tile-size);
	background-position: -1px -1px;
}*/

canvas {
	height: auto;
}
:root {
	--tile-size: 32px; /* initial value */
}
