body {
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
    font-family: Arial, Helvetica, sans-serif;
    color: #204000;
    border: solid 3px #204000;
    border-radius: 2px;
}
a {
    color: inherit; /* blue colors for links too */
    text-decoration: inherit; /* no underline */
}

.content {
    margin-top: auto;
    margin-bottom: auto;
}

.row {
    display: flex;
    align-items: center;
}
.even {
    justify-content: space-evenly;
}
.grid-row-2 {
    display: grid;
    grid-template-columns: 50% 50%;
    font-weight: bold;
}
.small {
    font-size: 0.5em;
    font-weight: normal;
}
.right {
}
.login-container {
    display: flex;
    height: 80%;
    justify-content: center;
    align-items: center;
}

#controls {
    margin-top: 5em;
}
#controls label {
    margin: .7em auto;
    font-size: 1.5em;
}
#controls button {
    font-size: 2em;
    margin: auto;
    height: 2em;
    width: 2em;
    background-color: #204000;
    display: inline-block;
}
#button-start {
    border-radius: 50%;
}
#button-stop {
    border-radius: 0;
}

#results {
    position: relative;
    height: 13.3em;
    border: 3px solid #204000;
    border-radius: 20px;
    margin: 3em 3em;
    overflow: auto;
}
.results-list {
    padding: 2em .5em;
}
.result {
    font-size: 1.2em;
    display: grid;
    grid-template-columns: 30% 50% 20%;
    margin: 0 1em;
}
.result + .result {
    margin-top: 1.5em;
}
.result-key {
    font-weight: bold;
}
.result-graph {
    margin: auto;
    height: 1.2em;
    background-color: #204000;
    border-radius: 1em;
    border: 2px solid #204000;
    display: inline-block;
    transform: translateY(.1em);
    transition: all 1s ease-in-out;
}
.result-confidence {
    text-align: right;
}
.result-message {
    font-size: 1.5em;
    text-align: center;
    place-content: center;
    height: 100%;
}

#logo {
}

#token-controls {
    height: 20em;
    display: flex;
    flex-direction: column;
    padding: 0 3.5em;
    margin: 1em 0 3em 0;
}
#paypal-button-container {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin: auto;
}
.purchase-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1em;
    cursor: pointer;
}
.token-purchase-amount {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: .2em;
}
.token-purchase-price {
    margin-bottom: .2em;
}

.token-count-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.token-count {
    font-size: 5em;
    font-weight: bold;
    /*margin-bottom: .2em;*/
}
.token-count-message {
    font-size: 1.5em;
    text-align: center;
    place-content: center;
    margin: 1em;
}

#footer-controls {
    padding: 0 2em;
    font-size: 2.2em;
    margin-bottom: .5em;
}
#footer-controls > .grid-row-2 + .grid-row-2 {
    margin-top: 2em;
}
.faded {
    color: gray;
    transition: all ease-in .2s;
}

img {
    max-width: 100%;
}

.spinner-container {
    position: absolute; /* or absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Optional overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 4em;
    height: 4em;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}