/* start dark mode styling */
	 	body {
			--text: #ffffff;
			--border: #ae0000;
			--accent: #125823;
			--bg: #3bfd99;
			--gradientBottom: #018056;
			--gradientTop: #00e98d;
			a:link { color: #2b1e11; }
		}
		header {
			background: url('***dark mode banner image***');
		}
	
/* end dark mode styling */


* { 
	box-sizing: border-box;
}
body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);

	/* page background pattern */
	background-image:url("wallpaper%203.png");
	background-color: rgb(107, 107, 107);
	/* background-image:  linear-gradient(30deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(150deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(30deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(150deg, var(--bg) 12%, transparent 12.5%, transparent 87%, var(--bg) 87.5%, var(--bg)), linear-gradient(60deg, var(--bg) 25%, transparent 25.5%, transparent 75%, var(--bg) 75%, var(--bg)), linear-gradient(60deg, var(--bg) 25%, transparent 25.5%, transparent 75%, var(--bg) 75%, var(--bg)); */
	background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}


.container {
	max-width: 75.2rem;
	margin: 1vw auto 1px 8vw;
	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(--gradientBottom);
	background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradientBottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
}
/* these control the column widths */
.small { flex: 1 1 20%; }
.iframe{ flex: 1 0 25%; }
.large { flex: 1 1 60%; }
.full { flex: 1 1 100%; }
.half { flex: 1 0 49%; }
.blinkies { flex: 1 1 100%}
.friendblinkie { flex: 1 1 84%; }
.myblinkie { flex: 1 1 15%; }
.imgleft{float: right;}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  padding: 1px;	
}
header {
	background-image:url("ash-4.2.gif");
	background-size: 1220px 120px;	
	width: 100%;
	height: 110px; /* 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;
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradientTop);
}

nav a {
  margin: 5px;
  background: linear-gradient(to right, var(--bg), var(--gradientBottom));
  border-radius: 5px;
  padding: 2px 7px;
  text-decoration: none;
}

.sidenav a {
  display: block;
}

.topnav a {
  display: inline;
}

.fade-in-image { animation: fadeIn 1.8s; }
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.photopile { 
  display: flex; 
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 100%;
	overflow: hidden
}
.photopile figure { 
  display: inline-block;
  background: #ffeddc;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  margin: 0 -25px;
	overflow: hidden
}
.photopile figure img {
  max-width: calc(100% - 2rem);
  margin: 1rem 1rem 0 1rem;
  border: 2px rgb(0,0,0,0.55) inset;
}
.photopile figcaption, .popovers figcaption {
  font-family: 'MS PGothic', sans-serif;
  text-align: center;
  margin: 0.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: black;
}
.photopile button { 
  background: none; 
  border: none;
  max-width: 40%;
}
.photopile button:hover, .photopile button:focus { 
  z-index: 3;
  cursor:pointer;
}
.photopile button:nth-child(2n) { 
  transform: rotate(-10deg);
}
.photopile button:nth-child(3n) {
  transform: rotate(5deg);
}
.photopile button:nth-child(4n) { 
  transform: rotate(4deg);
}
.photopile button:nth-child(5n) { 
  transform: rotate(-2deg);
}
.photopile button:nth-child(6n) {
  transform: rotate(-7deg);
}
:popover-open {
border: none;
box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
position: fixed;
margin-top: 480px;
 transform: translate(-50%,-50%);
	overflow: hidden
}
.popovers figure:popover-open {
  display: block;
  background: #ffdfbe;
  width: 88vmin;
}
.popovers figure:popover-open figcaption {
  margin: 2.5vmin 1rem 4vmin 1rem;
  font-size: 175%;
  color: black;
}
.popovers figure:popover-open img {
  margin: 4vmin 4vmin 0 4vmin;
  width: 80vmin;
  border: 4px rgb(0,0,0,0.55) inset;
}

	
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:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}


section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	padding: 5px;
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}

details > p {
  padding: 4px;
  margin: 0;
  box-shadow: 1px 1px 2px #cbcbcb;
}
	
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);
	padding-left: 12px;
}

@media (max-width: 1000px) {
    .fade-in-image {
        display: none;
    }
	.container {
	max-width: 55.2rem;
	margin: 1vw auto 1px 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;
}
}


.calendar-widget {
    --gap: 3px;
    font: 12pt monospace;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: var(--gap);
    background: #ffb76f;
    border: 1px solid black;

    .calendar-header {
      font-weight: bold;
      padding: var(--gap);
      display: flex;
      justify-content: center;
      border: 1px solid black;
      background: #000000;
      color: #ffb76f;
    }

    .calendar-weekdays {
      display: grid;
      grid-template-columns: repeat(7, 1fr);

      >* {
        display: flex;
        justify-content: center;
      }
    }

    .calendar-days {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: var(--gap);
    }

    .calendar-day {
      padding: var(--gap);
      min-height: 1em;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid black;
      background: black;
      color: #ffffff;

      &:has(slot) {
        opacity: 0.25;
      }

      &.today {
        color: #ff9d3b;
      }
    }
  }

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}