:root {
    --bg: #292d32;
    --color: #ab3c4f;
    --color-2: #d58b48;
    --card-bg: #161a1d;
    --text-color: #d3d3d3;
}

html {
    font-size: 62.5%;
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}
body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: var(--card-bg);
}

body::-webkit-scrollbar {
    width: 10px;
    background-color: #f5f5f5;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--color);
    border-radius: 2rem;
}

body {
    box-sizing: border-box;
    background-color: var(--bg);
    color: var(--color);
    font-family: sans-serif;
    width: 100%;
    min-height: 100vh;
}
.home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5rem;
}
.home-cards {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    margin-top: 5rem;
}
.card {
    width: 25rem;
    height: 17rem;
    background: var(--card-bg);
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 3rem;
    flex-direction: column;
    line-height: 5rem;
    font-size: 1.8rem;
}

.card h1 {
    z-index: 1;
    color: var(--text-color);
    font-size: 1.1em;
}

.card p {
    z-index: 1;
    color: var(--color);
    font-size: 5rem;
    /* display: flex; */
    /* align-items: center;
    justify-content: center;
    text-align: center; */
    /* gap: 0.5rem; */
    
}
.card p span {
    font-size: 3rem;
   
}

.card::before {
    content: "";
    position: absolute;
    width: 7rem;
    background-image: linear-gradient(180deg, var(--color), var(--color));
    height: 190%;
    animation: bgRotate 3s linear infinite;
    transition: all 0.2s linear ease;
}

@keyframes bgRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card::after {
    content: "";
    position: absolute;
    background: var(--card-bg);
    inset: 0.5rem;
    border-radius: 3rem;
}

/* ------------ */

#home-map {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-map img {
    width: 30%;
    /* height: 0%; */
    overflow: hidden;
}

/* ---------------- */
.home-charts {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15rem;
}


.home-charts .charts {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 15rem; */
    /* background: #ab3c4f; */
}

.home-charts #chart1 {
    width: 40%;
    height: 70%;
    /* background: #ab3c4f; */
}

.home-charts #chart2 {
    width: 40%;
    height: 70%;
    /* background: #ab3c4f; */
}

.home-charts #chart3 {
    width: 40%;
    height: 70%;
    /* background: #ab3c4f; */
}



/* media queri */

@media (max-width :1500px){
    html{
        font-size: 50%;
    }

    .charts{
        flex-direction: column;
    }
    .home-charts #chart1 {
        width: 50%;
        height: 60%;
        /* background: #ab3c4f; */
    }
    
    .home-charts #chart2 {
        width: 50%;
        height: 60%;
        /* background: #ab3c4f; */
    }
    
   

}

@media (max-width :1100px){
    html{
        font-size: 45%;
    }
    .home-cards{
        flex-wrap: wrap;
    }

    .home-charts #chart1 {
        width: 70%;
        height: 40%;
        /* background: #ab3c4f; */
    }
    
    .home-charts #chart2 {
        width: 70%;
        height: 40%;
        /* background: #ab3c4f; */
    }

    
    
   

}


@media (max-width :900px){
    html{
        font-size: 40%;
    }
    .home-cards{
        flex-wrap: wrap;
    }

    
    
   

}

@media (max-width :800px){
    html{
        font-size: 40%;
    }
    .home-cards{
        flex-wrap: wrap;
    }

    .home-charts #chart1 {
        width: 90%;
        height: 40%;
        /* background: #ab3c4f; */
    }

    
    
   

}

@media (max-width :500px){
    html{
        font-size: 30%;
    }
    .home-cards{
        flex-wrap: wrap;
    }

    .home-charts #chart1 {
        width: 90%;
        height: 30%;
        /* background: #ab3c4f; */
    }

    .home-charts #chart2 {
        width: 100%;
        height: 30%;
        /* background: #ab3c4f; */
    }
    .home-charts svg {
        width: 100%;
        height: 133.967;
        transform: translate(0, 0);
    }

    
    
   

}