:root {
  --main-color: #139874;
  --main-color-dark: #374b43;
  --main-color-neutral: #9ab0a7;
  --main-color-accent: #6684cf;
  --main-color-accent2: #2b5398;
}

body {
	background: #efefef;
	font-family: "Esteban", serif;
	margin: 0px;
}

h1 {
	font-size: 24pt; /* Why is mobile weird about this? */
}

a {
	color: inherit;
	text-decoration: none;
}
a:hover {
	color: var(--main-color);
}

#navbar {
	position: fixed;
	overflow: hidden;
	display: flex;
	width: 100%;
	background: var(--main-color-dark);
	height: 90px;
	align-items: center;
	color: white;
	letter-spacing: 1.2px;
	gap: 80px;
	top: 0px;
	z-index: 999;
}

#generate-poem-link {
	color: white;
  font-weight: bold;
  background: var(--main-color-accent);
  border-radius: 8px;
	padding: 8px;
  padding-left: 12px;
  padding-right: 12px;
}

#search-container {
	margin-left: auto;
	margin-right: 38px;
	box-sizing: border-box;
}

#search-container input[type=text] {
	float: left;
	background: none;
	color: white;
	outline: none;
	font-size: 16pt;
	padding: 6px;
	border: 1px solid white;
}

#search-container input[type=submit] {
	float: left;
	width: 40px;
	font-size: 17.3pt;
	border: 1px solid white;
	padding: 6px;
	background-size: 24px;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
}
#search-container input[type=submit]:hover {
	background-color: #d0d0d0;
}

#search-bar, #search-bar::placeholder {
	font-family: "Esteban", serif;
}

#stein-logo {
	border-radius: 50%;
	max-height: 78px;
	margin-left: 38px;
	width: 78px;
}

.wrapper {
	margin-top: 90px;
}

.content {
	padding: 12px;
	max-width: 800px;
	background: white;
	margin: 0px auto;
	min-height: calc(100vh - 90px);
	padding-left: 50px;
	padding-right: 50px;
	padding-bottom: 50px;
	margin-bottom: 50px;
}

#poem-body-container {
	margin-left: 40px;
    text-indent: -40px;
}

.poem-container {
	max-width: 500px;
	margin: 0px auto;
	padding-bottom: 50px;
}

.information-container {
	max-width: 666px;
	margin: 0px auto;
	padding-bottom: 50px;
}

.generate-poem-button {
	background-color: #EEEEEE;
	color: #333333;
	padding: 2px 6px 2px 6px;
	border-top: 1px solid #CCCCCC;
	border-right: 1px solid #333333;
	border-bottom: 1px solid #333333;
	border-left: 1px solid #CCCCCC;
	width: 100%;
  display: block;
  text-align: center;
  padding: 8px;
  margin: 40px 0px 40px 0px;
  text-decoration: none;
  font-size: 15pt;
}

.controls-container {
	background: #d0d0d0;
	padding: 20px;
 	border-radius: 7px;
 	margin: 50px;
  margin-top: 20px;
}

.controls-wrapper {
  display: flex;
  justify-content: center;
}

.controls-box {
	display: flex;
  flex-direction: column;
}

.controls-option {
	display: flex;
  flex: 1;
  padding: 8px;
}

.control-item {
	flex: 1;
	width: 200px;
}

#regenerate-section {
	flex: 0 0 100%;
	text-align: center;
	padding-top: 15px;
}
#regenerate-section button {
	padding: 5px;
	width: 100%;
}

#poem-body-container a {
	opacity: 0;
	transition: opacity 0.2s ease;
}

#world-cloud-container {
	width: 75%;
	margin: auto;
	display: block;
	margin-bottom: 40px;
}

#world-cloud-container img {
	width: 100%;
}

#world-cloud-container figcaption {
	font-style: italic;
	font-size: 9pt;
	text-align: center;
}

/* Example images */
.example-image {
	width: 75%;
  border: 1px solid #ccc;
  padding-left: 12px;
  padding-right: 12px;
  margin: auto;
  display: block;
}

hr {
	margin-top: 60px;
	margin-bottom: 60px;
}

.bio-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
}
.bio-container:first-of-type {
  margin-top: 0px;
}

.bio-image {
  padding-left: 40px;
}

.bio-image img {
	display: block;
  width: auto;
  height: 100px;
  border-radius: 50%;
  border: 1px solid #999;
  filter: grayscale(100%);
}

.bio-container>.bio-text {
  flex-grow: 2;
}

/* Word count page */

.word-rel-table {
  border-collapse: collapse;
  width: 100%;
}

.word-rel-table td, th {
  border: 1px solid #ddd;
  padding: 8px;
}

.word-rel-table tr:nth-child(even){background-color: #f2f2f2;}

.word-rel-table tr:hover {background-color: #ddd;}

.word-rel-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: var(--main-color);
  color: white;
}

/* Hamburger menu */
#hamburger-icon {
	position: absolute;
  left: 30px;
  top: calc(50% - 15px);
  height: 30px;
  width: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

#hamburger-icon span {
  display: block;
  width: 35px;
  height: 3px; /* Adjust line thickness */
  background-color: #eee; /* Adjust line color */
  border-radius: 2px; /* Optional: rounded ends for lines */
  transition: all 0.3s ease-in-out; /* For animation */
}

#hamburger-icon.open span:nth-child(1) {
  transform: translateY(13px) rotate(45deg); /* Adjust translateY based on height */
}

#hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

#hamburger-icon.open span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg); /* Adjust translateY based on height */
}

#mobile-links { /* is 212px tall */
	position: fixed;
	top: 90px;
	display: none;
	width: 100%;
}

#mobile-links a {
	display: block;
  color: white;
  background-color: #333;
  padding: 16px;
}
#mobile-links a:hover {
  background-color: var(--main-color);
}

/* ------ TOGGLE TEXTS ------- */

.corpus-toggle-container {
	padding: 16px;
	display: flex;
}

.corpus-toggle-container:nth-child(odd) {
	background: #eee;
}

.corpus-toggle-container input[type="checkbox"] {
	width: 14px;
	height: 14px;
}

.corpus-toggle-container label {
	font-size: 14pt;
	margin-left: 20px;
}

.corpus-toggle-container .button-link {
  /* Add button-like styling */
  display: inline-block;
  padding: 8px;
  background-color: #f6f6f6; /* Gray background */
  text-decoration: none; /* Remove default link underline */
  border: 1px solid #bbb;
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Change cursor to pointer */
  text-align: center;
  /* custom */
  font-family: Arial;
	margin-left: auto;
	font-size: 7pt;
}

.corpus-toggle-container .button-link:hover {
  background-color: #ccc;
}

/* ------ MEDIA QUERIES ------ */

.show-on-mobile {
	display: none !important;
}

/* Scrunched desktop; reduce navbar gap */
@media screen and (max-width: 1230px) {
	#navbar {
		gap: 20px;
	}
}

/* Too tight for menu; switch to hamburger menu */
@media screen and (max-width: 940px) {
	#navbar {
		gap: 0px;
		justify-content: center;
	}
	.hide-on-mobile {
		display: none;
	}
	.show-on-mobile {
		display: flex !important;
	}
}


/* Mobile; reduce spacing around generate poem controls */
@media screen and (max-width: 850px) {
  .content {
  	padding-left: 12px;
  	padding-right: 12px;
  }
	.controls-container {
		margin: 0px;
	}
	.control-item {
		width: 50%;
	}
}