* {
    padding: 0;
    margin: 0;
}

body {
    background: #152331;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #000000, #152331);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 50%, #0d1b2a 100%);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    min-height: 100vh;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
}

#app_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#title {
    /* display: flex; */
    /* justify-content: flex-start; */
    width: 35vw;
    font-size: 2.8rem;
    font-weight: 700;
    padding: 0 0 1rem 0.25rem;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.1
}

#title span {
    color: #f97316;
}

#app_content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 35vw;
    height: auto;
    padding: 1.75rem;
    border-radius: 0.75rem;
}

.searchBar{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

#idSearch {
    padding: 0.8rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    flex: 1;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    color: white;
    transition: all 0.2s ease-in-out;
}

#idSearch:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.11);
}

#idSearch::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#idSearch:focus {
    outline: none;
    border-color: #f97316;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

#search_btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
    border-radius: 0.75rem;
    background: orange;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    z-index: 1;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    border: 0.1rem solid black;
    transition: all 0.2s ease-in-out;
}

#search_btn:hover {
    background: #ea6c0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.5);
}

#search_btn:active {
    transform: scale(0.97) translateY(0);
    box-shadow: 0 1px 6px rgba(249, 115, 22, 0.3);
}

#card {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    /* padding: 1.2rem; */
    width: 100%;
    color: white;
}

.avatar {
    margin-top: 2rem;
    border-radius: 50%;
    height: 30vh;
    flex-shrink: 0;
    border: 2px solid rgba(249, 115, 22, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
}

.avatar:hover {
    border-color: #f97316;
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

.user_info h2{
    font-size: 1.7rem;
}

.user_info {
    list-style: none;
    line-height: 2rem;
}

.user_info ul li , p{
    font-size: 1.2rem;
}

.loading {
    margin-top: 2rem;
}

.error {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    #title {
        width: 88vw;
        font-size: 2rem;
        padding-bottom: 0.75rem;
    }
    #app_content {
        width: 88vw;
        padding: 1.25rem;
    }
    .searchBar {
        flex-direction: column;
        gap: 0.6rem;
    }
    #idSearch, #search_btn {
        width: 100%;
    }
    #card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .avatar {
        width: 90px;
        height: 90px;
    }
    .user_info h2 {
        font-size: 1.15rem;
    }
    .user_info ul {
        justify-content: center;
    }
}