:root {
    --white: #eeeeee;
    --black: #121212;
}

body {
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Courier New', Courier, monospace; 
}

.receipt {
    background: var(--black);
    border: 2px solid var(--white);
    width: 320px;
    padding: 30px;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: printOut 1s ease-out;
}

header {
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 2px;
}

header p {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.divider {
    border-top: 2px dashed var(--white);
    margin: 20px 0;
}

.line-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 10px;
    border: 1px solid var(--white);
    padding: 10px 5px;
}

.receipt-footer {
    text-align: center;
    margin-top: 30px;
}

.barcode {
    font-size: 24px;
    letter-spacing: -2px;
    margin: 10px 0;
}

/* Day 33 Animation: Slides the receipt up like it's coming out of a machine */
@keyframes printOut {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}