@media screen and (max-width:600px) {
  .cell1, .cell2 {
      width: 100% !important;
 }   
.o1 {order: 1;}
.o2 {order: 2;}
.o3 {order: 3;}
.o4 {order: 4;}
.o5 {order: 5;}
.o6 {order: 6;}
.o7 {order: 7;}
.o8 {order: 8;}
}
html {
	font-size: 1vw;
}
body {
	font-family: san-serif;
	text-align: left;
}
#navbar li{
    width: calc(100% / 5); /* Changed from 1/6 to 1/5 since you have 5 items */
    float: left; /* Desktop layout uses floats */
    display: block; 
}
#navbar li a {
    display: block;
    padding: 30% 0% 30% 0%;
    border: none;
    text-align: center; 
    position: relative; /* Keep relative positioning for desktop offsets */
}
#hero {
	width: 100%;
	height: auto;
	position: relative;
	border: none;
}
.herotext {
	position: absolute;
	margin: 0;
	top: 70%;
	left: 2%;
	width: 60%;
	text-align: left;
	font-size: 6vw; 
	color: white;
}
.herotext2 {
	position: absolute;
	margin: 0;
	top:36%;
	left:2%;
	width: 30%;
	text-align: left;
	font-size: 6vw; 
	color: black;
}
.herotext3 {
	position: absolute;
	margin: 0;
	top:1%;
	left:3%;
	width: 30%;
	text-align: left;
	font-size: 6vw; 
	color: white;
}
.herotext4 {
	position: absolute;
	margin: 0;
	top:3%;
	left:3%;
	width: 45%;
	text-align: left;
	font-size: 6vw;
	color: white;
}
.herotext5 {
	position: absolute;
	margin: 0;
	top:55%;
	left:3%;
	width: 40%;
	text-align: left;
	font-size: 6vw; 
	color: white;
}

#navbar {
    list-style-type: none;
    /* ... other background styles ... */
    overflow: hidden; 
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    background-image: url('../images/guitar.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%; /* Ensure the container takes full width */
	border: 0.2vw solid black; 
}
#navbar li {
    /* Use flex-grow instead of fixed percentage width for better flex behavior */
    flex-grow: 1; 
    display: block; 
}
#navbar li a {
    display: block;
    padding: 30% 0%; /* Note: This high percentage padding is risky, but kept as per original */
    border: none;
    text-align: center;
    /* Remove original manual positioning */
}
#navbar a:link, #navbar a:visited{
	font-size: 2vw;
	color: black;
	text-decoration: none;
	background: none;
}
.wider-image {
	width: 100%;
	height: auto;
	object-fit: contain;
	background: #000;
}
.wider-image2 {
	width: 100%;
	height: auto;
	background: #000;
	background-size: cover;
}
a span {
    display: inline-block;
    padding: 0.2em 0.5em;
    background-color: #75C2E0;
    border-radius: 50%;
    color: black;
    margin: 0 auto; /* Centers the span within the 'a' tag */
    border: 0.3vw solid black;
}
body {
	background-color: black;
}
a span:active {
	background-color: pink;
}
a span:hover {
background-color: pink
}
h2 {
	font-size: 5vw;
	color: white;
	margin-right: 2%;
	font-family: serif;
	color: #75C2E0;
	padding-top: 4%;
}
#navbar li:nth-child(1) a { /* Home (H) - Slight downward margin */
    margin-top: -1vw; 
	margin-right: 2vw;
}
#navbar li:nth-child(2) a { /* Background (B) - Slight upward margin */
    margin-top: -4vw;
	margin-right: 8vw;
}

#navbar li:nth-child(3) a { /* Animations (A) - Neutral position */
margin-top: -1vw;
	margin-right:5vw;
}

#navbar li:nth-child(4) a { /* Drawings (D) - Slight upward margin */
    margin-top: -4vw;
	margin-left: -9vw;
}

#navbar li:nth-child(5) a { /* Links (L) - Slight downward margin */
    margin-top: 1vw;
	margin-left: -10vw;
}
p {
	padding-right: 2rem;
	line-height: 135%;
	font-family: "Outfit", sans-serif;
}
#overview {
	color: white;
	font-size: 2.5vw;
	text-align: left;
	margin-left: 3%;
	margin-right: 1%;
	font-family: "Outfit", sans-serif;
}
.rightalign {
	text-align: right;
}
.right {
	float: right;
	margin-left: 2%;
	margin-bottom: 2%;
	height: auto;
	max-width: 60%;
	border: 0.2vw solid white;
}
#footer {
	background-image: url('../images/guitar5.jpg');
	background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	width: 96%;
	height: auto;
	padding: 2%;
	text-align: center;
	color: white;
	clear: both;
	border: 0.3vw solid #75C2E0;
	font-size: 1vw
}
.footer-text {
  background-color: black;
  display: inline-block;
  padding: 0.5%;
  width: 30%;
  border: 0.2vw solid white;
}
.justifyright {
	float: right;
	margin-left: 2%;
	margin-bottom: 0%;
	height: auto;
	max-width: 55%;
	border: 0.2vw solid white;
}
.justifyleft {
	float: left;
	margin-left: 0%;
	margin-right: 2%;
	margin-bottom: 0%;
	height: auto;
	max-width: 45%;
	border: 0.2vw solid white;
}
#wrapper {
	width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}
#leftcolumn {
	width: 45%;
	height: auto;
	background-color: #000000;
	float: left;
	padding: 0%;
	border: none;
	margin-left: 2%;
}
#rightcolumn {
	width: 45%;
	height: auto;
	background-color: black;
	float: right;
	padding: 0%;
	border: none;
	margin: 0%;
}
.ptext {
	font-size: 2vw;
	margin-right: 2rem;
	font-family: serif;
	color: #75C2E0;
	padding-top: 0%;
	padding-bottom: 0%;
	font-family: "Outfit", sans-serif;
	line-height: 135%;
	color: white;
}
h3 {font-size: 3vw;
	color: white;
	margin-right: 2rem;
	font-family: serif;
	color: #75C2E0;
	padding-top: 0%;
	font-family: "Outfit", sans-serif;
}
.resize {
    max-width: 100%;
    /* Set a fixed height for visual uniformity */
    height: 300px; 
    /* This is crucial: it crops the images from the center to fill the fixed height */
    object-fit: cover; 
    display: block;
    border: 0.2vw solid white;
}
#flexbox {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	background-color: black; 
	padding-top: 2%;
	padding-bottom: 2%;
	align-items: center;
}
.cell1 {
	width: 30%;
	height: auto;
	margin-bottom: 0%;
}
.cell2 {
	width: 30%;
	height: auto;
	color: white;
	align-self: flex-start;
	text-align: left;
	font-family: "Outfit", sans-serif;
	font-size: 2vw;
	line-height: 138%;
	margin-bottom: 0%;
}
img {
	max-width: 100%;
	height: auto;
	border: 0.3vw solid #75C2E0;
	box-sizing: border-box;
}
.override-me {
    /* Override global a span padding */
    padding: 0; 
    /* Override global a span background-color */
    background-color: transparent; 
    /* Override global a span border-radius */
    border-radius: 0; 
    /* Override global a span border */
    border: none; 
    /* Ensure the color of the text itself is readable, assuming the parent <a> or <p> has a color */
    color: white; 
    /* Remove automatic centering margin if desired */
    margin: 0; 
    /* Reset display behavior */
    display: inline;
}
override-me:hover, .override-me:active {
    background-color: transparent; /* Prevents pink hover effect from navbar spans */
}
a:link, a:visited {
  color: #75C2E0; /* Example color from your existing H2 definitions */
  text-decoration: underline; /* Ensures the underline is present */
}
ul li {
    margin-bottom: 3rem; 
}