/* Global Rules */
* {
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --Blue: hsl(246, 80%, 60%);

    --Light-red-work: hsl(15, 100%, 70%);
    --Soft-blue-play: hsl(195, 74%, 62%);
    --Light-red-study: hsl(348, 100%, 68%);
    --Lime-green-exercise: hsl(145, 58%, 55%);
    --Violet-social: hsl(264, 64%, 52%);
    --Soft-orange-selfcare: hsl(43, 84%, 65%);

    /* Neutral Colors */
    --Very-dark-blue: hsl(226, 43%, 10%);
    --Dark-blue: hsl(235, 46%, 20%);
    --Desaturated-blue: hsl(235, 45%, 61%);
    --Pale-Blue: hsl(236, 100%, 87%);
}

body {
    Font-size: 18px;
    font-family: 'Rubik', sans-serif;
    background-color: var(--Very-dark-blue);
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    margin: auto;
}

/* Grid System */
@media (min-width: 576px) {

    /* Small Devices => Landscape Phones */
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {

    /* Medium Devices => Tablets */
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {

    /* Desktops */
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {

    /* Large Screens */
    .container {
        max-width: 1140px;
    }
}



.container {
    width: 100%;
}

.main-box {
    grid-row: 1/3;
}

.main-box .top {
    background-color: var(--Blue);
    padding: 20px 20px 70px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    color: white;
    width: 220px;
    z-index: 2;
    position: relative;
}

.main-box .top img {
    width: 40%;
    border: 3px solid white;
    border-radius: 50%;
}

.main-box .top .info span {
    font-size: 12px;
    color: var(--Pale-Blue);
}

.main-box .top .info h1 {
    margin: 0;
    font-size: 35px;
}

.main-box .bottom {
    background-color: var(--Dark-blue);
    padding: 60px 20px 20px;
    border-radius: 10px;
    width: 220px;
    position: relative;
    top: -35px;
    z-index: 1;
}

.main-box .bottom span {
    display: block;
    cursor: pointer;
    color: var(--Desaturated-blue);
    font-size: 15px;
    font-weight: 200;
    transition: 0.3s;
    text-transform: capitalize;
}

.main-box .bottom span:not(:last-child) {
    margin-bottom: 15px;
}

.main-box .bottom span:hover,
.main-box .bottom span.active {
    color: white;
}



.cont-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    align-items: center;
    align-content: center;
    justify-items: center;
}

.cont-box .box {
    background-color: var(--Dark-blue);
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.cont-box .box:hover {
    background-color: hsl(235deg 43% 30%);
}

.cont-box .box .img-container {
    position: absolute;
    width: 100%;
    left: 0;
    top: -35px;
    background-color: white;
    text-align: right;
    border-radius: 10px;
    z-index: -1;
    padding: 0 15px;
    overflow: hidden;
    height: 100%;
}

.cont-box .box .img-container.work {
    background-color: var(--Light-red-work);
}

.cont-box .box .img-container.play {
    background-color: var(--Soft-blue-play);
}

.cont-box .box .img-container.study {
    background-color: var(--Light-red-study);
}

.cont-box .box .img-container.exercise {
    background-color: var(--Lime-green-exercise);
}

.cont-box .box .img-container.social {
    background-color: var(--Violet-social);
}

.cont-box .box .img-container.self-care {
    background-color: var(--Soft-orange-selfcare);
}

.cont-box .box .img-container img {
    max-width: 30%;
    position: relative;
    top: -5px;
}

.cont-box .box .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
}

.cont-box .box .head img {
    cursor: pointer;
}

.cont-box .box .head img:hover {
    filter: brightness(5);
}

.cont-box h1 {
    font-size: 40px;
    margin-bottom: 0;
    font-weight: 300;
}

.cont-box p {
    font-size: 12px;
    color: var(--Pale-Blue);
}


@media (max-width: 575px) {
    .container {
        top: 0;
        margin: 100px 0;
    }

    .cont-box {
        justify-items: center;
        gap: 70px;
    }

    .main-box {
        height: 180px;
    }

    .main-box .top {
        width: 100%;
        flex-direction: row;
        padding: 20px;
        gap: 20px;
        align-items: center;
    }

    .main-box .top img {
        width: 25%;
    }

    .main-box .top .info h1 {
        font-size: 25px;
    }

    .main-box .bottom {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }

    .main-box .bottom span {
        margin-bottom: 0 !important;
    }

    .cont-box .box {
        width: 100%;
    }

    .cont-box .box .img-container {
        width: 99%;
        left: 1px;
        top: -45px;
    }

    .cont-box h1 {
        margin: 0;
    }

    .cont-box .box .content {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-top: 15px;
    }
}