body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
}

header {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* For notes about more content at bottom of pages */
note {
  margin-top: 40px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 0.9em;     
  color: #555;
}

nav {
    text-align: center;
    padding: 10px 0;
}

iframe[src*="spotify.com"] {
    max-width: 600px;
    width: 100%;
    height: 180px;
    display: block;
    margin: 20px auto; /* Centers the embed, which was a problem */
}

.portfolio-text p a {
  color: blue;                /* classic hyperlink blue */
  text-decoration: underline; /* underline hyperlinks in descriptions*/
  font: inherit;            /* same size as paragraph text */
}

.tab-btn {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease-in-out;
}

/* to show black line when hovering over tab name */
.tab-btn:hover {
    border-bottom: 2px solid #333;
}

/* to keep black line when in the page */
.tab-btn.active {
  border-bottom: 2px solid #333; 
}

.profile-container {
    margin: 20px auto;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.social-links {
display: flex;
justify-content: center; /* centers them horizontally */
gap: 10px; /* space between icons */
margin-bottom: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    text-decoration: none;
    border: none;
    outline: none;
}

.about {
    max-width: 337px; /* Makes it more in line with the rest of the page, which was an issue */
    margin: 0 auto;
    padding: 18px;
    background: #e5e5e5;
    border-radius: 10px;
    text-align: center;
    line-height: 1.6;
    display: block; /* Ensures it's always visible because it was disappearing with some orientations */
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #333;
}

iframe[src*="soundcloud.com"] {
    max-width: 600px; 
    width: 100%;
    height: 180px; 
    display: block;
    margin: 20px auto; /* Like above, centers the embed */
}

.portfolio-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin: 15px auto;
    max-width: 600px;
}

.portfolio-img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
}

.portfolio-text h3 {
    margin: 0;
    font-size: 18px;
    text-align: left;
}

.portfolio-text a {
    text-decoration: none;
    color: #333;
}

.portfolio-text a:hover {
    color: #0073e6;
}

.portfolio-text p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #555;
    text-align: left;
}

.pub-name {
    font-style: italic;
    color: #666;
    margin: 4px 0;
    text-align: left;
}

@media screen and (max-width: 600px) {
  body {
    font-size: 100%;
    padding: 5%;
  }

  .bio-box,
  .content-container,
  .social-links {
    width: 90%;
    margin: 0 auto;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* To avoid clustering of tabs on mobile */
@media (max-width: 600px) {
  nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    font-size: 14px; /* Reduce font size slightly */
  }

  nav ul li {
    padding: 6px 10px; /* Slightly tighter padding */
    white-space: nowrap; /* Prevent wrapping */
  }
}