* {
	font-family: sans-serif;
}

body {
   background: black;
   text-align: center;
   display: grid;
   grid-template-columns: 150px auto 150px;
   grid-template-rows: 90px auto 60px;
   grid-template-areas: 
      "head head head"
      "nav article aside"
      "foot foot foot";
}
.resume {
	border: 8px double black;
}

.alink {
	color:black;
	font-size: 1em;
	z-index: 20;
	position: relative;
}

p span {
		font-weight:bold;
		font-size 1.1em;
}

#clock {
	 font-size: 2em;
      font-family: monospace;
      color: black;
      text-align: center;
      display: inline-block;
      perspective: 1000px;
}

.flip {
	display: inline-block;
	animation: flipIn 0.5s;
  }
  
   @keyframes flipIn {
      from {
        transform: rotateX(90deg);
        opacity: 0;
      }
      to {
        transform: rotateX(0deg);
        opacity: 1;
      }
    }

ul.a {
	list-style-type: disc;
}

ol {
	list-style-type: none;
}

.navButton {
	background-color: lightgray;
	border: double;
	text-align: center;
	color:black;
	cursor: pointer;
	width:100px;
}

#myPic {
	display: block;
    position: fixed;
    top: 98px;
    right: 7px;
    height: 150px;
    width: 145px;
    border: 3px solid lime; 
	border-radius: 12px; 
    z-index: 1;
	cursor: pointer;
}


.spacer {
    height: 200px; /* or however tall you want the gap */
}

.ImHere {
	background-color: blue;
	border: double;
	text-align: center;
	color:yellow;
	cursor: pointer;
	width: 100px;
	
}

.pageTitle {
	text-align:center;
}


header {	
	font-size: 1.25em;
	background: navy;
	color:yellow;
	grid-area: head;
}


nav {
   background: khaki;
   grid-area: nav;
}

article {
   background: darkseagreen;
   grid-area: article;
   text-align:left;   
}

aside {
   background: khaki;
   grid-area: aside;
   
}

footer {
   background: khaki;
   grid-area: foot;
}

p {
	font-size: 1.10	em;
}

#update {
	margin: -20px;
	font-size: .75em;
	
}

a:hover {
  background-color: yellow;
  font-size: 15px;
}

h3 {
	padding: 5px;
}

#ball {
	position:absolute;
	left:0;
	height:50px;
	weidth:50px;
	z-index:5;
}

.grid3x3 {
    display: grid;
    grid-template-columns: 32px 32px 32px;
    grid-template-rows: 32px 32px 32px;
    grid-gap: 2px;
    margin-bottom: 16px;
}
.grid5x5 {
    display: grid;
    grid-template-columns: 32px 32px 32px 32px 32px;
    grid-template-rows: 32px 32px 32px 32px 32px;
    grid-gap: 2px;
    margin-bottom: 16px;
}
.lightOn {
    border: 1px solid black;
    background-color: yellow;
    width: 100%;
    height: 100%;
}
.lightOff {
	border: 1px solid black;
    background-color: black;
    width: 100%;
    height: 100%;
}

document.addEventListener("DOMContentLoaded", () => {
  const pic = document.getElementById("myPic");
  if (!pic) return;

  pic.addEventListener("click", () => {
    // Restart the animation even on rapid clicks:
    pic.classList.remove("spin");
    // Force reflow so the class re-add retriggers the transition
    // (this line does nothing visually, it just resets the animation)
    void pic.offsetWidth;
    pic.classList.add("spin");

    // Clean up after the spin finishes so the class isn't stuck
    setTimeout(() => pic.classList.remove("spin"), 600); // match CSS duration
  });
});

	


   


 