/* Webfont: Merchant-Bold */@font-face {
    font-family: 'Merchant';
    src: url('Merchant-Bold.woff2') format('woff2'), /* Modern Browsers */
         url('Merchant-Bold.otf') format('opentype'); /* Safari, Android, iOS */
             font-style: normal;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}
/* Webfont: Merchant-Medium */@font-face {
    font-family: 'MerchantMed';
    src: url('Merchant-Medium.woff2') format('woff2'), /* Modern Browsers */
         url('Merchant-Medium.otf') format('opentype'); /* Safari, Android, iOS */
             font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

:root {
  /* This variable will be updated by scroll */
  --scroll-hue: 230; 
  --scroll-br: 50; 
  --bg-image:  url('dnchlogo2.svg');

  	color-scheme: light dark;
	--img-blend: multiply;
	--bg-color: hsl(var(--scroll-hue) 20% var(--scroll-br));
}


/* Reset the box-model */
div {
  box-sizing: border-box;
}

/* Pass down the box-sizing property */
*,
*::before,
*::after {
  box-sizing: inherit;
}


/* 2. System Dark Mode logic */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-image: url('dnchlogo2.svg'); /* Default for system dark */
		--img-blend: multiply;
		--icon-filter: invert(0);
    }

    /* If system is dark, but user toggles "Light" (checked) */
    html:has([name="toggle-color-scheme"]:checked) {
        color-scheme: light;
        --bg-image: url('dnchlogo2b.svg');
		--img-blend: screen;
		--icon-filter: invert(1);
    }
}

/* 3. System Light Mode logic */
@media (prefers-color-scheme: light) {
    :root {
        --bg-image: url('dnchlogo2b.svg'); /* Default for system light */
		--img-blend: screen;
		--icon-filter: invert(1);
    }

    /* If system is light, but user toggles "Dark" (not checked) */
    html:has([name="toggle-color-scheme"]:not(:checked)) {
        color-scheme: dark;
        --bg-image: url('dnchlogo2.svg');
		--img-blend: multiply;
		--icon-filter: invert(0);
    }
	
}

#ld {
	display: block;
	background-image: url('dark.svg');
	width: 50px;
	height: 25px;
	cursor: pointer;
}

.hidecheck[type=checkbox] {
	height: 0;
	width: 0;
	overflow: hidden;
	position: absolute;
	display: none;
}

html {

	font-size: 16px;
	 scroll-behavior: smooth;
}

body {
	font-family: 'BDO Grotesk', sans-serif;

  font-optical-sizing: auto;

	text-align: left;
	background: light-dark(#ffffff, #020202);
	color: hsl(var(--scroll-hue) 20% var(--scroll-br));
	transition: color 0.2s;
	padding-top: 8rem;
	margin: 0;
text-transform: uppercase;
	font-size: 0.9rem;
	font-weight: 600;

	
		min-height:100vh;
	  background-attachment: fixed;
  background-position: top right;
  background-size: cover;
	padding: 5rem;
}

	body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh; /* Height of the fade effect (15% of viewport) */
    
    /* Fade from transparent to your background color */
    background: linear-gradient(to bottom, 
        transparent, 
        var(--bg-color) 300%
    );
    
    /* Ensures it stays on top of your images/videos */
    pointer-events: none; 
    z-index: 999;
	}

.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
	padding: 20px;
}

h1,
h2,
h3,
p {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
	padding: 0;
	
}
p {
	line-height: 1.75rem;
	font-weight: 400;
}
p a{
	transition: 0.3s;
}
#footer a:hover, p a:hover{
	background-color:hsl(var(--scroll-hue) 20% var(--scroll-br));;
	color: light-dark(#ffffff, #020202);

}
#ascii-output {
font-family: 'Courier New', Courier, monospace;
  white-space: pre;
  font-size: 0.550vw;
  line-height: 1.25;
  letter-spacing: 0.12vw;
  display: block;
  margin: 10rem -5rem;
  padding: 0 5vw;
}
#ascii-output .scrambling {
	background-color:hsl(var(--scroll-hue) 20% var(--scroll-br));;
	color: light-dark(#ffffff, #020202);
}
#menu {
	display:flex;
	align-items: center;
	  justify-content: space-between;
	padding: 0;
	padding-bottom: 6rem;
position: sticky;

    top: 3rem; /* It "sticks" to the top of the viewport */
}
#menu a, #menu label{
		   -webkit-user-select: none; /* Safari */
  user-select: none; /* Non-prefixed version, 
                        currently supported by all other modern browsers */
	text-decoration:none;
	line-height: 40px;
	border-bottom: 2px solid ;
	border-color:  #02020200;
	transition: border 0.3s ease-out;
	padding: 0 10px;
}
#menu a:hover, #menu label:hover, #menu a.active {
	border-color: hsl(var(--scroll-hue) 20% var(--scroll-br));
}

#workbutton.active {
	border-color: hsl(var(--scroll-hue) 20% var(--scroll-br));
	
}

#menu {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Keeps logo left, links right */
	
	
}
#videospacer {


}
#toppart {
	height: 110vh;	
margin-top:-5rem;
position: relative;

z-index: 500;
mix-blend-mode: difference;
}
#toplab {
margin-top:-5rem;
position: relative;
height: 260px;	
mix-blend-mode: difference;
}
#hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 45px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

#hamburger span {
width: 100%;
  height: 2px;
  background-color:hsl(var(--scroll-hue) 20% var(--scroll-br));
  transition: 0.3s;
  filter: var(--icon-filter);
}
.menu-links {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	filter: var(--icon-filter);
	
}
#hamburger.hamb{
display:flex;

}
#hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
#hamburger.open span:nth-child(2) {
    transform: scaleX(0);
  }
#hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
.menu-links .hamb {
	display: none; 
}


#logo span {
	display:none;
	
}
#logo {
	filter: var(--icon-filter);
	
	display:block;
	width: 70px;
	height: 50px;
	border-radius: 0 50px 50px 0;
  margin-right: 30%;
	background-color: hsl(var(--scroll-hue) 20% var(--scroll-br));
	transition: background-color 0.2s;
	z-index: 9999;
}
h1{
 font-family: "MerchantMed", Georgia;	
	font-size:5rem;
	line-height:5rem;
	padding: 0;
	max-width: 1000px;
	text-transform: initial;
	padding-bottom: 3rem;
    font-weight: normal;
	
}
p {
	text-transform:initial;
	margin-bottom: 1rem;
}
hr {
  border: 0;
  border-top: 2px solid hsl(var(--scroll-hue) 20% var(--scroll-br));
  margin: 0;	

}
.hrgap {
	margin-top: 8rem;
}
h2{
 font-family: "MerchantMed", Georgia;	
	font-size:3rem;
	line-height:3rem;
	padding: 0;
	max-width: 1000px;
	text-transform: initial;
	
    font-weight: normal;
	
}
h3{

	font-size:1.5rem;
	line-height:1.5rem;
	padding: 0;
	max-width: 1000px;
	text-transform: initial;
	padding-bottom: 1rem;
    font-weight: normal;
	
}
label {
	text-decoration: underline;
	cursor:pointer;
	
}
.myflex3{
display: grid;
    /* This creates columns that are at least 300px, 
       but will split the width equally otherwise 
	   
	 
	   */
    
	grid-template-columns: repeat(auto-fill, minmax(min(400px,100%), 1fr));
    gap: 2rem;
	align-items: start; /* Fixes that vertical gap/stretching issue */
  margin-top: 3rem;
  margin-bottom: 3rem;

}
.submenu {
	display:flex;
	gap: 2rem;
	margin:0;
	padding:0;
}
.submenu li {
	display:block;

}
.submenu a{
	text-decoration:none;
	padding:5px;
	
}
.submenu a:hover{
	background-color:hsl(var(--scroll-hue) 20% var(--scroll-br));;
	color: light-dark(#ffffff, #020202);

}
.myflex3.anchorshift{
	margin-top: -4rem;
	padding-top: 7rem;
}
.myflex3 > div {
	
	height: auto;
}
.flex {
	display:flex;
	align-items: center;
	flex-grow:1;
}
.myflex1{
display: grid;
    /* This creates columns that are at least 300px, 
       but will split the width equally otherwise */
    grid-template-columns: repeat(auto-fill, minmax(1200px, 1fr));
    gap: 2rem;
	align-items: start; /* Fixes that vertical gap/stretching issue */
  margin-top: 3rem;
  margin-bottom: 3rem;

}
.myflex1 > div {

	height: auto;
}
.myflex3 video , .myflex3 img {
	width: 100%;

}
.myflex1 video , .myflex1 img {
	width: 100%;

}
#footer {
	display: flex;
	gap: 1rem;
  justify-content: end;
	width: 100%;
	margin: 0;
	position: sticky;
	z-index: 9;
	bottom: 0;
	padding: 1rem 0;
	z-index: 10000;
	/*background-color: light-dark(#ffffff, #020202);*/
	margin-top: 5em;
	text-align:right;
	mix-blend-mode: difference;
	filter: var(--icon-filter);
}
#toppart:has( .menu-links.active){
	mix-blend-mode: normal;
}
#toplab:has( .menu-links.active){
	mix-blend-mode: normal;
}
.invert {
	filter: invert(1);
}
a:link {
	color: hsl(var(--scroll-hue) 20% var(--scroll-br));
	transition: color 0.2s;
}


a:link{color:inherit}
a:active{color:inherit}
a:visited{color:inherit}
a:hover{color:inherit}

.content {

	display: flex;
	flex-wrap: wrap;
}



.content img {
	visibility: hidden;
}

.content img.loaded {
	visibility: visible;
}

.loader {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background-color: light-dark(#ffffff, #020202);
	position: absolute;
	bottom: 0;
	left: 0;
	animation: l1 1s 1 ease-out;
	animation-fill-mode: forwards;
	animation-delay: 1s;
}

@keyframes l1 {
	100% {
		height: 0
	}
}
.square {

	position: relative;
	display: inline;
	float: left;

	margin: 0px;
	height: 200px;
	transition: background-color .2s;
	background-color:hsl(var(--scroll-hue) 20% var(--scroll-br));
}

.square img {

	height: 200px;

	object-fit: cover;

	transition: filter .5s;
	transition: opacity .5s;

	filter: saturate(0);
	opacity: 1;
	cursor: zoom-in;
	mix-blend-mode: var(--img-blend);
}

.square img:hover {

	filter: saturate(1);
	opacity: 1;
}
.square:has(img:hover) {
  background-color: light-dark(#000000, #ffffff);
  
}

.square img.auto-highlight {
	filter: saturate(1);
	opacity: 1;

}

.square.auto-highlight {
	 background-color: light-dark(#000000, #ffffff);

}
#sticky-sentinel {
    height: 1px;
    
    position: absolute;
    top: 0;
    pointer-events: none;
}

#header, #fs-header {
	display: block;
	
	margin: 0;
	position: sticky;
	width: 100%;
	z-index: 9;
	top: 0;
	padding: 0;
	display: flex;
	justify-content: flex-start;
	padding-bottom: 1rem;
	
		padding-top: 1rem;
	background-color: light-dark(#ffffff, #020202);
	border-top: 2px solid hsl(var(--scroll-hue) 20% var(--scroll-br));
	transition: border-top 0.2s;
	align-items: center;
}
#fs-header {
	position:fixed;
	display:none;
	z-index: 100000;
}

#animating-element, #fs-animating-element {
	display:block;
	
    width: 0px; /* Default width */
transition: 
        width 0.4s ease-in-out, 
        margin-right 0.4s ease-in-out, 
        background-color 0.2s linear;
    margin: 0;
	
	background-color:hsl(var(--scroll-hue) 20% var(--scroll-br));
	display:block;
	border-radius: 0 50px 50px 0;
	margin-right: 0px;
	height: 30px;
}

/* This triggers when stuck */
#header.is-stuck{
border-bottom: 2px solid hsl(var(--scroll-hue) 20% var(--scroll-br));
}
#header.is-stuck #animating-element {
    width: 40px;
	margin-right: 20px;
	

}
#header #animating-element:hover,
#header.is-stuck #animating-element:hover {
	width: 60px;
}
#infotext, #fs-infotext {
	max-width: 70%;

}
#infotext span{
	font-weight:900;
}
/* This triggers when stuck */
#fs-header #fs-animating-element {
    width: 40px;
	margin-right: 20px;

}
#fs-header #fs-animating-element:hover,
#fs-header #fs-animating-element:hover {
	width: 60px;
}
#infotext, #fs-infotext {
	max-width: 70%;

}
#fullpage {
	display: none;
	position: fixed;
	z-index: 9999;
	top: 0vh;
	left: 0vw;
	width: 100vw;
	height: 100vh;
	background-size: contain;
	background-repeat: no-repeat no-repeat;
	background-position: center center;
	background-color: light-dark(#ffffff88, #02020288);
	cursor: zoom-out;
	align-items: center;
	justify-content: space-around;

	backdrop-filter: blur(5px);
	opacity:0;
	
}
#fsimage{
width: 80%;
height: 80%;
transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.4s linear;

background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
.fspopisek{
position: absolute;
  bottom: 3rem;
  padding: 1rem;

  background-color:  light-dark(#ffffffaa, #020202aa);
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
}
.fspopisek span {
	flex-grow: 1;
}

.fs-trigger {
    cursor: zoom-in;
    transition: filter 0.3s ease;
}

.fs-trigger:hover {
    filter: brightness(1.1);
}
#fsimage {
    /* ... keep your other styles ... */
    position: relative;
    will-change: transform; /* Optimizes performance for movement */
}

/* Class to add smooth snapping back to center */
.snap-back {
    transition: transform 0.05s ease-out !important;
}

#fsnext , #fsprev{
text-align:center;
	display: flex;
  width: 10%;
  
  align-items: center;
  font-size: 5rem;
  justify-content: center;
   font-family: "MerchantMed", Georgia;
   font-weight:normal;
   -webkit-user-select: none; /* Safari */
  user-select: none; /* Non-prefixed version, 
                        currently supported by all other modern browsers */
	opacity: 1;
	transition: opacity 0.5s;
}
#fsnext:hover , #fsprev:hover{
	opacity: 0.5;
	
}
#fsnext {
	cursor: pointer;
	
}
#fsprev {
	cursor: pointer;
	
}
#about {
	display: none;
	position: fixed;
	z-index: 99999;
	top: 0vh;
	left: 0vw;
	width: 100vw;
	height: 100vh;
	background-color: light-dark(#ffffff, #020202);
	
}


#aboutlink{
	
	cursor: pointer;
}

#fsimage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Remove background-image from here in your script */
}

#fsloader {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    z-index: 10;
    
    transform-origin: top;
    transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

#fsloader.loading {
    
	transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

#fsimage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0; /* Starting state */
    transition: opacity 0.3s ease-in-out; /* Slowed down slightly for a smoother feel */
    visibility: visible;
}
/* The Curtain */
#fsloader {
   
    z-index: 10;
    display: none;
    justify-content: center;
    align-items: center;
   
}

/* When the curtain is "Down" (Active) */
#fsloader.loading {
    display: flex;
    
}

/* When the curtain is "Up" (Revealing) */
#fsloader.reveal {
    
}

/* The Spinner inside the curtain */
#fsloader::after {
    content: "";
    width: 100px;
    height: 100px;
    border: 5px solid  light-dark(#ffffff11, #02020211);;
    border-top: 5px solid hsl(var(--scroll-hue) 20% var(--scroll-br));
	border-right: 5px solid hsl(var(--scroll-hue) 20% var(--scroll-br));
    border-radius: 50%;
    animation: spin 0.4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Snap-back for your swipe logic */
.snap-back {
    transition: transform 0.3s ease-out !important;
}

.hidden {
display:none;	
}
.show {
display:block;	
}


.bigtext{
font-size: 10rem;
  line-height: 10rem;
  text-transform: initial;
  margin-bottom: 1rem;
  letter-spacing: -0.5rem;
	
}

.tools{
  text-transform: initial;
  margin-bottom: 1rem;
}
.contact{
  text-transform: initial;
  margin-bottom: 1rem;
}


#about {
	padding:1rem;
	overflow: auto;
}

.aboutgrid{
	display:grid;
	gap: 10rem;
	grid-template-columns: repeat(5,1fr);
}
.aboutgrid h3 {
	font-size: 0.7rem;
  padding-bottom: 0;
  font-weight: 800;
  text-transform: uppercase;
}
.gridspan2 {

	grid-column: 1 / span 2 ;
}
#video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
	transition: opacity 0.3s ease-out; 
}

#videofs {
    width: 100%;
    height: 100%;
    object-fit: cover;

	    z-index: -100;
    
    /* Magic property: keeps aspect ratio while filling the box */
    object-fit: cover;
    
    /* Optional: Slight dark overlay or blur if your text is hard to read */
    /*opacity:0.5;*/

    transition: opacity 0.3s ease-out; /* Smooths out the final snap */
}
#video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits on top of video, under the loader */
    
    /* OPTION A: Tiny Dot Grid */
    background-image: radial-gradient(rgba(0,0,0,0.4) 1px, transparent 1px);
    background-size: 3px 3px;
    
    /* OPTION B: Horizontal Scanlines (uncomment to use) */
    /* background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                  linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
       background-size: 100% 2px, 3px 100%; */

    /* Makes the video feel deeper */
    background-color: rgba(0, 0, 0, 0.2); 
    pointer-events: none;
}

#video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:light-dark(#ffffff, #020202);
    z-index: 2;
    transform: scaleY(1);
    transform-origin: bottom;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}
#video-loader2 {
    position: absolute;

    z-index: 10;
    transition: opacity 0.5s ease;
    pointer-events: none;
	    content: "";
    width: 40px;
    height: 40px;
    border: 5px solid  light-dark(#ffffff11, #02020211);;
    border-top: 5px solid hsl(var(--scroll-hue) 20% var(--scroll-br));
	border-right: 5px solid hsl(var(--scroll-hue) 20% var(--scroll-br));
    border-radius: 50%;
    animation: spin 0.4s linear infinite;
	margin: -20px;
	left: 50%;
	top: 50%;
}


/* Hide the loader when the .ready class is added */
#video-loader2:not(.loading) {
    opacity: 0;
	display: none;
}
/* State when video is ready */
#video-wrapper.video-ready #video-loader {
    transform: scaleY(0);
}

#video-wrapper.video-ready {
    opacity: 0.8; /* Or your preferred background opacity */
}

@media (max-width: 1900px) {
	/* Desktop styles */


	.square {
		height: 140px;
	}

	.square img {

		height: 140px;

	}
	.bigtext{
	font-size: 7rem;
	  line-height: 7rem;
	  text-transform: initial;
	  margin-bottom: 1rem;
	  letter-spacing: -0.5rem;
		
	}
		#introtext{
	font-size:4.5rem;
	line-height:4.5rem;
	}
}


@media (max-width: 1440px) {
	/* Desktop styles */

	.submenu {

	gap: 1rem;

	}
	.square {
		height: 140px;
	}

	.square img {

		height: 140px;

	}

	html {

		font-size: 14px;
	}
	.bigtext{
	font-size: 6rem;
	  line-height: 6rem;
	  text-transform: initial;
	  margin-bottom: 1rem;
	  letter-spacing: -0.3rem;
		
	}
	#introtext{
	font-size:4rem;
	line-height:4rem;
	}
	.aboutgrid{
	gap: 5rem;
	}
}

@media (max-width: 1000px) {

	/* Desktop styles */
	html {

		font-size: 12px;
	}

	.square {
		height: 80px;
	}

	.square img {

		height: 80px;

	}
	.bigtext{
	font-size: 4rem;
	  line-height: 4rem;
	  text-transform: initial;
	  margin-bottom: 1rem;
	  letter-spacing: -0.2rem;
		
	}
	#introtext{
	font-size:3.5rem;
	line-height:3.5rem;
	}
	#logo {
		margin-right: 1rem;
	}
	.aboutgrid{
	gap: 3rem;
	}
}

@media (max-width: 800px) {
	#menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	}
	#footer {
	text-align: center;
	justify-content: center;
	font-size: 1.2rem;
	}
	#work {
		top: 100vh !important;
	}
	/* Desktop styles */
	html {

		font-size: 12px;
	}

	.square {
		height: 100px;
	}
	body{

		padding:2rem;
	}
	#fsimage img {
    max-width: 100%;
    max-height: 85%;
	}

	body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh; /* Height of the fade effect (15% of viewport) */
    
    /* Fade from transparent to your background color */
    background: linear-gradient(to bottom, 
        transparent, 
        var(--bg-color) 90%
    );
    
    /* Ensures it stays on top of your images/videos */
    pointer-events: none; 
    z-index: 999;
	}
	#header, #footer {
		/*background-color: light-dark(#ffffff, #020202);*/
		
	}
	.square {
		
		width:25%;
	}
	.square img {

	width: 100%;
	height: 100px;
	}
	#fsimage {
		width: 100%;
		height: 90%;
	}
	.fspopisek {
		bottom: 10rem;
		}
	#fsnext,#fsprev {
		width:5%;
		
	}
	.bigtext{
	font-size: 3rem;
	  line-height: 3rem;
	  text-transform: initial;
	  margin-bottom: 1rem;
	  letter-spacing: -0.2rem;
		
	}
		#introtext{
	font-size:3rem;
	line-height:3rem;
	margin-top: 4rem;
	}
	#fsnext, #fsprev {
		font-size: 3rem;
		
	}
	.aboutgrid{
	gap: 1rem;
	}

	#header {
		display:none !important;
	}
	#footer{
	position: fixed;

		top: 0;

		left: 0;
		right: 0;
		margin: 0;
		padding: 2rem;
		bottom:auto;
	}
	#videospacer {

	height: 110vh;
	}

	#toppart, #toplab {
		position:fixed;
		margin-top:0;
		left:0;
		right:0;
		bottom: -5rem;
		padding:2rem;
		
		z-index: 9999999;
		height:auto;
		mix-blend-mode: difference;
	}
    #hamburger {
        display: flex;
    }

	.menu-links {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		flex-direction: column;
		padding: 40px;
		box-sizing: border-box;
		
		
		inset: 0;
		margin: 0;
		background-color: light-dark(#fffa, #020202aa);
		font-size: 2rem;

	
	}
  #menu a:hover, #menu label:hover, #menu a.active {
	
	}

    /* When active, show the links */
    .menu-links.active {
        display: flex;
		justify-content: center;
    }

    .menu-links a, .menu-links label {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }
		.aboutgrid{
	display:block;
	}
	#ascii-output {
	margin: 5rem -2rem;
	padding: 0 5vw;
	}
	#ascii-output span {
        pointer-events: none !important;
        user-select: none;
    }
    
    /* Optional: Remove the "active" color if it gets stuck on tap */
    #ascii-output span.scrambling {
        background: transparent !important;
        color: inherit !important;
    }

}
@media (max-width: 500px) {
	.fsprev, .fsnext {
		display:none !important;		
	}
	#logo {
   	width: 50px;
  	height: 40px;
	}
	#fsnext, #fsprev {
		display:none;
		
	}
	/* Desktop styles */
	html {

		font-size: 12px;
	}

	.square {
		height: 100px;
	}
	body{
		padding:2rem;
		padding-bottom: 20rem;

	}

	.square {
		
		width:33.3333%;
	}
	.square img {

	width: 100%;
	
	}
	#fsimage {
		width: 100%;
		height: 90%;
	
	}
	#fsimage img{
			transition:none;

	}
	#fsnext,#fsprev {
		width:5%;
		
	}
	.bigtext{
	font-size: 2rem;
	  line-height: 2rem;
	  text-transform: initial;
	  margin-bottom: 1rem;
	  letter-spacing: -0.2rem;
		
	}
		#introtext{
	font-size:2.0rem;
	line-height:2.0rem;
	}
	#menu {
		top: 2rem;
	}

}
