p.sub_head_disclaimer {
    color: #14415A;
    font-size: 12px;
    margin: auto 8px;
    text-align: center;
}

/* Loading animation, guru guru thing, beacuse javascript takes forever to load */
#loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #14415A;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.loading #loading-animation {
    display: flex;
}

body.loading #main {
    opacity: 0;
    pointer-events: none;
}

/* mobile */
/* Mobile view */
.only-mobile {
    display: none;
}
.mobile-flex {
    display: block;
    padding-top: 0;
}

/* Section id="filters" */
/* Load radios first to remove loading animation quickly */
svg {
  fill: currentColor;
}
form {
    display: block;
}

fieldset {
    border: none;
    padding: 0;
}

.fieldset-div {
    display: flex;
    margin-bottom: 24px;
}

.legend {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0.8px;
    width: 96px;
    flex-shrink: 0;
    margin-right: 14px;
    color: #526770;
}

.radios-container {
    font-size: 0;
    /* To remove extra white space on the right side of each label to ensure the gaps are exactly 10px aka "font-size hack" */
}

.radio-container {
    display: inline-block;
    margin-right: 10px;
}
.radio-container.en-margin-bottom {
    margin-bottom: 8px;
}

input[type="radio"].radio-button {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.label {
    display: inline-block;
    border-radius: 24px;
    background-color: #FFF;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 24px !important;
    letter-spacing: 0.6px !important;
    color: #526770;
    border: 1px solid #526770;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 0px 16px 0px;
}
.label.ja-padding {
    padding: 0px 16px 1px;
}

/* .label.selected {
  background-color: #14415A;
  color: #FFF;
} */

input[type="radio"].radio-button:checked+.label {
    background-color: #14415A;
    color: #FFF;
}

input[type="radio"]:focus+label {
    outline-offset: 3px;
    outline: 2px solid black;
}

#top-fields {
    display: flex;
}

@media (max-width: 930px) {
    #top-fields {
        display: block;
    }
}

.hr-fieldset-div {
    flex: 1;
    margin-right: 20px;
}

.collapse-button {
    background-color: transparent;
    border: none;
    margin: 0;
    padding: 0;
    text-align: inherit;
    font: inherit;
    border-radius: 0;
    appearance: none;
}

.hidden {
    display: none !important;
}

.shown {
    display: flex;
}

.shown-block {
    display: block;
}

#filter-controls-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.read-more-buttons {
    display: none;
}

.visually-hidden-on-desktop {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.visually-hidden-on-mobile {
    clip: auto;
    clip-path: none;
    height: auto;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
}

main {
    display: flex;
    justify-content: center;
}

#main {
    width: 1000px;
    /* display: flex;
    justify-content: center; */
}

/* Seciton id="search-startups" */
/*
#search-startups-input {
    height: 56px;
    padding: 14px 50px 14px 20px;
    width: 400px;
    border-radius: 10px;
    border: 2px solid #14415A;
}
*/

.input-container {
    position: relative;
}

.input-container i {
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* portfolio card */
.portfolio-card {
    display: flex;
    justify-content: space-between;
    width: 1000px;
    padding: 68px 73px 53px 56px;
    background-color: white;
    margin-top: 69px;
}

.portfolio-right {
    width: 400px;
}

.portfolio-left {
    width: 400px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 20px;
}
.tag-box {
    display: flex;
    gap: 8px;
}
.tag-label {
    text-wrap: nowrap;
    /* padding-top: 3px; */
    color: #14415A;
}

.portfolio-card-left-details-list {
    list-style: none;
    /* Remove bullet points */
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.portfolio-card-left-details-list li,
.portfolio-card-left-details-list a,
.portfolio-card-left-details-list u {
    margin-bottom: 10px;
    color: #14415A;
}

.portfolio-tag {
    display: inline-block;
    padding: 0px 16px 1px;
    border-radius: 24px;
    background-color: #E5EAEC;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 24px !important;
    letter-spacing: 0.6px !important;
    color: #14415A;
    margin: 0 8px 8px 0px;
}
.portfolio-right-textfield {
    color: #14415A;
    margin-bottom: 24px;
}

/* copy button */
.share-link {
    margin-top: 8px;
    font-size: 16.5px;
    position: relative;
}

.copy-button {
    position: relative;
    display: inline-block;
}

.modal__bg.js-modal {
    background-color: white;
}

.modal__content.portfolio_content * {
    color: #14415A;
}

.copied-popup {
    text-align: center;
    margin: 0 auto 0;
    color: white !important;
    background-color: #BB3784;
    border-radius: 10px;
    padding: 12px 40px;
    position: absolute;
    top: 40px;
    left: 0px;
    display: none;
}

.fadeout {
    animation: fadeOut 2s;
    animation-fill-mode: both;
}

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

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.portfolio-img-container {
    width: 400px;
    height: 225px;
    overflow: hidden;
    margin-bottom: 16px;
}


.grecaptcha-badge {
    visibility: hidden;
}

/* Tablet view */
@media (max-width: 1024px) {
    #main {
        width: 95vw;
    }

    .portfolio-card {
        width: 100%;
        padding: 5vh 5vw 5vh;
    }

    .portfolio-left,
    .portfolio-right {
        width: 40vw;
    }

    .portfolio-img-container {
        width: 100%;
    }
}

/* Mobile view */
@media (max-width: 599px) {
    .only-mobile {
        display: block;
    }

    .hide-mobile {
        display: none;
    }

    .mobile-flex {
        display: flex;
        justify-content: space-between;
        padding-top: 16px;
    }

    .visually-hidden-on-desktop {
        clip: auto;
        clip-path: none;
        height: auto;
        overflow: visible;
        position: static;
        white-space: normal;
        width: auto;
    }

    .visually-hidden-on-mobile {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }
    #head_sub_img {
        height: 180px !important;
    }

    #main {
        width: 100vw;
    }

    .spacer-112h {
        padding: 24px 5%;
    }

    .spacer-48h {
        padding: 12px 5%;
    }

    #all-fields-container {
        background-color: #14415A;
        /* margin: 0 0 40px !important; */
        padding-bottom: 40px;
        border-radius: 10px 10px 0 0;
    }

    #filter-controls-container {
        /* border-bottom: 2px solid #14415A; */
        padding: 0;
        margin-top: 0px;
    }

    #toggle-collapsible-filters {
        height: 44px;
    }

    #clear-all-filters {
        height: 44px;
        margin: 0 !important;
        background-color: transparent;
    }

    .fieldset-div {
        display: block;
        padding-left: 21px;
    }

    .legend {
        margin-bottom: 3px;
        color: white;
        font-size: 14px;
        font-family: Noto Sans JP;
        font-style: normal;
        font-weight: 700;
        line-height: 28px;
        letter-spacing: 0.8px;
    }

    .label {
        background-color: transparent;
        font-size: 12px !important;
        color: white;
        border: 1px solid white;
    }

    input[type="radio"].radio-button:checked+.label {
        background-color: white;
        color: #14415A;
    }

    input[type="radio"]:focus+label {
        outline-offset: 3px;
        outline: 2px solid white;
    }

    #filter-hr {
        display: none;
    }

    .filter-controls-float-wrapper {
        padding-top: 6px;
        background-color: #E5EAEC;
        padding: 0 10px;
        border-radius: 10px 10px 0 0;
        position: fixed;
        bottom: 0;
        z-index: 10;
        /* width: 100vw; */
        width: calc(100vw - 20px);
    }

    #all-fields-container {}

    .all-fields-open {
        display: block;
        transition: all 0.5s 0s ease;
    }

    #filters {
        /* What to do with the selected buttons? */
        /* background-color: #14415A; */
        margin: 0 10px;
        /* transition: all 0.5s 0s ease; */
        /* animation-name: appear; */
    }

    .filter-open {
        /* position: static; */
        /* animation: appear 0.8s; */
        border-radius: 0;
    }

    .filter-close {
        /* animation: disappear 0.8s; */
    }

    @keyframes appear {
        0% {
            opacity: 0;
            /* transform: translateY(100px); */
        }

        100% {
            opacity: 1;
            /* transform: translateY(0); */
        }
    }

    @keyframes disappear {
        0% {
            opacity: 1;
            /* transform: translateY(+20px); */
        }

        100% {
            opacity: 0;
            /* transform: translateY(0); */
        }
    }

    .portfolio-card {
        display: block;
        margin: 0 10px 48px;
        padding: 24px 0 33px;
        border-radius: 10px;
        width: auto;
    }

    .portfolio-right,
    .portfolio-left {
        width: auto;
        margin: auto;
    }

    .portfolio-right {
        padding: 0 20px;
    }

    .portfolio-img-container {
        width: 100% !important;
        height: auto !important;
        max-height: 225px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .h2-mobile {
        margin: auto auto 16px 18px;
    }

    .red-link {
        margin-top: 16px;
    }

    .tags {
        margin-top: 8px;
        margin-left: 0px;
    }
    
    .tag-box {
        margin-bottom: -16px;
    }

    .share-link {
        font-size: 14px;
    }

    ul.portfolio-card-left-details-list>li,
    ul.portfolio-card-left-details-list>li>a>u,
    .tag-label {
        color: #14415A !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 24px !important;
    }

    .portfolio-card-left-details-list {
        margin-top: 16px;
    }

    .read-more-buttons {
        display: block;
        color: #526770;
        background: none;
        border-radius: 16px;
        border: 1.5px solid var(--darker-grayish-blue, #526770);
        font-weight: 700;
        line-height: 28px;
        margin-top: 8px;
        text-decoration: none;
        padding: 0px 14px 0px 14px;
        letter-spacing: 0.8px;
        cursor: pointer;
    }

    .portfolio-details {
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .collapsed-mobile {
        display: none;
    }

    .expanded-mobile {
        display: block;
    }

    .read-more-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .copied-popup {
        position: fixed;
        bottom: 8px;
        left: 50%;
        transform: translate(-50%, 0);
        top: auto;
        z-index: 11;
    }

    .disclaimer {
        font-size: 12px !important;
        margin: 0px 30px 8px !important;
        line-height: 1.5 !important;
    }
}