* {
    box-sizing: border-box;
    margin: 0;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

body {
    background-color: #42A7A1;
}

.container {
    width: 90%;
    margin: 20px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 120px;
}

/* Card */

.header-card {
    background-color: #F1BA64;
    padding: 48px 20px;
    position: relative;
}

.header-card > span {
    color: #fff;
    position: absolute;
    font-weight: 500;
}

.report {
    top: 14px;
    text-transform: uppercase;
}

.data-small {
    top: 36px;
    font-size: 14px;
    font-weight: 400;
}

.type-small {
    font-size: 14px;
    font-weight: 400;
    right: 16px;
    top: 14px;
}

.value-big {
    top: 36px;
    right: 16px;
}

.data-card {
    background-color: #fff;
}

/* Legends */

.legends {
    display: flex;
    justify-content: flex-end;
    gap: 0 45px;
    padding: 18px;
}

.data-legend-views, .data-legend-purchases {
    font-size: 12px;
    position: relative;
    cursor: pointer;
}

.data-legend-views::before, .data-legend-purchases::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 6px;
    border-radius: 12px;
    top: 5px;
    left: -28px;
}

.data-legend-views::before {
    background-color: rgb(230, 47, 47);
}

.data-legend-purchases::before {
    background-color: blue;

}

/* Graphic */

.graphic {
    position: relative;
    background-color: #fff;
    height: 200px;
    width: 90%;
    margin: auto;
}

.line-1-graph, .line-2-graph, .line-3-graph {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.line-2-graph {
    position: absolute;
    top: 60px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.line-3-graph {
    position: absolute;
    top: 120px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.line-1-graph {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.data-red svg, .data-blue svg {
    stroke-linecap: round;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto 0;
    width: 100%;
}

.data-red svg {
    top: -40px;
}

.data-blue svg {
    top: 20px;
}

.data-red .point-1 {
    position: relative;
    top: 44px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #FA7373;
    z-index: 5;
}

.data-red .point-2 {
    position: relative;
    top: 14px;
    left: 76px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #FA7373;
    z-index: 5;
}

.data-red .point-3 {
    position: relative;
    top: 20px;
    left: 146px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #FA7373;
    z-index: 5;
}

[class^="point-"] {
    cursor: pointer;
}

.data-red .point-4 {
    position: relative;
    top: -8px;
    left: 197px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #FA7373;
    z-index: 5;
}

.data-red .point-5 {
    position: relative;
    top: -1px;
    left: 246px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #FA7373;
    z-index: 5;
}

.data-red .point-6 {
    position: relative;
    top: -36px;
    left: 281px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #FA7373;
    z-index: 5;
}

.data-red .point-7 {
    position: relative;
    top: -38px;
    left: 340px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #FA7373;
    z-index: 5;
}

.data-blue .point-1 {
    position: relative;
    top: 49px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #7BA2FF;
    z-index: 5;
}

.data-blue .point-2 {
    position: relative;
    top: 18px;
    left: 76px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #7BA2FF;
    z-index: 5;
}

.data-blue .point-3 {
    position: relative;
    top: 24px;
    left: 146px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #7BA2FF;
    z-index: 5;
}

.data-blue .point-4 {
    position: relative;
    top: -4px;
    left: 197px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #7BA2FF;
    z-index: 5;
}

.data-blue .point-5 {
    position: relative;
    top: 3px;
    left: 246px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #7BA2FF;
    z-index: 5;
}

.data-blue .point-6 {
    position: relative;
    top: -32px;
    left: 281px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #7BA2FF;
    z-index: 5;
}

.data-blue .point-7 {
    position: relative;
    top: -34px;
    left: 340px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #7BA2FF;
    z-index: 5;
}

.tooltip {
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    width: 40px;
    height: 28px;
    border-radius: 4px;
    position: absolute;
    top: -39px;
    left: -15.9px;
    transition: all ease 0.3s;
}

.data-red .points [class^="point-"] .tooltip {
    background-color: #FA7373;
}

.data-blue .points [class^="point-"] .tooltip {
    background-color: #7BA2FF;
}


[class^="point-"]:hover .tooltip {
    display: flex;
    animation: hoisting 0.7s ease;
}

@keyframes hoisting {
    from {
        opacity: 0.65;
        top: -30px;
    }
    
    to {
        opacity: 1;
        top: -39px;

    }
}


.tooltip::before {
    content: '';
    position: absolute;
    bottom: -8px;
    transform: rotate(180deg);
    width: 10px;
    height: 10px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-color: inherit;
}

.tooltip p {
    font-weight: 700;
}

.data-red svg polyline,  .data-blue svg polyline {
    stroke-width: 2.5;
    stroke-linecap: round;
}

.footer-card {
    margin-top: -52px;
    position: relative;
    color: rgb(202, 195, 195);
}

.footer-card .days {
    display: flex;
    justify-content: space-evenly;
    align-items: center ;
}

/* Media query */

@media screen and (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Menu */

:root {
    --width: 64px;
    --height: 64px;
    --spacing: 0.5px;
    --height-bar: 3px;
    --width-center: calc(var(--width) / 2);
    --width-center-bar: calc(var(--width-center) / 2);
}

.responsive-img {
    max-width: 100%;
    height: auto;
}

.header-site {
    padding: 30px;
    background-color: #6200ee;
    height: 30px;
    display: flex;
    align-items: center;
}

.sidenav { 
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    background-color: #fff;
    z-index: 10;
    overflow: hidden;
}

.sidenav.active {
    display: block;
}

.profile {
    position: relative;
    padding: 60px 40px 20px;
    overflow: hidden;
}

.background {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
}

.avatar img {
    border-radius: 50%;
    width: 25%;
}

.info {
    color: #eee;
    font-size: 12px;
    margin-top: 12px;
}

.menu {
    margin-top: 5px;
    padding: 0;
    color: #000;
}

.list-menu {
    padding: 12px 14px;
    letter-spacing: -0.75px;
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background ease-in-out 0.25s;
}

.list-menu:hover {
    background-color: #6200ee;
    color: #fff;
}

.list-menu i {
    margin-right: 12px;
}

/* end sidenav */

.toggle-menu {
    position: relative;
    margin-left: 22px;
}

.overlay {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    background-color: rgba(0, 0, 0, 0.785);
}

.overlay.active {
    display: block;
}

/* Burger Menu */


.frame {
    position: absolute;
    width: var(--width);
    height: var(--height);
    left: calc(50% - var(--width) / 2);
    top: calc(50% - var(--height) / 2);
}

.center {
    position: absolute;
    width: var(--width-center);
    height: var(--width-center);
    left: calc(50% - var(--width-center) / 2);
    top: calc(50% - var(--width-center) / 2);
    cursor: pointer;
}

.line-1,
.line-2,
.line-3 {
    position: absolute;
    width: 80%;
    height: var(--height-bar);
    left: calc(60% - var(--width-center-bar));
    background-color: #fff;
    border-radius: 6px;
}

.line-1 {
    top: 25%;
}

.line-1:not(.no-animation) {
    animation: bar-rotate-1-init 0.75s forwards cubic-bezier(0.3, 1, 0.7, 1);
}

.line-1.active {
    animation: bar-rotate-1 0.75s forwards cubic-bezier(0.3, 1, 0.7, 1);
}

.line-2 {
    top: 50%;
}

.line-2:not(.no-animation) {
    animation: bar-rotate-2-init 0.40s forwards linear;
}

.line-2.active {
    animation: bar-rotate-2 0.75s forwards linear;
}

.line-3 {
    top: 75%;
}

.line-3:not(.no-animation) {
    animation: bar-rotate-3-init 0.75s forwards cubic-bezier(0.3, 1, 0.7, 1);
}

.line-3.active {
    animation: bar-rotate-3 0.75s forwards cubic-bezier(0.3, 1, 0.7, 1);
}

@keyframes bar-rotate-1-init {
    0% {
        transform: translate3d(0, 22px, 0) rotate(45deg);
    }
    50% {
        transform: translate3d(0, 22px, 0) rotate(0);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

@keyframes bar-rotate-2-init {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bar-rotate-3-init {
    0% {
        transform: translate3d(0, -7px, 0) rotate(-45deg);
    }
    50% {
        transform: translate3d(0, -7px, 0) rotate(0);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}
@keyframes bar-rotate-1 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, 5.5px, 0) rotate(0);
    }
    100% {
        transform: translate3d(0, 5.5px, 0) rotate(45deg);
    }
}

@keyframes bar-rotate-2 {
    0% {
        transform: scale(1);
    }
    100% {
        
        transform: scale(0);
    }
}

@keyframes bar-rotate-3 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -7px, 0) rotate(0);
    }
    100% {
        transform: translate3d(0, -7px, 0) rotate(-45deg);
    }
}
