/* ----- hero section ----- */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, #3b4380 0%, var(--pirate-storm) 70%, #30335f 100%);
    padding: 100px 0 90px;
}
.wallet-hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1150px;
    min-height: 550px;
    margin: auto;
}
.wallet-hero-copy {
    flex: 1 1 50%;
    padding-left: 60px;
}
.wallet-hero-copy h1 {
    max-width: 630px;
    color: var(--pirate-doubloon);
    font-family: var(--pirate-font-primary);
    font-size: 60px;
    line-height: 1.1;
}
.wallet-hero-tagline {
    margin-top: 30px;
    color: var(--pirate-cloud);
    font-family: var(--pirate-font-alternative);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}
.wallet-hero-detail {
    max-width: 510px;
    margin-top: 32px;
    color: var(--pirate-cloud);
    font-size: 16px;
    line-height: 1.6;
}
.wallet-hero-art {
    position: relative;
    flex: 1 1 50%;
    width: 100%;
    max-width: 500px;
    height: 520px;
}
.wallet-hero-art .treasure-moon {
    position: absolute;
    top: 10px;
    left: -25%;
    width: 44%;
    max-width: 220px;
    filter: blur(1px);
}
.wallet-hero-art .astro-pirate {
    position: absolute;
    top: 35px;
    left: 3%;
    width: 66%;
    max-width: 330px;
}
.hero-section .editorial {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 60px;
}
@media screen and (max-width: 800px) {
    .hero-section {
        padding-top: 85px;
        padding-bottom: 90px;
    }
    .wallet-hero-layout {
        flex-direction: column;
        gap: 25px;
        min-height: 0;
    }
    .wallet-hero-copy {
        padding-left: 0;
        text-align: center;
    }
    .wallet-hero-copy h1 {
        max-width: 650px;
        font-size: 60px;
    }
    .wallet-hero-art {
        flex: none;
        height: 440px;
        margin: auto;
    }
    .wallet-hero-art .treasure-moon {
        left: 7%;
    }
    .wallet-hero-art .astro-pirate {
        left: 33%;
    }
    .wallet-hero-detail {
        margin-right: auto;
        margin-left: auto;
    }
}
@media screen and (max-width: 480px) {
    .hero-section {
        padding-top: 65px;
    }
    .wallet-hero-copy h1 {
        font-size: 52px;
    }
    .wallet-hero-tagline {
        font-size: 30px;
    }
    .wallet-hero-art {
        height: 360px;
    }
    .wallet-hero-art .astro-pirate {
        top: 25px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .wallet-hero-art .treasure-moon,
    .wallet-hero-art .astro-pirate {
        animation: none;
    }
}

/* ----- wallets section ----- */
.wallets-section {
    background-color: var(--pirate-navyblue);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.hero-section .parallax1 > use {
    animation: wallet-wave-right 10s linear infinite;
}
.hero-section .parallax2 > use {
    animation: wallet-wave-left 8s linear infinite;
}
.hero-section .parallax3 > use {
    animation: wallet-wave-right 6s linear infinite;
}
.hero-section .parallax4 > use {
    animation: wallet-wave-left 4s linear infinite;
}

@keyframes wallet-wave-right {
    from { transform: translate(85px, 0); }
    to { transform: translate(-90px, 0); }
}
@keyframes wallet-wave-left {
    from { transform: translate(-90px, 0); }
    to { transform: translate(85px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section .editorial use {
        animation: none;
    }
}

.wallets-section h2 {
    margin-top: 30px;
    color: var(--pirate-cloud);
    margin-bottom: 20px;
    font-size: 32px;
}
.wallets-section h3 {
    color: var(--text-main);
    margin: 60px 0px 10px;
    font-size: 20px;
}

/* ----- Official wallets ----- */
.official {
    text-align: center;
    padding-top: 110px;
    position: relative;
}
.wallet-container {
    background-color: var(--pirate-storm);
    width: 100%;
    margin: 10px;
    padding: 30px 10px;
    display: inline-block;
    text-align: center;
    vertical-align: top;
    margin-bottom: 130px;
    border: 2px solid transparent;
    -webkit-filter: drop-shadow(15px 20px 15px rgba(0, 0, 0, 0.281));
    filter: drop-shadow(15px 20px 15px rgba(0, 0, 0, 0.281));
    position: relative;
    border-radius: 10px;
    transition:all 1.5s ease 0s
}
.wallet-container .wallet-icon {
    width: 100%;
    max-width: 100px;
    position: absolute;
    top: -80px;
    margin: auto;
    right:0;
    left:0;
    display: block;
    background-color: var(--pirate-storm);
    padding: 20px;
    border-radius: 50% 50% 0 0;
}
.wallet-container .overview {
    background-color: var(--pirate-deepblue);
    width: 48%;
    height: 520px;
    margin-right: 20px;
    position: relative;
    display: inline-block;
}
.wallet-container .overview h3 {
    margin-top: 0px;
    width: 100%;
    Height: 60px;
    background-color: var(--pirate-calmseas);
    color: var(--pirate-cloud);
    font-weight: 100;
    padding: 15px;
    margin-bottom: 20px;
}
.wallet-container .overview ul {
    list-style: none;
    margin-bottom: 50px;
    margin-top: 40px;
}
.wallet-container .overview ul li:last-child  {
    color: var(--pirate-cloud);
    font-weight: bold;
}
.wallet-container .overview .git {
    display: inline-block;
    margin: 15px;
    min-width: 30px;
    
}
.wallet-container .overview .git img {
    display: block;
    width: 50px;
    margin: auto;
    transition: transform .2s ease-in-out;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}
.wallet-container .overview .git img:hover {
    -webkit-filter: grayscale(0);
    filter: none;
}
.wallet-container .overview .mobile-store {
    display: block;
    width: fit-content;
    margin: 8px auto 0;
}
.wallet-container .overview .mobile-store img {
    display: block;
    width: 160px;
    height: auto;
}
.wallet-container .overview button {
    margin: auto;
    width: 180px;
    height: 40px;
    background-color: var(--pirate-neon);
    color: var(--pirate-leviathan);
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0; 
    font-weight: 700; 
    transition: all .5s ease-in-out;
    opacity: 1;
    z-index: 99;
}
.wallet-container .overview .desc {
    background-color: var(--pirate-navyblue);

    color: var(--pirate-neon);
    transition: all .5s ease-in-out;
    opacity: 0;
    z-index: 0;
}
.flip-container {
    position: relative;
    width: 48%;
    height: 520px;
    display: inline-block;
    vertical-align: top;
}
.flip {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
    width: 100%;
    height: 100%;
}
.flipCard {
    transform: rotatey(180deg);
}
.wallet-container .downloads {
    background-color: var(--pirate-deepblue);
    width: 100%;
    height: 520px;
    position: absolute;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    text-align: left;
    overflow-x:hidden;
    overflow-y:auto;
}
.wallet-container .downloads .links {
    background-color: var(--pirate-deepblue);
    white-space: normal;
    overflow-wrap: anywhere;
}
.wallet-container .downloads a {
    transition: all .2s ease-in-out;
}
.wallet-container .downloads a:hover {
    color: var(--pirate-neon);
}
.wallet-container .description {
    background-color: var(--pirate-deepblue);
    width: 100%;
    height: 520px;
    position: absolute;
    backface-visibility: hidden;
    overflow:auto;
}
.wallet-container .description p {
    width: 100%;
    padding: 100px 20px 0px;
    margin: auto;
    max-width: 400px;
}
.wallet-container .description .tutorial {
    background-color: var(--pirate-deepblue);
    color: var(--pirate-doubloon);
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 90%;
    height: 60px;
    background-color: #202036;  
    font-weight: normal;
    padding: 15px;
    transition: all .2s ease-in-out;
}
.wallet-container .description .tutorial:hover {
    color: var(--pirate-neon);  
    font-weight: normal;
}
.wallet-container .downloads .version {
    display: block;
    margin-top: 30px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
}
.wallet-container .downloads .version a {
    font-size: 20px;
    color: var(--pirate-cloud);
    font-weight: 600;
}
.wallet-container .downloads .repository {
    display: block;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}
.wallet-container .downloads .links {
    text-align: left;
    display: block;
    margin: auto;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}
.wallet-container .downloads ul {
    list-style-type: none;
    padding: 0;
}
.wallet-container .downloads img {
    display: inline-block;
    width: 100%;
    max-width: 40px;
    margin-right: 20px;
    vertical-align: top;
    transition: transform .2s ease-in-out;
    position: relative;
    top: 5px;
}
.wallet-container .downloads .link-container {
    width: 100%;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
}
.wallet-container .downloads .link-container img {
    flex: 0 0 40px;
    margin-right: 0;
}
.wallet-container .downloads .linkbox {
    min-width: 0;
    flex: 1;
}
.wallet-container .downloads h3 {
    margin: 0px;
    display: block;
    font-size: 18px;
    color: var(--pirate-cloud);
}
.wallet-container .downloads .linkbox a {
    display: block;
    width: 100%;
    font-size: 14px;
    font-family: var(--pirate-font-secondary);
    margin-bottom: 10px;
    line-height: 1;
}
.wallet-container .downloads .retry-downloads {
    margin-top: 12px;
    cursor: pointer;
}

@media screen and (max-width:740px) {
    .wallet-container {
        margin-left: 0px;
    }   
    .wallet-container .overview {
        display: block;
        width: 100%;   
    }
    .wallet-container .flip-container {
        display: block;   
        width: 100%;  
    }
    .wallet-container .description p {
        padding-top: 0px;
    }
}
