* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Prevent double-tap zoom */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Additional zoom prevention */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

.container {
    width: 100vw;
    height: 100vh;
    background: white;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bulldog-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #000080;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

h2 {
    text-align: center;
    color: #4169e1;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 400;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    flex: 1;
    align-content: center;
    margin: 20px 0;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    background: #ecf0f1;
    border-radius: 12px;
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
    border: 1px solid #bdc3c7;
}

.total-section {
    text-align: center;
    margin-top: auto;
    padding-bottom: 20px;
}

.price-btn {
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    height: 60px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

    /* Better touch targets for mobile */
    min-height: 60px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Individual button gradients */
.btn-1 {
    background: linear-gradient(135deg, #e91e63, #ffd54f);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.btn-2 {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-3a {
    background: linear-gradient(135deg, #9b59b6, #e74c3c);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.btn-3b {
    background: linear-gradient(135deg, #ffeed3, #e67e22);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.btn-5 {
    background: linear-gradient(135deg, #1abc9c, #d0f4ed);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}

.btn-6 {
    background: linear-gradient(135deg, #e8c5ff, #af5aff);
    box-shadow: 0 2px 8px rgba(21, 255, 0, 0.3);
}

.btn-8 {
    background: linear-gradient(135deg, #ffe7f4, #ffa2e2);
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
}

.btn-10 {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-12 {
    background: linear-gradient(135deg, #f6ff00, #40ff00);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.price-btn:active {
    transform: scale(0.95);
}

/* Hover states for each button */
.btn-1:hover {
    background: linear-gradient(135deg, #c2185b, #ffcc02);
}

.btn-2:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
}

.btn-3a:hover {
    background: linear-gradient(135deg, #8e44ad, #c0392b);
}

.btn-3b:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-5:hover {
    background: linear-gradient(135deg, #16a085, #138d75);
}

.btn-6:hover {
    background: linear-gradient(135deg, #2c3e50, #1b2631);
}

.btn-8:hover {
    background: linear-gradient(135deg, #7d3c98, #8e44ad);
}

.btn-10:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.btn-12:hover {
    background: linear-gradient(135deg, #1b2631, #2c3e50);
}

/* Special styling for the $1 button */
.price-btn.pink-yellow {
    background: linear-gradient(135deg, #e91e63, #ffd54f);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.price-btn.pink-yellow:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(233, 30, 99, 0.4);
}

.price-btn.pink-yellow:hover {
    background: linear-gradient(135deg, #c2185b, #ffcc02);
}

.total-section {
    text-align: center;
}

.total-display {
    background: #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    border: 3px solid #ff1493;
}

#total {
    color: #27ae60;
}

.reset-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Arial Black', 'Helvetica', sans-serif;
    letter-spacing: 1px;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;

    /* Bubble letter effects */
    text-shadow:
        2px 2px 0px #a93226,
        4px 4px 0px #922b21,
        6px 6px 0px #7b241c,
        8px 8px 15px rgba(0, 0, 0, 0.4);

    /* 3D bubble effect */
    border: 2px solid #ffffff;
    box-shadow:
        0 2px 8px rgba(231, 76, 60, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.reset-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(231, 76, 60, 0.4);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    h2 {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .bulldog-logo {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .price-btn {
        height: 55px;
        font-size: 16px;
    }

    .total-display {
        font-size: 22px;
        padding: 18px;
    }

    .reset-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
}

/* iPhone specific optimizations */
@media (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    .price-btn {
        height: 65px;
        font-size: 20px;
    }

    .total-display {
        font-size: 26px;
    }
}

/* iPad optimizations */
@media (min-width: 481px) and (max-width: 1024px) {
    .container {
        padding: 30px;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .bulldog-logo {
        width: 70px;
        height: 70px;
        top: 20px;
        right: 20px;
    }

    .price-grid {
        gap: 25px;
        margin: 30px 0;
    }

    .price-btn {
        height: 80px;
        font-size: 22px;
        border-radius: 12px;
    }

    .counter {
        font-size: 14px;
        margin-top: 8px;
        padding: 4px 12px;
        border-radius: 15px;
    }

    .total-display {
        font-size: 32px;
        padding: 30px;
        margin-bottom: 30px;
        border-radius: 12px;
        border: 4px solid #ff1493;
    }

    .reset-btn {
        font-size: 20px;
        padding: 20px 40px;
        min-height: 60px;
        border-radius: 12px;
    }
}

/* iPad Pro and larger tablets/desktops */
@media (min-width: 1025px) {
    .container {
        padding: 40px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 24px;
    }

    .bulldog-logo {
        width: 80px;
        height: 80px;
        top: 25px;
        right: 25px;
    }

    .price-grid {
        gap: 30px;
        margin: 40px 0;
    }

    .price-btn {
        height: 90px;
        font-size: 24px;
    }

    .counter {
        font-size: 16px;
        margin-top: 10px;
        padding: 6px 14px;
    }

    .total-display {
        font-size: 36px;
        padding: 35px;
        border: 5px solid #ff1493;
    }

    .reset-btn {
        font-size: 22px;
        padding: 25px 50px;
        min-height: 70px;
    }
}
