* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Rubik", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0E1323;
    height: 100vh;
    width: 100%;
    padding: 253px 165px;

}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

.dashboard {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    height: auto;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 255px;
    height: 510px;
    background-color: #1C204B;
    border-radius: 15px;
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    /* position: relative; */
}

.user-card-foreground {
    width: 100%;
    height: 354px;
    border-radius: 15px;
    background-color: #5747EA;
    z-index: 1;
    padding-left: 32px;
}


.user-card img {
    height: 78px;
    width: 78px;
    margin-top: 37px;
    border: 5px solid #FFFFFF;
    border-radius: 50%;
    margin-bottom: 43px;
}

.user-info h1 {
    color: #BBC0FF;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.user-info h2 {
    color: #FFFFFF;
    font-size: 40px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    padding: 0;
    margin: 0;
}

.user-tracking {
   padding-left: 32px;
   padding-top: 10px;
}


.user-tracking h3 {
    color: #7078C9;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    padding: 10px 0;
}

.user-tracking h3:hover {
    color: #FFFFFF;
    cursor: pointer;
}


.card-background {
    width: 255px;
    height: 160px;
    border-radius: 15px 15px 0px 0px;
    display: flex;
    align-items: flex-start;
    justify-content: right;
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.work {
    background-color: #FF8B64;
}
.play {
    background-color: #55C2E6;
}
.study {
    background-color: #FF5E7D;
}
.exercise {
    background-color: #4BCF82;
}
.social {
    background-color: #7335D2;
}
.self-care {
    background-color: #F1C75B;
}


.card-background img {
    margin-right: 10px;
    margin-top: -10px;
}

.card-foreground {
    background-color: #1c204b;
    position: relative;
    z-index: 1;
    width: 255px;
    height: 199px;
    margin-top: -120px;
    border-radius: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    height: auto;
    padding: 30px;

}

.card-info-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 25px;
}

.card-info-header img:hover {
    cursor: pointer;
    color: #FFF;
    filter: brightness(1.5);
}

.card-info-header h3 {
    color: #FFF;
    font-family: "Rubik", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.card-info h1 {
    color: #FFF;
    font-family: "Rubik", sans-serif;
    font-size: 56px;
    font-style: normal;
    font-weight: 200;
    line-height: normal;
    padding-bottom: 8px;
}

.card-info h4 {
    color: #BBC0FF;
    font-family: Rubik;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

@media screen and (max-width: 992px) {
    .dashboard {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(6, auto);
        height: 100vh;
        padding: 50px 25px;
    }

    .user-card {
        grid-row: 1 / 4;
        grid-column: 1 / 2;
        height: 100%;
        position: sticky;
        top: 50px;
        z-index: 10;
    }

    .work-card {
        grid-row: 1 / 2;
        grid-column: 2 / 4;
    }

    .play-card {
        grid-row: 2 / 3;
        grid-column: 2 / 4;
    }

    .study-card {
        grid-row: 3 / 4;
        grid-column: 2 / 4;
    }

    .exercise-card {
        grid-row: 4 / 5;
        grid-column: 2 / 4;
    }

    .social-card {
        grid-row: 5 / 6;
        grid-column: 2 / 4;
    }

    .self-care-card {
        grid-row: 6 / 7;
        grid-column: 2 / 4;
    }

    .card-background {
        width: 100%;
    }

    .card-foreground {
        width: 100%;
        height: auto;
    }

   
}


@media screen and (max-width: 575px) {
    .dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 25px 25px;
        height: 100vh;
        width: 100vw; 
    }

    .user-card {
        grid-row: 1 / 2;
        grid-column: auto;
        height: 100%;
        width: 90vw;
        position: static;
    }
    
    .user-card-foreground {
        width: 90vw;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .user-tracking {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 75px;
        padding: 0 25px;
    }

    .user-card-foreground {
        padding-left: 20px;
    }
    .user-card-foreground img {
        height: 90px;
        width: 90px;
    }

    .user-info {
        padding-left: 20px;
    }

    .user-info h2 {
        font-size: 30px;
        font-weight: 100;
    }

    .card-background {
        width: 90vw;
    }

    .work-card {
        grid-row: 2 / 3;
        grid-column: auto;
    }

    .play-card {
        grid-row: 3 / 4;
        grid-column: auto;
    }

    .study-card {
        grid-row: 4 / 5;
        grid-column: auto;
    }

    .exercise-card {
        grid-row: 5 / 6;
        grid-column: auto;
    }

    .social-card {
        grid-row: 6 / 7;
        grid-column: auto;
    }

    .self-care-card {
        grid-row: 7 / 8;
        grid-column: auto;
    }

    .hours-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .hours-container h4 {
        font-size: 18px;
    }
    

}
