html {
    height: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    min-width: 0;
}

h1 {
    margin-bottom: 2em;
}

#orderForm h2 {
    margin-top: 2em;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text-color);
    white-space: break-spaces;
}


@media (max-width: 1500px) {
    #orderForm {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .left-side, .right-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        align-items: center;
        justify-content: center;
        height: auto;
        padding-left: 10vw;
        padding-right: 10vw;
        padding-bottom: 10em;
    }

    .right-side{
        justify-content: flex-start;
        background-color: var(--card-color);
        height: auto;
        overflow-x: hidden;
        padding-bottom: 2em;
    }


    .cart {
        max-height: 50vh;
        min-width: 0;
        width: 100%;
        height: auto;
        overflow-y: auto;
        padding-left: 2em;
        padding-right: 2em;
    }
}

@media (min-width: 1500px) {
    #orderForm {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-around;
        width: 100%;
    }

    .right-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--card-color);
        width: 50%;
        height: 100vh;
        background-color: var(--card-color);
        padding-left: 2.5em;
        padding-right: 2.5em;
    }

    .left-side {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 50%;
        height: 100%;
        padding-left: 2.5em;
        padding-right: 2.5em;
        padding-bottom: 5em;
    }

    .cart {
        max-height: 60vh;
    }
}

.form-group{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 1em;
    gap: 1em;
    min-width: 0;
    flex-wrap: wrap;
}

.form-group_download{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.input_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    height: 100%;
}

h2 {
    width: 100%;
    text-align: left;
    margin-bottom: 1em;
    font-size: 1.25em;
    font-weight: 550;
}

.note {
    width: 100%;
    text-align: left;
    margin-bottom: 1em;
    font-size: 0.75em;
    font-weight: 300;
    color: var(--text-color);
    word-break: break-word;
}

.standard_input {
    width: 100%;
    min-width: 0;
    height: 3em;
    font-size: 1em;
    border-radius: 0.5em;
    border: 1px solid var(--card-color);
    padding-left: 0.5em;
    padding-right: 0.5em;
    -webkit-appearance: none;
    appearance: none;
}

#additional_info {
    width: 100%;
    min-width: 0;
    height: 6em;
    font-size: 1em;
    border-radius: 0.5em;
    border: 1px solid var(--card-color);
    padding-left: 0.5em;
    padding-right: 0.5em;
    -webkit-appearance: none;
    appearance: none;
    resize: none;
}

.button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border: 2px solid transparent;
    color: var(--text-color);
    font-size: 1em;
    font-weight: 700;
    width: 100%;
    height: 3em;
    border-radius: 0.7em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.25s;
}

.button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: 0.25s;
}

.download_button p, #bank_transfer p {
    display: none;
}

#wetransfer p {
    color: #FFF;
}

#onedrive p {
    color: var(--text-color);
}

.download_button svg {
    display: block;
    width: 2em;
    height: 2em;
}
s

#bank_transfer svg {
    display: block;
}

.download_button:hover svg, #bank_transfer:hover svg {
    display: none;
}

.download_button:hover p, #bank_transfer:hover p {
    display: block;
    margin: 0;
}

#paypal {
    background-color: #5CC7F6;
}


#wetransfer {
    background-color: #2D82E0;
}

.selected_button {
    border: 3px solid var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.checkbox-label {
    width: 100%;
}

#submit {
    margin-top: 4em;
    background-color: var(--text-color);
    color: var(--background-color);
}

#submit:hover{
    background-color: var(--confirm-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}


/* CART */
.cart{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 100%;
    padding-top: 2em;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: auto;
    scrollbar-color: var(--text-color) var(--background-color);
}

.cart-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    width: 70%;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.cart-item-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3em;
}

.ItemRow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ItemColumn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.ItemImage {
    width: 4em;
    height: 5.5em;
    border: 0.1em solid var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ItemTitle {
    font-size: 1em;
    font-weight: normal;
}

.ItemPrice {
    font-size: 0.75em;
    color: var(--text-color);
    font-weight: 100;
}

.ItemID {
    font-size: 0.75em;
    color: var(--text-color);
    font-weight: 100;
}


.item-options {
    font-size: 1em;
    width: auto;
}

.add-to-cart{
    background-color: var(--background-color);
    border: 1px solid transparent;
    color: var(--card-color);
    margin-left: auto;
    font-size: 1em;
    font-weight: 700;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 25%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart:hover{
    background-color: var(--cancel-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

#subtotal {
    border-top: 2px solid var(--text-color);
    padding-top: 1em;
    text-align: right;
}

/* Inline messages (replaces browser alerts) */
.checkout-notice {
    width: 100%;
    max-width: 60em;
    margin: 0 auto 1.5em auto;
    padding: 1em 1.25em;
    border-radius: 0.7em;
    border: 1px solid var(--card-color);
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.35;
    white-space: pre-line;
}

.checkout-notice--error {
    border-color: var(--cancel-color);
    background-color: rgba(255, 111, 99, 0.12);
}

.checkout-notice--success {
    border-color: var(--confirm-color);
    background-color: rgba(5, 255, 109, 0.10);
}

.checkout-notice--info {
    border-color: var(--marked-color);
    background-color: rgba(0, 117, 255, 0.08);
}
