@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans", sans-serif;
    background: #201b2c;
    color: #f0ffffde;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body * {
    box-sizing: border-box;
}

.main-perfil {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    background: #2f2841;
    border-radius: 20px;
    box-shadow: 0px 10px 40px #00000056;
}

.title {
    text-align: center;
    font-size: 3vw;
    color: #77ffc0;
    margin-bottom: 20px;
    margin-top: 50px;
}

.content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.left-perfil, .right-perfil {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.image-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #00ff88;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

.info {
    width: 100%;
    background: #2f2841;
    border-radius: 20px;
    padding: 30px 35px;
    box-shadow: 0px 10px 40px #00000056;
    margin-left: 100px;
}

.info-title {
    font-size: 18pt;
    font-weight: bold;
    color: #77ffc0;
    margin-top: 20px;
}

.info-content {
    margin: 20px 0;
    padding: 10px;
    background: #4a4161; /* Slightly lighter background for each field */
    border-radius: 10px;
    box-shadow: 0px 5px 20px #00000056;
    font-size: 16pt;
    display: flex;
    align-items: center;
}

.info-content img {
    margin-left: 10px;
    width: 30px; /* Tamanho das imagens ao lado do texto */
}

.achievement-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.achievement-icons img {
    width: 40px;
    margin: 5px;
}

.info .update {
    width: 400px; /* Defina a largura desejada */
    padding: 10px; /* Ajuste o preenchimento conforme necessário */
    border-radius: 5px; /* Adicione bordas arredondadas, se desejar */
    border: none;
    font-size: 16px; /* Altere o tamanho da fonte conforme necessário */
    background-color: #272032; /* Altere a cor de fundo conforme necessário */
    color: white;
    box-shadow: 2px 1px 10px black;
    margin: 10px;
    text-align: top;
}

.info .update:focus {
    outline: none; /* Remova o contorno padrão do foco */
    box-shadow: 0 0 5px #77ffc0; /* Adicione uma sombra quando o campo estiver em foco */
}

.icon {
    max-width: 5%;
}

.info strong {
    margin-top: 0;
}

.quantity-btn {
    background-color: #00ff88; /* Cor de fundo verde */
    color: #2b134b; /* Cor do texto */
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
}

.quantity-group {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.quantity-input {
    width: 90px;
    text-align: center;
    padding: 10px; /* Ajuste o preenchimento conforme necessário */
    border-radius: 5px; /* Adicione bordas arredondadas, se desejar */
    border: none;
    font-size: 16px; /* Altere o tamanho da fonte conforme necessário */
    background-color: #272032; /* Altere a cor de fundo conforme necessário */
    color: white;
    box-shadow: 2px 1px 10px black;
    margin: 10px;
    text-align: top;
}

.update-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.update-btn {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    color: #2b134b;
    background: #00ff88;
    cursor: pointer;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
    width: 300px; /* Aumenta a largura do botão */
    
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.image-grid img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
}



.achievement-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.achievement-grid img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.achievement-grid img.active {
    filter: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.delete-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-left: 10px;
    font-size: 16px;
    background-color: #ff4c4c; /* Cor de fundo do botão de deletar */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #ff0000; /* Cor do botão de deletar ao passar o mouse */
}



.active {
    /* Estilos para achievements conquistados */
    filter: none; /* Remove filtro para manter a cor original da imagem */
}

.inactive {
    /* Estilos para achievements não conquistados */
    filter: grayscale(100%); /* Aplica escala de cinza para tornar a imagem em preto e branco */
    opacity: 0.5; /* Opacidade reduzida para indicar que está inativo */
    cursor: default; /* Cursor padrão para indicar que não está interativo */
}




















@media only screen and (max-width: 768px) {
    .main-perfil {
        padding: 15px;
    }

    .title {
        font-size: 6vw;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .left-perfil, .right-perfil {
        width: 100%;
        margin-left: 0;
    }

    .info {
        margin-left: 0;
        padding: 20px;
        width: 100%;
        box-sizing: border-box; /* Garante que padding e border não aumentem a largura total */
    }

    .info-name {
        width: 100%; /* Ajusta a largura para caber dentro do card */
        box-sizing: border-box; /* Garante que padding e border não aumentem a largura total */
        padding: 10px; /* Adiciona padding interno para melhorar o layout */
        text-align: center; /* Centraliza o texto, se desejado */
    }

    .info-title {
        font-size: 16pt;
        width: 100%; /* Ajusta a largura para caber dentro do card */
        box-sizing: border-box; /* Garante que padding e border não aumentem a largura total */
    }

    .info-content {
        font-size: 14pt;
    }

    .image-preview {
        width: 80px;
        height: 80px;
    }

    .achievement-icons img {
        width: 30px;
    }

    .quantity-input {
        width: 100%;
        font-size: 14px;
    }

    .update-btn {
        width: 90%;
        font-size: 14px;
        margin: 15px;
    }

    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .image-grid img {
        width: 50px;
        height: 50px;
    }
    
    .info .update {
        width: 100%;
    }

    .achievement-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .achievement-grid img {
        width: 40px;
        height: 40px;
    }

    .update-btn-container {
        flex-direction: column;
        display: flex;
    justify-content: center; /* Centraliza horizontalmente o conteúdo */
    align-items: center; /* Alinha verticalmente o conteúdo */
    margin-top: 20px;
    }
    
        .textarea.update {
        width: 10%; /* Ajusta a largura da área de texto */
        font-size: 14px; /* Ajusta o tamanho da fonte */
    }
    
    
    
    .delete-btn {
    width: 40%;
    text-align: center;
    }
}
