#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 14px;
  display: none;
  cursor: pointer;
}

html {
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  padding: 20px;
  text-align: center;
  letter-spacing: 10px;
  line-height: 75%;
  background: blue;
  color: black;
  font-size: 20px;
  font-family: helvetica;
  overflow: auto;
  white-space: nowrap;
  word-break: break-word;
  border-radius: 10px;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #555;
  transition: padding 2s ease, box-shadow 2s ease;
  z-index: 1000;
}

/* default size */
nav ul {
  list-style: none;
  margin: 0;
  padding: 15px 20px;
  display: flex;
  gap: 20px;
}

/* links */
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: font-size 0.3s ease;
}

/* shrink + shadow */
nav.shrink {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

nav.shrink ul {
  padding: 8px 20px;
}

nav.shrink a {
  font-size: 14px;
}

.hero {
  margin-top: 40px;
  height: 60vh;
  background-image:
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.30)),
    url("my_work/character_art/Pokemon_Iso_Pixel_Art.png");
  background-size: 100%;
  background-position: center 60%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}


.hero-content {
  padding: 0;
  max-width: 400px;
  margin-left: 10%;
  text-align: left;
}


.hero h1 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 36px;
}

.hero a {
  display: inline-block;
  background: rgba(0, 0, 0, 0.80);
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  font-size: 16px;
}

.hero a:hover {
  background: rgba(0, 0, 0, 1);
}

.gallery-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-content: center;
}

.gallery-nav button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}


.art-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.art-item img {
  width: 100%;
  height: auto;
  display: block;
}


.art-item:hover {
  background: #ccc;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* mobile friendly */
@media (max-width: 768px) {
  nav ul {
    justify-content: space-around;
  }
  
  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 28px;
  }
  
}
