* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.navbar {
  overflow: hidden;
  background-color: cornflowerblue;
  position: fixed; /* Set the navbar to fixed position */
  top: 0; /* Position the navbar at the top of the page */
  width: 100%; /* Full width */
 
}

div .navbar{
    margin-bottom: 200px;
}

.navbar a {
  float: right;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.navbar a:hover {
  background: #ddd;
  color: black;
}


body {
    margin-top: 20px;
    padding-top: 35px ;
}

/* Base styles - Mobile first */
[data-testid="test-profile-card"] {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

figure {
    margin-bottom: 20px;
}

figcaption {
    display: none;
}

img[data-testid="test-user-avatar"] {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: block;
}

h2 {
    margin: 12px 0 8px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

p {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
}

nav {
    width: 100%;
    margin: 20px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

section {
    width: 100%;
    margin-top: 15px;
}

section ul {
    padding-left: 20px;
    margin: 0;
}

section li {
    margin-bottom: 5px;
}

/* Tablet - 768px and up */
@media (min-width: 768px) {
    [data-testid="test-profile-card"] {
        max-width: 700px;
        padding: 30px;
    }
    
    article {
        display: grid;
        grid-template-columns: 180px 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 20px;
        align-items: start;
    }
    
    figure {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
    }
    
    img[data-testid="test-user-avatar"] {
        width: 160px;
        height: 160px;
    }
    
    h2 {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        margin: 0;
    }
    
    p {
        grid-column: 2;
        text-align: left;
        margin: 0;
    }
    
    p[data-testid="test-user-bio"] {
        grid-row: 2;
    }
    
    p[data-testid="test-user-time"] {
        grid-row: 2;
        align-self: end;
    }
    
    nav {
        grid-column: 1 / -1;
        grid-row: 3;
        margin: 10px 0;
    }
    
    nav ul {
        justify-content: flex-start;
    }
    
    section {
        grid-column: 1 / -1;
    }
}

/* Desktop - 1024px and up */
@media (min-width: 1024px) {
    [data-testid="test-profile-card"] {
        max-width: 900px;
        padding: 40px;
    }
    
    article {
        grid-template-columns: 200px 1fr;
        gap: 30px;
    }
    
    img[data-testid="test-user-avatar"] {
        width: 180px;
        height: 180px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    p {
        font-size: 18px;
    }
}