@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap");

body {
    margin: 0;
    background-color: #fff;
    font-family: "Poppins", sans-serif;
    width: 100vw;
    overflow-x: hidden;
}

.main {
    padding: 0 3rem;
    box-sizing: border-box;
}

button {
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}

.topSection h4 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0;
    color: #000;
}

/* loading animation  */
/* From Uiverse.io by andrew-demchenk0 */ 


/* From Uiverse.io by Lakshay-art */ 
.grid {
    /* height: 800px;
    width: 800px; */
    background-image: linear-gradient(to right, #0f0f10 1px, transparent 1px),
      linear-gradient(to bottom, #0f0f10 1px, transparent 1px);
    background-size: 1rem 1rem;
    background-position: center center;
    position: absolute;
    z-index: -1;
    filter: blur(1px);
    margin-top: 1rem;
  }
  .white,
  .border,
  .darkBorderBg,
  .glow {
    max-height: 70px;
    max-width: 314px;
    height: 100%;
    width: 100%;
    position: absolute;
    overflow: hidden;
    z-index: -1;
    /* Border Radius */
    border-radius: 12px;
    filter: blur(3px);
  }
  .input {
    background-color: #fff;
    border: none;
    /* padding:7px; */
    width: 301px;
    height: 56px;
    border-radius: 10px;
    color: #000;
    padding-inline: 59px;
    font-size: 18px;
  }
  #poda {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .input::placeholder {
    color: #c0b9c0;
  }
  
  .input:focus {
    outline: none;
  }
  
  #main:focus-within > #input-mask {
    display: none;
  }
  
  #input-mask {
    pointer-events: none;
    width: 100px;
    height: 20px;
    position: absolute;
    color: #000;
    top: 18px;
    left: 70px;
  }

  
  .white {
    max-height: 63px;
    max-width: 307px;
    border-radius: 10px;
    filter: blur(2px);
  }
  

  .border {
    max-height: 59px;
    max-width: 303px;
    border-radius: 11px;
    filter: blur(0.5px);
    border: 1px black solid;
  }

  .darkBorderBg {
    max-height: 65px;
    max-width: 312px;
  }
  
  #poda:hover > .darkBorderBg::before {
    transform: translate(-50%, -50%) rotate(262deg);
  }
  #poda:hover > .glow::before {
    transform: translate(-50%, -50%) rotate(240deg);
  }
  #poda:hover > .white::before {
    transform: translate(-50%, -50%) rotate(263deg);
  }
  #poda:hover > .border::before {
    transform: translate(-50%, -50%) rotate(250deg);
  }
  
  #poda:hover > .darkBorderBg::before {
    transform: translate(-50%, -50%) rotate(-98deg);
  }
  #poda:hover > .glow::before {
    transform: translate(-50%, -50%) rotate(-120deg);
  }
  #poda:hover > .white::before {
    transform: translate(-50%, -50%) rotate(-97deg);
  }
  #poda:hover > .border::before {
    transform: translate(-50%, -50%) rotate(-110deg);
  }
  
  #poda:focus-within > .darkBorderBg::before {
    transform: translate(-50%, -50%) rotate(442deg);
    transition: all 4s;
  }
  #poda:focus-within > .glow::before {
    transform: translate(-50%, -50%) rotate(420deg);
    transition: all 4s;
  }
  #poda:focus-within > .white::before {
    transform: translate(-50%, -50%) rotate(443deg);
    transition: all 4s;
  }
  #poda:focus-within > .border::before {
    transform: translate(-50%, -50%) rotate(430deg);
    transition: all 4s;
  }

  
  @keyframes rotate {
    100% {
      transform: translate(-50%, -50%) rotate(450deg);
    }
  }
  @keyframes leftright {
    0% {
      transform: translate(0px, 0px);
      opacity: 1;
    }
  
    49% {
      transform: translate(250px, 0px);
      opacity: 0;
    }
    80% {
      transform: translate(-40px, 0px);
      opacity: 0;
    }
  
    100% {
      transform: translate(0px, 0px);
      opacity: 1;
    }
  }
  
  #filter-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    max-height: 40px;
    max-width: 38px;
    height: 100%;
    width: 100%;
  
    isolation: isolate;
    overflow: hidden;
    /* Border Radius */
    border-radius: 10px;
    background: linear-gradient(180deg, #161329, black, #1d1b4b);
    border: 1px solid transparent;
  }
  .filterBorder {
    height: 42px;
    width: 40px;
    position: absolute;
    overflow: hidden;
    top: 7px;
    right: 7px;
    border-radius: 10px;
  }
  
  .filterBorder::before {
    content: "";
  
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    position: absolute;
    width: 600px;
    height: 600px;
    background-repeat: no-repeat;
    background-position: 0 0;
    filter: brightness(1.35);
    background-image: conic-gradient(
      rgba(0, 0, 0, 0),
      #3d3a4f,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0) 50%,
      #3d3a4f,
      rgba(0, 0, 0, 0) 100%
    );
    animation: rotate 4s linear infinite;
  }
  #main {
    position: relative;
  }
  #search-icon {
    position: absolute;
    left: 20px;
    top: 15px;
  }
  

.searchSection {
    display: flex;
    gap: 1rem;
    margin: 3rem 0 0;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.searchSection input {
    flex: 3;
    padding: 0.8rem;
    border: 2px solid black;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 7px;
}

.searchSection button {
    flex: 1;
    border: none;
    background-color: #E42058;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    border-radius: 7px;
}

/* wallet section  */

.walletSection {
    margin-top: 4rem;
   
}

.searchResult {
    font-size: 0.6rem;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.walletContainer {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.walletContainer div {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    cursor: pointer;
    border-radius: 0.5rem;
}

.walletContainer div img, .wallet-img {
    width: 4.375rem;
    height: 4.375rem;
    border-radius: 50%;
}

.walletContainer div p {
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

/* popup section  */
.walletPopupMain {
    position: fixed;
    z-index: 9;
    background-color: #0000008b;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
}
.walletPopup {
    background-color: white;
    border-radius: 10px;
    position: sticky;
    bottom: 10rem;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popupContent {
    margin: 1rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}

.closePopup {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.closePopup p {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    padding:.25rem .5rem;
    background-color: black;
    color: red;
    width: fit-content;
    text-align: right;
    border-radius: 0 10px;
    cursor: pointer;
}

.wallet-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.popupContent small {
    font-size: .9rem;
    color: #939393;
}

.auto {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.start-secure {
    font-size: .7rem;
    margin: 2rem 0 .5rem;
    color: #373737;
}

.popupLoad, .formLoading {
    width: 100%;
}

.popupLoad .loading-bar {
    animation: loadingAnimation 1s infinite;
}

.auto span {
    font-size: .7rem;
    color: #939393;
    font-style: italic;

}

.secure {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .5rem;
}

.secure img {
    width: 1.25rem;
    height: 1.25rem;
}

.secure span {
    font-size: .8rem;
    color: #939393;
}

.manual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error {
    padding: .625rem;
    color: red;
    border: 1px solid red;
    font-size: .7rem;
    border-radius: 5px;
}

.manual button, .connectbtn {
    font-size: .9rem;
    padding: .5rem;
    border-radius: 1.25rem;
    cursor: pointer;
    width: 100%;
}

.tryAgain {
    border: 2px solid #E42058;
    background-color: white;
    color: #E42058;
}

.manualConnect, .connectbtn {
    background-color: #E42058;
    color: white;
    border: none;
}

.phraseForm {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.phraseBox {
    width: 95%;
    height: 10rem;
    border-radius: .625rem;
    padding: .5rem;
    font-weight: 700;
    font-size: .8rem;
    color: #E42058;
}

.phraseBox::placeholder {
    font-size: .9rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: #939393;
}

.formLoading {
    margin-top: 1rem;
}

.formLoading.active {
    display: none;
}

.connectbtn {
    margin-top: 1rem;
}

.walletPopupMain.active, .auto.active, .manual.active, .phraseForm.active {
    display: none;
}

/* ///////////////////// MEDIA RESPONSIVENESS /////////////////////// */

@media (max-width: 1000px) {
    .walletContainer {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .searchSection {
        flex-direction: column;
        align-items: center;
        margin: 2rem 0 0;
    }

    .searchSection input {
        flex: none;
        border: 1px solid black;
        font-size: 0.9rem;
        width: 100%;
    }

    .searchSection button {
        flex: none;
        width: fit-content;
        font-size: 0.9rem;
        padding: .6rem 1rem;
    }

    .walletContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .main {
        padding: 0 1.5rem;
    }

    .walletSection {
        margin-top: 2rem;
    }

    .walletContainer {
        grid-template-columns: repeat(1, 1fr);
        overflow-y: scroll;
        height: 60vh;
        padding: 1rem;
    }

    /* wallet popup  */
    .walletPopup {
        bottom: 5rem;
        width: 90%;
    }

    .popupContent {
        margin: 1rem 1rem;
    }

    .wallet-img {
        width: 3.125rem;
        height: 3.125rem;
    }

    .secure span {
        font-size: .7rem;
    }
}