* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Ensures padding and border are included in element's total width and height */
}

:root {
    /* colors */
    --purple-600: hsl(246, 80%, 60%);
    --orange-300: hsl(15, 100%, 70%);
    --blue-300: hsl(195, 74%, 62%);
    --pink-400: hsl(348, 100%, 68%);
    --green-400: hsl(145, 58%, 55%);
    --purple-700: hsl(264, 64%, 52%);
    --yellow-300: hsl(43, 84%, 65%);
    --navy-950: hsl(226, 43%, 10%);
    --navy-900: hsl(235, 46%, 20%);
    --purple-500: hsl(235, 45%, 61%);
    --navy-200: hsl(236, 100%, 87%);

    /* fonts */
    --font-family-base: "Rubik", sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
}

body {
    background-color: var(--navy-950);
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-regular);
    font-size: 1.125rem;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: 35px;
    gap: 24px;
}

.jeremy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Ensures the container takes full width */
    background-color: var(--navy-900);
    border-radius: 15px;
}

.jeremy {
    background-color: var(--purple-600);
    height: 133px;
    width: 100%;
    /* Ensures the Jeremy section takes full width */
    border-radius: 15px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

p {
    font-weight: var(--font-weight-regular);
    color: var(--navy-200);
    font-size: 0.94rem;
}

.jeremy-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
}

.timeframe {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 35px;
    width: 100%;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn {
    background-color: var(--navy-900);
    border-style: none;
    color: var(--purple-500);
    padding: 0.5em 1.5em;
    min-width: 60px;
    cursor: pointer;
    flex: 1 1 0;
    /* This allows buttons to grow and shrink equally*/
    text-align: center;
}

.btn:hover {
    color: white;
}

.top-color {
    display: flex;
    flex-direction: column;
    height: 160px;
    width: 100%;
    /*Ensures the top-color section takes full width */
}

.container {
    background-color: var(--navy-900);
    height: 122px;
    width: 100%;
    border-radius: 15px;
    /* Ensures all corners are curved */
    padding: 24px;
    margin-top: auto;
    /* Pushes the container to the bottom of the parent */
}

.background-svg {
    background-repeat: no-repeat;
    color: var(--orange-300);
    height: 60px;
    width: 100%;
    background-position: right 1em center;
    /*pushes the svg icons to the right with some padding */
    background-size: 4em;
    margin-bottom: -1em;
    border-radius: 15px 15px 0 0;
}

.orange {
    background-color: var(--orange-300);
    background-image: url(../assets/images/icon-work.svg);
}

.sky-blue {
    background-color: var(--blue-300);
    background-image: url(../assets/images/icon-play.svg);
}

.pink {
    background-color: var(--pink-400);
    background-image: url(../assets/images/icon-study.svg);
}

.green {
    background-color: var(--green-400);
    background-image: url(../assets/images/icon-exercise.svg);
}

.purple {
    background-color: var(--purple-500);
    background-image: url(../assets/images/icon-social.svg);
}

.yellow {
    background-color: var(--yellow-300);
    background-image: url(../assets/images/icon-self-care.svg);
}

h1 {
    font-weight: var(--font-weight-light);
    color: white;
    font-size: 2rem;
}

.jeremy-image {
    height: 64px;
    border: 4px solid white;
    border-radius: 50%;
}

.activity-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: white;
}

.activity-elipsis {
    display: flex;
    align-items: center;
}

.activity-elipsis img {
    margin-left: auto;
    /* this pushes the ellipsis to the right */
}

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

.active {
    color: white;
}

/* MEDIA QUERY FOR TABLETS */

@media screen and (min-width: 48em) {

    /* 768px / 16 = 48em*/
    .main-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /*Sets 3 equal columns*/
        grid-template-rows: 203px 213px 213px;
        gap: 24px;
        padding: 100px 78px 70px 78px;
    }

    .jeremy-container {
        grid-column-end: span 3;
    }

    .main-container .top-color,
    .main-container .jeremy-container,
    .main-container .container {
        height: 100%;
        width: 100%;
        margin: 0;
    }

    .background-svg {
        background-size: 3em;
    }

    .duration {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .activity-elipsis {
        margin-bottom: 8px;
    }

    h1 {
        font-size: 3.5rem;
    }
}

/* MEDIA QUERY FOR DESKTOP */
@media screen and (min-width: 90em) {

    /* 1440px divided by 16 = 90em*/
    .main-container {
        grid-template-columns: 255px 255px 255px 255px;
        grid-template-rows: 244px 244px;
        max-width: 1116px;
        height: 100%;
        gap: 32px;
        margin: 0 auto;
        padding: 100px 24px 70px 24px;
    }

    .jeremy-container {
        grid-column-end: span 1;
        grid-row-end: span 2;
    }

    .jeremy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 354px;
        gap: 40px;
    }

    .jeremy-image {
        height: 78px;
    }

    .jeremy-name {
        font-size: 2.5rem;
        font-weight: var(--font-weight-light);
    }

    .timeframe {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-right: auto;
        margin-bottom: 30px;
        padding-left: 0;
    }

    .btn {
        font-size: 1.125rem;
        font-weight: var(--font-weight-regular);
    }

    .main-container .container {
        height: 200px;
    }

    .activity-elipsis {
        margin-bottom: 24px;
    }
}