@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html {
    background-color: #121212;
    color: white;
    font-family: "Roboto", sans-serif;
}

#root {
    display: block;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#root > :not(#map) {
    padding-left: 25px;
    padding-right: 25px;
}

h1 {
    font-weight: normal;
    font-size: 6.5em;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0;
}

a {
    color: #3291f5;
}

#countdown {
    text-align: center;
    font-size: 2em;
    font-weight: lighter;
    min-height: 2em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#refresher {
    color: #3291f5;
    cursor: pointer;
}

#refresher > svg:first-child,
#refresher.working > svg:last-child {
    display: inline-block;
}

#refresher > svg:last-child,
#refresher.working > svg:first-child {
    display: none;
}

#refresher.working {
    cursor: not-allowed;
}

#countdown > p {
    margin-top: 0;
}

h2, #countdown > p, .subtitle {
    font-weight: lighter;
}

.amount {
    font-size: 4em;
    display: flex;
    justify-content: center;
}

.subtitle {
    font-style: italic;
    margin-top: 5px;
}

.stat > p {
    font-size: 1.60em;
    text-align: center;
    font-weight: lighter;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: normal;
}

#stats {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 60px;
    margin-bottom: 75px;
    font-size: 125%;
}

#stats .donate-btn {
    font-size: 125%;
}

.stat {
    text-align: center;
    margin: 10px;
}

.amount.cash::before {
    content: "$";
}

#total {
    margin-bottom: 30px;
}

#total .amount {
    font-size: 6.5em;
    margin-bottom: 0;
}

.amount .number-loader {
    font-size: 75%;
}

.number-loader {
    margin: 0;
    margin-top: 30px;
}

.number-loader > svg:first-child {
    margin-left: 0;
}

.number-loader > svg:nth-child(2) {
    --fa-animation-delay: 100ms;
}

.number-loader > svg:nth-child(3) {
    --fa-animation-delay: 200ms;
}

.number-loader > svg:last-child {
    margin-right: 0;
}

.number-loader > svg {
    margin-left: 5px;
    margin-right: 5px;
}
 
.odometer {
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

.odometer.shown {
    visibility: visible;
    width: unset;
    height: unset;
    overflow: unset;
}

.odometer.shown > .odometer-inside > .odometer-digit {
    vertical-align: baseline;
}

#total span.subtitle {
    font-size: 5em;
    margin: 0;
}

#raceContainer {
    display: none;
}

#raceContainer.shown {
    display: inline-block;
}

#totalLeft {
    visibility: hidden;
}

#totalLeft.shown {
    visibility: visible;
}

.btn {
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 3px;
    padding: 12px 24px;
    border: 0;
    line-height: 1.15;
    font-size: 16px;
}

.btn:disabled {
    cursor: not-allowed;
    box-shadow: none !important;
}

.btn:hover {
    transition: all .1s ease;
}

.donate-btn {
    margin-top: 20px;
}

.donate-btn:hover,
.offer-btn.selected:hover {
    box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
}

.donate-btn,
.offer-btn.selected {
    color: #000021;
    background: #1de9b6;
}

.error-btn {
    background-color: #dc3545;
    color: white;
}

.error-btn:hover {
    box-shadow: 0 0 0 0 #fff, 0 0 0 3px #bd2130;
}

#pledgeType {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

#pledgeType>* {
    flex: 1;
    margin-left: 5px;
    margin-right: 5px;
}

.offer-btn {
    display: inline-block;
    flex: 1;
    margin: 5px;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 3px;
    padding: 12px 24px;
    border: 0;
    color: #3a4149;
    background: #e7ebee;
    line-height: 1.15;
    font-size: 16px;
}

.offer-btn:hover {
    transition: all .1s ease;
    box-shadow: 0 0 0 0 #fff, 0 0 0 3px #1de9b6;
}

.info {
    color: #3291f5;
    font-size: 90%;
    cursor: pointer;
    margin-left: 10px;
}

dialog {
    padding: 20px;
    border-radius: 5px;
    min-height: 10vh;
    min-width: 50vw;
    max-width: 750px;
    text-align: center;
    padding-top: 0;
    font-size: 1.5em;
}

dialog input {
    font-size: 0.85em;
}

dialog button.offer-btn {
    font-size: 1em;
}

.info-popup > p {
    text-align: left;
}

dialog::backdrop {
    background-color: #2121219c;
}

.offers {
    display: none;
}

.offers.shown {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

input:not([type="checkbox"]) {
    box-shadow: inset #abacaf 0 0 0 2px;
    border: 0;
    background: #fff;
    appearance: none;
    position: relative;
    border-radius: 3px;
    padding: 9px 12px;
    color: rgb(0, 0, 0);
    font-size: 16px;
    font-weight: 400;
    transition: all .2s ease;
}

input:disabled {
    color: #abacaf;
}

input:hover:not([type="checkbox"]) {
    box-shadow: 0 0 0 0 #fff inset, #1de9b6 0 0 0 2px;
}

input:focus:not([type="checkbox"]) {
    outline: 0;
    box-shadow: 0 0 0 0 #fff inset, #1de9b6 0 0 0 3px;
}

input:invalid {
    outline: 0;
    box-shadow: 0 0 0 0 #fff inset, #e9491d 0 0 0 3px;
}

#customAmount {
    display: none;
    margin: 10px;
}

#customAmount.shown {
    display: unset;
}

#employerMatchOptions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85em;
    height: 2em;
}

#percentMatch {
    margin-left: 10px;
}

#doesMatch {
    margin-right: 10px;
}

#summary {
    font-size: 2.25em;
}

#confirm {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 98%;
}

#finalDetails {
    text-align: left;
    margin-top: 20px;
}

#finalDetails .subtitle {
    font-size: 0.90em;
}

.closer {
    font-size: 40px;
    outline: none;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    display: block;
    margin-left: auto;
    max-height: 40px;
}

.closer:hover {
    color: #bb1515;
}

.overlay {
    display: none;
}

.overlay.shown {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: absolute;
    box-sizing: content-box;
    width: 100%;
    height: 100%;
    background-color: #121212cc;
    z-index: 1;
    top: 0;
    left: 0;
}

.overlay>* {
    margin-left: 10px;
    margin-right: 10px;
}

.overlay.shown>div {
    width: 25%;
}

.overlay.shown>div>svg {
    width: 100%;
    height: auto;
    color: white;
}

#doneOverlay, #errorOverlay {
    background-color: white;
    color: black;
    flex-direction: column;
}

#doneOverlay.shown>div {
    width: 25%;
    color: black;
}

#doneOverlay.shown>div>svg {
    width: 100%;
    height: auto;
    color: #1de9b6;
}

#errorOverlay.shown>div>svg {
    width: 100%;
    height: auto;
    color: darkred;
}

#donations,
#pledges {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    width: fit-content;
    font-size: 1.75em;
    font-weight: lighter;
}

#donations p,
#pledges p {
    margin-bottom: 10px;
    margin-top: 10px;
}

h2 {
    font-size: 5em;
    padding-bottom: 0;
    margin: 0;
    text-align: center;
}

.logo {
    height: 200px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 15px;
}

.logo>img {
    border-radius: 5px;
}

#map {
    height: 500px;
    border-radius: 5px;
    margin-bottom: 10px;
}

#legend {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 35px;
    margin-top: 15px;
}

#legend > span {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

#legend > span > span:first-child {
    background-color: #ffffff;
    margin-right: 5px;
    padding: 5px;
    border-radius: 5px;
}

.runner-marker {
    font-size: 40px;
    width: 40px;
    height: 30px;
    color: black;
}

.water-marker {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: darkblue;
}

.food-marker {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #b84b15;
}

.aid-marker {
    font-size: 30px;
    width: 40px;
    height: 30px;
    color: #E11B22;
    --fa-secondary-opacity: 1;
    --fa-secondary-color: white;
}

.turn-marker {
    font-size: 20px;
    width: 30px;
    height: 30px;
    color: #545454;
}

#newPledgeTitle {
    font-size: 2em;
    padding: 0;
    margin: 0;
}

#aboutRace {
    font-size: 2em;
}

#aboutRace p,
#aboutRace li {
    font-weight: lighter;
}