nav a {
color:white;
text-decoration: none;
margin-left: 20px;
font-size: 2px;
display: inline-block;
transition: transform 5s ease, color 5 ease;
}






nav a:hover {
transform: scale(1.2);
color:yellow;


}

.hover-letters span {
    display: inline-block;
    transition: transform 1.6 ease ease-in-out (0.25, 1, 0.5, 1);
    cursor:pointer
}

.hover-letters span:hover {
    transform: scale(2);
    color: rgb(141, 25, 25);
    
  }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background: black;
  color: white;
}

          .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 40px;
            transition: ease-in-out;
            
}

  .logo {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

      nav ul {
        list-style: none;
        display: flex;
        gap: 20px;
      }

         nav a {
          color: white;
           text-decoration: none;
          font-size: 0.85rem;
              }

nav a.active {
  color: yellow;
}

/* introductions text */
.intro {
  padding: 40px;
}

.intro h2 {
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
    .intro p {
       color: #bbb;
     font-size: 0.9rem;
        }

/* mina bildlänkars grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 5px;
  padding: 20px;
}

.grid a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.45s;
}

.grid img:hover {
  opacity: 0.75;
}

.grid .caption {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #bbb;
  transition: color 0.25s;
}

.grid a:hover .caption {
  color: yellow;
}