html,
body {
	margin: 0;
	padding: 0;
}

button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 100%;
	vertical-align: baseline;
	font-family: inherit;
	font-weight: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font: 14px 'Helvetica Neue', Helvetica, Arial, sans-serif;
	line-height: 1.4em;
	background: rgb(52, 53, 65);
	color: rgb(173, 216, 230);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 300;
}

:focus {
	outline: 0;
}

.hidden {
	display: none;
}

/* Gratitude Page */
.gratitude-input {
	font-size: 24px;
	font-family: inherit;
	font-weight: inherit;
	line-height: 1.4em;
	color: inherit;
	padding: 6px;	
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin-top: 20px;
}

.gratitude-input input {
	border-bottom: 1px solid rgb(188, 232, 191);
	margin-top: 25px;
	margin-bottom: 25px;
}

.gratitude-input input::-webkit-input-placeholder {
	font-style: italic;
	font-weight: 300;
	color: rgb(173, 216, 230);
}

.gratitude-input input::-moz-placeholder {
	font-style: italic;
	font-weight: 300;
	color: rgb(173, 216, 230);
}

.gratitude-input input::input-placeholder {
	font-style: italic;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.4);
}

.gratitude-input h1 {
	margin: 0; /* remove the default margin of h1 to ensure it aligns properly with the button */
}

.gratitude-lines {
	background: rgb(39, 39, 39);
	margin: 0px 0 40px 0;
	position: relative;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2),
	            0 25px 50px 0 rgba(0, 0, 0, 0.1);
}

.new-entry,
.edit {
	position: relative;
	margin: 0;
	width: 100%;
	font-size: 24px;
	font-family: inherit;
	font-weight: inherit;
	line-height: 1.4em;
	color: inherit;
	padding: 6px;
	// border: 1px solid #999;
	box-shadow: inset 0 -1px 5px 0 rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: rgb(39, 39, 39);
}

.new-entry {
	padding: 16px 16px 16px 60px;
	border: none;
	background: rgba(0, 0, 0, 0.003);
	box-shadow: inset 0 -2px 1px rgba(0,0,0,0.03);
}

.main {
	position: relative;
	z-index: 2;
	border: none;
}

.label {
	width: 60px;
	height: 34px;
	font-size: 0;
	position: absolute;
	top: -52px;
	left: -13px;
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

.label:before {
	content: '❯';
	font-size: 22px;
	color: #737373;
	padding: 10px 27px 10px 27px;
}

.entry-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-list li {
	position: relative;
	font-size: 24px;
	// border-bottom: 1px solid rgb(188, 232, 191);
}

.entry-list li:last-child {
	border-bottom: none;
}

.entry-list li.editing {
	border-bottom: none;
	padding: 0;
}

.entry-list li.editing .edit {
	display: block;
	width: calc(100% - 43px);
	padding: 12px 16px;
	margin: 0 0 0 43px;
}

.entry-list li.editing .view {
	display: none;
}

.entry-list li .toggle {
	text-align: center;
	width: 40px;
	/* auto, since non-WebKit browsers doesn't support input styling */
	height: auto;
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto 0;
	border: none; /* Mobile Safari */
	-webkit-appearance: none;
	appearance: none;
}

.entry-list li .toggle {
	opacity: 0;
}

.entry-list li .toggle + label {
	/*
		Firefox requires `#` to be escaped - https://bugzilla.mozilla.org/show_bug.cgi?id=922433
		IE and Edge requires *everything* to be escaped to render, so we do that instead of just the `#` - https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7157459/
	*/
	background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23ededed%22%20stroke-width%3D%223%22/%3E%3C/svg%3E');
	background-repeat: no-repeat;
	background-position: center left;
}

.entry-list li .toggle:checked + label {
	background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23bddad5%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%235dc2af%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E');
}

.entry-list li label {
	word-break: break-all;
	padding: 15px 15px 15px 60px;
	display: block;
	line-height: 1.2;
	transition: color 0.4s;
	font-weight: 400;
	color: rgb(188, 232, 191);
}

.entry-list li.completed li.clear-completed label {
	color: #cdcdcd;
	text-decoration: line-through;
}

.entry-list li .destroy {
	display: none;
	position: absolute;
	top: 0;
	right: 10px;
	bottom: 0;
	width: 40px;
	height: 40px;
	margin: auto 0;
	font-size: 30px;
	color: #cc9a9a;
	margin-bottom: 11px;
	transition: color 0.2s ease-out;
}

.entry-list li .destroy:hover {
	color: #af5b5e;
}

.entry-list li .destroy:after {
	content: '×';
}

.entry-list li:hover .destroy {
	display: block;
}

.entry-list li .edit {
	display: none;
}

.entry-list li.editing:last-child {
	margin-bottom: -1px;
}


nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgb(173, 216, 230);
}

.complete-entry {
	background-color: None; 
	border-radius: 5px; 
	padding: 10px 20px; 
	border: 1px solid rgb(39, 39, 39); 
	cursor: pointer;
}

.complete-entry:hover {
	border: 1px solid rgb(188, 232, 191);
}

/*
	Hack to remove background from Mobile Safari.
	Can't use it globally since it destroys checkboxes in Firefox
*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
	.toggle-all,
	.entry-list li .toggle {
		background: none;
	}

	.entry-list li .toggle {
		height: 40px;
	}
}

@media (max-width: 430px) {
	.footer {
		height: 50px;
	}

	.filters {
		bottom: 10px;
	}
}

/* Word guess Page */
.link-button {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #f2f2f2;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
}

.blockquote-style {
    border-left: .3em solid #ccc; /* Left border */
    margin: 1em 0; /* Adds space above and below the div */
    padding-left: 1em; /* Adds space between the border and the text */
    font-style: italic; /* Makes the font italic */
    font-family: "Times New Roman", Times, serif; /* Optional: Font family */
	font-size: 1.3em;
}

.wg-page {
	display: flex;
	flex-direction: column;
	margin: 0 auto; // Centers the flex container horizontally
	align-items: center;
	width: 100%;
	max-width: 900px;
	font-size: 1em;  // Relative to body
	gap: 20px;
}

.wg-past-guesses {
	margin-top: 1em;
    margin-bottom: 1em;
}

.wg-no-past-guess, .wg-past-guess {
	text-align: center;
	margin-top: 1em;
    margin-bottom: 1em;
	width: 100%; /* Ensures the div takes the full width of the container */
	font-size: 1.5em;
}

.wg-past-guess-cell {
	border-color: #737373;
	border-width: 1px;
	border-style: dashed;
	white-space: pre; /* or white-space: pre-wrap; */
}

.wg-past-guess-cell[data-status="correct"] {
	background-color: rgb(41, 151, 48);
}

.wg-past-guess-cell[data-status="present"] {
	background-color: #a86511;
}

.wg-past-guess-cell[data-status="incorrect"] {
	background-color: rgb(175, 38, 38);
}

.wg-current-guess, .wg-game-complete {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wg-current-guess-input {
	width: calc(100% - 20px);  // The minus should be 2 * the margin of other items in column.
	margin-bottom: 10px;
	box-sizing: border-box;
	resize: none;
	font-size: 2em;  // Matches past guess font size
}

.wg-current-guess-button {
	width: calc(100% - 20px);  // The minus should be 2 * the margin of other items in column.
	padding: 10px;
	background-color: #0056b3;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1.1em;
}

.wg-current-guess-button:hover {
	background-color: #0056b3;
}

@media screen and (max-width: 800px) {
    .wg-page {
		gap: 15px;
    }
}

@media screen and (max-width: 600px) {
    .wg-page {
		gap: 10px;
    }
}

@media screen and (max-width: 400px) {
    .wg-page {
		gap: 5px;
    }
}
