
/* status page styles */

.status {
    padding-block: 6rem;
    max-width: 65ch;
    margin-inline: auto;
    padding-inline: 0.5rem;
}

.status__heading {
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: var(--text-3xl);
    line-height: var(--leading-3xl);
}

.status__paragraph {
    font-size: var(--text-xl);
    line-height: var(--leading-xl);
    margin-bottom: 1rem;
}


/* application styles */

/* profile page styles */

.profiles {
    background-color: var(--color-gray-200);
    min-height: 100vh;
    padding-top: calc(var(--nav-height) * 2);
}

.profiles__content {
    max-width: 800px;
    margin-inline: auto;
}

.profiles__heading {
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.profiles__cta {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 150px;
    height: 100px;
    border: 1px dashed var(--color-gray-500);
    border-radius: 0.25rem;
    padding: 1rem;
}


.profiles__list {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--space-4);
    max-width: 800px;
    margin-inline: auto;
    overflow-x: auto;
    padding-inline: 0.5rem;
    padding-block: 2rem;
    background-color: white;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);     
}

.profiles__list-item {
    
    width: 150px;
    height: 100px;
    border-radius: 0.25rem;
}

.profiles__list-button {
    width: 150px;
    height: 100px;
    background-color: purple;
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: end;
    border-radius: 0.25rem;

}

@media screen and (max-width: 639px) {
    .profiles__heading {
        padding-inline: 0.5rem;
    }

    .profiles__cta {
        margin-left: 0.5rem;
    }
}

@media screen and (min-width: 639px) {
    .profiles {
        .new {
            width: 150px;
        }
    }
    
    .profiles__list {
        display: grid;
        grid-template-columns: repeat(
        auto-fit,
        150px
        );
        padding-inline: 0;
        padding-block: 0;
        margin-bottom: 1rem;
        background-color: var(--color-gray-200);
        box-shadow: none;
        
        button {
            width: 150px;
        }
    }
}

/* new profile page styles */

.new-profile {
    padding-top: 5rem;
    padding-inline: 1rem;
    max-width: 500px;
    margin-inline: auto;
}

.colors {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.25rem;

    .color {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        transform: scale 1000ms ease-in;
    }

    .color:hover {
        scale: 1.1;
    }

    .color:active {
        scale: 1.05;
    }

    .red {
        background-color: #F00A26;
    }

    .blue {
        background-color: #105DEB;
    }

    .yellow {
        background-color: #F8FA25;
    }

    .pink {
        background-color: #F525EC;
    }

    .purple {
        background-color: #A525FA;
    }

    .green {
        background-color: #10E314;
    }
}

@media screen and (max-width: 500px) {
    .colors {
        justify-content: normal;
    }
}


/* stories page styles */



.stories-create {
    max-width: 500px;
    margin-inline: auto;
}

.stories-create__content {
    font-size: 18px;
    background-color: var(--color-gray-900);
    color: var(--color-white);
    padding-inline: 1rem;
    padding-block: 2rem;
    border-radius: var(--radius-1);
}

.stories-create__heading {
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
    font-weight: 600;
}

.stories-create__hr {
    border: 1px solid var(--color-white);
    margin-block: 0.5rem;
}

.stories-create__description {
    margin-bottom: 3rem;
}

.stories-create__cta {
    margin-inline: auto;
    height: 48px;
    max-width: fit-content;
    padding-inline: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: var(--radius-1);
}

.stories-create__cta:hover {
    color: var(--color-gray-900);
    background-color: var(--color-white);
}

.stories-create__cta:active {
    opacity: .8;
    scale: .98;
}

/* --breakpoint-mobile: 639px */
@media screen and (width <= 639px) {
    .stories-create {
        padding-inline: 0.5rem;
    }

    .stories-create__cta {
        max-width: none;
    }
}

.stories-list {
    max-width: 500px;
    margin-inline: auto;
}

.stories-list__content {
    background-color: var(--color-white);
    padding-inline: 1rem;
    padding-block: 2rem;
    border-radius: var(--radius-1);
    margin-block: 32px;
}

.stories-list__heading {
    color: var(--color-gray-500);
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
    font-weight: 600;
    margin-bottom: 8px;
}

.stories-list__choose-level {
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stories-list__levels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.stories__level-btn {
    max-width: fit-content;
    text-align: center;
    border: 1px solid var(--color-gray-300);
    padding-inline: 0.75rem;
    padding-block: 0.25rem;
    border-radius: var(--radius-1);
}

.stories__level-btn.selected {
    background-color: var(--color-gray-900);
    color: var(--color-white);
}

.stories-list__list {
    display: grid;
    gap: 2rem;
}

.stories-list__img-wrapper {
    height: 200px;
    width: 100%;
    background-color: var(--color-gray-900);
    display: flex;
    justify-content: center;
    align-items: center;
}

.stories-list__img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.stories-list__no-img {
    color: var(--color-white);
}


.stories-list__info-wrapper {
    flex-grow: 1;
    padding-block: 8px;
}

.stories-list__info-wrapper:hover {
    text-decoration: underline;
}

.stories-list__title {
    font-size: 18px;
    line-height: 1.75rem;
    font-weight: 600;
    text-wrap: wrap;
}

.stories-list__description {
    display: block;
    font-size: 1rem;
}

@media screen and (width <= 639px) {
   .stories-list {
    padding-inline: 0.5rem;
   }

    .stories-list__info-wrapper {
        padding-block: 4px;
    }

    .stories-list__description {
        display: none;
    }
}



/* new story page styles */

.new-story {
    min-height: 100vh;
    background-color: var(--color-gray-200);
}

.new-story__content {
    max-width: 500px;
    margin-inline: auto;
    background-color: var(--color-white);
    padding: 1rem;
    border-radius: var(--radius-1);
}

.new-story__heading {
    font-size: var(--text-2xl);
    line-height: var(--leading-2xl);
    font-weight: 600;
    margin-bottom: 1rem;
}

.new-story__description {
    font-size: var(--text-xl);
    line-height: var(--leading-xl);
    margin-bottom: 2rem;
}



/* story ready notification */
dialog {
    border-radius: 0.5rem;
}

dialog::backdrop {
    background-color: var(--color-gray-900);
    opacity: 0.5;
}

.modal-heading {
    font-size: var(--text-2xl);
    margin-bottom: 0.75rem;
}

.modal-description {
    margin-bottom: 2rem;
}

.modal-action-primary {
    display: inline-block;
    background-color: var(--color-blue-500);
    color: var(--color-white);
    padding-inline: 1rem;
    padding-block: 0.5rem;
    border-radius: 0.25rem;
}

.modal-action-secondary {
    display: inline-block;
    background-color: var(--color-gray-300);
    color: var(--color-black);
    padding-inline: 1rem;
    padding-block: 0.5rem;
    border-radius: 0.25rem;
}

@media screen and (min-width: 450px) {
    dialog {
        max-width: 400px;
    }
}