body {
    background-color: white;
    display: block;
    font-family: proxima-nova, Arial;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #292b2c;
}

*, *::before, *::after {
  box-sizing: border-box;
}

#registered-user-box {
    margin-left: 1em;
    line-height: 2em;
}

#new-user-box {
    margin-right: 1em;
}

#reset-password-box {
    margin-right: 0em;
}


#portal-footer > [class*="col-"] {
    margin-bottom: 0;
}

#header-funding, #msg-site-hosting {
    padding-left: 0px;
}

#dsigrants-logo {
    width: 155px;
    height: 43px;
    background-image: url('../images/dsigrants-svg-logo.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#msg-grant-process {
    padding-left: 0px;
    padding-right: 0px;
}

#reset-password-box > *, #registered-user-box > *, #new-user-box > * {
    padding-left: 1em;
    padding-right: 1em;
}

@media (min-width: 750px) {
    #portal-country-select {
        margin-left: 1em;
        margin-right: -1em;
    }
}

@media only screen and (min-width: 750px) {
    #registered-user-box {
        /* col-5 minus 15px for margin */
        width: calc(41.66% - 15px);
    }
    #new-user-box {
        /* col-5 minus 15px for margin */
        width: calc(41.66% - 18px);
    }
    
    #country-btn-select {
        width: 240px;
    }
    
    #country-list-parent {
        width: 240px;
    }
}


@media only screen and (max-width: 749px) {
    #lang-select > button {
        float: right;
        max-width: 10em;
    }

    #portal-heading  {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    #portal-country-select {
        /* Clear col-5 class */
        float: none !important;
        padding: 0 !important;
    }

    .portal-heading-text {
        float: left;
        margin-top: 1em;
        font-size: 1rem !important;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    #registered-user-box {
        margin-left: 0 !important;
    }
    #us-hosted {
        /* Size of footer + possible overflow wrap around */
        margin-bottom: 6em;
    }
}

.btn-select:hover, .btn-select:focus {
    border: 1px solid rgb(84, 86, 91);
}

.custom-field {
  position: relative;
  font-size: 14px;
  border-top: 20px solid transparent;
  margin-bottom: 5px;
  display: inline-block;
  --field-padding: 12px;
}

.custom-field input {
  -webkit-appearance: none;
  -ms-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: var(--field-padding);
  border-radius: 3px;
  width: 100%;
  height: 64px;
  font-size: 18px;
  padding-bottom: 0px;
  line-height: 3em;
  outline: none;
  background-color: #FFFFFF;
  vertical-align: bottom;
  border: 1px solid #ddd;
}

.custom-field.has-error > .placeholder {
    color: #c73442;
}

.custom-field.has-error > input {
    border-color: #c73442;
}


.custom-field .placeholder {
  font-size: 1em;
  position: absolute;
  left: var(--field-padding);
  width: calc(100% - (var(--field-padding) * 2));
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  top: 12px;
  line-height: 100%;
  transform: translateY(-50%);
  color: #aaa;
}


.custom-field input.dirty + .placeholder,
.custom-field input:focus + .placeholder,
.custom-field input:not(:placeholder-shown) + .placeholder {
  color: #22;
}

.custom-field.one input + .placeholder {
  left: 8px;
  padding: 0 5px;
}

.button {
    padding: 16px 32px 16px 32px;
    border: none;
    width: 14em;
    cursor: pointer;
}

.red-button {
    color: white;
    background-color: #c73442;
}


/*
 * Overrides the current button's css. This is meant to be a temporary
 * ui change to indicate a button is activated and working and cannot
 * be pressed again
 */
.disabled-button {
    color: black !important;
    background-color: rgb(198, 202, 198) !important;
    cursor: not-allowed !important;
}


.blue-button {
    color: white;
    background-color: rgb(32, 54, 98);
}

.gray-background {
    background-color: #fbfbfb;
}

.border-bottom {
    border-bottom: 1px solid #dbdada;
}


.gray-border {
    border: solid 1px gray;
}

.footer-text {
    color: gray;
}


.dsigrants-font-size {
    font-size: 1.125rem;
}

.dsigrants-heading-size {
    font-size: 2.5rem;
    font-weight: 550;
}

.dsigrants-sub-heading-size {
    font-size: 1.5rem;
    font-weight: 550;
}

.fancy-input {
  font-size: 14px;
  position: relative;
}

.fancy-input .placeholder {
  position: absolute;
  left: 12px;
  bottom: 50%;
  top: 22px;
  transform: translateY(-50%);
  width: calc(100% - 24px);
  color: #aaa;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fancy-input input {
  border: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #f2f2f2;
  padding: 12px;
  border-radius: 3px;
  width: 250px;
  font-size: 14px;
}

a:link, a:visited {
  color: #203662;
  cursor: pointer;
  text-decoration: underline;
/*   cursor: auto; */
}

a:link:active, a:visited:active {
  color: #203662;
}

.width100 {
    width: 100%;
}

.height100 {
    height: 100%;
}

.center {
    text-align: center;
}

.registered-user-form {
    height: 80%;
}

.user-create-account {
    text-align: center;
    height: 80%;
    vertical-align: middle;
    transform: translateY(30%);
}

.error-msg {
    color: #c73442;
}

.error-msg.hidden {
    visibility: hidden;
}

.no-display {
    display: none;
}

.white-bg {
    background-color: #FFFFFF;
}

input[type=submit] {
    cursor: pointer;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}
