body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    min-height: 100vh;
    height: auto;
    background-color: #f07489;
    margin: 0px;
    overflow-x: hidden;
}

#chocolate-grid {
    display: grid;
    grid-template-columns: repeat(7, 56px);
    grid-template-rows: repeat(7, 56px);
    gap: 10px;
    padding: 24px;
    background: #050505;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 22px 35px rgba(15, 6, 9, 0.45);
    backdrop-filter: blur(1px);
    margin-bottom: 30px;
}

#coupon {
    display: none;
    background: linear-gradient(135deg, #ffc0cb 0%, #ffb3c1 100%);
    border: 3px dashed #d6336c;
    border-radius: 12px;
    padding: 30px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.4);
    z-index: 2000;
    font-family: 'Arial', sans-serif;
    margin-bottom: 30px;
}

#coupon h1 {
    font-size: 28px;
    font-weight: bold;
    color: #d6336c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-cell {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.6),
                inset 0 -2px 4px rgba(255, 255, 255, 0.05),
                0 4px 8px rgba(10, 3, 5, 0.4);
    transition: box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.grid-cell:hover {
    box-shadow: inset 0 7px 14px rgba(0, 0, 0, 0.65),
                inset 0 -2px 4px rgba(255, 255, 255, 0.08),
                0 10px 16px rgba(10, 3, 5, 0.45);
}

.grid-cell.selected {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 7px 14px rgba(0, 0, 0, 0.65),
                inset 0 -2px 4px rgba(255, 255, 255, 0.12),
                0 0 0 2px rgba(255, 255, 255, 0.08);
}

#header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin: 0px;
}

#valentine-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    z-index: 1000;
    pointer-events: auto;
    padding: 0;
}

#valentines-box {
    background-color: #ffc0cb;
    border: 1px solid #ffadb9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.06);
    padding:20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    color: #333;
}

h1 {
    font-family: 'Arial', sans-serif;
    color: #ffc0cb;
}

#valentines-box h1 {
    font-size: 24px;
    font-weight: bold;
    color: #d6336c; /* A rich Valentine's Day pink */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

#valentines-box h2 {
    font-size: 16px;
    font-weight: bold;
    color: #d6336c; /* A rich Valentine's Day pink */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.pushable {
    background: hsl(340deg 100% 32%);
    border-radius: 12px;
    border: none;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
}

.front {
    display: block;
    padding: 12px 42px;
    border-radius: 12px;
    font-size: 1.25rem;
    background: hsl(345deg 100% 47%);
    color: white;
    transform: translateY(-6px);
}

.pushable:active .front {
    transform: translateY(-2px);
}

h2 {
    font-family: 'Arial', sans-serif;
    color: #ffc0cb;
}

@media (max-width: 768px) {
    #chocolate-grid {
        grid-template-columns: repeat(7, 42px);
        grid-template-rows: repeat(7, 42px);
        gap: 8px;
        padding: 18px;
    }

    #coupon {
        width: 80%;
    }

    .grid-cell {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    #valentine-container {
        width: 95%;
        bottom: 5px; /* Move slightly lower for mobile */
    }

    #valentines-box {
        max-width: 300px; /* Ensures it doesn’t take too much space on small screens */
    }

    #valentines-box h1 {
        font-size: 18px;
    }

    #valentines-box h2 {
        font-size: 12px;
    }

    .pushable {
        max-width: 250px;
    }

    .front {
        font-size: 0.9rem;
        padding: 10px 30px;
    }
}