/* start light mode styling */
	:root {
		--text: white;
		--border: lightgrey;
		--accent: lightgrey;
		--bg: ;
		--gradientTop: black;
		--gradientBottom: rgb(43, 43, 43, .8);
	}
	header {
		background: url('https://pbs.twimg.com/media/FFYoYoxXwAMI7qz?format=jpg&name=medium');
	}
/* end light mode styling */


* { 
	box-sizing: border-box;
}

@font-face {
  font-family: basiic; /* set name */
  src: url(/fonts/basiic.woff); /* url of the font */
}

body {
  background-color: white;
  background-image: url("")
  color: black;
  font-family: 'basiic', serif;
}

@font-face {
    font-family: 'terminal-grotesque.woff';
    src: url('/fonts/terminal-grotesque.woff') format('woff'),
font-weight: normal;

font-style: normal;}

header {font-family: 'terminal-grotesque.woff', serif;
            font-weight: normal;}

body {
	padding: 10px;
	font-family: 'basiic', sans-serif;
	color: var(--text);

	/* page background pattern */
	background-image: url("images/lace.jpg");
	background-color: var(--gradientTop);
	background-size: stretch;
	background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}

body {

  cursor: url('cursors/cursor.png'), auto;
}

a:hover { 
  cursor: url("cursors/cursor2.png"), auto;
  
  }
  
.auto {
    cursor: url("cursors/cursor.png"), auto;

}


.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradientTop);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--gradientTop);
	background-image: car(--gradientBottom);
}
/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }


header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}
header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	color: white;
}


nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
	
}
nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: white;
}
nav a:hover, nav a:focus {
	color: rgb(98, 59, 59);
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 15px auto;
	border:5px ridge var(--border);
	border-radius: 2px;
	height: 510px;
}


section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	padding: 5px;
}


section.half {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	overflow-y: scroll;
	height: 510px;
	padding: 3px;

 scrollbar-width: thin; /* makes the scrollbar thinner */
  scrollbar-color: #493A3A transparent; /* thumb color, track color */
}
section.half a:link, a:visited { 
	color: white;
text-decoration: none;
}
section.half a:hover, a:focus {
	color: rgb(98, 59, 59);
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
color: rgb(107, 81, 81);
}


h1, h2, h3, h4, h5, h6, p  { 
	margin: 5px;
	line-height: 1.2;
}
h1 { 
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}
h2 { 
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
	color: var(--accent);;
}

/* image gallery */
#gallery {
    margin: var(--doublespacing) auto;
    display: block;
    text-align: center;
    line-height: 1.2em;
    font-size: .9em;
}
#gallery.columns {
    columns: var(--minimum-img-width) var(--maximum-columns);
    gap: var(--column-gap);
}

#gallery img {
    margin: var(--spacing) auto;
    max-width: min(var(--maximum-img-width), 100%);
    display:block;
    background-color:var(--image-background)
}

#gallery img:first-of-type {
  margin-top: 0;
}

figure {
    margin: var(--spacing) auto;
    break-inside: avoid;
}

/* lightbox */
#gallery img:hover {
    border-radius: var(--border-radius);
    cursor: pointer;
    outline: var(--border)
}

#lightbox {
    border: none;
    outline: none;
}
#lightbox img {
  max-height:90vh;
  max-width:90vw;
}

::backdrop {
    backdrop-filter: blur(2px) brightness(80%);
}

#gallery:has(~ #lightbox:popover-open) {
    pointer-events: none;
}
/* makes the lightbox work on small screens, like phones */
@media only screen and (min-width: 600px) {
    #lightbox button {
        display: none;
    }
} 
@media only screen and (max-width: 600px) {
    #lightbox button {
        display: block;
        width:30px;
        height:30px;
        margin:10px auto;
    }
} 




/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }
