@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sansita+Swashed&display=swap');

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

:root {
	/* some robbed colors from tailwind */
	font-size: 62.5%;
	--gray-200: #e5e7eb;
	--gray-400: #9ca3af;
	--gray-600: #4b5563;
	--gray-800: #1f2937;
	--yellow-400: #fbbf24;
	--blue-600: #2563eb;
	--ind-600: #4f46e5;
	--green-600: #34d399;
}

body {
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr;
}

/* css for title starts */

header {
	user-select: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	font-size: 2.2rem;
	gap: 4px;
}
.titlePt1 {
	font-family: 'Sansita Swashed', cursive;
	color: var(--green-600);
	position: relative;
	bottom: 5px;
	font-size: 2.4em;
}
header > i {
	font-size: 1.5em;
	color: var(--gray-800);
	border-radius: 50%;
	text-shadow: 0 3px 0 var(--gray-400);
}
.titlePt2 {
	position: relative;
	bottom: 5px;
	font-size: 2.4em;
	font-family: 'Sansita Swashed', cursive;
	color: var(--blue-600);
}

/* css for title ends */

/* css for main starts */

main {
	position: relative;
	display: grid;
	grid-template-rows: repeat(2, 1fr);
	font-size: 2rem;
	outline: 1px solid black;
}

@media (min-width: 640px) {
	main {
		grid-template-rows: none;
		grid-template-columns: repeat(2, 1fr);
	}
}

.TextContainer {
	background-color: var(--gray-200);
	color: var(--gray-800);
	padding: 0.4em;
	font-size: 1.2em;
	font-weight: bold;
	border: none;
	resize: none;
	font-family: monospace;
	outline: none;
	caret-color: var(--green-600);
}

.TextContainer:focus {
	border-top: 2px solid var(--green-600);
}

.TextContainer::selection {
	background: var(--gray-800);
	color: var(--gray-200);
}

.MorseContainer {
	background-color: var(--gray-800);
	color: var(--gray-200);
	padding: 0.4em;
	font-size: 1.2em;
	font-weight: bold;
	border: none;
	resize: none;
	font-family: monospace;
	outline: none;
	caret-color: var(--blue-600);
}

.MorseContainer:focus {
	border-top: 2px solid var(--blue-600);
}

.MorseContainer::selection {
	background: var(--gray-200);
	color: var(--gray-800);
}

/* switch button */

main > span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 5rem;
}

span > input {
	display: none;
}

/* css for main ends */
