* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body, html {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background-color: #f7f8fa;
}

body {
	scroll-behavior: smooth;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	background-color: #f2f2f2;
	line-height: 1.1;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 0;
}

body::before {
	content: "";
	background-image: url('../images/bg.png');
	background-repeat: repeat;
	background-size: auto;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.05; /* Adjust this value for desired transparency */
	z-index: -1; /* Ensure it stays behind other content */
	pointer-events: none; /* Make the background non-interactive */
}

html {
	overflow-y: scroll;
	overflow-x: hidden;
	width: 100%;
	height: 100%;
}

.format-option {
	flex: 1;
	padding: 15px;
	border: 2px solid #e9eaf2;
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s;
}
.format-option.selected {
	background-color: #edf8fc;
	border: 2px solid #26a9e0;
}

.or-text {
	color: #004f9e;
	font-weight: bold;
	text-align: center;
}

.continue-btn {
	background-color: #ffb400;
	color: white;
	font-weight: bold;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
.landscape-suggestion {
	display: none;
	background-color: #004f9e;
	color: white;
	text-align: center;
	padding: 20px;
	border-radius: 10px;
}

#container_wrap {
	display: none;
}

.container_wrap_landscape {
	margin: auto;
	max-width: 700px;
	width: 700px;
}

.container_wrap_portrait {
	margin: auto;
	max-width: 600px;
	width: 95%;
}

.custom-checkbox {
	display: none; /* Hide default checkbox */
}

.checkbox-label {
	margin: 0;
	display: inline-block;
	width: 20px; /* Adjust as needed */
	height: 20px;
	cursor: pointer;
	background-image: url('../images/checkbox_empty.svg'); /* Default image */
	background-size: cover;
	transition: background-image 0.3s;
}

.custom-checkbox:checked + .checkbox-label {
	background-image: url('../images/checkbox_selected.svg'); /* Image when checked */
}

.landscape_preview_format_img {
	position: relative;
	height: auto;
	width: 200px;
}

.portrait_preview_format_img {
	position: relative;
	width: 100px;
	height: auto;
}

.format-option.selected .svg_format_icon {
}

.svg_format_icon path {
	fill: #333333;
}

.svg_format_icon {
	opacity: 0.2;
}

.logo_container {
	width: 150px;
}

.logo_container img {
	width:100%;
	height: 100%;
}

.container-fluid {
	background-color: white;
	padding: 10px;
	border: 2px solid #2a307d;
	border-radius: 30px;
}

.instructions_title {
	font-size: 16px;
	font-weight: 600;
}

.format_text {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 5;
	transform: translate(-50%, -50%);
}

.project_last_change_date {
	font-size: 11px;
}

.input {
	width: auto;
	padding: 6px 6px;
	border-radius: 6px;
	outline: none;
	border: 1px solid #cccccc;
}

/*******************************/
/* GRID DRAG AND DROP */
/*******************************/
#grid {
	box-sizing: content-box; /* important */
	display: grid;
	padding: 0;
	margin: 0;
	border-top: 1px solid #eeeeee;
	border-left: 1px solid #eeeeee;
	position: relative;
	overflow: hidden;
	gap: 0;
}
.grid-cell {
	border-bottom: 1px solid #eeeeee;
	border-right: 1px solid #eeeeee;
	padding: 0;
	margin: 0;
	gap: 0;
}
#panel {
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
}

.block {
	background: transparent;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2px;
	cursor: grab;
	border: 1px solid #aaaaaa;
	touch-action: none;
	overflow: hidden;
}

.placed {
	overflow: hidden;
}

#alertBox {
	padding: 2px 10px;
	display: none;
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	font-weight: 600;
	width: auto;
	text-align: center;
}

.preset_img_element {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
}

.resize-handle, .ui-resizable-handle.ui-resizable-se.ui-icon {
	width: 0 !important;
	height: 0 !important;
	border-top: 15px solid transparent !important;
	border-right: 15px solid gray !important;
	bottom: 0 !important;
	right: 0 !important;
	cursor: se-resize !important;
	background: none !important;
	position: absolute;
	z-index: 50;
}

.ui-icon.ui-icon-gripsmall-diagonal-se {
	background-image: none !important;
}

/* Spinner overlay on block */
.block .spinner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#blockOptionsMenu ul li {
	cursor: pointer;
}

#blockOptionsMenu .dropdown-menu {
	padding: 0;
	border-radius: 7px;
}

#blockOptionsMenu .dropdown-item {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 3px 7px;
}

.currentBlockSize {
}