@import url("app.css");

/* Liquid outer */
.Joy-HowItWorks {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 65px 24px;
}

/* Liquid container */
.Joy-HowItWorks__Container {
    margin: 0 auto;
}

/* Js container */
.Joy-Work__Container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 32px;
    margin: 20px auto;
    padding: 0 3.6rem;
}

/* Work item */
.Joy-Work__Item {
    transition: background-color 0.3s ease;
    padding: 1.5rem 0 0 1.5rem;
    border-radius: 8px;
}

/* Work item title container */
.Joy-Work__Item__Title {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.Joy-Work__Item__Title svg {
    cursor: pointer;
}

.Joy-Work__Item-Title {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.Joy-Work__Item-SubTitle {
    font-size: 14px;
    font-weight: 400;
    margin: 0 60px 25px 0;
}

/* Mobile - max-width: 320px */
@media only screen and (max-width: 320px) {
    .Joy-HowItWorks {
        padding: 24px;
    }

    .Joy-Work__Container {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 16px;
        margin-bottom: 12px;
    }

    .Joy-Work__Item {
        display: flex;
        gap: 8px;
        align-items: start;
        padding: 8px;
    }

    .Joy-Work__Item--ActionIcon {
        width: 20px;
        height: auto;
    }

    .Joy-Work__Item__Title {
        height: 21px;
    }

    .Joy-Work__Item-Title {
        margin-bottom: 16px;
        margin-top: 0;
    }

    .Joy-Work__Item-SubTitle {
        margin: 0 20px 0 0;
    }

    .Joy-Work__Item--Link {
        display: none;
    }
}

/* Mobile - min-width: 321px and max-width: 459px */
@media only screen and (min-width: 321px) and (max-width: 459px) {
    .Joy-HowItWorks {
        padding: 24px;
    }

    .Joy-Work__Container {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 16px;
        margin-bottom: 12px;
    }

    .Joy-Work__Item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 0;
    }

    .Joy-Work__Item__Title {
        height: 21px;
        justify-content: center;
    }

    .Joy-Work__Item-Title {
        margin-bottom: 16px;
        margin-top: 0;
    }

    .Joy-Work__Item-SubTitle {
        margin: 0;
    }

    .Joy-Work__Item--Link {
        display: none;
    }
}
