* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'open sans', 'segoe ui'; 
    box-sizing: border-box;
    overflow-x: hidden;
}
body{
    background: #fff;
    color: black;
}


/* Show */
#show {
    position: relative;
    display: grid;
    gap: 10vw;
    min-height: 50vh;
    max-height: fit-content;
    justify-content: center;
    align-items: center;
    grid-template-columns: auto auto;
    padding: 0 10vh;
}

#show #heading {
    font-size: 3rem;
    font-weight: 650;
}

#show #not-heading {
    font-size: 1rem;
}

#show #btns {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

#btns a {
    position: relative;
    text-decoration: none;
    --color: #000000;
    padding: 1vh 3vh;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    color: var(--color);
    border: 1px solid var(--color);
    border-radius: 5px;
}

#btns a::before {
    position: absolute;
    content: "";
    background: var(--color);
    width: 200px;
    height: 200px;
    z-index: -1;
    border-radius: 50%;
}

#btns a:hover {
    color: white;
}

#btns a:before {
    top: 100%;
    left: 100%;
    transition: 0.3s all;
}

#btns a:hover::before {
    top: -30px;
    left: -30px;
}

#show-img {
    display: flex;
    justify-content: center;
    min-height: 25rem;
    min-width: 25rem;
    max-width: 100%;
    background-image: url(../assets/Charts.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
/* main */
#main {
    padding: 5vh;
}

#main #big1{
    height: 70vh;
    background-color: #ffffff;
    margin-bottom: 5vh;
}

#main #row1{
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    align-items: center;
    gap: 1vw;
}

#row1 > div{
    height: 90%;
    max-height: fit-content;
    min-width: 300px;
}

#row1 canvas{
    max-height: 60vh;
}

#main #row2{
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-flow: dense;
    justify-content: center;
    align-items: center;
    gap: 1vw;
}

#row2 > div {
    height: 70vh;
    max-height: 90%;
}

#main #big2{
    /* margin-top: 10vh; */
    height: 70vh;
    background-color: #ffffff;
    margin-top: 5vh;
}

#big2 canvas{
    max-height: 60vh;
}
/* chart */
.chart{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2vh;
    padding: 5vh;
    border: 1px solid black;
    border-radius: 15px;
    position: relative;
}

.chart > div {
    height: 4rem;
    line-height: 3rem;
    font-size: clamp(1.5rem, 2vw, 3rem);
    font-weight: 500;
}


/* expand  the chart*/
.blur-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* background: rgba(178, 178, 178, 0.596); */
    backdrop-filter: blur(5px);
    z-index: 999; 
}

.chart.expanded {
    width: 94vw !important;
    height: 94vh !important;
    position: fixed;
    top: 0;
    left: 0;
    margin: 3vh 3vw;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.556);
    border: none;
}

/* button expand */
.expand{
    background-color: transparent;
    border: none;
    font-size: 1.25rem;
    position: absolute;
    top: 1rem;
    right: 1rem;    
    cursor: pointer;
}

@media screen and (max-width : 1200px) {
    #show #heading {
        font-size: 3.5rem;
    }
}

@media screen and (max-width : 1000px) {
    #show {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
        padding: 0 7vh;
    }
}
@media screen and (max-width : 700px) {
    .chart{
        padding: 2vh;
    }

    #show-img {
        height: 15rem;
        width: 15rem;
        /* display: none; */
    }

    #show #heading {
        font-size: 2.5rem;
    }

}
@media screen and (max-width : 400px) and (min-width : 0px) {
    #main > #big1, #row2>div{
        height: 50vh;
    }
    #row1{
        height: 50vh;
    }
    .expand{
        font-size: 1rem;
        top: 0.75rem;
        right: 0.75rem;    
    }
}
