html, body {
	margin: 0;
	padding: 0;
	font-family: 'Outfit', sans-serif;
	color: #20124f;
	background-image:
		url('https://maksupay.com/wp-content/uploads/2024/11/Frame-48-2.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	height: 100%;
	line-height: 1.3;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

header {
	background-color: #20124f;
	padding: 1rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

header img {
	height: 40px;
}
h1 { margin-block-start: 0.93em; margin-block-end: 0.40em;}
h2 { margin-block-start: 0.83em; margin-block-end: 0.34em;}
h3 { margin-block-start: 0.73em; margin-block-end: 0.30em;}


.content {
	flex: 1;
	padding: 1rem 2rem;
	margin-top: 0.2rem;
	max-width: 900px;
	margin: 2px auto;
}

div { margin-top: 0.1em; }
span { display: inline-block; }

h1 {
	color: #20124f;
	font-size: 2rem;
	font-weight: 700;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

p {
	font-size: 1.0rem;
	line-height: 1.4;
}

.nav-buttons {
	margin-top: 0.5em;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: flex-start;
}

.nav-buttons a {
	background-color: #20124f;
	color: white;
	text-decoration: none;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	flex: 1 1 calc(33.333% - 1rem);
	text-align: center;
	transition: background-color 0.3s ease;
}

.nav-buttons a:hover {
	background-color: #150c36;
}

footer {
	text-align: center;
	padding: 2rem;
	background-color: #E5E7EB;
	font-size: 0.9rem;
}

@media ( max-width : 768px) {
	.nav-buttons a {
		flex: 1 1 100%;
	}
}

.back-btn:hover {
	background-color: #150c36;
}

.tool-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: flex-start;
}

.tool-buttons a {
	background-color: #20124f;
	color: white;
	text-decoration: none;
	padding: 1rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	/* flex-basis for 3 columns, box-sizing to avoid spacing issues */
	flex: 1 1 calc(33.333% - 1rem);
	box-sizing: border-box;
	text-align: center;
	transition: background-color 0.3s ease;
	min-width: 0; /* prevent overflow */
}

.tool-buttons a:hover {
	background-color: #150c36;
}

.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.dark {
	background-color: #20124f;
}

.sandbox-form {
	width: 900px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 32px;
	padding: 16px;
	border-radius: 8px;
	background-color: white;
}
.sandbox-row {
	display: flex;
	gap: 24px;
	justify-content: space-between;

}

.sandbox-input {
	flex-basis: 100%;

}

.sandbox-input input,textarea,select {
	box-sizing: border-box;
	width: 100%;
	background-color: transparent;
	padding: 4px 8px;
	outline: 0;
	transition: all .2s ease;
	color: #20124f;
	border: 1px solid #150c36;
	border-radius: 6px;
	font-size: 16px;
}


.sandbox-input select {
	cursor: pointer;
	padding-left: 12px;
}

.sandbox-input textarea {
    padding: 4px 8px;
    font-family: 'Outfit', sans-serif;
}

.sandbox-input input::placeholder, textarea::placeholder {
	color: #20124f;
}

.modal-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-wrapper.is-open {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	position: relative;
	width: 90%;
	max-width: 900px;
	max-height: 85%;
	overflow: auto;
	margin-bottom: 5%;
	margin-top: 5%;
	transform: translateY(-100px);
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-wrapper.is-open .modal-content {
	transform: translateY(0);
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 28px;
	font-weight: bold;
	color: #9ca3af;
	background-color: #efefef;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s ease;
}

.close-btn:hover {
	color: #20124f;
	background-color: white;
	box-shadow: 0 2px 4px rgba(32, 18, 79, 0.2);
}

.close-btn:active {
	color: white;
	background-color: #20124f;
	transform: scale(0.95);
}

.btn-secondary {
	color: #20124f;
	background-color: white;
	padding: 16px 24px;
	border: 2px solid #20124f;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	flex: 1 1 calc(33.333% - 1rem);
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-secondary:hover {
	color: white;
	background-color: #20124f;
	box-shadow: 0 4px 8px rgba(32, 18, 79, 0.2);
}

.btn-secondary:active {
	color: white;
	background-color: #150c33;
	transform: scale(0.98);
	box-shadow: 0 2px 4px rgba(32, 18, 79, 0.3);
}

@media ( max-width : 960px) {
	.sandbox-row {
		flex-direction: column;
	}
}

input:disabled, select:disabled, textarea:disabled, button#sandboxFormSubmit:disabled {
	background-color: #efefef;
	color: #6f63a0;
}

.is-invalid {
	border-color: #e53e3e !important;
	background-color: #ffe6e6 !important;
}

.error-msg {
	color: #e53e3e;
	font-size: 12px;
	padding: 0;
	margin: 0;
}

.error-msg > p {
	padding: 0;
	margin: 0;
}

@media ( max-width : 425px) {
	.tool-buttons {
		flex-direction: column;
	}
}