/* Estilo para o fundo da barra de rolagem */
::-webkit-scrollbar {
    width: 12px; /* Largura da barra de rolagem */
    border-radius: 10px; /* Bordas arredondadas para o fundo */
    background-color: #b0b0b0; /* Cor de fundo cinza */
}

#linktx {
    color: #42f2ff;
    font-size: 15px;
    box-shadow: 0 0 10px black !important; 
}

#success{
    font-size: 10px;
    color: green;
}

#success a {
    color: white;
    box-shadow: 0 0 10px black !important; 
}

#hash {
    color: white;
    word-wrap: break-word;
    white-space: normal;
}

.estimadoBRL{
    margin-left: 30px;
}

/* Estilo para a "thumb" (barra que se move) */
::-webkit-scrollbar-thumb {
    background-color: #fbff00; /* Cor da barra amarela */
    border-radius: 10px; /* Bordas arredondadas para a barra */
    border: 2px solid #3a3c40; /* Borda cinza mais clara */
}

/* Estilo para o track (área por onde a barra de rolagem se move) */
::-webkit-scrollbar-track {
    background-color: #1f2227; /* Cor do fundo da barra */
    border-radius: 10px; /* Bordas arredondadas para o track */
}



/* Estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#estaNovaConta{
    box-shadow: 0 0 10px #fbff00 !important; 
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.footer {
     font-family: 'Roboto', sans-serif;
            font-size: 14px;
            position: fixed;
            bottom: 0;
            width: 80%;
            right:0;
            color: #fff;
            text-align: center;
            padding: 8px 0;
            
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: rgba(230, 209, 16, 0.5) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 1; /* Garante que está acima do fundo */
        }

   
 .footer p {
                margin: 0;
                padding-left: 10px;
            }

            .social-icons {
                margin-right: 10px;
            }

            .social-icons a {
                /*margin-left: 10px;*/
                display: inline-block;
            }

            .social-icons img {
                width: 24px;
                height: 24px;
                filter: invert(100%); /* Para inverter a cor do ícone para branco */
            }


 /* Estilos básicos para o campo, botão e modal */
        .token-selector {
            display: block;
            margin-bottom: 20px;
            margin-top: 20px;
            height: 80px auto;
            background-color: rgba(0, 0, 0, 0.5);
             padding: 10px;
            border-radius: 10px;
            color: white;
            background-color: #636466 !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
        }
        
        .token-selector2 {
            display: flex;
            align-items: center;
            gap: 10px;
           padding-left: 10px;
           padding-right: 10px;
           padding-top: 10px;
           padding-bottom: 0px;
            
        }
        
        .token-selector b {
            margin-left: 50px;
            font-size: 12px;
        }
        
        .network-selector {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            height: 80px;
        }

        .token-button {
            display: flex;
            align-items: center;
            cursor: pointer;
            border: 1px solid #ccc;
            padding: 5px;
            border-radius: 4px;
        }
        
        #salvar {
            border: 1px solid #ccc;
            padding: 5px;
            border-radius: 4px;
            background-color: limegreen;
        }

        .token-button img {
            width: 20px;
            margin-right: 5px;
        }
        

        
        .caution {
            background-color: #ddd;
            color: black;
            padding: 2px;
            margin-bottom: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding-top: 5px;
            cursor: pointer;
        }

        /* Estilos para o botão de inversão */
        .swap-button {
            background-color: #ddd;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding-top: 5px;
            cursor: pointer;
        }

        /* Estilos do modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 100;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 50000;
        }
        
        

       

        
        

#background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('./img/etf.gif'); /* Caminho para o GIF */
        background-size: cover; /* Cobrir toda a área disponível */
        background-repeat: no-repeat; /* Não repetir o GIF */
        background-position: right center; /* Alinha o fundo à direita */
        filter: blur(3px); /* Adiciona um desfoque de 8 pixels */
        z-index: -1; /* Fica atrás do conteúdo principal */
    }

#menulateral {
    margin-top: 50px;
}
     #connect-div {
                margin-left: auto;
            }

        #contractAdr {
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
            width: 100%;
            height: 48px;
            background-color: rgba(212, 195, 40, 1);
            padding: 5px 10px;
            border-radius: 10px;
            border: 0px;
            box-shadow: 0 0 10px #fbff00; 
        }
        
        #swap-button {
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
            width: 100%;
            height: 48px;
            background-color: rgba(212, 195, 40, 1);
            padding: 5px 10px;
            border-radius: 10px;
            border: 0px;
            box-shadow: 0 0 10px #fbff00;
        }
        
        .textoGrande {
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
        }
        
        .botaoCompra {
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
            width: 100%;
            height: 48px;
            background-color: rgba(212, 195, 40, 1);
            padding: 5px 10px;
            border-radius: 10px;
            border: 0px;
            box-shadow: 0 0 10px #fbff00;
        }
        
         #connect-div button {
            background-color: rgba(230, 209, 16, 1);
            padding: 5px 10px;
            border-radius: 20px;
            border: 0px;
            box-shadow: 0 0 10px #fbff00;
         }

/* Menu Lateral */
#side-menu {
    width: 250px;
    color: #fff;
    height: 100%;
    position: fixed;
    top: 0;
    left: -250px; /* Começa fechado no mobile */
    transition: left 0.3s;
    overflow-y: auto;
    z-index: 800; /* Ajustado para ficar abaixo do header */
    background-color: rgba(230, 209, 16, 0.1);
    border: 1px solid #fbff00;
    box-shadow: 0 0 10px #fbff00;
}

#side-menu ul {
    list-style: none;
    padding: 20px 0;
}

#side-menu ul li {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

#side-menu ul li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#side-menu ul li img {
    width: auto;
    height: 24px;
    margin-right: 16px;
    filter: invert(1); /* Inverte as cores da imagem */
}

#side-menu ul li a {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
    color: #fff;
    text-decoration: none;
}

#side-menu ul li a:visited,
#side-menu ul li a:hover,
#side-menu ul li a:active {
    color: #fff;
    text-decoration: none;
}


/* Sobreposição */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 700;
}

/* Cabeçalho */
header {
    color:white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 900; /* Maior que o menu */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
            border: 0px rgba(230, 209, 16, 0) !important; 
            background: linear-gradient(to left, rgba(251, 255, 0, 0.5) 10%, rgba(251, 255, 0, 0) 80%, rgba(251, 255, 0, 0) 90%);
}

#menu-logo-container {
    display: flex;
    align-items: center;
}

#menu-icon {
    cursor: pointer;
}

#menu-icon span {
    font-size: 24px;
}

#logo img {
    height: 40px;
    margin-left: 10px;
}

#top-menu {
    position: absolute;
    left: 30%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
}

#top-menu ul {
    list-style: none;
    display: flex;
}

#top-menu ul li {
    margin: 0 15px;
}

#top-menu ul li a {
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
    color: white;
    
}





body {
    font-family: 'Roboto', sans-serif;
}

/* Conteúdo Principal */
main {
    margin-top: 60px;
    transition: margin-left 0.3s;
    margin-left: 0; /* Começa sem margem no mobile */
}

body.menu-opened-desktop main {
    margin-left: 250px; /* Empurra o conteúdo quando o menu está aberto no desktop */
}



#center-div img {
   // filter: invert(1); /* Inverte as cores da imagem */
}

#iframe-div {
    display: flex;
    width: 80%;
    margin: 20px auto;
    position: relative; /* Permite que elementos filhos posicionados relativamente ou absolutamente se ajustem a este container */
    margin-bottom: 100px;
}

#iframe-div iframe {
    width: 100%;
    height: 500px;
    border: none;
}

#overlayDiv {
    padding: 10px;
    position: absolute; /* Para sobrepor o iframe */
    bottom: 0px; /* Fixa ao topo */
    right: 0px; /* Fixa à direita */
    width: 100%; /* Largura fixa independente da resolução */
    height: 35px; /* Altura da overlay */
    background-color: #161727; /* Cor de fundo para cobrir o conteúdo */
    z-index: 1; /* Coloca a overlay acima do iframe */
}

        .modal-content .token-item {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 5px 0;
        }

        .modal-content .token-item img {
            width: 20px;
            margin-right: 10px;
        }
        
        .modalbusca input {
            height: 30px;
            width: 100%;
            margin-bottom: 15px;
        }
        
        .modalbusca {
            background-color: #e0e0c1;
            margin-left: 40%;
            margin: 15% auto;
            padding: 20px;
            width: 30%;
            max-height: 300px;
            overflow-y: scroll;
            border-radius: 10px;
        }
    
     .modal-content {
            
            
        }
        
        

#pub1 {
    display: flex; 
    
    justify-content: center; 
    border: 1px solid #000;
    width: 70%;
    height: auto;
    margin: 20px auto;
    margin-top: 90px;
    
    border-radius: 10px;
    color: white;
    background-color: rgba(230, 209, 16, 0.1) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}

#pub1 img {
    border-radius: 10px;
}




#pub2 {
    display: flex; 
    
    justify-content: center; 
    border: 1px solid #000;
    width: 70%;
    height: auto;
    margin: 20px auto;
    margin-top: 30px;
    border-radius: 10px;
    color: white;
    background-color: rgba(230, 209, 16, 0.1) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}

#pub2 img {
    border-radius: 10px;
}

#center-div2 {
    display: flex; 
    font-size: 30px;
    justify-content: center; 
    border: 1px solid #000;
    width: 70%;
    height: auto;
    margin: 20px auto;
    margin-top: 30px;
    padding: 20px;
    padding-top: 20px;
    padding-left: 20px;
    border-radius: 30px;
    color: white;
    background-color: rgba(230, 209, 16, 0.3) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}

@media (max-width: 767px) {
    
    header {
    color:white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff;
    position: relative;
    top: 0;
    width: 100%;
    z-index: 900; /* Maior que o menu */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
            border: 0px rgba(230, 209, 16, 0) !important; 
            background: linear-gradient(to left, rgba(251, 255, 0, 0.5) 10%, rgba(251, 255, 0, 0) 80%, rgba(251, 255, 0, 0) 90%);
    }
    
    #swapmodal{
        width: 100%;
    }
    
    #swapmodal2 {
        position: relative;
      }
    
      /* Posiciona a imagem no canto superior direito da div #swapmodal */
      #swapmodal2 img {
        position: absolute;
        top: 0;
        right: 0;
      }
    
    ::-webkit-scrollbar {
        display: none; /* Oculta completamente a barra de rolagem */
        width: 0;
        height: 0;
    }
    
    #contractAdr {
        margin-top: 20px;
        margin-left: 10px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
            width: 90%;
            height: 48px;
            background-color: rgba(212, 195, 40, 1);
            padding: 5px 10px;
            border-radius: 10px;
            border: 0px;
            box-shadow: 0 0 10px #fbff00; 
        }
    
    .modalbusca {
            background-color: #e0e0c1;
            margin-left: 40%;
            margin: 15% auto;
            margin-top: 150px;
            padding: 0px;
            width: 75%;
            max-height: 400px;
            overflow-y: scroll;
            border-radius: 10px;
        }
    
    
     .modal-content {
            background-color: #e0e0c1;
            margin-top: 0px;
            padding: 20px;
            width: 100%;
            max-height: 300px;
            overflow-y: scroll;
            border-radius: 10px;
            
        }
      
    #dolar {
        font-size: 10px;
    } 
        
    #top-menu {
    position: absolute;
    left: 30%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
    }
    
    #top-menu ul {
        margin-left: -30px;
        margin-top: 30%;
        list-style: none;
        display: flex;
    }
    
    #top-menu ul li {
        margin-top: 0px;
        margin-right: 20px;
    }
    
    #top-menu ul li a {
        text-decoration: none;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
        color: white;
        font-size: 12px;
        
    }
    
    
    
    #side-menu {
        background-color: rgba(230, 209, 16, 0.7); /* Transparência de 0.5 no mobile */
    }
}
#chainId {
    width: 200px;
}

#swap-button {
    
}

/* Remove as setas no Chrome, Safari, Edge e Opera */
#tokenA-value::-webkit-outer-spin-button,
#tokenA-value::-webkit-inner-spin-button,
#tokenB-value::-webkit-outer-spin-button,
#tokenB-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove as setas no Firefox */
#tokenA-value[type="number"],
#tokenB-value[type="number"] {
    -moz-appearance: textfield;
}

.dolarestimado{
    color: black;
    font-size: 13px;
    margin-left: 3%;
    padding: 0px;
}

#tokenA-value, #tokenB-value {
    width: 100%;
    height: auto;
    color: white;
    border: 0px solid #fbff00 !important; 
    background-color: rgba(230, 209, 16, 0); /* Transparência de 0.5 no mobile */
}

#tokenA-value:focus, #tokenB-value:focus {
    border: 0px solid transparent; /* Garante que não haverá borda ao clicar */
    outline: none; /* Remove o estilo de borda de foco */
}

/* Altera a cor do placeholder */
#tokenA-value::placeholder, #tokenB-value::placeholder {
    color:yellow; /* Ajuste a cor do placeholder para branco com transparência */
}

#contractAdr::placeholder {
    color:white; /* Ajuste a cor do placeholder para branco com transparência */
}

#contractAdr::focus {
    border: 0px solid transparent; /* Garante que não haverá borda ao clicar */
    outline: none; /* Remove o estilo de borda de foco */
}

#swapmodal {
    padding-top: 0px;
}

#swapmodal2 {
        position: relative;
      }
    
      /* Posiciona a imagem no canto superior direito da div #swapmodal */
      #swapmodal2 img {
        position: absolute;
        top: 0;
        right: 0;
      }

.networkselector {
    margin-bottom: 40px;
}

#pub1 {
    display: flex; 
    
    justify-content: center; 
    border: 1px solid #000;
    width: 70%;
    height: auto;
    margin: 20px auto;
    margin-top: 90px;
    
    border-radius: 10px;
    color: white;
    background-color: rgba(230, 209, 16, 0.1) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}

#pub1 img {
    border-radius: 10px;
}




#pub2 {
    display: flex; 
    
    justify-content: center; 
    border: 1px solid #000;
    width: 70%;
    height: auto;
    margin: 20px auto;
    margin-top: 30px;
    border-radius: 10px;
    color: white;
    background-color: rgba(230, 209, 16, 0.1) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}

#pub2 img {
    border-radius: 10px;
}

#spacer {
    display: flex; 
    
    justify-content: center; 

    width: 70%;
    height: 150px;
    margin: 20px auto;
    margin-top: 30px;
    padding: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;

    color: white;
    background-color: rgba(230, 209, 16, 0) !important; 

            z-index: 20000; /* Garante que está acima do fundo */
}

#center-div2 {
    display: flex; 
    font-size: 14px;
    justify-content: center; 
    border: 1px solid #000;
    width: 85%;
    height: auto;
    margin: 20px auto;
    margin-top: 0px;
    padding: 20px;
    padding-top: 20px;
    padding-left: 20px;
    border-radius: 30px;
    color: white;
    background-color: rgba(230, 209, 16, 0.3) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}

/* VERSAO MOBILE */
#center-div {
    display: flex; 
    
    justify-content: center; 
    border: 1px solid #000;
    width: 330px;
    height: auto;
    margin: 20px auto;
    margin-top: -30px;
    padding: 20px;
    padding-top: 20px;
    padding-left: 20px;
    border-radius: 30px;
    color: white;
    background-color: rgba(230, 209, 16, 0.1) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}

.inverterdiv {
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

#inverterbutton {
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
            height: 30px;
            background-color: rgba(212, 195, 40, 1);
            padding: 5px 10px;
            border-radius: 10px;
            border: 0px;
            box-shadow: 0 0 10px #fbff00;
}


/* Media Queries */
@media (min-width: 768px) {
    
    .networkselector {
    margin-bottom: 15px;
}
    
    #center-div {
    display: block; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #000;
    width: 430px;
    height: auto;
    margin: 20px auto;
    margin-top: 90px;
    padding: 40px;
    border-radius: 30px;
    color: white;
    background-color: rgba(230, 209, 16, 0.1) !important; 
            border: 1px solid #fbff00 !important; 
            box-shadow: 0 0 10px #fbff00 !important; 
            z-index: 20000; /* Garante que está acima do fundo */
}
    

    #side-menu {
        left: 0; /* Menu começa aberto no desktop */
    }

    #overlay {
        display: none; /* Não exibe o overlay no desktop */
    }

    body main {
        margin-left: 250px; /* Ajusta a margem do conteúdo no desktop */
    }
}
