body {
    display: grid; 
    grid-template-columns: 1fr  ; 
    grid-template-rows: 70px auto auto; 
    gap: 0px 0px; 
    grid-template-areas: 
      "header header header"
      "main main main"
      "footer footer footer"; 
  }


#umnhf-h.umnhf {
    background-color: #ffd75f;
    height: 70px;
    z-index: 2000;
    position: fixed;
    width: 100%;
    grid-area: header;
}

#umnhf-h:after {
    clear: both;
}

.modal-open #umnhf-h.umnhf {
    z-index: 1000;
}

#umnhf-h a.umnhf:link,
#umnhf-h a.umnhf:visited,
#umnhf-h a.umnhf:hover,
#umnhf-h a.umnhf:active {
    color: #7a0019;
}

#umnhf-h-logo {
    display: block;
    float: left;
    overflow: hidden;
    width: 283px;
    height: 40px;
    margin: 20px 10px 10px 15px;
    white-space: nowrap;
    text-indent: 100%;
    background-size: 283px;
    background: transparent url('../img/UMN_logo.svg') 0 0 no-repeat;
}

#main-section {
    grid-area: main;
    margin-top: 0px;
    /* padding: 40px 0 35px 0; */
    width: 100%;
    background: #fff;
}

@media only screen and (min-width: 600px) {
    #main {
        margin-top: 0px;
        /* padding: 70px 0 0 0; */
    }
}

.footer { grid-area: footer; }
 
.footer {
    width: 100%;
    margin: 0;
    background-color: #414042;
    /* padding-top: 20px; */
    color: #fff !important;
    text-align: center;
    font-size: 13px;
    line-height: 16px;
    font-size: 12px;
    clear: both;
    display: block;
}

/* Custom content area */
h1 {
    color: #98002e;
    font-size: clamp(2.125rem, 1.947rem + 0.678vi, 2.625rem);
    line-height: 1.2;
    font-family: AvenirNextLTPro-Demi, sans-serif;
    font-weight: normal;
    font-style: normal;
    margin-top: 0;
    text-wrap: pretty;
}

h2 {
    color: #333;
    font-size: clamp(1.5rem, 1.367rem + 0.508vi, 1.875rem);
    line-height: 1.2;
    font-family: AvenirNextLTPro-Demi, sans-serif;
    font-weight: normal;
    font-style: normal;
    margin-top: 0;
    padding-top: 1rem;
    text-wrap: pretty;
}

.promo{
    margin-top: 2rem;
    padding: 2rem;
    background-color: #ffd75f;
    border-radius: .5rem;
}

.promo h2 {
    color: #98002e;
    font-size: 24px;
    line-height: 1.2;
    font-family: AvenirNextLTPro-Demi, sans-serif;
    font-weight: normal;
    font-style: normal;
    margin-top: 0;
    padding-top: 0;
}

.promo p {
    font-size: 1.125rem;
}

.promo ul {
    list-style-type: none;
    padding: 0;
}

#customContentContainer {
    height: 100%;
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    padding: 0 30px;
}

#customContentContainer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 0;
}

#customContent {
    background-color: #ffffff;
    border-radius: 8px;
    margin: 30px auto;
    max-width: 750px;
    padding: 30px 20px;
    /* position: sticky; Removing this so more of the background image can show */
    height: auto;
    position: relative;
    z-index: 1;
}

/* Logos */
#customContent img.img-fluid {
    position: relative;
    display: block;
    width: auto;
    max-height: 170px;
    margin: 0 auto 2.5rem;
}

#customContent li {
    margin-bottom: .5rem;
}

.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

p.cta {
    color: #98002e;
    font-size: clamp(1.125rem, 0.992rem + 0.508vi, 1.5rem);
    line-height: 1.3;
    font-family: AvenirNextLTPro-Demi, sans-serif;
    font-weight: normal;
    font-style: normal;
    margin-top: 2rem;
    text-wrap: pretty;
}

p.note {
    color: #333333;
    font-size: .875rem;
    font-style: italic;
    padding-top: 2rem;
}

/* Form area */
.giftContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    min-height: 100vh;
    max-width: 1600px;
}
  
.customForm {
    flex: 1;
    max-width: 900px;
    height: auto;
    overflow:hidden;
    background-color: #ffffff;
}

.customFormMain {
    flex: 1;
    padding: 40px 50px 100px;
    max-width: 900px;
    height: auto;
    overflow:hidden;
    background-color: #ffffff;
}

/* giftFrequencySection*/

.fundBtn {
    background: #ffffff;
    color: #900021;
    border: solid 1px #900021;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 1.2rem;
    font-family: AvenirNextLTPro-Demi, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
}

.fundBtn:hover,
.fundBtn:focus {
    background: #ffd75f;
    color: #900021;
    border: solid 1px #ffd75f;
    transition: background 0.5 ease;
}

.fundBtn-primary {
    color: #ffffff;
    background: #900021;
    border: solid 1px #900021;
    padding: 0.5rem;
    font-size: 1.2rem;
    font-family: AvenirNextLTPro-Demi, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
}

.fundBtn-primary:hover,
.fundBtn-primary:focus {
    background: #900021;
    color: #ffffff;
    border: solid 1px #900021;
    transition: background 0.5 ease;
    box-shadow: inset 0 0 4px 2px #FFB71E;
}

.fundBtn-primary:disabled {
    opacity: 0.65;
    cursor: inherit;
}

.fundBtn:hover,
.fundBtn:focus {
    outline: none;
}

.oneTimeBtn {
    border-top-left-radius: 0.25rem;;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0.25rem;
    flex: 1;
}

.recurring-button {
    border-top-left-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0;
    flex: 1;
}

#contributionTotal {
    width: unset;
    display: inline-block;
}

.customForm {
    display: none;
}

.frequencyBtns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    margin-bottom: 10px;
}

.frequencyBtns .fundBtn,
.frequencyBtns .fundBtn-primary,
.fundTotalAmount {
    text-align: center;
    flex-grow: 1 ;
}

.suggested-giving-amounts {
    container-type: inline-size;
}

.amountBtns {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    gap: 10px;
    margin-bottom: 10px;
}

.amountBtns:has(button:nth-child(6)) .fundTotalAmount { 
    flex: 1 1 calc(33.333% - 10px); 
}

.amountBtns .fundTotalAmount {
    flex: 1 1 calc(25% - 10px);
    padding: 10px;
    text-align: center;
}


@container (max-width: 600px) {
    .amountBtns .fundTotalAmount  {
        flex: 1 1 calc(50% - 10px);
    }

    .amountBtns:has(button:nth-child(6)) .fundTotalAmount { 
        flex: 1 1 calc(50% - 10px); 
    }
}
  
@media screen and (max-width: 480px) {
    .amountBtns .fundTotalAmount  {
      flex: 1 1 100%;
    }

    .amountBtns:has(button:nth-child(6)) .fundTotalAmount { 
        flex: 1 1 100%; 
    }
}

#fundSelection {
    padding-top: 1rem;
}

#fundSelection label {
    margin-bottom: 0;
    padding-left: 2rem;
    text-indent: -1.75em;
}

ul.fund-options {
    list-style: none;
    padding-left: 0;
}

.fund-description {
    margin-left: 2.25rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.supportText {
    font-family: AvenirNextLTPro-Regular, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    /* display: block; */
    font-size: .9rem;
}

.fundBtn-primary .supportText {
    color:#ffd75f;
}


.giftAmountSection {
    /* container-type: inline-size; */
    background-color: #e1e1e1;
    padding: 18px 10px 10px;
    margin-top: 15px;
    width: 100%;
}

/* Remove arrows from input boxes */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.currencyinput {
    display: flex;
    /* flex-direction: wrap; */
    align-items: stretch;
    justify-content: stretch;
    align-content: center;
}

.currencyinput .labelText {
    font-family: AvenirNextLTPro-Demi, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    padding: 5px;
    text-wrap: nowrap;
    margin-right: 10px;
    width: fit-content;
    flex: 0 0 fit-content;
}

.currencyinput .inputGroup {
    border: 1px solid #999999;
    border-radius: 0.25rem;
    background-color: #ffffff;
    display: flex;
    width: 175px;
}

.currencyinputPrepend {
    font-family: AvenirNextLTPro-Demi, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1.25rem;
    background: #ffd75f;
    color: #900021;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: 0px;
    width: fit-content;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 fit-content;
}

.currencyinput input {
    border: none;
}

.currencyinput input[aria-invalid='true'] {
    border: 2px dotted #aa2415;
}

  .inputGroup:has(input[aria-invalid='true']) .currencyinputPrepend {
    background-color: #f7e4e3;
    color: #aa2415;
  }


@media screen and (min-width:800px) and (max-width: 1100px) { 
    .currencyinput {
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
        padding: 10px 15px;
    }

    .currencyinput .labelText {
        padding: 0;
        text-wrap: nowrap;
        margin-right: 0;
    }
}

@media screen and (min-width:100px) and (max-width: 525px) { 
    .currencyinput {
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
        padding: 10px 15px;
    }

    .currencyinput .labelText {
        padding: 0;
        text-wrap: nowrap;
        margin-right: 0;
    }
}

#contributionTotal-error {
    display: none !important;
    visibility: hidden !important;
}

.errorBox {
    display: block;
    background-color: #e1e1e1;
    padding: 0 0 10px;
}

.errorBox .fund-error-text {
    display: block;
    padding: 10px;
    background-color: #f7e4e3;
    color: #aa2415;
    /* font-style: italic;
    text-align: center; */
    margin: 0 10px;
    font-size: 1rem;
    line-height: 1.2;
    /* border-radius: 4px; */
    border-left: 3px solid #aa2415;
    font-family: AvenirNextLTPro-Bold, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    text-align: left;
}

#contributionTotal {
    font-family: AvenirNextLTPro-Demi, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1.25rem;
    padding-left: 5px;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    flex: 1;
}

.minimumMessage {
    display: block;
    font-family: AvenirNextLTPro-Regular, Avenir, "Avenir", Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: .8rem;
    margin-top: 3px;
}

#transactionfee_div {
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}

#transactionfee_div .form-group.checkbox {
    margin-left: 26px;
    line-height: 24px;
}

#transactionfee_div2 {
    padding-top: 1rem;
    padding-right: 1rem;
    border-top: 1px solid #ccc;
}

#transactionfee_div2 .form-group.checkbox {
    margin-left: 26px;
    line-height: 24px;
}

.label_check {
    margin-top: .25px;
    margin-bottom: 0;
}

.feeInfoButton {
    display: block;
    width: fit-content;
    block-size: fit-content;
    border: 0;
    color: #7a0019;
    background: transparent;
    text-decoration-line: underline;
    text-underline-offset: .25rem;
    text-decoration-thickness: .05rem;
    text-decoration-skip-ink: none;
    text-decoration-color: #7a0019;
    padding: 1px 1px;
    margin-bottom: 2rem;
    cursor: pointer;
}

div.grand-total-fee[style*="hidden"] {
    padding: 0;
}

div.grand-total-fee {
    display: block;
    font-family: AvenirNextLTPro-Demi;
    font-weight: normal;
    font-style: normal;
    padding: 0 15px;
    font-size: .9rem;
    background-color: #e1e1e1;
}

@media screen and (min-width:100px) and (max-width: 991px) { 
    .customContent .content-section {
        float: none;
        max-width: calc(100%-60px);
    }
}

#recurring-support-text,
#onetime-support-text {
    padding: 0 15px 15px;
    font-size: .9rem;
    background-color: #e1e1e1;
}

.totalsTable tr.grand-total-fee {
    font-size: 16px;
    line-height: 18px !important;
    font-family: AvenirNextLTPro-Demi;
    font-weight: normal;
    font-style: normal;
    width: 100%;
    padding: 7px 10px;
    max-width: 100%;
    color: #333333;
}

.hide {
    display: none;
}
