/*
Shared
*/

.section-padding {
    padding: var(--mud-appbar-height) 0;
}

/*
Blazor.Component.Layout.Component.HubAppBar
*/

.appbar-blur {
    backdrop-filter: blur(12px);
}

.mix-difference {
    mix-blend-mode: difference;
}

/*
Blazor.Component.Typography.TextFadeIn.HubTextFadeIn
Credit goes to: https://codepen.io/KaioRocha/pen/YoEVvZ
*/

.text-fade-in-container {
    width: 100%;
    min-height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}
.text-fade-in-container .box {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.text-fade-in-container .box .title {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
}
.text-fade-in-container .box .title .block {
    width: 0;
    height: inherit;
    background: var(--mud-palette-tertiary);
    position: absolute;
    animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
    display: flex;
}
.text-fade-in-container .box .title h1 {
    font-family: "Poppins", sans-serif;
    color: var(--mud-palette-text-primary);
    font-size: 32px;
    -webkit-animation: mainFadeIn 2s forwards;
    -o-animation: mainFadeIn 2s forwards;
    animation: mainFadeIn 2s forwards;
    animation-delay: 1.6s;
    opacity: 0;
    display: flex;
    align-items: baseline;
    position: relative;
}
.text-fade-in-container .box .title h1 span {
    width: 0;
    height: 0;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background: var(--mud-palette-tertiary);
    -webkit-animation: load 0.6s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
    animation: popIn 0.8s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
    animation-delay: 2s;
    margin-left: 5px;
    margin-top: -10px;
    position: absolute;
    bottom: 13px;
    right: -12px;
}
.text-fade-in-container .box .role {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    height: 30px;
    margin-top: -10px;
}
.text-fade-in-container .box .role .block {
    width: 0;
    height: inherit;
    background: var(--mud-palette-secondary);
    position: absolute;
    animation: secBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
    animation-delay: 2s;
    display: flex;
}
.text-fade-in-container .box .role p {
    animation: secFadeIn 2s forwards;
    animation-delay: 3.2s;
    opacity: 0;
    font-weight: 400;
    font-family: "Lato", sans-serif;
    color: var(--mud-palette-text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

@keyframes mainBlock {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}
@keyframes secBlock {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}
@keyframes mainFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes popIn {
    0% {
        width: 0;
        height: 0;
        background: var(--mud-palette-tertiary);
        border: 0 solid #ddd;
        opacity: 0;
    }
    50% {
        width: 10px;
        height: 10px;
        background: var(--mud-palette-tertiary);
        opacity: 1;
        bottom: 45px;
    }
    65% {
        height: 7px;
        bottom: 0;
        width: 15px;
    }
    80% {
        width: 10px;
        height: 10px;
        bottom: 20px;
    }
    100% {
        width: 7px;
        height: 7px;
        background: var(--mud-palette-tertiary);
        border: 0 solid #222;
        bottom: 13px;
    }
}
@keyframes secFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.5;
    }
}

@keyframes top {
    0% {
        opacity: 0;
        bottom: -80px;
    }
    100% {
        opacity: 1;
        bottom: 0;
    }
}
@keyframes icon {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(-2deg);
    }
    100% {
        opacity: 1;
        bottom: 0;
    }
}

/*
Blazor.Component.Card.ImageHover.HubImageHover
Blazor.Component.Card.ImageHover.HubImageHoverItem
Credit goes to https://codepen.io/ig_design/pen/WNrWezW
 */

.section-fluid-main{
    position: relative;
    display: block;
    overflow: hidden;
    width: calc(100% - 40px);
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
    padding: 100px 0;
}
.section-row{
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.section-row:hover .section-col{
    opacity: 0.1;
}
.section-col{
    position: relative;
    width: 100%;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    transition: opacity 250ms linear;
}
.section-row .section-col:hover{
    opacity: 1;
}
.section{
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    padding: 15px;
}
.section-in{
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    max-height: 420px;
}
.section-in img{
    display: block;
    width: 100%;
    height: auto;
    transition: transform 250ms linear;
    max-height: 470px;
    background-color: aliceblue;
}
.section-col:hover .section-in img{
    transform: scale(1.1) rotate(-3deg);
}

.hover-text{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 100;
    pointer-events: none;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    -ms-flex-pack: center;
    text-align: center;
    -ms-flex-item-align: center;
    align-self: center;
    mix-blend-mode: difference;
}
.hover-text h2{
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 8vw;
    line-height: 1;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 250ms linear, opacity 250ms ease;
}
.section-col:hover + .hover-text h2{
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 767px) {
    .section-col{
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hover-text h2{
        font-size: 12vw;
    }
}

/*
HubImageDetailHover
*/

.hub-hover-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 1rem;
    width: 100%;
    text-align: center;
    color: whitesmoke;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
    background-position: center;
    background-size: cover;
    border-radius: var(--mud-default-borderradius);
}

@media (min-width: 600px) {
    .hub-hover-card {
        height: 350px;
    }
}

.hub-hover-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-size: cover;
    background-position: 0 0;
    transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.hub-hover-card:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(103, 58, 183, 0) 0%, rgba(103, 58, 183, 0.009) 1.7%, rgba(103, 58, 183, 0.034) 12.1%, rgba(103, 58, 183, 0.072) 21.2%, rgba(103, 58, 183, 0.123) 29.4%, rgba(103, 58, 183, 0.182) 36.6%, rgba(103, 58, 183, 0.249) 43.1%, rgba(103, 58, 183, 0.32) 48.9%, rgba(103, 58, 183, 0.394) 54.3%, rgba(103, 58, 183, 0.468) 59.3%, rgba(103, 58, 183, 0.54) 64.1%, rgba(103, 58, 183, 0.607) 68.8%, rgba(103, 58, 183, 0.668) 73.6%, rgba(103, 58, 183, 0.721) 78.7%, rgba(103, 58, 183, 0.762) 84.1%, rgba(103, 58, 183, 0.79) 90%);
    transform: translateY(-50%);
    transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem;
    transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.content > * + * {
    margin-top: 1rem;
}

.title {
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: -.5px -.5px 0 #666, .5px -.5px 0 #666, -.5px .5px 0 #666, .5px .5px 0 #666;
}

.description {
    text-shadow: -.5px -.5px 0 #666, .5px -.5px 0 #666, -.5px .5px 0 #666, .5px .5px 0 #666;
}

.copy {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.35;
}

.hub-hover-card-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.025rem;
    text-transform: uppercase;
}

.hub-hover-card-btn:focus {
    outline: 1px dashed var(--mud-palette-primary);
    outline-offset: 3px;
}

@media (hover: hover) and (min-width: 600px) {
    .hub-hover-card:after {
        transform: translateY(0);
    }

    .content {
        transform: translateY(calc(100% - 4.5rem));
    }

    .content > *:not(.title) {
        opacity: 0;
        transform: translateY(1rem);
        transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1), opacity 1s ease-out;
    }

    .hub-hover-card:hover,
    .hub-hover-card:focus-within {
        align-items: center;
    }

    .hub-hover-card:hover:before,
    .hub-hover-card:focus-within:before {
        transform: translateY(-4%);
    }

    .hub-hover-card:hover:after,
    .hub-hover-card:focus-within:after {
        transform: translateY(-50%);
    }

    .hub-hover-card:hover .content,
    .hub-hover-card:focus-within .content {
        transform: translateY(0);
    }

    .hub-hover-card:hover .content > *:not(.title),
    .hub-hover-card:focus-within .content > *:not(.title) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 100ms;
    }

    .hub-hover-card:focus-within:before, .hub-hover-card:focus-within:after,
    .hub-hover-card:focus-within .content,
    .hub-hover-card:focus-within .content > *:not(.title) {
        transition-duration: 0s;
    }
}
