@import url('https://unpkg.com/css.gg@2.0.0/icons/css/search.css'); /*search icon svg*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body{
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 62.5%;
}

body{
    font-size: 1.6rem;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
    gap: 2rem;

}


.search{
    display: flex;
    width: 50%;
    max-width: 60rem; /*max spread upto this width*/
}

.search input{
    padding: 0.5rem 1rem;
    width: 100%;
}

.search input:focus-visible{
    outline: 1px solid dodgerblue;
}

#searchInput{
    border: 1px solid black;
    border-radius: 5rem;
}

.primary-btn {
    background-color: transparent;
    border: none;
    padding: 0.5rem 1rem;
    transition: 0.1s ease-in;
}

.primary-btn:hover{
    cursor: pointer;
    color: dodgerblue;
}

.primary-btn:active { /*when clicked on btn, change color*/
    color: rgb(0, 0, 0);
}

/*For Card*/

#profileContainer{
    width: 70%;
}

.profile-box {
    margin: auto;
    padding: 4rem 2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.2);
    border-radius: 1rem;
    width: 70%; /*to fix width of the box*/
    max-width: 70rem; /*will not spread than this width*/
}

.avatar {
    height: 10rem;
    width: 10rem;
}

.top-section{
    display: flex;
    justify-content: space-between;
}

.left{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.left h1 {
    font-size: 2rem;
}

#displayId{
    font-size: medium;
}


.top-section a{ /*brings github <a> to center*/
    align-self: center;
}

#github-btn{
    font-size: 1.65rem;
    font-weight: 500;
}

.avatar img{
    border-radius: 50%;
    border: 0.3rem solid rgb(200, 200, 200);
    box-shadow: 0 0 1rem rgba(0,0,0,0.1);
    height: 10rem;
    width: 10rem;
}

.about {
    margin: 2rem;
}

.status{
    display: flex;
    margin: 2rem;
    justify-content: space-between;
}

.status-item{
    display: flex;
    flex-direction: column;
    align-items: center;
}



@media screen and (max-device-width: 480px) {
    .container {
        font-size: 16px;
    }

    #heading{
        font-size: 2.5rem;
    }

    .search {
        width: 60%;
        
    }

    #searchInput{
        border: 2px solid black;
    }

    #profileContainer {
        width: 90%; 
    }

    .profile-box {
        width: 100%; 
        padding: 2rem; 
    }

    .avatar {
        height: 8rem;
        width: 8rem;
    }

    .avatar img {
        height: 8rem;
        width: 8rem;
    }

    .top-section {
        flex-direction: column;
        align-items: center;
        gap: 1rem; 
    }

    .left {
        text-align: center;
    }

    .left h1 {
        font-size: 1.8rem;
    }

    #github-btn {
        font-size: 1.3rem;
        font-weight: 500;
        
    }

    #github-btn i {
        font-size: 1.65rem;
        font-weight: 500;
    }

    .about h2 {
        font-size: 1.3rem;
    }

    .about p {
        font-size: 1.4rem;
    }

    .status {
        flex-direction: row; 
        align-items: center;
        gap: 1rem;
    }

    .status-item h3 {
        font-size: 1.3rem;
    }

    .status-item p {
        font-size: 1.5rem;
    }
}
