@layer reset {
	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}

	* {
		margin: 0;
	}

	body {
		-webkit-font-smoothing: antialiased;
	}

	img,
	picture,
	video,
	canvas,
	svg {
		display: block;
		width: 100%;
		height: auto;
	}
}

:root {
	color-scheme: light dark;
}

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body {
	background: light-dark(#fff, #000);
	color: light-dark(#111, #eee);
	font-family: "DM Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: <weight>;
	font-style: normal;
}

/* Top section */

.text {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: height 0.3s ease;
}

.text-line {
	width: 100%;
	height: 0;
	transition: height 0.3s, opacity 0.3s;
	cursor: default;
	pointer-events: none;
	padding: 0 10px;
	border-bottom: 1px solid light-dark(#ccc, #222);
	text-align: justify;
	text-justify: inter-character;
	text-align-last: justify;
	display: flex;
	align-items: center;
	opacity: 0;
}

.text-line a {
	pointer-events: all;
	position: relative;
	z-index: 20;
}

#text1 {
	font-size: 9vw;
}
#text2,
#text3 {
	font-size: 6.5vw;
}
#text4 {
	font-size: 5.4vw;
}
#text5 {
	font-size: 6vw;
}
.text span {
	display: block;
	width: 100%;
	transition: transform 0.3s ease;
}
#text1 span {
	transform: scaleY(10);
}

@media (max-width: 500px) {
	#text1 {
		font-size: 8vw;
	}
	#text2,
	#text3 {
		font-size: 6vw;
	}
	#text4 {
		font-size: 5vw;
	}
	#text5 {
		font-size: 5.4vw;
	}
}

/* Bottom section */

.websites {
	width: 100%;
	height: 0;
	display: flex;
	flex-direction: row;
}

.single-site {
	border-right: 1px solid light-dark(#ccc, #222);
	width: 0;
	opacity: 0;
	transition: width 0.3s, opacity 0.3s;
}

.site-image {
	height: 100%;
	padding: 1rem;
	container-type: size;
}

.desktop-site,
.mobile-site {
	width: 100%;
	height: 100%;
	border-radius: 1rem;
	overflow: auto;
	background: black;
}
.mobile-site {
	display: none;
}

@container (orientation: portrait) {
	.desktop-site {
		display: none;
	}
	.mobile-site {
		display: block;
	}
}

/* Cursor */

#horizontal {
	width: 100%;
	height: 3px;
	background: #fff;
	position: fixed;
	top: 0;
	mix-blend-mode: exclusion;
	z-index: 100;
	pointer-events: none;
}

#vertical {
	width: 3px;
	height: 100%;
	background: #fff;
	position: fixed;
	top: 0;
	mix-blend-mode: exclusion;
	z-index: 100;
	pointer-events: none;
}

#cursor {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background: light-dark(rgb(255 255 255 / 0.1), rgb(0 0 0 / 0.3));
	box-shadow: inset -0.75px -0.5px rgba(255, 255, 255, 0.1), inset + 0.75px +0.5px rgba(255, 255, 255, 0.025), 3px 2px 10px rgba(0, 0, 0, 0.15), inset 0px 0px 10px 5px rgba(255, 255, 255, 0.025), inset 0px 0px 40px 5px rgba(255, 255, 255, 0.025);
	position: absolute;
	z-index: 100;
	border-radius: 99px;
	padding: 0.6rem 1rem;
}

/* Shared */

.text-line.visible,
.single-site.visible {
	opacity: 1;
}

.hide {
	display: none;
}

.min-width {
	min-width: 5%;
}

.resizable {
	position: relative;
	user-select: none;
}

.text {
	pointer-events: none;
}

.resizer {
	position: absolute;
	background: #999;
	z-index: 1000;
	cursor: col-resize;
	bottom: 0;
	left: 0;
	right: 0;
	height: 5px;
	display: none;
	pointer-events: all;
}

.show-resizers .resizer {
	display: block; /* Show resizers when the button is toggled */
}
