body {
    margin: 0;
    font-family: 'Menlo', sans-serif;
    background-image: linear-gradient(to bottom, rgb(255, 255, 255), rgb(0, 60, 255));
    color: #236cff;
    height: 300vh;
    /* extra scroll space for animation */
    overflow-x: hidden;
}

.price {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: #51ff00;
    font-weight: bold;
}

.store {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
    perspective: 1200px;
    flex-wrap: wrap;  /* add this */
}

input, select, textarea {
    font-size: 16px;
}

.header {
    flex-basis: 100%;   /* takes full width, forces a new row below it */
    align-self: flex-start;
    padding: 1.5rem;
    border-radius: 12px;
    border-style: dashed;
    width: 100%;
    box-sizing: border-box;   /* so padding doesn't cause overflow */
    /* background-color: #e2e6003f; */
}

.product {
    flex: 1.5;
    /* flex: 1.0; */
    /* bigger proportion than checkout */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product img {
    width: 90%;
    transform-origin: center;
    transition: transform 0.1s linear;
    will-change: transform;
    border-radius: 8px;
}

.glow {
    font-size: 80px;
    color: #fff;
    text-align: center;
    -webkit-animation: glow 1s ease-in-out infinite alternate;
    -moz-animation: glow 1s ease-in-out infinite alternate;
    animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #ff4da6, 0 0 40px #ff4da6, 0 0 50px #ff4da6, 0 0 60px #ff4da6, 0 0 70px #ff4da6, 0 0 80px #ff4da6;
    }
}

.checkout {
    position: relative;
    /* make this the reference for the scissors */
    flex: 1;

    padding: 1.5rem;
    border-radius: 12px;
    border-style: dashed;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* scissors image */
.checkout::before {
    content: "";
    position: absolute;
    top: -25px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: url('./assets/scissors_small.png') no-repeat center center;
    background-size: contain;
    pointer-events: none;
}

.checkout h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-align: center;
}

.buy-button {
    background: linear-gradient(145deg, #0070ba, #005c99);
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.buy-button:hover {
    transform: translateY(-3px) scale(1.05) rotateX(5deg);
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.6);
    background: linear-gradient(145deg, #0090ff, #005c99);
}


h1 {
    text-decoration-line: underline;
}

@media (max-width: 768px) {
    .store {
        flex-direction: column;
    }

    .product img {
        width: 100%;
    }

    .checkout {
        width: 100%;
        box-sizing: border-box;   /* padding stays inside the width */
        margin-top: 1rem;
        overflow: visible;        /* don't clip the scissors */
    }
}