body {
    margin: 0;
    padding-top: 75px;
    background-color: black;
    color: rgb(215, 215, 215);
    font-family: "Roboto", Arial;
}

.page-content {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 75px);
    flex-wrap: nowrap;
    width: 100%;
}

.left-content, .right-content {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 75px;
    height: calc(100vh - 75px);
    z-index: 10;
}

.left-content { left: 0; }
.right-content { right: 0; }

.left-content img, .right-content img {
    height: 40vh;
    padding: 2.5vh 0;
    width: auto;
}

.middle-content {
    flex: 1;
    padding: 0;
    text-align: center;
    margin: 0 auto;
    max-width: calc(100vw - 40rem - 10vh);
    box-sizing: border-box;
    z-index: 5;
}

.page-title {
    padding-top: 0.2em;
    padding-bottom: 0;
    font-weight: bold;
    font-size: 5em;
    color: rgb(215, 215, 215);
    text-shadow: -3px -3px 10px rgb(70, 70, 70), 3px 3px 10px rgb(70, 70, 70);
}

.intro-text {
    margin: 0 auto;
    max-width: 800px;
}

.intro-lead {
    font-size: 2em;
    font-weight: bold;
    margin: 0.25em 0 0.5em 0;
    color: rgb(165, 165, 165);
}

.list-lead {
    margin: 0 0 0.1em 0;
    font-size: 1.25em;
}

.intro-text ol {
    margin: 0 0 0.7em 0;
    font-size: 1.25em;
    padding-left: 0;
    list-style-position: inside;
}

.clown-line {
    margin: 0.7em 0;
    font-size: 1.75em;
    font-weight: bold;
}

.qr-container {
    margin: 1.5em auto;
    max-width: 400px;
    text-align: center;
}

#qr-text {
    font-size: 1.25em;
    color: rgb(110, 110, 110);
    font-weight: bold;
    margin: 0 0 1em 0;
}

#qr-or {
    font-size: 1.25em;
    color: rgb(110, 110, 110);
    font-weight: bold;
    margin: 0.5em 0 0 0;
}

#qr-code {
    margin-top: 0;
}

.form-container {
    margin: 0 auto;
    max-width: 400px;
    text-align: center;
}

#gift-form {
    margin-top: 0.5em;
    background-color: rgb(70, 70, 70);
    border: 1px solid rgb(215, 215, 215);
    border-radius: 4px;
    padding: .75em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.form-container label {
    font-size: 1.25em;
    margin: 0;
    line-height: 1;
    display: block;
}

.amount-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

#connect-wallet {
    margin-bottom: 0;
}

#wallet-status {
    margin: 0 0 0.25em 0;
    color: rgb(215, 215, 215);
}

button {
    padding: 12px 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: rgb(215, 215, 215);
    color: black;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1.25em;
}

button:hover {
    background-color: rgb(70, 70, 70);
    color: rgb(215, 215, 215);
}

#connect-wallet {
    border-radius: 4px;
}

#generate-payment {
    padding: 8px 12px;
    font-size: 1.125em;
    border-radius: 4px;
}

#generate-payment:hover {
    background-color: rgb(110, 110, 110);
    color: rgb(215, 215, 215);
}

#use-qr-instead {
    margin-top: 10px;
    padding: 6px 12px;
    background-color: rgb(215, 215, 215);
    color: black;
    font-weight: bold;
    font-size: 1em;
    border-radius: 4px;
}

#use-qr-instead:hover {
    background-color: rgb(110, 110, 110);
    color: rgb(215, 215, 215);
}

input {
    padding: 8px 12px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: rgb(70, 70, 70);
    color: white;
    border: 1px solid rgb(215, 215, 215);
    font-size: 1em;
}

.amount-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    align-items: center;
}

.equals-sign {
    font-size: 1.25em;
    color: rgb(215, 215, 215);
}

.amount-input {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.amount-input input {
    padding-left: 24px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.amount-input:first-child input {
    padding-right: 12px;
}

.currency-prefix {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(215, 215, 215);
    font-size: 0.9em;
}

.currency-label {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(215, 215, 215);
    font-size: 0.9em;
}

.amount-input input::-webkit-inner-spin-button,
.amount-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#price-notice {
    font-size: 0.9em;
    color: rgb(150, 150, 150);
    margin: 0;
}

#payment-button {
    display: block;
    padding: 8px 12px;
    background-color: rgb(215, 215, 215);
    color: black;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.125em;
    margin: 0;
}

#payment-button:hover {
    background-color: rgb(110, 110, 110);
    color: rgb(215, 215, 215);
}

#wallet-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(70, 70, 70);
    padding: 20px;
    border: 1px solid rgb(215, 215, 215);
    z-index: 1000;
    box-shadow: -3px -3px 10px rgb(70, 70, 70), 3px 3px 10px rgb(70, 70, 70);
    border-radius: 8px;
    min-width: 400px;
}

#wallet-modal h3 {
    color: rgb(215, 215, 215);
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 2em;
}

#wallet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wallet-item {
    margin: 10px 0;
}

.wallet-item button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px;
    background-color: rgb(90, 90, 90);
    color: rgb(215, 215, 215);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 1em;
}

.wallet-item button:hover {
    background-color: rgb(110, 110, 110);
}

.wallet-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.wallet-name {
    flex: 1;
    font-size: 1.25em;
}

.wallet-detected {
    font-size: 1em;
    color: rgb(150, 150, 150);
}

#wallet-modal button:not(.wallet-item button) {
    width: auto;
    display: block;
    margin: 15px auto 0;
    padding: 10px 20px;
    background-color: rgb(90, 90, 90);
    color: rgb(215, 215, 215);
    font-weight: bold;
    font-size: 1em;
}

#wallet-modal button:not(.wallet-item button):hover {
    background-color: rgb(215, 215, 215);
    color: black;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media only screen and (max-width: 1175px) {
    .left-content,
    .right-content {
        display: none;
    }

    .middle-content {
        padding: 0 2vh;
        margin: 0 2vh;
        max-width: calc(100vw - 4vh);
    }
}

@media only screen and (max-width: 520px) {
    .page-title {
        font-size: 3em;
        padding-top: 0;
    }

    .intro-lead {
        font-size: 1.25em;
        margin: 0.75em 0;
    }
    
    .list-lead {
        font-size: 1em;
    }
    
    .intro-text ol {
        font-size: 1em;
    }
    
    .clown-line {
        font-size: 1.1em;
        padding-bottom: 0.25em;
    }

    .qr-container {
        margin: 0.75em auto;
    }

    #qr-text {
        font-size: 1em;
        margin: 0 0 0.5em 0;
    }

    #qr-or {
        font-size: 1em;
        color: rgb(110, 110, 110);
        font-weight: bold;
        margin: 0.25em 0 0 0;
    }

    #connect-wallet {
        padding: 10px 14px; 
        font-size: 1em; 
    }

    #gift-form {
        margin-top: 0.5em;
        padding: 10px; 
        gap: 6px; 
    }

    #wallet-status {
        font-size: 0.875em; 
        margin: 0 0 6px 0; 
    }

    .form-container label {
        font-size: 1em; 
    }

    .amount-group {
        gap: 6px; 
    }

    input {
        padding: 6px 10px; 
        font-size: 0.875em; 
    }

    .amount-container {
        gap: 6px; 
    }

    .amount-input input {
        padding-left: 20px; 
        padding-right: 32px; 
    }

    .amount-input:first-child input {
        padding-right: 10px; 
    }

    .amount-input:nth-child(3) input { 
        padding-left: 10px;
    }

    .currency-prefix, .currency-label {
        font-size: 0.75em; 
    }

    #price-notice {
        font-size: 0.75em; 
    }

    #generate-payment {
        padding: 6px 10px; 
        font-size: 0.875em; 
    }

    #payment-button {
        padding: 6px 10px; 
        font-size: 0.875em; 
    }

    #use-qr-instead {
        padding: 4px 10px;
        font-size: 0.875em; 
    }

    #wallet-modal {
        min-width: 300px; 
        padding: 15px; 
    }

    #wallet-modal h3 {
        font-size: 1.5em; 
    }

    .wallet-item button {
        padding: 8px; 
        font-size: 0.875em; 
    }

    .wallet-logo {
        width: 32px; 
        height: 32px; 
        margin-right: 8px; 
    }

    .wallet-name {
        font-size: 1em; 
    }

    .wallet-detected {
        font-size: 0.75em; 
    }

    #wallet-modal button:not(.wallet-item button) {
        padding: 8px 16px;
        font-size: 0.875em;
    }

}