:root {
	color-scheme: light;
	font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Chalkboard", sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
}

body {
	background: #ffffff;
	color: #212529;
	position: relative;
}

button,
input,
textarea,
select {
	font: inherit;
}

#content {
	text-align: center;
	overflow: hidden;
	width: 100%;
	max-width: 100vw;
	margin: 20px auto 140px;
	background: transparent;
}

#instants_container {
	margin: 30px auto;
	padding: 0 16px;
	max-width: 100%;
	overflow-x: clip;
	text-align: center;
}

.instants {
	margin: 30px 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, 94px);
	gap: 30px 10px;
	justify-content: center;
	max-width: 100%;
}

.instant {
	position: relative;
	vertical-align: top;
	width: 94px;
	text-align: center;
	word-wrap: break-word;
}

.small-button {
	position: absolute;
	width: 94px;
	height: 89px;
	display: block;
	background: url("https://www.myinstants.com/media/images/transparent_button_small_sprite.png")
		no-repeat;
	background-position: -5px -5px;
	border: none;
	cursor: pointer;
	padding: 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.small-button:focus {
	outline: none;
	background-position: -5px -5px;
}

.small-button:active,
.small-button.pressed {
	background-position: -109px -5px;
}

.small-button-background {
	width: 86px;
	height: 84px;
	margin-top: 3px;
	margin-left: 3px;
	position: absolute;
}

.small-button-shadow {
	width: 94px;
	height: 89px;
	margin-bottom: 5px;
	background: url("https://www.myinstants.com/media/images/transparent_button_small_shadow.png")
		no-repeat;
}

.circle {
	border-radius: 50%;
}

.instant-link {
	display: block;
	position: relative;
	z-index: 1;
	width: 100%;
	font-size: 14px;
	text-decoration: none;
	line-height: 1.4em;
	height: 2.8em;
	overflow: hidden;
	color: #6c757d;
	font-family: inherit;
	cursor: default;
}

.password-modal[hidden] {
	display: none;
}

.password-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 16px;
}

.password-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
}

.password-modal-panel {
	position: relative;
	z-index: 1;
	width: min(100%, 320px);
	border: 1px solid #cfcfcf;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.password-form {
	display: grid;
	gap: 12px;
	padding: 16px;
}

.password-modal-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
	color: #212529;
}

.password-input {
	width: 100%;
	border: 1px solid #c4c4c4;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 16px;
	line-height: 1.2;
	background: #ffffff;
	color: #212529;
}

.password-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.password-button {
	border: 1px solid #c4c4c4;
	border-radius: 8px;
	padding: 8px 12px;
	background: #f2f2f2;
	color: #212529;
	cursor: pointer;
}

.password-button-secondary {
	background: #ffffff;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.not-found-content {
	min-height: 100vh;
	display: grid;
	place-items: center;
	margin-bottom: 0;
}

.not-found-box {
	max-width: 24rem;
}

.not-found-code {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: #6c757d;
}

.not-found-box h1 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.1;
}

.not-found-box p {
	margin: 1rem 0 0;
	color: #6c757d;
}

.not-found-link {
	display: inline-block;
	margin-top: 1rem;
	color: #6c757d;
	text-decoration: underline;
}

@media only screen and (min-width: 768px) {
	.instants {
		grid-template-columns: repeat(6, 94px);
	}
}

@media only screen and (max-width: 770px) {
	#content {
		margin: 16px auto 72px;
	}
}

@media only screen and (max-width: 520px) {
	#content {
		margin: 12px auto 56px;
	}

	#instants_container {
		padding: 0 12px;
	}

	.instants {
		grid-template-columns: repeat(2, 94px);
		gap: 22px 12px;
	}

	.instant-link {
		font-size: 13px;
		line-height: 1.3em;
		height: 2.6em;
	}

	.password-modal {
		padding: 12px;
	}
}
