﻿html.show-search-popup {
    overflow-y: scroll;
}

    html.show-search-popup #search-popup {
        pointer-events: initial;
        opacity: 1;
    }

    html.show-search-popup body, body.modal-open {
        perspective: initial;
        overflow-y: hidden;
    }

    body.modal-open main {
        transform-style: flat;
    }
    
#search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: grid;
    opacity: 0;
    pointer-events: none;
    z-index: var(--z-index-search-popup);
    flex-direction: column;
    transition: opacity .3s;
}

    #search-popup .header-ball--landingpage {
        --mask-position-y: calc(80px + var(--header-height));
    }

    #search-popup .main-ball {
        --mask-position-y: calc(var(--position-y) + var(--header-height));
        top: calc(100vh - 340px + var(--header-height));
    }

    #search-popup .content {
        margin-top: var(--header-height);
    }

#search-popup .tile {
    padding: 3rem 2rem;
}

#search-input::placeholder { 
    color: rgb(var(--grey)); 
}

.search-popup-links {
    border-top: white solid 1px;
    display: flex;
    flex-wrap: wrap;
}

.search-popup-link {
    flex: 0 0 auto;
    width: 100%;
    padding-top: .25rem;
    display: flex;
}

.search-popup-link .cta {
    color: white
}

.search-popup-link:first-of-type {
    padding-top: 1rem;
}

@media (min-width: 576px) {
    .search-popup-link {
        width: 50%;
    }

    .search-popup-link:nth-of-type(2n-1) {
        border-right: 1px solid white;
        padding-right: 1.5rem;
    }

    .search-popup-link:nth-of-type(2n) {
        padding-left: 1.5rem;
    }

    .search-popup-link:nth-of-type(2) {
        padding-top: 1rem;
    }
}