:root {
    --mosis-gray: #41404a;
    --mosis-gray-trans: rgba(36, 41, 46, .83);
    --mosis-gold: #ffcc00;
    --mosis-gold-hover: #EABB00;
    --mosis-link: #977000;
    --mosis-link-hover: #785800;
}

/***** Elements and Branding *****/

.trans {
    background-color: transparent;
}

.mosis-bg-gold {
    background-color: var(--mosis-gold);
}

.mosis-bg-trans {
    background-color: var(--mosis-gray-trans);
}

.mosis-bg-black {
    background-color: #000000;
}

.mosis-gold {
    color: var(--mosis-gold);
}

.mosis-link {
    color: var(--mosis-link);
    text-decoration: underline;
    cursor: pointer;
}

.mosis-link:hover {
    color: var(--mosis-link-hover);
}

.mrow h1,
.mrow h2,
.mrow h3,
.mrow h4,
.mrow h5 {
    /*font-family: "Anton", sans-serif;*/
    letter-spacing: 1px;
}

.fs-7 {
    font-size: .9rem !important;
}

.btn-gold {
    background-color: var(--mosis-gold);
    color: #000;
}

.btn-gold:hover {
    background-color: #000;
    color: #fff;
}

.dark .btn-gold:hover {
    background-color: #fff;
    color: #000;
}

.btn-gold-outline {
    background-color: transparent;
    border: solid 1px var(--mosis-gold);
    color: var(--mosis-gold);
}

.btn-gold-outline:hover {
    background-color: var(--mosis-gold);
    color: #000000;
}

.btn-white {
    background-color: #fff;
    color: #000;
}

.btn-white:hover {
    background-color: var(--mosis-gold);
    color: #000;
}

.mosis-card {
    background-color: var(--mosis-gold);
    border-radius: 30px;
}

.mosis-card h2 {
    margin-bottom: 1.5rem;
    /*font-family: "Anton", sans-serif;*/
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mosis-card .btn-white:hover {
    background-color: #000;
    color: #fff;
}

.mosis-card .btn:not(:hover, :focus) {
    display: inline-block;
    background-color: #fff;
}

main :is(p,figure) a, main :is(p,figure) a:visited, main :is(p,figure) a:link {
    text-decoration: none;
    transition: all 100ms ease-in-out;
    border-bottom: 1px solid rgb(0, 0, 0);
    color: #000;
}

main p a:hover {
    text-decoration: none;
    border-bottom: none;
}


.table-mosis {
    border-radius: 10px;
}

.table-mosis th {
    background-color: #cccccc;
}

.table-mosis thead tr:first-of-type th {
    background-color: var(--mosis-gold);
}

.table-mosis th, .table-mosis td {
    padding: .75rem .75rem;
}

/***** Layout *****/

body {
    background-color: var(--mosis-gray);
    background-image: url("/assets/img/diamonds-black.png"), url("/assets/img/diamonds-white.png");
    background-position: top 30px right 0, left bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 100%, 700px;
    color: #fff;
    font-family: "Lato", sans-serif;
}

body.subpage {
    background-size: 65%, 700px;
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 575px) {
    body, body.subpage {
        background-size: 500px, 500px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/***** Masthead *****/

#masthead {
    margin: 20px 0 35px;
}

#logosMain img,
footer img {
    max-height: 60px;
}

#logosMain a {
    transition: all .5s;
}

#logosMain a:first-of-type img,
.mobile a img {
    max-height: 100px;
}

/***** Navigation *****/

#navbarMain .nav-link {
    color: #fff;
    white-space: nowrap;
}

#navbarMain .nav-link:hover {
    color: var(--mosis-gold);
}

header .navbar {
    padding: 0;
}

header .navbar-toggler {
    height: 56px;
    background-color: var(--mosis-gray);
    border-color: #fff;
    transition: all .25s;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: brightness(100);
}

header .navbar-toggler[aria-expanded=true] {
    rotate: 45deg;
}

header .navbar-toggler[aria-expanded=true] span {
    rotate: -45deg;
}

header .navbar .navbar-nav .dropdown-menu {
    background-color: rgba(36, 41, 46, .9);
    border-radius: 0;
}

header .navbar .navbar-nav .dropdown-item {
    color: #fff;
}

header .navbar .navbar-nav .dropdown-item:focus,
header .navbar .navbar-nav .dropdown-item:hover {
    background-color: transparent;
    color: var(--mosis-gold);
}

#navbarMain .nav-login a {
    display: inline-block;
}

#navbarMain .nav-login a::before {
    display: inline-block;
    margin-right: 30px;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font: var(--fa-font-regular);
    content: '\7c';
    color: rgba(255, 255, 255, .5);
    font-size: 18px;
}

#navbarMain .nav-login i {
    margin-right: 6px;
    color: var(--mosis-gold);
}

@media (min-width: 992px) {
    #avbarMain .gap-lg-3 {
        gap: 20px !important;
    }
}

@media (max-width: 991px) {
    .nav-container {
        max-width: 100%;
        padding: 0;
    }

    #navbarWrapper {
        background-color: var(--mosis-gray-trans);
    }

    #navbarMain .navbar-nav > li:first-of-type {
        padding-top: 1rem;
    }

    #navbarMain .navbar-nav > li:last-of-type {
        padding-bottom: 1rem;
    }

    #navbarMain .navbar-nav {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        width: 100%;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
        margin-right: auto;
        margin-left: auto;
    }

    #navbarMain .nav-item {
        margin: 0;
    }

    #navbarMain .nav-login a::before {
        display: none;
    }

    header .navbar .navbar-nav .dropdown-menu {
        padding-top: 0;
        background: none;
        border: none;
    }
}

/***** FOOTER *****/

footer {
    color: #fff;
}

footer .usc-logo {
    max-height: 50px;
}

.get-in-touch {
    padding: 100px 0 80px;
}


/***** Content *****/

main {
    min-height: 300px;
    margin-top: 100px;
    background-color: #fff;
    color: #000;
}

main p {
    line-height: 1.55;
}

.page-title {
    margin-bottom: 3rem;
    /*font-family: "Anton", sans-serif;*/
    font-weight: 700;
    font-size: 2rem;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-title span {
    text-transform: none;
}

.m-olist {
    list-style: none;
    counter-reset: mosis-counter;
    margin: 0;
    padding: 0;
}

.m-olist li {
    counter-increment: mosis-counter;
}

.m-olist li::before {
    display: inline-block;
    margin-right: 15px;
    vertical-align: top;
    width: 30px;
    height: 30px;
    content: counter(mosis-counter);
    color: #000000;
    background-color: var(--mosis-gold);
    font-weight: bold;
    line-height: 30px;
    text-align: center;
}

.m-olist div {
    display: inline-block;
    width: calc(100% - 50px);
    vertical-align: top;
    margin-bottom: 10px;
    padding: 3px 0 0;
    line-height: initial;
}

.m-olist li:last-of-type div {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    #headerMain .navbar > .container {
        padding-left: 0;
        padding-right: 0;
    }

    #headerMain .mobile {
        margin: 20px 0;
    }

    main {
        margin-top: 0;
    }
}

/***** Home Page *****/

#ticker {
    margin: 40px auto 40px;
    font-size: .9rem;
}

#ticker .wrapper {
    border-radius: 20px;
    height: 80px;
}

#ticker .intro {
    background-color: #000;
    color: #fff;
    border-radius: 20px 0 0 20px;
    max-width: 190px;
    height: calc(100% - 6px);
}

#ticker .intro > div {
    padding-left: 20px;
}

#ticker .intro-arrow {
    border-top: 40px solid transparent;
    border-bottom: 40px solid transparent;
    border-left: 20px solid #000;
}

#ticker a.btn-gold {
    margin: 22px 0 0 20px;
    vertical-align: top;
}

#ticker table {
    margin: 10px 0;
    background-color: transparent;
    color: #fff;
}

#ticker th {
    padding: 0 0 5px;
    color: var(--mosis-gold);
    border-bottom: solid 1px rgba(255, 255, 255, 0.2);
    font-weight: normal;
    text-transform: uppercase;
}

#ticker th:not(:last-of-type) {
    padding-right: 30px;
}

#ticker tbody tr {
    -webkit-transition: opacity .5s ease-in-out;
    -moz-transition: opacity .5s ease-in-out;
    -o-transition: opacity .5s ease-in-out;
    transition: opacity .5s ease-in-out;
}

#ticker td {
    padding-top: 5px;
    vertical-align: top;
}

@media (max-width: 991px) {
    #ticker .wrapper {
        height: initial;
    }

    #ticker .intro {
        max-width: 100%;
        height: initial;
        border-radius: 20px 20px 0 0;
    }

    #ticker .intro > div {
        width: 100%;
        padding: 10px 0;
        font-size: 17px;
        text-align: center;
    }

    #ticker a.btn-gold {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    #ticker th:not(:last-of-type) {
        padding-right: 20px;
    }

    #ticker a.btn-gold {
        margin: 5px 0 20px;
    }
}

#our-technologies .card {
    height: 400px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#eidDigitalCMOS .card {
    background-image: url(/assets/img/digital-cmos.jpg);
}

#eidPhotonics .card {
    background-image: url(/assets/img/photonics.jpg);
}

#eidRF .card {
    background-image: url(/assets/img/rf.jpg);
}

#our-technologies .card-body > div {
    padding: 10px 0 15px;
    background-color: rgba(0, 0, 0, .6);
}

#our-technologies h3 {
    margin-bottom: 15px;
    font-family: inherit;
    text-shadow: 2px -1px 10px rgba(0, 0, 0, 1);
}

#upcoming-events .fa-pipe {
    display: inline-block;
    margin: 0 10px;
    color: #ffffff77;
}

#engaging-with-mosis ul li:not(:last-of-type) {
    margin-bottom: 10px;
}

#engaging-with-mosis .chart img {
    display: block;
    max-width: 300px;
}

#engaging-with-mosis .chart .fst-italic {
    font-weight: 300;
    color: #fffa;
}

#meet-the-team {
    margin-bottom: 150px;
}

#meet-the-team figure {
    position: relative;
}

#meet-the-team article:nth-of-type(n+4) {
    margin-top: 5rem;
}

#meet-the-team img {
    max-width: 150px;
    border-radius: 50%;
}

#meet-the-team figcaption {
    position: absolute;
    top: 105px;
    left: 90px;
}

#meet-the-team h3 {
    margin: 0;
    padding: 0;
    color: #000;
    font-family: inherit;
    font-size: 1rem;
}

#meet-the-team figcaption a {
    display: inline-block;
    margin: 0;
    padding: 5px 25px;
    background-color: var(--mosis-gold);
    border-radius: 50rem;
    text-decoration: none;
}

#meet-the-team figure > a:hover + figcaption a,
#meet-the-team figcaption a:hover {
    background-color: #fff;
}

#meet-the-team p {
    margin: 0;
    padding: 5px 0 0 32px;
}

@media (max-width: 991px) {
    #meet-the-team article:nth-of-type(n+3) {
        margin-top: 5rem;
    }
}

@media (max-width: 767px) {
    #meet-the-team article:not(:first-of-type) {
        margin-top: 5rem;
    }
}

@media (max-width: 576px) {
    #meet-the-team {
        margin-bottom: 50px;
    }

    #meet-the-team .team-members {
        margin-left: 0;
        margin-right: 0;
    }

    #meet-the-team .team-members .col {
        padding-left: 0;
        padding-right: 0;
    }
}


/***** Meet the Team *****/

#page-meet-the-team main .wrapper {
    background: var(--mosis-gold);
    padding-bottom: 100px;
}

#page-meet-the-team main .wrapper:last-of-type {
    background: linear-gradient(
            to bottom,
            var(--mosis-gold) 0,
            var(--mosis-gold) 190px,
            transparent 190px,
            transparent 100%
    );
}

#page-meet-the-team .wrapper:last-of-type p {
    color: #fff;
}

#page-meet-the-team figure {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

#page-meet-the-team figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, .7);
    padding: 10px;
    color: #fff;
}

#page-meet-the-team figcaption h2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
}

#page-meet-the-team figcaption p {
    margin: 0;
    padding: 0;
}

#page-meet-the-team figure img {
    width: 130%;
    display: block;
    margin: 0 -15%;
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
}

#page-meet-the-team article > p {
    padding-right: 1.25rem;
}

@media (min-width: 768px) and (max-width: 991px) {
    #page-meet-the-team main .wrapper {
        padding-bottom: 0;
    }

    #page-meet-the-team main .wrapper:last-of-type {
        background-color: var(--mosis-gold);
    }

    #page-meet-the-team article {
        display: flex;
    }

    #page-meet-the-team article figure {
        flex: 0 0 250px;
        padding-bottom: 2rem;
    }

    #page-meet-the-team article > p {
        flex: 1 1 auto;
        padding: 0 0 4rem 2rem;
    }

    #page-meet-the-team .wrapper:last-of-type article > p {
        color: #000;
    }

    #page-meet-the-team figcaption {
        position: relative;

    }
}

@media (max-width: 767px) {
    #page-meet-the-team main .wrapper {
        padding-bottom: 0;
    }

    #page-meet-the-team main .wrapper:last-of-type {
        background: linear-gradient(
                to bottom,
                var(--mosis-gold) 0,
                var(--mosis-gold) 190px,
                transparent 190px,
                transparent 100%
        );
        padding-bottom: 80px;
    }

    #page-meet-the-team figure {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    #page-meet-the-team article > p {
        padding-bottom: 4rem;
    }
}

/***** Nanofab Prototyping *****/

#example-supported-technologies-table th {
    vertical-align: middle;
}

#example-supported-technologies-table td {
    vertical-align: bottom;
}

#example-supported-technologies-table figure {
    margin: 20px 0 0 0;
}

#example-supported-technologies-table figure img {
    max-width: 140px;
}

/***** MPW Services *****/

#offerings-table tbody, #offerings-table tbody td {
    border-width: 1px;
}

#offerings-table tbody td {
    text-align: center;
}

#offerings-table tbody th {
    background-color: #cccccc;
    text-align: center;
}

/***** Contact Us *****/

#page-contact-us footer .get-in-touch {
    display: none;
}

#page-contact-us .form-label:after,
.form-label.required:after {
    content: "*";
    margin-left: 2px;
    color: #b00;
    font-size: 1.25rem;
}

#page-contact-us .form-label.optional:after {
    content: "";
}

#page-contact-us .cf-turnstile {
    margin-bottom: 20px;
}

#contactOptions .d-flex {
    gap: 30px;
}

#contactOptions button {
    border-radius: 10px;
}

#contactOptions button i {
    display: block;
    margin: 1rem auto;
    font-size: 3rem;
}

/* appearance for checked radiobutton */
input[type="radio"]:checked {
    background-color: #ffcc00;
}
