html{
    touch-action: manipulation;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    cursor: pointer;
    background-image: url("subway.webp");
    background-size:cover;
    background-repeat:no-repeat;
    background-position: center;
}

/* Heading Styling */
h1 {
    color: #2c3e50;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
    text-align: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Count Display */
h2#count-el {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #c2545f;
    background-color: #ffffff;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

h2#count-el:hover {
    transform: translateY(-3px);
}

/* Buttons Common */
button#increment-btn,
button#save-btn {
    background-color: #8f5aad;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: "Quicksand", sans-serif;
    margin: 10px;
    width: fit-content;
}

button#increment-btn:hover,
button#save-btn:hover {
    background-color: #ab609a;
    transform: translateY(-2px);
}

button {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button#increment-btn:active,
button#save-btn:active {
    background-color: #ab609a;
    transform: translateY(0);
}

/* Save Paragraph */
p#save-el {
    color: #056059;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-top: 20px;
    text-align: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    word-wrap: break-word;
}

/* Responsive Layout */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    button#increment-btn,
    button#save-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    h2#count-el {
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
        padding: 8px 12px;
    }

    h2#count-el {
        font-size: 2.5rem;
        padding: 12px 20px;
    }

    button#increment-btn,
    button#save-btn {
        width: 50%;
        font-size: 0.95rem;
    }

    p#save-el {
        font-size: 1rem;
        padding: 8px 15px;
    }
}
