/* Importing a retro-style font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background-color: #0a0a0a; /* Dark background for a retro look */
    color: #00ff00; /* Bright green typical of old CRT monitors */
    font-family: 'Press Start 2P', cursive; /* Pixel art-style font */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Ensures no scroll bars appear when not needed */
}

.container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    width: 90%; /* Responsive width */
    max-width: 600px; /* Maximum width */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    animation: rainbowShadow 3s infinite linear;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Align children center horizontally */
}

@keyframes rainbowShadow {
    0%   { box-shadow: 0 0 15px rgba(255, 0, 0, 0.8); }
    17%  { box-shadow: 0 0 15px rgba(255, 165, 0, 0.8); }
    34%  { box-shadow: 0 0 15px rgba(255, 255, 0, 0.8); }
    51%  { box-shadow: 0 0 15px rgba(0, 128, 0, 0.8); }
    68%  { box-shadow: 0 0 15px rgba(0, 0, 255, 0.8); }
    85%  { box-shadow: 0 0 15px rgba(75, 0, 130, 0.8); }
    100% { box-shadow: 0 0 15px rgba(238, 130, 238, 0.8); }
}

.counter-container {
    display: flex;
    align-items: center; /* Center items vertically within the container */
    justify-content: center; /* Center items horizontally */
    width: 100%; /* Take full width to center content */
}

button {
    font-family: 'Press Start 2P', cursive;
    background-color: #333333;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555555; /* Color change on hover */
}

span#counter-value {
    color: #ffffff;
    padding: 10px 15px;
    font-size: 20px;
    margin: 0 10px; /* Ensure space around the counter value for clarity */
}

@media (max-width: 480px) {
    .container, .counter-container, button, span#counter-value {
        padding: 10px;
        font-size: 16px; /* Smaller font size for better visibility on small devices */
    }
    button {
        width: auto; /* Allow button width to adjust based on content */
        padding: 12px 20px; /* Larger touch targets for mobile */
    }
    h1, span#counter-value {
        font-size: 18px; /* Adjust font size for readability */
    }
}
