@import url(home-pixel-borders.css);

main {
	grid-template-columns: 2fr 3fr 2fr;
	grid-template-areas:
		"welcome welcome status"
		"update update cbox"
		"poll poll poll";
}

.welcome-box {
	grid-area: welcome;
}

.status-box {
	grid-area: status;
}

.update-box {
	grid-area: update;
}

.poll-box {
	grid-area: poll;
	margin-top: 20px;
}

.webring-box {
	grid-area: webring;
	margin-top: 20px;
}

.welcome-content {
	display: grid;
	grid-template-columns: 1fr auto;
	width: 100%;
	align-items: center;
}

.marquee {
	display: flex;
	overflow: hidden;
	white-space: nowrap;

	grid-column: span 2;
}

.marquee__item {
	display: flex;
	flex-direction: row;
	gap:2px;
	padding-left: 2px;

	animation-duration: 90s;
	animation-iteration-count: infinite;
	animation-name: marquee-content;
	animation-timing-function: linear;

	/* padding: 5px 15px 5px 15px; */
	flex-shrink: 0;
}

.marquee:hover .marquee__item {
	animation-play-state: paused;
}

@keyframes marquee-content {
	0% {
		transform: translateX(0%);
	}

	100% {
		transform: translateX(-100%);
	}
}

/* STATUS STYLES */

.status-content > div {
	display: flex;
	align-items: center;
	gap: 3px;

	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.viewcounter {
	padding-bottom: 2px;
}

.dark .viewcounter img {
	filter: invert(85%);
}
.viewcounter img {
	image-rendering: pixelated;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	height: 14px;
}
.viewcounter a {
	line-height: 0;
	display: flex;
}

.imood-img {
	height: 15px;
}

.status-content .tamagotchi-box {
	display: flex;
	gap: 15px;
	padding-top: 5px;
	justify-content: center;
}

@media (min-resolution: 1.5dppx) {
	.viewcounter img {
		height: 21px;
	}

	.imood-img {
		height: 20px;
	}
}

@media (min-resolution: 1.75dppx) {
	.viewcounter img {
		height: 16px;
	}

	.imood-img {
		height: 18px;
	}
}

/* UPDATE BOX STYLES */
.update-box {
	position: relative;
	height: 420px;

	margin-top: 33px;
	padding: 0;
	padding-top: 18px;

	border-top: 0;
}

.update-header {
	display: flex;
	align-items: center;
	position: absolute;
	top: -4px;
	left: 0;
	width: calc(100% + 10px);
}

.update-icon {
	position: absolute;
	left: -22px;
	top: -33px;
	z-index: 2;
	width: 76px;
}

.construction-div {
	background-image: url("../../img/bigdiv.gif");
	height: 12px;
	width: 100%;
	border: 2px solid var(--txt-color);
}

.update-header > h2 {
	position: absolute;
	z-index: 3;
	background-color: var(--bg-color);
	left: 100px;

	top: -16px;
	left: 80px;
	padding: 0 5px;
}

.update-content {
	width: 100%;
	overflow: auto;
	min-height: 0;
	max-height: 100%;
	padding: 20px;
	padding-top: 2px;
}

.update-row {
	display: grid;
	grid-column: 1fr auto;
	max-width: 100%;
	margin: 20px;
	padding-bottom: 20px;
	border-bottom: 3px dotted var(--txt-color);
}

.update-row:last-child {
	padding-bottom: 0px;
	border-bottom: none;
}

.update-row-header {
	display: flex;
	align-items: center;
}

.update-row-header > img {
	padding-right: 4px;
}

.update-row-header > h3 {
	font-family: "Arial Pixelated 24", Arial, Helvetica, sans-serif;
	font-size: 24px;
	margin: 0;
	padding: 0;
}

.update-date {
	font-family: "Courier Pixelated 16", "Courier New", Courier, monospace;
	font-weight: bold;
}

.update-link {
	display: flex;
	justify-content: flex-end;
	gap: 3px;
	width: 100%;
	padding-right: 50px;
	padding-top: 3px;
}

.line-clamp {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2; /* number of lines to show */
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* SAY HELLO STYLES */

.cbox-box {
	grid-area: cbox;
	margin-top: 30px;
}

.chat-icon {
	position: absolute;
	top: -43px;
	z-index: 2;
	right: -17px;
}

.cbox-inner {
	border: 5px #6666cc outset;
	border-radius: 15px;
	line-height: 0;
}

.guestbook-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;

	padding-top: 5px;
}

.ad-box {
	margin: 0 auto;
	grid-column: span 3;
}

/* POLL STYLES */

.poll-box {
	padding: 15px;
	padding-top: 20px;
	padding-bottom: 10px;
	align-self: start;
}

.poll-q {
	font-family: "Arial Pixelated 24", Arial, Helvetica, sans-serif;
	font-size: 20px;
	font-weight: bold;
}

.poll-answers {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 8px;

	padding-bottom: 0;
	justify-content: space-between;
	align-items: start;
}

.poll-answers > div {
	display: flex;
	text-wrap: nowrap;
	align-items: center;
	gap: 6px;
	width: fit-content;
}

.poll-answers input {
	padding: 0;
	margin: 0;
}

.poll-buttons {
	display: flex;
	gap: 6px;
	width: 100%;
	/* padding-right: 20px; */

	flex-grow: 99;
	justify-content: flex-end;
}

.poll-buttons .btn {
	font-size: 14px;
	padding: 5px 16px;
	margin: 2px;
}

@media (max-width: 700px) {
	main {
		padding: 30px 10px;

		grid-template-columns: 1fr;
		margin: auto;
		column-gap: 0;

		grid-template-areas:
			"welcome"
			"status"
			"update"
			"cbox"
			"poll";
	}
	.status-box {
		margin-top: 15px;
	}
	.update-box {
		margin-top: 45px;
		height: auto;
	}
	.cbox-box {
		margin-top: 25px;
	}
}
