*,*::before,*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Ledga";
    src: url(media/font.woff2);
}

@font-face {
    font-family: "Ledga2";
    src: url(media/Ledga2.otf);
}

:root {
    --modal: #1d1d21;
    --secondary: #bdaeff;
    --border: #323439;
    --extratext: #727277;
    --background: #131415;
    --lighterbg1: #1a1c1f;
    --lighterbg2: #262928;
    --danger: crimson;
    --warning: #f0ab46;
    --greywhite: #d0d1d1;
}

html {
    color-scheme: dark;
    font-family: "Ledga", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    margin: 0;
    user-select: none !important;
}

.content {
    height: 100vh;
    background-color: var(--background);
    user-select: none;
}

span.danger {
    /* color: var(--danger); */
    font-weight: 600;
}

span.informative {
    color: var(--extratext);
}

.anim-wrapper {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    transition: opacity 0.5s ease;
}

.logowrapper {
    display: flex;
    overflow: hidden;
}

.logowrapper img {
    height: 25%;
    max-height: 150px;
    pointer-events: none !important;
}

.logowrapper .firsthalf {
    margin-right: -210px;
    animation: logoappear 0.75s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    animation-delay: 3s;
}

.logowrapper .secondhalf {
    /* margin-left: -210px; */
    z-index: 2;
}


@keyframes logoappear {
    from {
        margin-right: -210px;
    }
    to {
        margin-right: 0px;
    }
}

.modaloverlayh {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.35);
    transition: opacity 0.3s ease;
}

.modalh {
    background-color: var(--lighterbg1);
    border-radius: 3px;
    max-width: 600px;
    padding-top: 1.2rem;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.modalh .modalcontent {
    padding: 1.5rem;
}

.modalTitle {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.modalh .modalactions {
    padding: 1rem;
    display: flex;
    justify-content: end;
    border-top: 1px solid var(--border);
}

.modalactions .modalcontinue {
    padding: 0.75rem 1rem;
    background-color: var(--secondary);
    color: var(--lighterbg1);
    font-weight: 700;
    border-radius: 5px;
    user-select: none;
    cursor: pointer;
}

.modalcontent .modalicon {
    display: flex;
    justify-content: center;
    margin-top: 1.3rem;
    margin-bottom: 2rem;
}

.modalicon .iconwrapper{
    padding: 2.5rem;
    background-color: #bdaeff17;
    border-radius: 9999px;
    color: var(--secondary);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iconwrapper span {
    font-size: 55px;
}

.modaldesc {
    text-align: center;
}

.modalcontent .modalheader {
    font-size: 19px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.2rem;
    text-align: start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modalheader span {
    font-size: 17px;
}

.modalul li {
    margin-top: 0.6rem;
    text-align: start;
    font-size: 14px;
}

.modalwarning {
    background-color: var(--warning);
    border-radius: 4px;
    padding: 1rem;
    text-align: start;
}

.modalul li::marker {
    color:#bdaeff;
}

.backgroundlayout {
    display: flex;
    height: 100%;
}

.backgroundlayout .sidebar {
    width: 300px;
    background-color: var(--lighterbg1);
    height: 100%;
    padding: calc(2rem + 25px + 2rem) 1rem;
}

.sidebaractions {
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
    height: 100%;
    margin-top: 1.5rem;
    gap: 2rem;
}

.sidebaraction {
    width: 100%;
    border-radius: 9999px;
    height: 25px;
    background-color: var(--lighterbg2);
    position: relative;
    overflow: hidden;
}

.sidebaraction::after {
    content: '';
    position: absolute;
    top: -50%;
    height: 250%;
    rotate: 45deg;
    left: -25%;
    background-color: rgba(255, 255, 255, 0.5);
    filter: blur(5px);
    animation: shimmer 2s ease-in-out infinite;
    width: 20px;
}

@keyframes shimmer {
    from {
        left: -25%;
    }
    to {
        left: 125%;
    }
}

@keyframes spin{
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
  }

.spinh {
    animation: spin 1.2s linear infinite;
    height: 60px !important;
}

.spinhh {
    animation: spin 1.2s linear infinite;
    height: 100px !important;
}

.spinnerwrapper {
    width: calc(500px - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 3rem;
    margin-top: 4rem;
}

.spinhwrapper {
    width: calc(500px - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinnerwrapper .spinnerheader{
    font-size: 23px;
    font-weight: 600;
    margin-block: 1rem;
}

.spinnerwrapper .spinnerdesc {
    color: var(--extratext);
    text-align: center;
}

.actiondisabled {
    cursor: auto !important;
    background-color: #6d6d6d !important;
    color: #fff !important;
    opacity: 0.6;
}

.modalcontinue:not(.actiondisabled):active {
    background-color: #7254fa;
}

.maincontent {
    width: calc(100% - 300px);
    height: 100%;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: end;
}

.navbar .navicon {
    padding-inline: 1.5rem;
    position: relative;
    color: var(--greywhite);
}

.navbar .navicon:first-child {
    font-weight: 600;
}

.navicon span {
    /* opacity: 0.7; */
    stroke: var(--greywhite) !important;
}

.navbar .navicon:not(:first-child):not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    height: 75%;
    width: 2px;
    background-color: var(--lighterbg2);
}

.navbar .navicon:nth-child(2):before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    height: 75%;
    width: 2px;
    background-color: var(--lighterbg2);
}

.advert {
    /* background-color: #bdaeff23; */
    background-color: rgb(36, 37, 44);
    border-radius: 3px;
}
.advert .advertcontent {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.advert .advertactions {
    padding: 0.7rem 1.5rem;
    display: none;
    align-items: center;
    justify-content: end;
    gap: 0.7rem;
    color: #ffffff8f;
    border-top: 1px solid #bdaeff34;
    
}


.advertcontentbody {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.contentlogowrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: #f0ab4624;
    color: var(--warning);
    border-radius: 50%;

}

.contentlogowrapper span {
    font-size: 41px !important;
}

.maincontent p {
    margin: 0px;
}

.threeactions {
    display: flex;
    gap: 2rem;
}

.threeactions .action  {
    display: flex;
    background-color: var(--lighterbg1);
    flex-grow: 1;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    border-radius: 3px;
    width: 100%;
}

.actionlogowrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    background-color: var(--lighterbg2);
    border-radius: 50%;
    /* aspect-ratio: 1 / 1; */
    height: 55px !important;
    width: 55px !important;
    min-width: 55px;
}

.actiontext {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}


.actionheader {
    font-weight: 600;
}
.actiondesc {
    color: var(--extratext);
}

.portfolioandcoins {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
}

.portfolioandcoins .portfoliochild {
    background-color: var(--lighterbg1);
    border-radius: 3px;
    /* padding: 1rem; */
}

.portfolio {
    flex-grow: 1;
    padding: 2rem 3rem;
    width: 200%;
}

.coins {
    flex-grow:1;
    padding: 2rem 1rem;
    width: 100%;
}

.portfolioheader {
    display: flex;
    justify-content: space-between;
}

.timepicker {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.timeoption {
    border: 2px solid rgb(51,52,54);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-weight: 800;
    flex-grow: 1;
    width: 100%;
    color: rgb(164,165,165);
    min-width: 49px;
    text-align: center;
}

.selected {
    background-color: rgb(39,39,51) !important;
    border-color: rgb(139,128,219) !important;
    color: rgb(139,128,219) !important;
}

@media screen and (max-width: 1299px) {
    .portfolioheader p, .coinsheader p {
        font-size: 20px !important;
    }

    .sidebar {
        width: 225px !important;
    }

    .maincontent {
        width: calc(100% - 225px) !important;
    }
}

.sidebarheader {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.coinsarrows {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    border-radius: 9999px;
    background-color: var(--lighterbg2);
}

.coinsheader {
    display: flex;
    justify-content:space-between;
    align-items: center;
}

.portfolioheader p, .coinsheader p {
    font-weight: 600;
    font-size: 23px
}

.recoverymodal {
    background-color: var(--lighterbg1);
    display: flex;
    max-width: 900px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.sidepurple {
    background-color: var(--secondary);
    flex-grow: 1;
    padding: 2.5rem 2rem;
    color: var(--lighterbg1);
    position: relative;
    overflow: hidden;
    /* border-top-right-radius: 10px; */
}

.sidepurple .ledgerlogo {
    height: 40px;
    margin-bottom: 2rem;

}

.sidepurple .ledgerartwork {
    position: absolute;
    right: -20%;
    bottom: -20%;
    width: 150%;

}

.sidepurpleheader {
    font-size: 35px;
    font-weight: 700;
    font-family: "Ledga2", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.recoverycontent {
    flex-grow: 1;
    padding: 2.5rem 2rem;
    max-width: 600px;
}

.recoveryheader {
    font-weight: 600;
    font-size: 23px;
    text-align: center;
    margin-bottom: 1rem;

}

.recoverywarning {
    padding: 1rem;
    /* border: 1px solid var(--warning); */
    border-radius:5px;
    color: var(--warning);
    background-color: #f0ac4644;
    text-align: center;
    font-weight: 600;
    margin-inline: auto;
}

.recoveryinputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    margin-top: 1rem;
    position: relative;
}

.recoveryinputscover {
    position: absolute;
    top: -2%;
    left: -2%;
    height: 105%;
    width: 105%;
    backdrop-filter: blur(5px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    gap: 1rem;
}

.recoveryinputscover img {
    pointer-events: none;
    height: 60px;
    animation: spin 1.2s linear infinite;
}

.recoveryinput {
    flex: 1 1 calc(25% - 15px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.recoveryinput input {
    padding: 0.5rem 0.3rem;
    width: 70px;
    border: none;
    font-size: 16px;
    background-color: transparent;
    border-bottom: 2px solid var(--border);
    font-family: "Ledga";
    transition: border 0.3s ease;
    color: var(--greywhite);
}

.recoveryinput input:focus {
    outline: none;
    border-color: var(--secondary);
}

.wordnum {
    color: var(--extratext);
    transition: color 0.3s ease;
    margin-right: 0.4rem;
}

.unrecognized {
    color: var(--warning);
    transition: transform 0.3s ease, opacity 0.1s ease;
    position: absolute;
    top: 93%;
    font-size: 11px;
    left: 31%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

.unrecognized img {
    height: 15px;
    pointer-events: none;
}

.showunrecognized {
    transform: translateY(0px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.textunrecognized {
    color: var(--warning);
}

.showunrecognized div, .unrecognized div {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.3s ease;
    transform: translateY(-3px);
}

.showunrecognized:hover > div {
    opacity: 1;
    transform: translateY(0px);
}

.verificationbtn {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--secondary);
    color: var(--lighterbg1);
    font-weight: 600;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
}

.verifdisabled {
    cursor: auto !important;
    background-color: #6d6d6d !important;
    color: #fff !important;
    opacity: 0.6;
}

.verificationbtn:not(.verifdisabled):active {
    background-color: #7254fa;
}


.togglevisibility {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: -6%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.togglevisibility img{
    height: 20px;
}

.seedlength {
    margin-top: 1.5rem;
    color: var(--extratext);
    transition: color 0.2s ease;
    cursor: pointer;
    text-align: center;
    width: fit-content;
    margin-inline: auto;
    font-weight: 600;
}

.seedlength:hover {
    color: var(--secondary)
}

.covertext{
    text-align: center;
}