root {
	--font: black;
	--bg: white;
}
body {
	--font: black;
	--bg: white;
	font-family: Monoid;
	font-size: 1.5vw;
	font-weight: bold;
	background-color: var(--bg);
	color: var(--font);
	margin: 0 auto;
	text-align:left;
}
pre {
	text-align: center;
	align-items: center;
}
.right {
	text-align: right;
}
@media (prefers-color-scheme: light) {
	root {
		--font: black;
		--bg: white;
	}
}
@media (prefers-color-scheme: dark) {
	root {
		--bg: black;
		--font: white;
	}
}
@font-face {
	font-family: "Monoid";
	src: url("https://transcendent.ink/Monoid-Bold.ttf") format('truetype');
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 33vw);
  background-color: transparent;
  padding: 10px;
  grid-gap: 10px;
  align-content: stretch;
  overflow: hidden;
}
.container > div {
  background-color: transparent;
  padding: 5px;
  font-size: 30px;
  text-align: center;
}

.grid-container {
  display: grid;
  grid-gap: 10px;
  grid-auto-flow: column row;
  grid-template-columns: repeat(3, 33vw);
  grid-auto-rows: 33vh; /* height of one row */
  overflow: hidden;
}

.grid-container > .item:nth-child(6n+1),
.grid-container > .item:nth-child(6n+6){
  grid-area: auto;
}

.grid-container > .item:nth-child(6n+2),
.grid-container > .item:nth-child(6n+3),
.grid-container > .item:nth-child(6n+4){
  grid-column: auto;
}

.grid-container > .item:nth-child(6n+5){
  grid-column: auto;
}

.item {
  border: 5px dashed black;
}

.imgs {
  height:0;
  width:0;
  min-height:100%;
  min-width:100%;
  max-width:100%;
  object-fit:cover;
}
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.video-container video {
  width: 100%;
  height: 100%;
  display: flex;
  object-fit: contain;
  overflow: hidden;
  transform: translateZ(0);
  isolation: isolate;
}
/* Hide the actual checkbox */
.nsfw-checkbox {
  display: none;
}

/* Styles for the full-screen overlay */
.nsfw-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
}

/* Modal Content Box */
.nsfw-box {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  text-align: center;
  border: 5px dashed black;
  box-shadow: 0 10px 25px #fff;
}

.nsfw-box h2 {
  color: #ff4757;
  margin-top: 0;
}

.nsfw-box p {
  line-height: 1.5;
  color: #000;
}

/* Button Layout */
.nsfw-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-leave {
  background-color: #555;
  color: #fff;
}

.btn-leave:hover {
  background-color: #777;
}

.btn-enter {
  background-color: #ff4757;
  color: #fff;
}

.btn-enter:hover {
  background-color: #ff6b81;
}

/* This is the magic: if the checkbox is checked, hide the overlay */
.nsfw-checkbox:checked ~ .nsfw-overlay {
  display: none;
}
