@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&display=swap');

:root {
    --primary-col-500: #141414;

    --system-blue-900: #242935;
    --system-blue-800: #2E3443;
    --system-blue-700: #333947;
    --system-blue-600: #3C414E;
    --system-blue-300: #1282F2;
    --system-blue-100: #00A3FF;
    
    --dark-blue-800: #1F2126;

    --danger-200: #e30202;

    --neutral-400: #D9D9D9;
    --neutral-0: #ffffff;

    --black-700: #302E2E;
    
    --max-width: 1200px;
    --font-family: "Manrope", sans-serif;

    --line-height-sm: 105%;
    --line-height-md: 135%;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, span, body, html, figure {
    padding: 0;
    margin: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

main {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    flex: 1;
}

button {
    color: black;
}

.container-grid {
    --padding-inline: clamp(3rem, 3vw + 1rem, 64px);
    --padding-block: 24px;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(auto, var(--max-width));
    justify-items: center;
    justify-content: center;
    padding-inline: var(--padding-inline);
    padding-block: var(--padding-block);
}
.container-grid__div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Footer */

.footer {
    padding-block: 48px;
}
.footer > div {
    gap: 0;
}
.footer__nav {
    /* 
    display: flex;
    gap: clamp(1rem, 4vw, 40px);
    flex: 1 1;
    margin-left: clamp(1rem, 3vw, 54px);
    margin-right: clamp(1rem, 3vw, 54px);
    */
    display: flex;
    gap: clamp(1rem, 2vw, 30px);
    flex: 1 1;
    margin-left: clamp(1rem, 2vw, 30px);
    margin-right: clamp(1rem, 1vw, 30px);
}
.footer__link {
    color: var(--neutral-0);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-wrap: nowrap;
}
.footer__link:active {
    text-decoration: underline;
}
@media (hover: hover) {
    .footer__link:hover {
        text-decoration: underline;
    }
}

.footer__credits {
    font-size: 13px;
    font-weight: 600;
    opacity: .5;
}

/* Footer end */


/* Button */

.primary-button {
    background-color: var(--neutral-400);
    border-radius: var(--radius-sm);
    color: black;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease-in-out;
	text-align: center;
	/* width: 100%; */
}
.primary-button_tall {
    padding-block: 18px;
}
.primary-button_alt {
    background-color: var(--system-blue-600);
    color: color-mix(in srgb, var(--neutral-0) 90%, rgba(0, 0, 0, 0) 10%);
}

@media (hover: hover) {
    .primary-button:hover {
        background-color: var(--neutral-0);
		color: #222;
    }
    .primary-button_alt:hover {
        background-color: var(--system-blue-700);
    }
}

.primary-button:active {
    background-color: var(--neutral-0);
}
.primary-button_alt:active {
    background-color: var(--system-blue-800);
}

/* Button end */

/* Input */

.primary-input {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background-color: var(--system-blue-700);
    outline: none;
    border: none;
    color: var(--neutral-0);
    font-family: inherit;
    font-size: 14px;
    line-height: var(--line-height-md);
}
.primary-input::placeholder {
    color: var(--neutral-0);
    opacity: .3;
}

/* Input end */

/* Nav */

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-button {
    font-size: 13px;
}

/* Nav end */

/* Primary text */

.primary-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: var(--line-height-md);
    opacity: .7;
}
.primary-text__left {
    text-align: start;
}

.primary-header-text {
    font-size: clamp(25px, 4vw, 35px);
    font-weight: 700;
    line-height: var(--line-height-sm);
}
.primary-header-text_lg {
    font-size: clamp(25px, 4vw, 45px);
    font-weight: 700;
    text-align: center;
    line-height: var(--line-height-sm);
    margin-bottom: 10px;
}

/* Primary text end */

/* Image carusel */

.image-carusel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 24px;
    width: 100%;
}
.image-carusel > * {
    scroll-snap-align: start;
    width: 282px;
    height: auto;
    border-radius: var(--radius-lg);
}
.image-carusel img {
    aspect-ratio: 1 / 1;
    /* object-fit: cover; */
    border-radius: var(--radius-lg);
    width: 100%;
    min-width: 240px;
}
.image-carusel_noaspect > * {
    height: 340px;
}

/* Image carusel end */

/* Loader */

.loader-container {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-col-500);
    z-index: 999;
    transition: opacity 0.4s, display 0.4s, transform 0.4s;
    opacity: 1;
    transition-behavior: allow-discrete;
}
.loader-container.disabled {
    display: none;
    opacity: 0;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #FFF;
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
  
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

/* Loader end */


/* Scrollbar  */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-track {
      margin-block: 6px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: var(--radius-lg);
  }
  
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: var(--radius-lg);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #b9b9b9;
  }

/* Scrollbar end*/

/* Memorials collection section */

.memorials-collection {
    gap: 48px;
    grid-auto-rows: min-content;
}

.title-block {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}
.title-block > div {
    flex: 3;
}
.title-block__text{
    margin-top: 12px;
    max-width: 300px;
}
.title-block__button {
    flex-grow: 1;;
    flex-basis: calc((500px - 100%) * 999);
}

.creating-flow {
    width: 100%;
    background-color: color-mix(in srgb, var(--system-blue-900) 50%, rgba(255, 255, 255, 0) 50%);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.2vw, 40px);
}

.creating-flow.active > .creating-flow__content {
    display: flex;
}

.creating-flow__content {
    gap: clamp(1rem, 2.2vw, 40px);
    display: flex;
    transition: max-height .15s ease;
}

.creating-flow__card {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.creating-flow__card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px
}
.creating-flow__number {
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 2vw + 1rem, 68px);
    height: clamp(32px, 2vw + 1rem, 68px);
    border-radius: var(--radius-full);
    background-color: var(--system-blue-900);
    user-select: none;
}
.creating-flow__title {
    font-size: 15px;
    font-weight: 600;
}
.creating-flow__text {
    font-size: 13px;
    opacity: .5;
}

.creating-flow__accordion-header {
    position: relative;
    width: 100%;
    display: none;
    align-items: center;
    gap: 1rem;
}
.creating-flow__hide-icon {
    position: absolute;
    right: 0;
    transition: transform .2s ease-in-out;
}
.creating-flow__hide-icon::after {
    position: absolute;
    content: '';
    background-color: var(--neutral-0);
    width: 10px;
    height: 2px;
    right: 0;
    transform: translateX(3px) rotate(-45deg) ;
}
.creating-flow__hide-icon::before {
    position: absolute;
    content: '';
    background-color: var(--neutral-0);
    width: 10px;
    height: 2px;
    right: 0;
    transform: translateX(-3px) rotate(45deg);
}

.creating-flow.active .creating-flow__hide-icon {
    transform: rotateX(180deg);
}


.collection {
    --card-width: 282px;
    --card-height: 122px;
    --card-max-height: 240px;
    width: 100%;
    justify-self: start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--card-width), 100%), auto));
    justify-content: start;
    gap: 24px;
}
.memorial-card {
    position: relative;
    padding: 24px;
    width: var(--card-width);
    /* border: 1px solid rgb(34, 34, 34); */
    background-color: rgb(23, 23, 23);
    color: var(--neutral-0);
    font-family: inherit;
    font-size: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: height .35s ease;
}

@media (hover: hover) {
    .memorial-card_active:hover {
        --card-height: var(--card-max-height);
        border-bottom: none;
    }
    .memorial-card_active:hover .memorial-card__actions {
        opacity: 1;
    }
}

.memorial-card__image {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    max-width: 234px;
}

.memorial-card__title {
    margin-block: 24px;
    /* padding-inline: 16px; */
    align-self: flex-start;
    width: 100%;
    text-align: left;
    z-index: 10;
}

.memorial-card__title-content {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.memorial-card__actions {
    position: absolute;
    top: 70%;
    width: 100%;
    height: var(--card-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px;
    border-left: 1px solid rgb(34, 34, 34);
    border-right: 1px solid rgb(34, 34, 34);
    border-bottom: 1px solid rgb(34, 34, 34);
    background: linear-gradient(0deg, rgb(23, 23, 23) 0%, rgb(23, 23, 23) 45%, rgba(255,255,255,0) 45%);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    transition: height .45s ease, opacity .3s ease ;
    z-index: 5;
    overflow: hidden;
    opacity: 0;
}
.memorial-card__actions > * {
    width: 90%;
}

@media (hover: none) {
    .collection {
        --card-width: 320px;
    }
    .memorial-card__actions {
        position: relative;
        opacity: 1;
        inset: 0;
        flex-direction: row;
        flex-wrap: wrap;
        background: none;
        border: none;
        height: 100%;
    }
    .memorial-card__actions > div {
        padding-inline: 12px;
        flex: 1 1 105px;
        font-size: 13px;
    }
    .memorial-card__title {
        margin-bottom: 12px;
    } 
}

.collection__card-new {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.collection__card-new > * {
    transition: opacity .2s ease;
    opacity: .7;
}
.collection__card-new:hover > * {
    opacity: 1;
}
.collection__card-new > :first-child {
    font-size: 56px;
    font-weight: bold;
    line-height: 100%;
}

/* Memorials collection end  */