body {
    font: 1.2em;
    font-family: "Hiragino Kaku Gothic Pro", Osaka, Meiryo, "MS PGothic", Arial, Helvetica, sans-serif;
    max-width: 43em;
    margin: auto;
    background-image: linear-gradient(#d9f0d6, #f4ffee, #f4ffee, white, white);
    background-attachment: fixed;
    padding-bottom: 1.5em;
}

.hidden {
    display: none !important;
}

img {
    display: block;
    margin: auto;
    max-width: 20em;
    border: 1px solid #777;
}

img:hover {
    border: 1px solid purple;
}

a {
    color: blue;
    text-decoration: underline;
}

a:hover {
    color: red;
    text-decoration: underline;
}

p {
    margin: 0.5em;
    margin-left: 1em;
    color: black;
}

h2 {
    margin-top: 0.001em;
    margin-bottom: 0.001em;
    margin-left: 0.25em;
    font-size: 1.1em;
}

h3 {
    margin-left: 0.3em;
    font-size: 1em;
    margin-top: 0.3em;
    margin-bottom: 0.1em;
    text-decoration: underline;
    text-align: center;
    font-weight: bold;
}

hr {
    border-color: #98025529;
}

.m_box {
    border: 1px solid #2f4d0c;
    margin: 1em;
    background-color: white;
}

.m_box_red {
    border: 1px solid #800000;
    margin: 1em;
    background-color: #ffffee;
}

.m_box_bar {
    background: #2f4d0c;
    color: white;
}

.m_box_bar_red {
    background: #800000;
    color: white;
}

.box {
    border: 1px solid #2f4d0c;
    color: #2f4d0c;
    margin: 1em;
    background-color: white;
}

.box_bar {
    background: #b9d9b7;
    color: #2f4d0c;
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

.pill-links a {
    display: inline-block;
    margin: 0;
    border: 1px solid #2f4d0c;
    padding: 6px 10px;
    background: white;
    color: #2f4d0c;
    text-decoration: none;
}

.wallet-slot {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.pill-wallet-btn,
.wallet-address-btn,
.wallet-menu button {
    display: inline-block;
    margin: 0;
    border: 1px solid #2f4d0c;
    padding: 6px 10px;
    background: #b9d9b7;
    color: #2f4d0c;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.pill-wallet-btn:hover,
.wallet-address-btn:hover,
.wallet-menu button:hover {
    color: red;
    border-color: red;
}

.wallet-menu-wrap {
    position: relative;
    display: inline-flex;
}

.wallet-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #2f4d0c;
    z-index: 20;
    min-width: 160px;
}

.wallet-menu button {
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #d6e4d5;
    text-align: left;
}

.wallet-menu button:last-child {
    border-bottom: 0;
}

.pill-links a:hover {
    color: red;
    border-color: red;
}

.progress-wrap {
    margin: 1em;
    border: 1px solid #2f4d0c;
    background: #f4ffee;
    height: 1.35em;
    position: relative;
}

.progress-fill {
    background: #b9d9b7;
    height: 100%;
    width: 0;
}

.progress-label {
    text-align: center;
    font-size: 0.9em;
    color: #2f4d0c;
}

.eth-progress-label {
    text-align: center;
    margin: 0.7em 0 0.4em;
    font-weight: bold;
    color: #2f4d0c;
}

.latest-mint-card {
    margin: 0.75em auto 0.45em;
    width: fit-content;
    border: 1px solid #2f4d0c;
    background: white;
    padding: 0.5em 0.5em 0.35em;
    text-align: center;
}

.latest-mint-image {
    width: 320px;
    height: 320px;
    max-width: 320px;
    border: 1px solid #2f4d0c;
    background: white;
    image-rendering: pixelated;
}

.latest-mint-caption {
    margin: 0.4em 0 0;
    color: #2f4d0c;
    font-size: 0.88em;
}

.mint-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    margin: 0.9em 0 1em;
}

.mint-controls-center {
    display: grid;
    grid-template-columns: 80px auto 80px;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    width: fit-content;
    margin: 0.9em auto 0.35em;
}

.mint-qty-stepper-horizontal {
    display: inline-flex;
    flex-direction: row;
    border: 1px solid #2f4d0c;
    background: #fff;
}

.mint-qty-step-btn-side {
    border: 0;
    border-right: 1px solid #2f4d0c;
    background: #fff;
    color: #2f4d0c;
    width: 26px;
    height: 40px;
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
}

.mint-qty-step-btn-side:last-child {
    border-right: 0;
    border-left: 1px solid #2f4d0c;
}

.mint-qty-value-square {
    width: 40px;
    height: 40px;
    text-align: center;
    font-weight: bold;
    color: #2f4d0c;
    line-height: 40px;
}

.mint-controls-spacer {
    width: 80px;
    height: 1px;
}

.mint-button {
    display: inline-block;
    border: 1px solid #2f4d0c;
    height: 40px;
    min-width: 130px;
    padding: 0 1.45em;
    background: #b9d9b7;
    color: #2f4d0c;
    text-decoration: none;
    font-weight: bold;
    font: inherit;
    cursor: pointer;
}

.mint-status {
    width: 100%;
    margin-top: 0.55em;
    margin-left: 0;
    text-align: center;
    font-size: 0.8em;
    color: #2f4d0c;
}

.mint-button:hover {
    background: #9db89b;
    color: #1d3007;
    border-color: #1d3007;
}

.mint-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #d7e3d6;
    color: #5c6e58;
    border-color: #7f927b;
}

.footer-box p {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

.footer-links {
    text-align: center;
    padding: 0.45em 0.2em;
    border-top: 1px solid #d6e4d5;
    border-bottom: 1px solid #d6e4d5;
}

.footer-note {
    text-align: center;
    color: #2f4d0c;
}

@media only screen and (max-width: 600px) {
    body {
        width: 100%;
    }

    img {
        width: 100%;
        max-width: 100%;
    }

    .latest-mint-image {
        width: min(88vw, 320px);
        height: min(88vw, 320px);
        max-width: min(88vw, 320px);
    }
}
