* {
    font-family: "DM Sans", sans-serif;
    box-sizing: border-box;
}

:root {
    --body-color: #797979;
    --max-width: 1500px;
}

body {
    background-color: #F8F7F4;
    margin: 0px;
    padding: 0px;
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0.5em;
}

h3 {
    margin: 0;
    margin-bottom: 0.5em;
    letter-spacing: 0.1px;
    line-height: 1.5em;
}

h4 {
    margin: 0;
    margin-bottom: 0.3em;
    line-height: 1.3em;
}

p {
    font-size: 18px;
    color: #1D1D1F;
    margin: 0;
    margin-bottom: 0.5em;
    letter-spacing: 0.1px;
    line-height: 1.5em;
}

a {
    text-decoration: none;
    color: #1686fe;
}

.flex {
    display: flex;
}

.fill {
    flex: auto;
}

.nowrap {
    white-space: nowrap;
}

.mt-1 {
    margin-top: 1em;
}

.mt-2 {
    margin-top: 2em;
}

.g-hidden {
    display: none;
}

.g-img-contain {
    width: 100%;
    display: block;
}

.g-button-primary {
    background-color: #4475F6;
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 100px;
    border: none;
    font-size: 17px;
}

.g-button-primary:hover {
    background-color: #3c9aff;
}

.g-button-primary:disabled,
.g-button-primary[disabled] {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}

.g-logo {
    color: black;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.g-logo img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.g-main {
    display: flex;
    max-width: 1624px;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.g-main p {
    max-width: 720px;
    margin-top: 20px;
}

.g-main h1 {
    font-weight: 500;
    max-width: 1000px;
}

.g-main_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 10px 0 10px;
}

.g-main_award-container {
    position: relative;
    width: 230px;
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
}

.g-main_award-container img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.g-main_award-container p {
    font-size: 20px;
    width: 110px;
    margin: 0;
    font-weight: 600;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.app_icon {
    margin-bottom: 25px;
}

.page-content-header {
    width: 100%;
    max-width: var(--max-width);
}

.store-buttons-container {
    padding-top: 30px;
    max-width: var(--max-width);
}

.store-button {
    width: 140px;
}

.g-box {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    max-width: var(--max-width);
    background-color: white;
    margin-bottom: 40px;
    flex-direction: column;
    width: 100%;
}

.g-box_content {
    padding: 30px 30px 0 30px;
    display: flex;
    flex-direction: column;
}

.g-box_text-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.g-box_text {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.g-box_content p {
    font-size: 30px;
    line-height: 1.3em;
    font-weight: 600;
}

.g-box a {
    display: flex;
    margin-top: 1em;
    font-size: 16px;
}

.g-box_img {
    position: relative;
    align-self: center;
    width: 100%;
}

.g-box a svg {
    width: 24px;
    height: 24px;
    padding-left: 8px;
}

.g-main_routines {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    overflow: hidden;
    width: 100%;
    padding: 0 20px;
    justify-content: start;
    overflow: scroll;
}

.g-main_routines::-webkit-scrollbar {
    display: none;
    /* for Chrome, Safari, and Opera */
}

.g-main_routine {
    border-radius: 20px;
    background-color: #aaa;
    height: 200px;
    min-width: 276px;
    max-width: 276px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.routine-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    margin: 0 !important;
    text-align: start;
    color: #fff;
    z-index: 1;
    line-height: 1.1;
}

.routine-habit-count {
    font-size: 15px;
    margin: 0 !important;
    margin-top: 5px !important;
    color: #fff;
    z-index: 1;
}

.g-main_routine img {
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.routine-gradient {
    position: absolute;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}

#review-container {
    display: flex;
    overflow: scroll;
    padding: 40px 20px;
}

.review-card {
    border-radius: 30px;
    background: #fff;
    padding: 25px;
    width: 500px;
    min-width: 340px;
    margin-right: 20px;
    height: fit-content;
}

.review-title {
    font-weight: 600;
}

.review-content {
    margin-top: 5px;
}

footer {
    background-color: rgb(51, 48, 48);
}

footer h2 {
    color: white;
}

footer p,
footer a {
    color: rgb(185, 185, 185);
}

footer a:hover {
    color: rgb(219, 219, 219);
}

footer h3 {
    color: rgb(219, 219, 219);
}

.g-footer-wrapper {
    margin: 0 auto;
    display: grid;
    gap: 1em;
    padding: 60px;
    max-width: 1024px;
}

.g-footer-wrapper>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 30px;
}

.g-footer-wrapper a {
    margin-top: 8px;
}

.g-footer-end p {
    max-width: 1024px;
    padding: 30px 60px;
    margin: 0 auto;
    border-top: 1px solid #aaa;
}

.g-footer-end p {
    font-size: 14px;
}

.g-social-icons {
    padding-top: 24px;
    width: 100px;
    justify-content: space-between;
}

.g-social-icons a {
    color: #6f6f73;
}

.g-social-icons a svg {
    width: 24px;
    height: 24px;
}

.g-input-container {
    background-color: rgb(234 237 241);
    border-radius: 12px;
    position: relative;
}

.modal button {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 100px;
}

.g-input-container input,
.g-input-container textarea {
    border: none;
    background-color: inherit;
    font-size: 16px;
    padding: 14px 24px;
    color: var(--body-color);
    border-radius: 12px;
    width: 100%;
}

@media screen and (min-width: 1024px) {
    h1 {
        font-size: 70px;
    }

    h2 {
        font-size: 60px;
    }

    h4 {
        font-size: 30px;
    }

    p {
        font-size: 20px;
    }

    .g-box {
        flex-direction: row;
    }

    .g-box a {
        font-size: 20px;
    }

    .g-box_content,
    .g-box_text {
        padding: 80px 70px;
        flex: 1;
    }

    .g-box_content p {
        font-size: 50px;
    }

    .g-box_img {
        width: 50%;
        min-height: 400px;
        height: 100%;
    }

    .g-dir-reverse {
        flex-direction: row-reverse;
    }

    .g-footer-wrapper {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .modal button {
        margin-bottom: 400px;
    }

    .g-main_subtitle {
        font-size: 30px;
    }

    .g-main_routines {
        justify-content: center;
        margin-top: 120px;
    }

    .g-main_content {
        padding: 90px 10px 0 10px;
    }
}

header {
    width: 100%;
    position: sticky;
    top: 0px;
    z-index: 10;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.g-header-container {
    display: flex;
    padding: 16px;
    max-width: 1024px;
    margin: 0 auto;
}

.g-nav-toggle_button {
    -webkit-appearance: none;
    border: 1px solid #bbb;
    background: white;
    border-radius: 8px;
    padding: 4px;
    width: 36px;
    display: flex;
    justify-content: center;
}

.g-nav-toggle_button:focus {
    background-color: #eee;
}

.g-nav-toggle_button svg {
    height: 16px;
    width: 16px;
}

.g-nav li,
.g-nav div,
.g-nav-toggle {
    display: flex;
    align-items: center;
}

.g-nav-toggle {
    display: none;
}

.g-nav a {
    padding: 0 20px;
    color: #5d5d5d;
}

.g-contact-us {
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 700px) {
    .g-nav-small {
        position: fixed;
        top: -1000px;
        left: 0;
        right: 0;
        background-color: rgba(240, 240, 240, 0.98);
        z-index: 2;
        display: block;
        padding: 20px;
        opacity: 0;
        transform: translateY(-10px);
        transition: transform 0.2s ease-in-out, opacity 0.3s ease-in-out;
        font-size: 18px;
    }

    .g-nav-visible {
        opacity: 1;
        top: 44px;
        transform: translateY(0px);
        transition: transform 0.2s ease-in-out, opacity 0.3s ease-in-out;
        border-bottom: 1px solid #aaa;
    }

    .g-nav-small ul {
        display: block;
    }

    .g-nav-small a {
        padding: 8px;
        padding-right: 200px;
    }

    .g-nav-toggle {
        display: flex;
    }

    .g-contact-us {
        margin-top: 1em;
    }

    .g-header-container {
        padding: 12px 16px;
    }
}