* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'inter';
}

body {
    background-color: #222222;
    overscroll-behavior-y: contain;
    min-height: 100dvh;
}

html {
    background-color: #222222;
    overscroll-behavior-y: contain;
    min-height: 100dvh;
}

.main {
    background-color: #222222;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(34, 72, 48, 1) 0%, rgba(34, 34, 34, 1) 36%);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
}

nav {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    padding-top: calc(env(safe-area-inset-top, 0px) + 2.5rem);
}

.profilePictureContainer {
    border-radius: 100%;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #343235;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .8rem;
}

.nameContainer {
    display: flex;
    flex-direction: column;
}

.name {
    color: #a7a7a7;
    font-size: .9rem;
    font-weight: 500;
}

.account {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.arrowDown {
    transform: translate(0rem, .4rem);
}

.navImage {
    height: 1.7rem;
    width: auto;
}

.iconHolder {
    margin-left: auto;
    margin-right: 0;
    display: flex;
    gap: .8rem;
}

.pullToRefresh {
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height .2s ease-out;
    touch-action: none;
}

.iphoneSpinner {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0;
    transform: scale(.72);
    transition: opacity .2s ease, transform .2s ease;
}

.iphoneSpinner span {
    position: absolute;
    top: 0;
    left: calc(50% - 1px);
    width: 2px;
    height: 6px;
    border-radius: 2px;
    background: #a7a7a7;
    transform-origin: 1px 12px;
}

.iphoneSpinner span:nth-child(1) { transform: rotate(0deg); }
.iphoneSpinner span:nth-child(2) { transform: rotate(45deg); }
.iphoneSpinner span:nth-child(3) { transform: rotate(90deg); }
.iphoneSpinner span:nth-child(4) { transform: rotate(135deg); }
.iphoneSpinner span:nth-child(5) { transform: rotate(180deg); }
.iphoneSpinner span:nth-child(6) { transform: rotate(225deg); }
.iphoneSpinner span:nth-child(7) { transform: rotate(270deg); }
.iphoneSpinner span:nth-child(8) { transform: rotate(315deg); }

.pullToRefresh.ready .iphoneSpinner,
.pullToRefresh.refreshing .iphoneSpinner {
    opacity: 1;
    transform: scale(1);
}

.pullToRefresh.refreshing .iphoneSpinner {
    animation: iphone-spinner .8s steps(8, end) infinite;
}

@keyframes iphone-spinner {
    to { transform: scale(1) rotate(360deg); }
}

.moneySection {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    margin-top: 2rem;
}

h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}

.earnedMoney {
    color: #24e86e;
    font-weight: 500;
    font-size: 1.2rem;
}

.earnedDiv {
    display: flex;
    gap: .5rem;
}

.earnedPercentage {
    color: #24e86e;
    font-weight: 500;
    font-size: 1rem;
    background-color: #213a2b;
    padding: .12rem;
    border-radius: 5px;
}

.cardsSection {
    width: 100%;
    display: flex;
    margin-top: 2rem;
    gap: .4rem;
    padding-left: .8rem;
    padding-right: .8rem;
}

.card {
    width: calc(25% - 0.3rem) !important;
    height: calc((100vw - 2.4rem - 0.9rem) / 4) !important;

    background-color: #2c2e2f;
    border-radius: 15px;
    padding: 1.2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.cardImage {
    height: 100%;
    width: auto;
}

.infoCardSection {
    padding-left: .8rem;
    padding-right: .8rem;
    margin-top: 2rem;
}

.infoCard {
    background-color: #2c2e2f;
    width: 100%;
    display: flex;
    align-items: center;
    padding: .8rem;
    border-radius: 15px;
    gap: 1rem;
    position: relative;
}

.infoText {
    color: white;
    font-size: .9rem;
    font-weight: 500;
}

.closeButton {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 20px;
}

.buttonTextFix {
    width: 10px;
}

.dotContainer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: 5px;
}

.wideDot {
    background-color: #a99eec;
    height: 5px;
    border-radius: 1000px;
    width: 20px;
}

.dot {
    background-color: #4d4965;
    height: 5px;
    border-radius: 1000px;
    width: 5px;
}

.coinCardSection {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
    padding-left: .8rem;
    padding-right: .8rem;
}

.coinCard {
    background-color: #2c2e2f;
    width: 100%;
    display: flex;
    align-items: center;
    padding: .8rem;
    border-radius: 20px;
    gap: .8rem;
}

.coinIcon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.coinIcon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.coinInfo {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.coinName {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
}

.coinSymbol {
    color: #8e8e8e;
    font-size: .8rem;
    font-weight: 500;
}

.coinPrice {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
}

.coinValue {
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
}

.coinChange {
    color: #24e86e;
    font-size: .8rem;
    font-weight: 500;
}

/* shit man */

.bottomNavOverlay {
    position: relative;
    width: 100%;
    height: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    margin-top: auto;
    display: none;
}

.bottomNav {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-around;

    padding: 0 .7rem calc(env(safe-area-inset-bottom, 0px) + 0.2rem);

    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.navItem {
    width: 20%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8d9497;
}

.navItem svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

.navItem.selected {
    color: #a8a1ee;
}

.line{
    height: 3px;
    width: 50px;
    background-color: #a8a1ee;
    position: absolute;
    transform: translateY(-36px);
}