@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --color-salmon: #f08583;
    --color-green: #85a69e;
}

h1, h2, h3, h4, p {
    font-family: "Montserrat", sans-serif;
}

/*
-----------------
 GENERIC STYLES
-----------------
*/

.ds-flex {
    display: flex;
    align-items: center;
}

.f-col {
    flex-direction: column;
}

.f-row {
    flex-direction: row;
}

.bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.br:after {
    content: "";
    display: block;
}

.txt-center {
    text-align: center;
}

.font-monsterrat {
    font-family: "Montserrat", sans-serif;
}

.c-salmon {
    color: var(--color-salmon);
}

.c-green {
    color: var(--color-green);
}

.m0 {
    margin: 0 !important;
}

.t-upper {
    text-transform: uppercase;
}

/*
-----------------
 SPECIFIC STYLES
-----------------
*/

#content:has(#ew-daily-training-container) {
    display: grid;
}

.green-box {
    border: 5px solid var(--color-green);
    border-radius: 20px;
    padding: 20px;
    background-color: white;
    box-sizing: border-box;
    align-items: center;
    max-width: 900px;
    height: fit-content;
    justify-content: center;
    align-content: center;
    display: grid;
    grid-template-columns: 1fr 2fr;

}

/* Style overrides when our training container is present */
.ast-container:has(#ew-daily-training-container) {
    height: 100%;
    justify-content: center;
    max-width: 100% !important;
    display: grid;
    grid-template-rows: 1fr 100px;

    #ew-daily-training-container {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #ew-welcome-msg {
        img {
            max-width: 110px;
        }

        h3 {
            font-size: 45px;
            font-weight: normal;
        }
    }

    #ew-daily-route {
        p {
            font-size: 40px;
            font-weight: 800;
            margin-top: 1em;
            margin-bottom: 1em;
        }

        .slider-container {
            border: 1px solid #cacaca;
            height: 18px;
            border-radius: 2em;
            width: 100%;
            background-color: #e8e8e8;
            padding: 0 0;
            min-width: 65vw;
            position: relative;

            & > div {
                width: 100%;
                margin: 0 auto;
                height: 100%;
                position: relative;
            }

            .slider-step {
                z-index: 1;
            }

            .slider-step {
                aspect-ratio: 1 / 1;
                width: 42px;
                border: 2px solid #d9d9d9;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                border-radius: 100%;
                background-color: #d9d9d9;
                left: calc(35% - 21px);
                display: flex;
                justify-content: center;
                align-items: start;

                &.done {
                    border: 2px solid #39c3a2;
                }

                &:after {
                    content: "";
                    position: absolute;
                    aspect-ratio: 1 / 1;
                    width: 32px;
                    background: #cacaca;
                    border-radius: 100%;
                    left: 3px;
                    top: 3px;
                }

                &.done:after {
                    background: #39c3a2;
                }

                .step-label {
                    text-transform: uppercase;
                    font-size: 14px;
                    font-weight: 700;
                    margin-top: -30px;
                }
            }

            #slide-inner {
                background: #39c3a2;
                height: 100%;
                top: 0;
                left: 0;
                border-radius: 2em;
                transition: width 0.1s;
                position: absolute;
            }
        }
    }

    #ew-next-task {
        margin-top: 30px;

        .ew-tittle-description {
            color: #88a69e;
            font-size: 40px;
            font-weight: 800;
        }

        .ew-description-game {

            .ew-icon {
                aspect-ratio: 1 / 1;
                background: var(--color-green);
                width: 150px;
                border-radius: 100px;
                margin: 0 auto;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .ew-description-text {
                height: 100%;
            }

            .ew-description-text p {
                font-size: 20px;
                margin: 0;
            }

            .ew-game-type {
                font-size: 18px;
                color: var(--color-green);
                text-transform: uppercase;
                font-weight: 700;
            }
        }
    }

    #ew-score-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        column-gap: 40px;
        margin-bottom: 40px;
        align-items: end;

        p {
            margin: 0;
        }

        #score-summary .score {
            border: 5px solid var(--color-salmon);
        }

        #time-summary .score {
            border: 5px solid var(--color-green);
        }

        .description {
            font-size: 24px;
        }

        .score {
            font-size: 64px;
            font-weight: 700;
            border-radius: 30px;
        }
    }

    p#ew-motivational-txt {
        font-size: 30px;
        color: black;
    }
}

.ew-activity-container {
    width: 100%;
    height: max(80vh, 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .ew-activity-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        width: max(90vw, 380px);
        /* padding: 20px; */
        box-sizing: border-box;
        height: 100%;
        overflow-y: auto;
        position: relative;
        border-radius: 10px;
        text-align: left;
        padding-bottom: 4rem;
        & > p{
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
        }
    }
}

.footer-entrenamiento {
    height: 100px;
    background: white;
    width: 100%;
    /* margin-left: -40px; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 40px;
    left: 0;

    & > form,
    & > div {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }

    a,
    button {
        margin: 0;
        padding: 0;
        background: none;
        max-width: 225px;
    }
}

@media screen and (max-width: 1024px) {
    #ew-daily-route {
        width: 100%;
    }

    .footer-entrenamiento {
        bottom: 77.5px;
    }

    #ew-daily-training-container {
        #ew-welcome-msg h3 {
            font-size: 38px !important;
        }

        #ew-daily-route p, #ew-next-task .ew-tittle-description {
            font-size: 30px !important;
        }
    }
}

@media screen and (max-width: 768px) {
    .green-box {
        grid-template-columns: 1fr !important;
    }
    #ew-next-task .ew-description-game .ew-icon {
            display: none !important;
    }
    .score {
        font-size: 48px !important;
        padding: 0 10px;
    }
    p#ew-motivational-txt {
        font-size: 22px !important;
    }
}

@media screen and (max-width: 767px) {
    .green-box {
        padding: 20px;
        border-width: 3px;
        border-radius: 15px;
        gap: 10px;
    }
}

@media screen and (max-width: 520px) {
    #ew-daily-training-container {
        #ew-welcome-msg h3 {
            font-size: 32px !important;
        }

        #ew-daily-route p, #ew-next-task .ew-tittle-description {
            font-size: 24px !important;
        }
    }

    .footer-entrenamiento > form {
        justify-content: space-evenly;

        a,
        button {
            max-width: 150px;
        }
    }

    .slider-container {
        width: 90% !important;
    }
}

@media screen and (max-width: 420px) {
    #ew-daily-training-container {
        #ew-welcome-msg h3 {
            font-size: 28px !important;
        }

        #ew-daily-route p, #ew-next-task .ew-tittle-description {
            font-size: 20px !important;
        }

        #ew-next-task {
            .ew-description-text p {
                font-size: 18px !important;

                .ew-game-type {
                    font-size: 16px !important;
                }
            }
        }
    }
}

@media screen and (min-width: 420px) {
    .ew-padding {
        /* width: 420px !important; */
        padding: 20px;
    }
}

@media screen and (max-width: 390px) {
    .ew-padding {
        width: 370px;
        padding: 20px;
    }
}