﻿@import url('https://fonts.googleapis.com/css2?family=Nobile:wght@400;700&display=swap');

@font-face {
    font-family: 'BlackJackRegular';
    src: url('/fonts/black_jack-webfont.eot');
    src: url('/fonts/black_jack-webfont.eot?#iefix') format('embedded-opentype'), url('/fonts/black_jack-webfont.woff') format('woff'), url('/fonts/black_jack-webfont.ttf') format('truetype'), url('/fonts/black_jack-webfont.svg#BlackJackRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Maritime Blue. Every blue on the site comes from these (the page stylesheets load after this one).
   gift-card.css has its own copy because that page doesn't load site.css, and Helpers/EmailLayout.cs
   has the email versions - keep all three in step.
   - mt-blue: titles, buttons, links, the footer
   - mt-blue-deep: button hover
   - mt-blue-dark: small blue labels (Maritime Blue is too light to read well there), dividing lines,
     the dark bottom edge of buttons
   - mt-blue-light: not part of the palette - mt-blue mixed half-and-half with white, for the light
     top edge of buttons and the footer */
:root {
    --mt-blue: #2F9ED3;
    --mt-blue-deep: #1F8FC4;
    --mt-blue-dark: #176E97;
    --mt-blue-light: #97CEE9;
}

#addRecipient, #removeRecipient {
    cursor: pointer;
}

/* Toast-style confirmation banner rendered by _Layout.cshtml */
#confirmMessage {
    position: fixed;
    top: 2em;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1200;
    box-sizing: border-box;
    width: calc(100% - 2em);
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 0.9em;
    padding: 1em 3em 1em 1.1em;
    text-align: left;
    color: #504f4e;
    background-color: white;
    border-left: 5px solid #07aca7;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: confirmMessageIn 0.35s ease-out;
}

    #confirmMessage.confirm-info {
        border-left-color: var(--mt-blue);
    }

    #confirmMessage .confirm-icon {
        flex: none;
        font-size: 1.6em;
        line-height: 1;
        margin-top: 0.1em;
        color: #07aca7;
    }

    #confirmMessage.confirm-info .confirm-icon {
        color: var(--mt-blue);
    }

    #confirmMessage .confirm-title {
        font-family: BlackJackRegular, Georgia, cursive;
        font-size: 22px;
        line-height: 1.1;
        color: var(--mt-blue);
        margin-bottom: 0.2em;
    }

    #confirmMessage p {
        line-height: 1.4;
    }

#closeButton {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #989898;
    font-size: 15px;
    cursor: pointer;
}

    #closeButton:hover, #closeButton:focus-visible {
        background-color: #f0eeeb;
        color: #504f4e;
    }

@keyframes confirmMessageIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #confirmMessage {
        animation: none;
    }
}

form > ul > li > .field-validation-error {
    color: #ff0000 !important;
    display: block;
    margin-bottom: 16px;
}

form > div > ul > li > .field-validation-error, form > div > div > ul > li > .field-validation-error, div .field-validation-error {
    color: #ff0000 !important;
    margin-bottom: 10px;
    float: none !important;
    display: block !important;
}

/* Bootstrap isn't loaded on layout pages, so its .text-danger (Account profile errors, password
   reset errors) rendered as plain text. Same red as the validation messages above. */
.text-danger {
    color: #ff0000;
}
p.text-danger {
    margin-bottom: 10px;
}

ul, ol, li, p, table {
    margin: 0;
}

ul {
    list-style-type: none;
    list-style-position: outside;
}

a {
    text-decoration: none;
    color: var(--mt-blue);
}

    a:hover {
        text-decoration: underline;
    }

h1 {
    font-size: 36px;
    color: var(--mt-blue);
    font-family: BlackJackRegular, Georgia, cursive;
    font-weight: normal;
    margin: 0;
    line-height: 1.25;
    padding: 10px 0;
}

body {
    background: var(--mt-blue); /* same as the footer, so overscrolling past it doesn't show a different blue */
    font-size: 10pt;
    font-family: "Nobile", "Arial", sans-serif;
    margin: 0;
    padding: 0;
}

/* Form fields and buttons don't inherit the page font by default (browsers give them Arial) */
input, select, textarea, button {
    font-family: inherit;
}

/* One look for every text box and dropdown on the site. The page stylesheets each set their own
   padding/colours (and Find's boxes were bigger); the #maincontent prefix makes these win over
   them without !important.
   - 5.5px over 2.5px (rather than 4px/4px) centres the capitals: Nobile's ascent leaves more room
     above the letters than its descent leaves below, so the text sat ~3px high. Same 25px height.
   - Dropdowns used to be a grey gradient with a grey border and square-ish corners; they now
     match the beige text boxes, at the same 25px height (selects are border-box). */
#maincontent :is(input:not([type=hidden], [type=checkbox], [type=radio], [type=file], [type=submit], [type=button], [type=image]), select) {
    padding: 5.5px 6px 2.5px;
    font-size: 13.3333px;
    border: 1px solid white;
    border-radius: 1ex;
    background: #ece9e1;
    box-shadow: inset 0px 2px 3px rgba(0,0,0,0.2);
}

/* Chrome adds ~4px inside a dropdown before its text; 2px here lines it up with the text boxes' */
#maincontent select:not([multiple]) {
    height: 25px;
    padding-left: 2px;
}

/* The date picker's calendar icon made date boxes 2px taller than the rest */
#maincontent input[type=date] {
    height: 15px;
}

/* The owner's toolbar (registry title + contributions | View / Edit / Contributions / Send) on View
   Registry, Edit Registry, View Contributions and Send to a Friend. Each page's stylesheet has its
   own copy of the toolbar styles; these pin down its size and position so it's identical on all
   four (the #maincontent prefix outranks the page copies):
   - Same gap under the header everywhere. Edit Registry and Send to a Friend had no top margin,
     so the bar sat 3px higher there than on the other two.
   - Both halves exactly 43px tall. They were 43.2px and 42.7px and rounded 1px apart.
   - 14px lines for the title and "Contributions" (they were 12px for 11px text, so the two lines
     ran into each other). Padding keeps both halves' text centred: Nobile sits high, so there's
     more padding above than below. */
#maincontent #userRegistryArea {
    margin-top: 0.25em;
}

#maincontent #userRegistryArea > ul.fieldList {
    padding-top: 9px;
    padding-bottom: 6px;
    min-height: 28px;
    line-height: 14px;
}

#maincontent #userRegistryArea > ul.toolbar {
    padding-top: 15.5px;
    padding-bottom: 11.5px;
    min-height: 16px;
    line-height: 16px;
}

    #maincontent #userRegistryArea > ul > li > :is(label, span, a) {
        line-height: inherit;
    }

#footer {
    padding: 1em 2ex;
    padding-bottom: 4em;
    padding-top: 4em;
}

#footerlinks {
    display: inline-block;
    margin: 0 0 0 2%;
    width: 30.5%;
    vertical-align: top;
    zoom: 1;
}

    #footerlinks > ul {
        display: block;
        padding: 0;
    }

        #footerlinks > ul > li > a {
            color: white;
            font: normal 150% BlackJackRegular, Georgia, cursive;
            text-decoration: none;
        }

#footerMT {
    display: inline-block;
    margin: 0 2.5% 0 2.5%;
    width: 30%;
    vertical-align: bottom;
    zoom: 1;
    text-align: center;
}

    #footerMT > a {
        display: inline-block;
        margin: -4em;
        padding: -4em;
    }

        #footerMT > a > img {
            border-width: 0px;
            vertical-align: text-bottom;
        }

#footernav {
    text-align: center;
    margin-top: 2em;
}

    #footernav > ul {
        display: inline-block;
        zoom: 1;
        padding: 0px;
    }

        #footernav > ul > li {
            display: inline-block;
            zoom: 1;
            margin-left: 2ex;
            margin-top: 0.5em;
            color: white;
        }

            #footernav > ul > li:first-child {
                margin-left: 0px;
            }

            #footernav > ul > li > a {
                color: white;
            }

#footersocial {
    display: inline-block;
    margin: 0 2% 0 0;
    width: 30.5%;
    vertical-align: top;
    text-align: center;
    zoom: 1;
    float: right;
    margin-top: -3.25%;
    font-size: 1.1vw;
}

    #footersocial > ul {
        font-size: 1.25rem;
        font-family: "Nobile", Arial, sans-serif;
        padding: 0;
        display: block;
    }

        #footersocial > ul > li {
            margin: 0 2ex 0 0;
            display: inline-block;
            vertical-align: bottom;
            zoom: 1;
        }

            #footersocial > ul > li:last-child {
                margin-right: 0;
            }

            #footersocial > ul > li > a > img {
                vertical-align: text-bottom;
                border-width: 0px;
            }

            #footersocial > ul > li > a {
                color: white;
            }

            #footersocial > ul > li > div {
                vertical-align: middle;
                border-width: 0px;
            }

#footerwrapper {
    background-color: var(--mt-blue);
    border-top: 2px solid var(--mt-blue-light); /* light top edge, like the buttons */
    box-shadow: 0px 0px 2px 2px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

#headerwrapper {
    display: block;
    padding: 1em 2ex;
}

#headerwrapper, #footer, #maincontent {
    margin: 0 auto;
    max-width: 905px;
}

#headerimage {
    float: left;
    margin: 0;
}

    #headerimage > h1 {
        margin: 0;
        position: relative;
        z-index: 999;
    }

        #headerimage > h1 > a {
            display: block;
            position: relative;
            z-index: 999;
        }

        #headerimage > h1 > img {
            border-width: 0px;
            display: block;
            margin-bottom: -100%;
            margin-top: -12px;
            max-width: 100%;
            vertical-align: text-bottom;
        }

#headernav {
    float: right;
    margin: 0;
}

    #headernav > *, #headernav > ul > * {
        display: inline-block;
        vertical-align: top;
        margin-top: 0px;
    }

    #headernav > ul {
        font-family: "Nobile", Arial, sans-serif;
        font-size: 100%;
        padding: 0;
    }

        #headernav > ul > li {
            margin-right: 3ex;
            zoom: 1;
        }

        #headernav > ul :last-child {
            margin-right: 0px !important;
        }

        #headernav > ul > li > a {
            margin-right: 0px;
            zoom: 1;
        }

.panel-heading {
    background: linear-gradient(180deg,var(--mt-blue) 56%,var(--mt-blue-deep) 50%);
    padding-right: 25%;
}

#maincontent {
    height: 100%;
    padding-bottom: 1.5em;
    padding: 2em 4ex;
    color: #504f4e;
    text-align: center;
}

#maincontentwrapper {
    padding: 1em 2ex;
    padding-bottom: 2em;
}

.submitbutton {
    display: inline-block;
    margin: 0;
    border-width: 2px 2px 2px 2px;
    border-style: solid;
    border-color: var(--mt-blue-light) var(--mt-blue-deep) var(--mt-blue-dark) var(--mt-blue-deep);
    border-radius: 1ex;
    -webkit-border-radius: 1ex;
    -moz-border-radius: 1ex;
    padding: 11.5px 28px 8.5px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: bold;
    font-family: "Nobile", Arial, sans-serif;
    text-decoration: none;
    text-align: center;
    color: white;
    background-color: var(--mt-blue);
    cursor: pointer;
    zoom: 1;
}

    .submitbutton:hover, .submitbutton:focus-visible {
        text-decoration: none;
        color: white;
        border-top-color: var(--mt-blue);
        background: var(--mt-blue-deep);
    }

    /* Matches Bootstrap's disabled button on the gift card page (double-submit guards disable it) */
    .submitbutton:disabled {
        opacity: 0.65;
        cursor: default;
        pointer-events: none;
    }

#wrapper {
    background: url(/Images/main-background.png)#f8f6f4;
    min-width: 0px;
    overflow-x: hidden;
}

@media screen and (max-width: 930px) {
    #headernav > ul > li {
        text-align: left !important;
    }

    #headerimage > h1 > a {
        float: none !important;
    }

    #headernav > ul :last-child {
        margin-right: 0px !important;
    }

    #headernav {
        float: none !important;
        clear: left;
    }

    #maincontentwrapper {
        padding: 0em !important;
    }

    #footerwrapper {
        padding: 0em !important;
    }

    #footer {
        padding: 0em 0em 0em 0em !important;
    }

    #footerlinks {
        margin: 0em 0em 1em 0em;
        display: block;
        width: 100%;
        vertical-align: top;
        zoom: 0;
        float: none !important;
        text-align: center !important;
    }

    #footerMT > p > a {
        text-align: center !important;
    }

    #footerMT {
        margin-left: 0% !important;
        padding-top: 1em;
        display: block;
        width: 100%;
        vertical-align: top;
        zoom: 1;
        text-align: center !important;
    }

        #footerMT > a {
            margin: 0;
        }

    #footersocial {
        display: block;
        margin-left: 0 !important;
        width: 100%;
        vertical-align: top;
        text-align: center !important;
        zoom: 1;
        float: none !important;
    }

    #footer > div, #footer > p {
        width: 100% !important;
        margin-top: 1.5rem;
        float: none !important;
        display: block !important;
    }

    #footernav {
        text-align: center !important;
        padding: 0 1em !important;
        box-sizing: border-box;
        vertical-align: top !important;
    }

        #footernav > ul {
            margin-bottom: 2em;
        }
}

@media screen and (max-width: 450px) {
    #confirmMessage {
        top: 1em;
    }
}

/* The reCAPTCHA widget is a fixed 304px wide; shrink it on narrow phones so it stays inside
   the form (Find, Contact, Contribute). Negative margin takes back the height the transform
   leaves behind. gift-card.css has its own copy - that page doesn't load site.css. */
@media screen and (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.86);
        transform-origin: 0 0;
        margin-bottom: -11px;
    }
}

@media screen and (max-width: 355px) {
    .g-recaptcha {
        transform: scale(0.72);
        margin-bottom: -22px;
    }
}

@media screen and (max-width: 400px) {
    #footernav > ul > li:nth-child(even), #footernav > ul > li:nth-child(even) > span {
        visibility: hidden !important;
    }

    #footernav > ul > li {
        float: none !important;
        display: block;
        margin-left: 0ex !important;
    }
}