@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");

:root {
	/* palette from coolors.co */
	--bg-blue: #3d405b;
	--bg-red: #e07a5f;
	--bg-sand: #f4f1de;
	--bg-green: #81b29a;
	--bg-orange: #f2cc8f;
}

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

body {
	height: 100vh;

	color: var(--bg-sand);
	background: var(--bg-blue);

	font-family: "Roboto", sans-serif;
	font-size: 18px;

	padding: 5rem 5rem;
}

.header {
	display: flex;
	gap: 3rem;
	align-items: center;
}

.logo {
	width: 4rem;
	height: 4rem;
}

.container {
	margin: 0 auto;

	max-width: 80rem;
	min-width: 25rem;

	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.main-area {
	/*height: 100%;*/
	padding: 0 5rem;

	display: flex;
	flex-wrap: wrap;
	justify-content: stretch;

	transition: all 0.2s;
}

.title {
	width: 100%;
	color: #fff;
}

.input-container {
	width: 50%;
	min-width: 20rem;
}

.results-area {
	width: 50%;
	min-width: 20rem;
	padding-left: 2rem;

	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.note {
	font-size: 12px;
	font-style: italic;
	padding-left: 0.5rem;
	padding-top: 0.25rem;
	color: var(--bg-green);
}

.input-area {
	margin-top: 2rem;
	display: flex;
	gap: 2rem;
}

.textarea {
	width: 33%;
	min-height: 5rem;
	min-width: 20rem;

	background: #f4f1de;
	color: #3d405b;
	padding: 0.5rem 1rem;
	font-size: 18px;
	border-radius: 3px;

	transition: all 0.2s;
}

.textarea:focus {
	outline-color: var(--bg-green);
	background-color: #fff;
}

.word-list-title {
	text-transform: uppercase;
	letter-spacing: 0.1rem;
}

.word-list {
	list-style: none;
	max-width: 20rem;

	/* scrollbar */
	max-height: 60vh;
	overflow-y: scroll;
}

.word-list::-webkit-scrollbar {
	width: 1vw;
}

.word-list::-webkit-scrollbar-thumb {
	background-color: var(--bg-green);
	border-radius: 100px;
}

.word-list::-webkit-scrollbar-track {
	background-color: var(--bg-sand);
	border-radius: 100px;
}

.word-list li {
	margin: 0 2rem;
}

.btn {
	width: 8rem;
	height: 2.5rem;
	padding: 0.5rem 2rem;
	align-self: end;

	background: #81b29a;
	border: none;
	border-radius: 2px;
	color: var(--bg-blue);

	font-size: 18px;

	transition: ease-out 0.3s;
}

.btn:hover {
	cursor: pointer;
	background: var(--bg-red);
	color: var(--bg-sand);
}

.btn:active {
	cursor: pointer;
	background: #fff;
	color: var(--bg-blue);
}

/* Assume 16px default, query at 1280px --> 80em*/
@media (max-width: 80em) {
	.main-area {
		gap: 2rem;
	}
	.results-area {
		padding-left: 0;
	}
	.word-list {
		max-height: 50vh;
	}
}

/* Assume 16px default, query at 800px --> 50em*/
@media (max-width: 50em) {
	.main-area {
		padding: 0;
	}
}

/* Assume 16px default, query at 800px --> 50em*/
@media (max-width: 37em) {
	.input-area {
		flex-direction: column;
		align-items: start;
		gap: 1rem;
	}
	.word-list {
		max-height: 40vh;
	}
}
