* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /*Primary color*/
    --purple-600: hsl(246, 80%, 60%);

    --work: hsl(15, 100%, 70%);
    --play: hsl(195, 74%, 62%);
    --study: hsl(348, 100%, 68%);
    --exercise: hsl(145, 58%, 55%);
    --social: hsl(264, 64%, 52%);
    --self-care: hsl(43, 84%, 65%);
    /*Neutral color*/
    --navy-950: hsl(226, 43%, 10%);
    --navy-900: hsl(235, 46%, 20%);
    --purple-500: hsl(235, 45%, 61%);
    --navy-200: hsl(236, 100%, 87%);
}

body {
    font-family: 'Rubik', Arial, Helvetica, sans-serif;
    height: 100vh;
    font-size: 14px;
    color: var(--navy-200);
    font-weight: 300;
}

h1 {
    font-size: 24px;
    font-weight: 300;
    color: white;
}

a {
    text-decoration: none;
    color: var(--navy-200);
    transition: all 0.3s ease;
}

a[class="active"], a:hover {
    color: white;  
}

li {
    transition: transform 0.3s ease;
}

li:hover {
    transform: translateY(-10px);
}

main {
    height: 100%;
    background-color: var(--navy-950);
    padding: 40px 20px;
    overflow: auto;
}

.dashboard-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-container .user-and-navbar {
    display: flex;
    flex-direction: column;
    align-items: center;;
    background-color: var(--navy-900);
    border-radius: 10px;
    transform-origin: bottom;
    animation: ExpandVertical 0.5s ease forwards;
}

.user-and-navbar .user-info {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    background-color: var(--purple-600);
    border-radius: 10px;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    border: solid 2px white;
    animation: PopUp 0.3s ease 2.3s;
}

.user-and-navbar ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 20px;
}

.task-card {
    height: fit-content;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
    cursor: pointer;
    transform: scale(0);
}

.task-card > img {
    position: absolute;
    top: -5px;
    right: 20px;
    width: 60px;
    height: 60px;
}

.task-card .info {
    width: 100%;
    height: fit-content;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    background-color: var(--navy-900);
    z-index: 1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: all 0.3s ease;
}

.info .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header p {
    color: white;
    font-weight: 400;
}

.header button {
 width: fit-content;
 background: none;
 outline: none;
 border: none;
 display: flex;
 align-items: center;
 justify-content: center;
}

.header button:hover {
    filter: brightness(10);
}

.info .main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.task-card.work {
    background-color: var(--work);
    animation: PopUp 0.3s ease 0.5s forwards;
}

.task-card.play {
    background-color: var(--play);
    animation: PopUp 0.3s ease 0.8s forwards;
}

.task-card.study {
    background-color: var(--study);
    animation: PopUp 0.3s ease 1.1s forwards;
}

.task-card.exercise {
    background-color: var(--exercise);
    animation: PopUp 0.3s ease 1.4s forwards;
}

.task-card.social {
    background-color: var(--social);
    animation: PopUp 0.3s ease 1.7s forwards;
}

.task-card.self {
    background-color: var(--self-care);
    animation: PopUp 0.3s ease 2.0s forwards;
}

@keyframes ExpandVertical {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes PopUp {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@media  screen and (min-width: 742px) {
    main {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    li:hover {
        transform: translateX(10px);
    }

    .dashboard-container {
        max-width: 1000px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas: 
        'user work play study'
        'user exercise social self';
    }

    .user-and-navbar .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        padding-bottom: 50px;
    }

    .user-and-navbar ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .user-and-navbar {
        grid-area: user;
    }

    .task-card {
        height: 100%;
    }

    .task-card:hover .info {
        background-color: var(--purple-500);
        transform: scale(1.1);
    }

    .task-card .main {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-card.work {
        grid-area: work;
    }

    .task-card.play {
        grid-area: play;
    }

    .task-card.exercise {
        grid-area: exercise;
    }

    .task-card.social {
        grid-area: social;
    }

    .task-card.self {
        grid-area: self;
    }
}