@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: trap;
    src: url(../fonts/Trap-Black.otf);
}

*{
    box-sizing: border-box;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

html {
    --scrollbarBG: #CFD8DC;
    --thumbBG: #90A4AE;
}

#logo-title{
    font-family: trap;
    font-size: 4em;
    text-align: center;
    width: 100%;
}

.logo-title{
    font-weight: bolder;
    font-size: 4em;
}

.logo-title-header{
    color: #22262a;
    text-decoration: none;
    font-family: trap!important;
    font-size: 2em;
}

body[data-theme="light"] {
    --text: #22262a;
    --placeholder: #999999;
    --background: #E4F0F6;
    --primary: #14EBB1;
    --disabled: #70b8a5;
    --secondary: #F2FAFD;
    --accent: #ff9eda;
    --accent2: #7830C0;
    --accent3: #2F57C6;
    --correct: #dafff8;
    --incorrect: #ffdde0;
}

body[data-theme="dark"] {
    --text: #d5d9dd;
    --placeholder: #7a7a7a;
    --background: #060e13;
    --primary: #14EBB1;
    --disabled: #70b8a5;
    --secondary: #10222d;
    --accent: #ff9eda;
    --accent2: #B687FF;
    --accent3: #0E9EE1;
    --correct: #14EBB1;
    --incorrect: hsl(355, 30%, 20%);
}

body::-webkit-scrollbar {
    width: 11px;
}
        
body {
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
        
body::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
}
        
body::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG) ;
    border-radius: 6px;
    border: 3px solid var(--scrollbarBG);
}
.loading{
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    backdrop-filter: blur(15px);
    z-index: 999;
}
.loading div{
    position: absolute;
    left: 50%;
    top: 50%;
}
.loading svg{
    filter: drop-shadow(0px 0px 10px var(--primary)) drop-shadow(0px 0px 25px var(--primary));
    animation: loading 1.5s linear infinite
}

@keyframes loading {
    0%{ -webkit-transform: rotate(0deg); transform: rotate(0deg);}
    100%{ -webkit-transform: rotate(360deg); transform: rotate(360deg);}
}

#friends-container{
    width: 33.3%;
}

#friends-container>div{
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

#friends-header{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#friends-info{
    width: 100%;
    font-size: 18px;
}

#friends-search{
    width: 87%;
    height: 35px;
}

#friends-search input{
    all: unset;
    font-weight: 500;
    box-sizing: border-box;
    width: 100%;
    background-color: var(--background);
    height: 100%;
    border-radius: 20px;
    padding: 5px 5px 5px 10px;
    border: 1px solid var(--secondary);
}

#friends-search input:focus{
    border: 1px solid var(--primary);
    background-color: var(--secondary);
}

#friends-search input:focus ~ svg{
    fill: var(--primary);
}

.friends-icon{
    height: 100%;
    width: 10%;
}

.friends-icon svg{
    fill: var(--text);
    display: inline-block;
    height: 100%;
    width: 100%;
    object-fit: contain;
    vertical-align: middle;
    transition: all 100ms;
}

.friends-icon:hover, 
.friends-icon:hover svg,
.svg-wrapper:hover,
.svg-wrapper:hover svg,
#friends-search svg:hover{
    cursor: pointer;
    fill: var(--primary);
}


.friends-list ul{
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    list-style-type: none;
}

.friends-list li{
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
}

.friends-list li:hover{
    background-color: var(--secondary);
}

.friends-box{
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    align-items: center;
}

.friends-box img{
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.friends-box svg{
    fill: var(--text);
    width: 24px;
}

#friends-search{
    position: relative;
}

#friends-search svg{
    fill: var(--text);
    position: absolute;
    padding: 5px;
    width: 35px;
    height: 35px;
    right: 5px;
}

.friends-nav{
    display: flex;
}

.friends-nav p{
    position: relative;
    text-align: center;
    padding: 10px 15px;
}

.friends-nav p:after{
    content: '';
    position: absolute;
    bottom: -1px;
    width: var(--width);
    height: 100%;
    z-index: -1;
    border-radius: 50px;
    right: 0;
    background-color: var(--secondary);
    transition: all 300ms;
}

.friends-nav p:hover{
    cursor: pointer;
}

.svg-wrapper{
    width: 50px;
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

.img-wrapper{
    margin-right: 10px;
    border: 1px solid black;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #21EDC5;
}

.friends-username{
    font-weight: 600;
    color: var(--text);
}

.friends-info{
    flex: 1;
}

.hidden{
    display: none!important;
}

.friends-info-p{
    margin-bottom: 15px;
    font-weight: 500;
}

.home-header {
    position: fixed;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 100px;
    background-color: var(--primary);
    border: 1px solid black;
    max-height: 101px;
    z-index: 999;
    border-radius: 150px;
}

#menu-nav {
    color: #22262a;
    display: flex;
    text-align: right;
    align-items: center;
}

#menu-nav svg{
    fill: #22262a;
}

#menu-nav svg:hover{
    cursor: pointer;
}

.link-header {
    display: inline-block;
    margin-left: 20px;
}

div#menu-nav > .link-header {
    list-style: none;
    list-style-type: none;
}

.link-header > a {
    font-size: 1.25em;
    text-decoration: none;
    color: black;
    font-weight: 700;
    padding-right: 30px;
    display: inline;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: fit-content; /* Define a largura com base no conteúdo */
}

.navigation svg {
    width: 28px;
    fill: var(--text);
    transition: all 200ms;
}

.navigation p {
    font-weight: 500;
    font-size: 1.2rem;
}

.navigation:hover svg {
    transform: translateX(-10px);
}

.navigation:hover {
    cursor: pointer;
}
