/* ------------------------------------------- HDIT */
.how-does-it-work {
    grid-area: how-does-it-work;
    width: 100%;
    background: linear-gradient(160deg, var(--wb-90-blue), #25254a) !important;
    display: flex;
    justify-content: center;
}

.how-does-it-work-content {
    padding: 100px 20px;
    width: 80%;
    display: grid;
    grid-template-areas:
        "title steps";
    grid-template-columns: 1fr 550px;
}

.how-does-it-work-title {
    grid-area: title;
    height: 100%;
}

.how-does-it-work-title-content {
    position: sticky;
    top: 100px;
    width: 70%;
}

.how-does-it-work-title h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-semi-bold);
    color: white;
}

.how-does-it-work-title p {
    font-size: 0.85rem;
    font-weight: var(--font-weight-regular);
    color: var(--wb-30);
}

.koodi-steps {
    grid-area: steps;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

koodi-step {
    position: relative;

}

.diagram-element {
    display: grid;
    width: 300px;
    grid-template-areas:
        "header"
        "line";
    justify-items: center;
}

.diagram-element-header {
    position: absolute;
    grid-area: header;
}

.diagram-element-header-rectangle {
    position: relative;
    background: var(--wb-80-blue);
    height: 70px;
    width: 300px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.diagram-element-header-rectangle-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: var(--font-weight-regular);
    color: var(--wb-10);
}

.diagram-element-header-drop {
    height: 30px;
    width: 260px;
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(30px);
    translate: -30px -15px;
}

.gradient-right-1 {
    background: linear-gradient(to right, #29abe2, #9e005d);
}

.gradient-bottom-1 {
    background: linear-gradient(to bottom, #29abe2, #9e005d);
}

.gradient-right-2 {
    background: linear-gradient(to right, #9e005d, #f7931e);
}

.gradient-bottom-2 {
    background: linear-gradient(to bottom, #9e005d, #f7931e);
}

.gradient-right-3 {
    background: linear-gradient(to right, #f7931e, #ffff00);
}

.gradient-bottom-3 {
    background: linear-gradient(to bottom, #f7931e, #ffff00);
}

.gradient-right-4 {
    background: linear-gradient(to right, #ffff00, #00ff00);
}

.gradient-bottom-4 {
    background: linear-gradient(to bottom, #ffff00, #00ff00);
}

.gradient-right-5 {
    background: linear-gradient(to right, #00ff00, #29abe2);
}

.gradient-bottom-5 {
    background: linear-gradient(to bottom, #00ff00, #29abe2);
}

.diagram-element-line {
    grid-area: line;
    width: 3px;
    height: 460px;
}

.step-body {
    position: absolute;
    top: 120px;
    left: 210px;
    width: 300px;
    display: grid;
    grid-template-areas:
        "title"
        "logos"
        "description";
    gap: var(--gap-big);
}

.step-body-title {
    grid-area: title;
    font-size: 1.5rem;
    color: white;
}

.step-body-title h3 {
    margin: 0;
    padding: 0;
    font-weight: var(--font-weight-semi-bold);
}

.step-body-logos {
    grid-area: logos;
    display: flex;
    align-items: center;
    color: white;
    gap: var(--gap-small);
}

.step-body-logo {
    max-height: 25px;
    fill: var(--wb-40-blue);
}

.step-body-logo svg {
    max-height: 25px;
    width: 100%;
    height: 100%;
}

.step-body-description {
    grid-area: description;
    color: var(--wb-30);
}

.final-step {
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: var(--gap-small);
}

.final-step-circle {
    margin-bottom: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wb-80-blue);
    border: 2px solid var(--accent);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.final-step h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semi-bold);
    color: white;
    margin: 0;
    padding: 0;
}

.final-step p {
    text-align: center;
    font-size: 0.85rem;
    color: var(--wb-30);
    margin: 0;
    padding: 0;
}

.accent-1 {
    color: var(--accent);
}

.accent-2 {
    color: #9e005d;
}

.accent-3 {
    color: #f7931e;
}

.accent-4 {
    color: #ffff00;
}

.accent-5 {
    color: #00ff00;
}

.step-body-title-span {
    animation: stepsAccentElements;
    animation-timeline: view();
    animation-range: entry 0% cover 70%;
}

@keyframes stepsAccentElements {
    from {
        color: var(--wb-30);
    }
    to {
    }
}

@keyframes AutoRotateAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.step-appearable-element {
    animation: stepElementAppear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

@keyframes stepElementAppear {
    0% {
        opacity: 0;
        transform: translate(-60px, 0);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}