@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
}

:root {

   /*Colors */
    --blue: #0079ff;
    --grey: #697C9A;
    --dark-grey: #2B3442;
    --error: #F74646;

    /*dark mode colors */
    --dm-grey: #1E2AA7;
    --dm-background: #141D2F;

    /* light mode colors */
    --lm-bg: #F6F8FF;
    --lm-bg-content: #FEFEFE;
    --lm-text: #4b6a9a;
    --lm-text-alt: #2B3442;
    --lm-shadow-active: 0px 4px 4px 0px rgba(0,0,0,0.25);
    --lm-shadow-inactive: 0px 16px 30px -10px rgba(0,0,0,0.2);
    --lm-icon-bg: brightness(100%);
    --lm-dev-text: #222731;
    --lm-bio-text: #4B6A9B;

    /* Btn */
    --btn: #0079FF;
    --btn-hover: #60ABFF;
    --btn-txt: #FFFFFF;
}

body {
    background: var(--light-blue);
    font-family: 'Space Mono';
}

 body.dark-theme { 
    background: var(--dm-background);
    color: var(--darko-mode-white);
}

body {
    background-color: var(--lm-bg);
    font-size: 13px;
    color: var(--lm-text);
}

body.dark-theme {
    background-color: var(--dm-background);
    color: var(--btn-txt);
}

@media (prefers-color-sheme: dark) {
    /* defaults to dark theme */
    
    body {
        background-color: var(--dm-background);
        color: var(--btn-txt);
    }

    body.light-theme {
        background-color: var(--lm-bg);
        color: var(--lm-text);
    }
}  

.wraper {
    max-width: 730px;
    position: relative;
    margin: auto;
    margin-bottom: 10.625rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
    padding-top: 10px;
    font-weight: 700;
    color: var(--lm-dev-text);
}

.title {
    font-size: 26px;
    line-height: 39px;
    letter-spacing: 0px;
    color: var(--lm-dev-text);
}

.toggle-dark-mode {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    width: 90px;
    height: 38px;
    letter-spacing: 2.5px;
    color: var(--lm-text);
    font-weight: bold;
    font-size: 13px;
}

.toggle-dark-mode:hover{
    cursor: pointer;
}

.form-control {
    background-color: var(--lm-bg-content);
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: var(--lm-shadow-inactive);
    display: flex;
    height: 69px;
    justify-content: space-between; 
    align-items: center; 
    background-image: url("/images/icon-search.svg");
    background-repeat: no-repeat;
    background-position-x: 15px;
    background-position-y: center; 
}

.search {
    border: none;
    width: 100%;
    outline: none;
    background: none; 
    color: var(--lm-text);
    height: 100%;
    padding-left: 50px; 
    font-size: 18px;
    font-family: 'Space Mono';
} 

.search::placeholder {
    color: var(--lm-text);
    letter-spacing: -0.5px;
    font-family: 'Space Mono';
    font-size: 18px;
}

.form-button {
    position: relative;
    width: 20%;
    height: 75%; 
    margin-right: 7px; 
    background-color: var(--btn);
    border: none;
    border-radius: 10px;
    color: var(--btn-txt);
    font-size: 14px;
}

.form-button:hover {
    cursor:pointer;
    background-color: var(--btn-hover);
}

.form-button:active {
    transform: scale(0.975);
} 

.error{
    position: absolute;
    left: 498px;
    
}

#no-results{
    position: relative;
    color: var(--error);
    font-weight: bold;
}

.content {
    background-color: var(--lm-bg-content);
    border-radius: 15px;
    margin-top: 26px;
    box-shadow: var(--lm-shadow-inactive);
    display: block;
}

.content .avatar-box {
    width: 204px;
    height: 100vh;
    flex-grow: 0;
    float: left;
}

.avatar {
    display: block;
    margin: 57px auto 0;
    width: 117px;
    height: 117px;
    border-radius: 50%;
}

.profile {
    position: relative;
    padding: 57px 48px 0 0;
}

.name {
    max-width: 60%;
    font-size: 26px;
    font-weight: bold;
    color: var(--lm-text-alt);
}

.username {
    font-size: 16px;
    color: var(--btn);
}

.date-joined {
    float: right;
    max-width: 40%;
    text-align: right;
    padding: 10px 0;
}

.content-box {
    padding: 30px 48px 0 0;
    overflow: hidden;
}

.locations {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 70px;
    margin-left: 20px;
}

.bio {
    font-size: 15px;
    line-height: 25px;
    color: var(--lm-bio-text);
}

.social-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--lm-bg);
    border-radius: 10px;
    text-align: center;
}

.social {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 85px;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    text-align: left;
    padding: 0 40px;
}

.social-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--lm-text-alt);
}

.media-card {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    row-gap: 15px;
}

.card-item {
    width: 50%;
    column-gap: 20px;
}

.card-item label {
    font-size: 15px;
    line-height: 25px;
}

.links {
    max-width: 20px;
    filter: var(--lm-icon-bg);
}

.locations p {
    margin-left: 14px;
}

.dm-text{
    color: var(--dm-text);
}
.dm-bg{
    background-color: var(--dm-bg);
}
.dm-bg-sec{
    background-color: var(--dm-bg-content);
}
.active{
    box-shadow: var(--lm-shadow-active);
}


 @media only screen and (max-width: 400px) {
     /* mobile version */

     body {
         margin: 6%;
     }

     .form-button {
         min-width: 85px;
     }

     .search::placeholder {
        font-size: 13px;
    }

    .profile {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 33px 0 0 0 ;
        font-size: 13px;
        margin-top: 33px;
        margin-left: 133px;
        text-align: left;
    }

    .name {
        order: 1;
        font-size: 16px;
    }

    .username {
        order: 2;
        font-size: 13px;
    }

    .date-joined {
        order: 3;
        text-align: left;
    }

    .content {
        padding-left: 24px;
        padding-right: 24px;
        
    }

    .content .avatar-box {
        width: 70px;
        height: 70px;
    } 

    .avatar {
        margin-top: 32px;
    }

    .social {
        font-size: 11px;
        padding: 0 20px;
        text-align: center;
    }

    .social-value {
        font-size: 16px;
    }

    .content-box {
        padding: 25px 0px 0 0;
        overflow: hidden;
    }

    .media-card {
        display: flex;
        flex-direction: column;
    }

    .card-item label {
        font-size: 13px;
        line-height: 19.25px
    }

 
 }