body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.search-section {
    margin-bottom: 30px;
}

#usernameInput {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: calc(100% - 120px);
    margin-right: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

#lookupButton {
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#lookupButton:hover {
    background-color: #0056b3;
}

.user-info-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    background-color: #f9f9f9;
    text-align: left;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007bff;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.user-info-card p {
    margin: 8px 0;
    color: #555;
    font-size: 17px;
}

.user-info-card p strong {
    color: #333;
    min-width: 120px; /* Align labels */
    display: inline-block;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
    margin-top: 15px;
}

.loading-message {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}