.preload * {
  /*This disables transition when the page first loads, which prevents the modals from flashing when the page first loads*/
  transition:none !important;
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
}

.dictionary-main {
	padding: 2rem;
	position: relative;
}

.dictionary-title {
	font-size: 3rem;
	font-weight: 700;
	text-align: center;
	color: #2c2d2a;
}

.footer {
  position: fixed;
  left: 0;
  bottom: 10px;
  width: 100%;
  font-size: 10px;
  font-family: Inter, monospace;
  color: #2c2d2a;
  text-align: center;
}


.add-word {
	position: fixed;
	font-size: 3rem;
	color: #2c2d2a;
	border: none;
	background-color: #b6d6c8;
	height: 5rem;
	width: 5rem;
	border-radius: 50%;
	right: 3rem;
	bottom: 2rem;
	cursor: pointer;
	box-shadow: 0 3px 5px rgb(156, 153, 153);
}

.add-word:hover {
	background: #a0bdb0;
}

.dictionary {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
	max-width: 1366px;
	margin: auto;
	list-style: none;
	margin-top: 1rem;
	align-items: center;
	justify-items: center;
	justify-content: space-around;
}

.word {
	margin: 2rem;
}

.word-button {
	font-size: 16px;
	border: none;
	background: #2c2d2a;
	padding: 5%;
  color:white;
	border-radius: 10px;
	box-shadow: 3px 3px 5px rgb(202, 195, 195);
	cursor: pointer;
	transition: transform 0.2s;
}

.word-button:hover {
	transform: translateY(-5%) scale(1.1);
}

.add-form-wrapper {
	visibility: hidden;
	opacity: 0;
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 2rem;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.add-form-wrapper-visible {
	visibility: visible;
	opacity: 1;
}

.form-bg {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	background: #e7dfcf;
}

.add-form-wrapper h3 {
	position: relative;
	z-index: 1;
	font-size: 2rem;
	color: #2c2d2a;
	padding-bottom: 2rem;
}

.add-form,
.word-info-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.651);
	padding: 2rem;
	min-width: 25rem;
	max-width: 50rem;
	box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.726);
	border-radius: 5px;
}
.add-form{
  min-width: 70vw;
}

.form-pair {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	margin-bottom: 1rem;
	width: 100%;
}

.form-pair label {
	margin-bottom: 0.2rem;
	color: white;
	font-size: 1rem;
}

.submit-add,
.submit-definition {
	background: #e7dfcf;
	color: black;
	border: none;
	padding: 0.5rem 1rem;
	margin-top: 2rem;
	font-size: 2rem;
	box-shadow: 3px 3px 3px rgb(0, 0, 0);
}
.submit-add{
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.submit-add:hover,
.submit-definition:hover {
	background: #b6d6c8;
	cursor: pointer;
	transition: background-color 0.2s;
}

.add-text-field {
	width: 100%;
	min-height: 1.8rem;
	font-size: 1.2rem;
}


.exit-add,
.exit-definition {
	position: absolute;
	top: 4rem;
	right: 2rem;
	background: none;
	color: #2c2d2a;
	border: none;
	font-size: 3rem;
	cursor: pointer;
  transition: color 0.2s;
}

.exit-add:hover,
.exit-definition:hover {
  color: rgb(224, 224, 224);
}

.word-info {
	visibility: hidden;
	opacity: 0;
	position: fixed;
	width: 100vw;
	min-height: 100vh;
	top: 1rem;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.word-info-visible {
	visibility: visible;
	opacity: 1;
}

.word-info-bg {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	background: #b6d6c8;
}

.word-info-content {
	color: white;
	align-items: flex-start;
	padding: 3rem 5rem;
  max-width: 80%;
}

.word-info-content h3 {
	font-size: 3rem;
	margin-bottom: 2rem;
	color: #ebf4dc;
  font-weight: bold;
}

.word-info-content p {
	font-size: 1rem;
	margin-bottom: 1rem;
}

.info-title {
	color: #ebf4dc;
}

.add-definition {
	margin-top: 0.2rem;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.add-definition textarea {
	width: 100%;
	font-size: 1rem;
}

.add-definition label {
	font-size: 1rem;
	margin-bottom: 0.2rem;
}

.definitions p {
	margin-bottom: 0.2rem;
}

.info-title-hidden {
	display: none;
}

.submit-definition {
	font-size: 1.5rem;
	width: 8rem;
	margin-top: 1rem;
	padding: 0.3rem;
}
