/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
    --corporate: #ff0090;
    --corporate-hover: #8c2b71;
    --corporate-secondary: #ff00903b;
    --background-light: #e5e5e5;
    --background-light-secondary: #f6f6f6;
    --background-light-hover: #cdcdcd;
    --background-light-static: #191919;
    --text-light: #717171;
    --picture-background: #ebf4ff;
}

@view-transition {
    navigation: auto;
}

/* .transition-page {
    view-transition-name: page;
}

::view-transition-old(page) {
    animation: fade 0.2s linear forwards;
}

::view-transition-new(page) {
    animation: fade 0.3s linear reverse;
} 

@keyframes fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
} */

hr.thin {
    flex: 1;
    border: 0px;
    height: 1px;
    background-color: #000000;
}

/** Begin style: Scroll animations **/

/* .navigation-menu {
    animation: navigation-menu-scroll auto linear;
    animation-timeline: scroll(root); 
}

@keyframes navigation-menu-scroll {
    0% {
        bottom: 3rem;
    }
    20% {
        bottom: 3rem;
    }
    25% {
        bottom: 0.75rem;
    }
    30% {
        bottom: 0.75rem;
    }
    100% {
        bottom: 0.75rem;
    }
}*/

.description {
    font-size: clamp(0.6rem, 1.8vw, 0.9rem);
    color: #ffffff;
    max-width: 725px;
}

.keyword { //Remove if not needed
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1;
    color: #ffffff;
    font-weight: 500;
}

#keyword-second {
    opacity: 0;
    animation: keyword-second-scroll auto linear;
    animation-timeline: scroll(root);
}

@keyframes keyword-second-scroll {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

#keyword-third {
    opacity: 0;
    animation: keyword-third-scroll auto linear;
    animation-timeline: scroll(root);
}

@keyframes keyword-third-scroll {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

.title-box {
    width: 280px;
    height: 120px;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 24px;
    color: black;
    background-color: #ffffff6e;
    backdrop-filter: blur(15px);
    //border: 1px solid #ffa0d6;
    //box-shadow: 0px 0px 8px 0px var(--corporate), 0px 0px 10px 0px #3f00ff6b, 0px 0px 6px #ff009087 inset;
}

#slogan {
    animation: slogan-scroll auto linear;
    animation-timeline: scroll(root);
}

@keyframes slogan-scroll {
    10% { opacity: 0 }
    15% { opacity: 1 }
    100% { opacity: 1 }
}

#main-image-zoom {
    transform: scale(2.9);
    animation: main-image-zoom-scroll auto linear;
    animation-timeline: scroll(root);
}

@keyframes main-image-zoom-scroll {
    0% {
        transform: scale(2.9);
    }
    20% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.3);
    }
}

#hero {
    animation: hero-scroll auto linear;
    animation-timeline: scroll(root);
}

@keyframes hero-scroll {
    /* 0% { transform: translateY(0%) }
    20% { transform: translateY(0%) }
    30% { transform: translateY(-100%) }
    100% { transform: translateY(-100%) } */
    0% {
        opacity: 1;
        display: block;
    }
    20% {
        opacity: 1;
        display: block;
    }
    25% { opacity: 0;
        display: none;
    }
    30% { opacity: 0;
        display: none;
    }
    100% { opacity: 0;
        display: none;
    }
}

#features {
    animation: features-scroll auto linear;
    animation-timeline: scroll(root);
}

@keyframes features-scroll {
    /* 0% { transform: translateY(100dvh)}
    20% { transform: translateY(100dvh) }
    30% { transform: translateY(0dvh) }
    100% { transform: translateY(0dvh) } */
    0% {
        opacity: 0;
        display: none;
    }
    20% {
        opacity: 0;
        display: block;
    }
    25% {
        opacity: 0;
        display: block;
    }
    30% {
        opacity: 1;
        display: block;
    }
    100% {
        opacity: 1;
        display: block;
    }
}

/** End style: Scroll animations **/

/** Begin style: Testimonials **/

.first-carousel-container {
    position: relative;
}

.first-carousel-container:before, .first-carousel-container:after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
}

.first-carousel-container:before {
    left: 0;
    background: linear-gradient(to left, #ffffff00, #ffffff);
}
.first-carousel-container:after {
    right: 0;
    background: linear-gradient(to right, #ffffff00, #ffffff);
}

@media (pointer: fine) {
    .first-carousel-container:hover {
        .testimonials-first-carousel {
            animation-play-state: paused;
        }
    }
    .second-carousel-container:hover {
        .testimonials-second-carousel {
            animation-play-state: paused;
        }
    }
}

.testimonials-first-carousel {
    animation: first-carousel-slide linear infinite;
}

.second-carousel-container {
    position: relative;
}

.second-carousel-container:before, .second-carousel-container:after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
}

.second-carousel-container:before {
    left: 0;
    background: linear-gradient(to left, #ffffff00, #ffffff);
}
.second-carousel-container:after {
    right: 0;
    background: linear-gradient(to right, #ffffff00, #ffffff);
}

.testimonials-second-carousel {
    animation: second-carousel-slide linear infinite;
}

@keyframes first-carousel-slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes second-carousel-slide {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0%);
    }
}

@media (max-width: 640px) {
    .first-carousel-container:before, .first-carousel-container:after {
        width: 50px;
    }
    .second-carousel-container:before, .second-carousel-container:after {
        width: 50px;
    }
}

/** End style: Testimonials **/

/** Begin style: Form input text **/

.placeholder {
    position: absolute;
    z-index: 20;
    top: -0.55rem;
    left: 1.5rem;
    border-radius: 3px;
    color: #00000080;
    font-size: 0.75rem;
    padding: 0rem 0.5rem;
    background: white;
    transition: top 0.3s, left 0.3s, font-size 0.3s, color 0.3s, z-index 0.3s;
}

.input-text-form:placeholder-shown {
    + div {
        top: 10px;
        left: 10px;
        z-index: 5;
        font-size: 0.9rem;
    }
}

.input-text-form:not(:placeholder-shown) {
    border: 1px solid var(--corporate-hover);
    + div {
        color: var(--corporate-hover);
    }
}

.input-text-form:user-invalid {
    border: 1px solid red;
    animation: shake 0.2s;
    + div {
        color: red;
        animation: shake 0.2s;
    }
}

.input-text-form:user-invalid:placeholder-shown {
    border: 1px solid #00000040;
    animation: none;
    + div {
        color: #00000080;
        animation: none;
    }
}

.input-text-form:focus {
    border: 1px solid var(--corporate-hover) !important;
    animation: none !important;
    + div {
        top: -0.55rem;
        left: 1.5rem;
        z-index: 20;
        font-size: 0.75rem;
        color: var(--corporate-hover);
        animation: none !important;
    }
}

.input-text-form:focus:user-invalid:placeholder-shown {
    border: 1px solid var(--corporate-hover);
    + div {
        color: var(--corporate-hover);
    }
}


@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    } 
    20%, 40%, 60%, 80% {
        transform: translateX(-2%);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(2%);
    }
}

.input-text-query:placeholder-shown {
    + div {
        top: 10px;
        left: 10px;
        z-index: 5;
        font-size: 0.9rem;
    }
}

.input-text-query:focus {
    border: 1px solid var(--corporate-hover) !important;
    animation: none !important;
    + div {
        top: -0.55rem;
        left: 1.5rem;
        z-index: 20;
        font-size: 0.75rem;
        color: var(--corporate-hover);
        animation: none !important;
    }
}

.input-text-query:not(:placeholder-shown) {
    border: 1px solid var(--corporate-hover);
    + div {
        color: var(--corporate-hover);
    }
}

/** End style: Form input text **/

/** Begin style: Navigation menu **/

.navigation-static-menu {
    //position: fixed;
    display: flex;
    //bottom: 8px;
    //z-index: 50;
    justify-content: center;
    //margin-left: 8px;
    //margin-right: 8px;
    //width: calc(100% - 16px);
    width: 100%;
    height: 52px;
    /* animation: navigation-static-menu-scroll auto linear;
    animation-timeline: scroll(root); */
}

@keyframes navigation-static-menu-scroll {
    100% {
        bottom: 0rem;
    }
}

.navigation-static-menu-ul {
    /* animation: navigation-static-menu-ul-scroll auto linear;
    animation-timeline: scroll(root); */
}

@keyframes navigation-static-menu-ul-scroll {
    100% {
        width: 100%;
        border-radius: 0px;
    }
}

.navigation-menu {
    //position: fixed;
    display: flex;
    //bottom: 8px;
    //z-index: 50;
    justify-content: center;
    //margin-left: 8px;
    //margin-right: 8px;
    //width: calc(100% - 16px);
    width: 100%;
    //animation: navigation-menu-hide 3s;
    animation-fill-mode: forwards;
}

@keyframes navigation-menu-hide {
    0% {
        bottom: 25px;
    }
    90% {
        bottom: 25px;
    }
    100% {
        bottom: -25px;
    }
}

/** End style: Navigation menu **/

/** Begin style: FAQS **/

details::details-content {
    block-size: 0;
    overflow: hidden;
    interpolate-size: allow-keywords;
    transition:
        block-size 0.3s ease-in-out,
        content-visibility 0.3s ease-in-out;
        
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto;
}

/** End style: FAQS **/

/** Begin style: Side menu **/

.sidemenu-large {
    display: block;
    z-index: 0;
    position: static;
    height: 100%;
    transition: width 0.3s ease-in-out;
    container-type: inline-size;
    container-name: sidemenu;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin-top: 24px;
    padding-right: 8px;
}

.footer-plan {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    height: 48px;
}

.footer-nav-submenu {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 16px;
    padding: 10px;
    border-radius: 8px;
    background-color: var(--background-light-secondary);
    justify-content: space-between;
    align-items: center;
}

.nav-scroll {
    overflow-y: auto;
    scrollbar-color: #000000 var(--background-light);
    height: 100%;
    padding-right: 8px;
    margin-top: 16px;
}

.sidemenu-mobile {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: 100%;
    height: 60px;
}

.item-selected-filter {
    filter: invert(20%) sepia(96%) saturate(4763%) hue-rotate(316deg) brightness(98%) contrast(116%);
}

.side-menu-title {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.side-menu-section {
    display: flex;
    gap: 8px;
    padding: 2px;
    justify-content: start;
    align-items: center;
    opacity: 1;
}

.side-menu-ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px;
    margin-top: 0px
}

@container sidemenu (width < 80px) {
    .sidemenu-large .side-menu-title {
        display: none;
    }

    .sidemenu-large .side-menu-section {
        justify-content: start;
        width: 16px;
    }

    .sidemenu-large .text-nav-section {
        display: none;
    }

    .side-menu-ul {
        width: 36px;
    }

    .nav-scroll {
        width: fit-content;
        padding-right: 0px;
    }

    .footer-nav {
        width: 52px;
        padding-right: 0px;
    }

    .footer-plan {
        display: none;
    }

    .footer-nav-submenu {
        flex-direction: column-reverse;
        padding-left: 0px;
        padding-right: 0px;
    }
}

/** End style: Side menu **/

/** Begin style: Grid collections **/

.grid-collections {
    display: grid;
    height: fit-content;
    max-height: calc(100% - 80px);
    grid-template-columns: repeat(auto-fill, minmax(224px, 0fr));
    gap: 2rem;
    padding: 3rem;
    padding-top: 2rem;
    justify-content: center;
    overflow-y: auto;
    scrollbar-color: #000000 #ffffff;
}

.grid-pictures {
    display: grid;
    width: 100%;
    height: fit-content;
    max-height: calc(100% - 80px);
    grid-template-columns: repeat(auto-fill, minmax(240px, 0fr));
    gap: 2rem;
    padding: 1rem;
    justify-content: center;
    overflow-y: auto;
    scrollbar-color: #000000 #ffffff;
    scroll-timeline-name: --my-list-scroller;
}

.perspective {
    transition: all 0.5s ease-in-out;
}

.perspective:hover {
    transform:
        perspective(5000px)
        rotateY(20deg)
        rotateX(20deg);
}

/** End style: Grid collections **/

/** Begin style: Modal **/

.modal-window[open] {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;

    @starting-style {
        opacity: 0;
    }
}

.modal-window {
    z-index: 100;
    border-radius: 12px;
    background-color: transparent;
    padding: 10px;
    opacity: 0;
}

.modal-window::backdrop {
    background-color: #00000020;
    transition: background-color 0.3s ease-in-out;

    @starting-style {
        background-color: #00000000;
    }
}

#uploading-files-container[open] {
    .icon-toggle {
        transform: rotate(180deg);
    }
}

/** End style: Modal **/

/** Begin style: Button **/

.select-option-button {
    span {
        translate: 0px 0px;
        transition: translate 0.3s, color 0.3s;
    }
    span img {
        transition: filter 0.3s;
    }
}

.select-option-button:hover {
    span {
        translate: 0px -5px;
        color: var(--corporate);
    }
    span img {
        filter: invert(20%) sepia(96%) saturate(4763%) hue-rotate(316deg) brightness(98%) contrast(116%);
    }
}

.floating-add-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;
    gap: 4px;
    padding: 8px;
    background-color: black;
    color: white;
    transition: background-color 0.3s ease-in-out;
    border-radius: 9999px;
    animation: floating-add-button-scroll auto linear;
    animation-timeline: --my-list-scroller;

    img {
        width: 20px;
        height: 20px;
        filter: invert(100%);
    }

    span {
        
    }
}

.floating-add-button:hover {
    background-color: var(--corporate-hover);
}

@keyframes floating-add-button-scroll {
    
    0% {
        display: block;
    }
    
    5% {
        background-color: var(--corporate-hover);
        display: none;
    }
}

/** End style: Button **/

/** Begin style: Tables **/

/** End style: Tables **/

/** Begin style: Loader **/

.loader {
    border: 3px solid #f3f3f3; /* Light grey */
    border-top: 3px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mascara {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0 0 100% 100%;
    overflow: hidden;
}
