:root {
    --main-white: #F1FAEE;
    --main-theme: #1D3557;
    --secondary-theme: #E63946;
    --lighter-theme: #457B9D;
    --lightest-theme: #A8DADC;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
}

.main-content-container {
    min-height: 100vh;
    background-color: var(--lightest-theme);
    display: flex;
    justify-content: center;
    align-items: center;
}

.credit-card-checkout-container {
    margin: 2rem 0;
    background-color: var(--main-white);
    border: none;
    border-radius: 1rem;
    max-width: 80vw;
    display: flex;
    overflow: hidden;
}


.credit-card-checkout-left-panel {
    padding: 3rem;
}

.credit-card-checkout-header {
    margin-bottom: 2rem;
}

.credit-card-checkout-header h2 {
    font-weight: bold;
    font-size: 2rem;
    margin: 0.5rem 0;
}

.credit-card-checkout-header p {
    color: gray;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.credit-card-checkout-form-input-container {
    display: grid;
    grid-template-columns: 1fr auto;
}

.card-details-input-box-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-details-input-box {
    margin-bottom: 1rem;
}

.card-details-input-box img {
    height: 1.8rem;
    filter: invert(16%) sepia(9%) saturate(4794%) hue-rotate(180deg) brightness(96%) contrast(89%);
}

.card-details-input-box h2 {
    color: var(--main-theme);
    font-weight: bold;
    margin-left: 0.5rem;
}

.card-details-input-box input {
    font-size: 1rem;
    padding: 0.3rem;
    border: 2px solid var(--lightest-theme);
    border-radius: 0.5rem;
    outline: none;
    background: transparent;
    color: black;
    opacity: 1;
}

.cardholder-name-box {
    grid-area: 1 / 1 / 2 / 3;
}

.cardholder-name-box input {
    box-sizing: border-box;
    width: 100%;
}

.card-number-box {
    grid-area: 2 / 1 / 3 / 3;
}

.card-number-box input {
    box-sizing: border-box;
    width: 100%;
    font-family: 'Roboto Mono', monospace;
}

.card-expiry-box {
    grid-area: 3 / 1 / 4 / 2;
}

.card-expiry-box input {
    font-family: 'Roboto Mono', monospace;
    width: 1.2rem;
}

.card-cvc-box {
    grid-area: 3 / 2 / 4 / 3;
}

.card-cvc-box input {
    width: 2rem;
    font-family: 'Roboto Mono', monospace;
}

.pay-button-box {
    margin-top: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.pay-button-box button {
    font-size: 1.5rem;
    border: none;
    background-color: var(--lighter-theme);
    color: var(--main-white);
    padding: 1rem 2rem;
    border-radius: 1rem;
}

.pay-button-box button:hover {
    background-color: var(--main-theme);
}

.credit-card-checkout-right-panel {
    background-color: var(--secondary-theme);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.credit-card-checkout-right-panel h2 {
    padding-top: 3rem;
    padding-left: 3rem;
    padding-right: 3rem;
    font-size: 2rem;
    color: var(--main-white);
}

.credit-card-checkout-right-panel h3 {
    margin-top: 2rem;
    font-size: 3rem;
    color: var(--main-white);
    margin-bottom: 2rem;
}

.credit-card-checkout-right-panel img {
    margin-top: auto;
    width: 10rem;
    position: relative;
    margin-bottom: -6rem;
}

footer {
    padding: 30px;
    color: white;
    background-color: black;
    font-size: 1rem;
    text-align: center;
}

@media (max-width: 800px) {
    .credit-card-checkout-container {
        flex-direction: column;
    }

    .credit-card-checkout-header h2 {
        text-align: center;
    }

    .credit-card-checkout-header p {
        text-align: center;
    }

    .credit-card-checkout-form-input-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .cardholder-name-box {
        grid-area: 1 / 1 / 2 / 2;
    }

    .card-number-box {
        grid-area: 2 / 1 / 3 / 2;
    }


    .card-expiry-box {
        grid-area: 3 / 1 / 4 / 2;
    }

    .card-expiry-box input {
        font-family: 'Roboto Mono', monospace;
        width: 1.2rem;
    }

    .card-cvc-box {
        grid-area: 4 / 1 / 5 / 2;
    }

    .card-details-input-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cardholder-name-box, .cardholder-name-box input, .card-number-box, .card-number-box input, .card-cvc-box, .card-cvc-box input, .card-expiry-box, .card-expiry-container {
        width: 100%;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .card-expiry-box input {
        box-sizing: border-box;
        width: calc(50% - .6rem);
        text-align: center;
    }
}