body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ecf0f1;
    padding-top: 50px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    width: calc(100% - 60px);
}

h1 {
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.number-display-container {
    text-align: center;
    margin-bottom: 15px;
}

.number-display-container p {
    font-size: 1.2em;
    margin: 0 0 5px 0;
    color: #bdc3c7;
}

.number-box {
    font-size: 3em;
    font-weight: bold;
    color: #2ecc71;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #27ae60;
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 100px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

canvas {
    border: 5px solid #8e44ad;
    border-radius: 10px;
    background-color: #1a222c;
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.8);
    display: block;
    touch-action: none; /* Disable touch gestures on canvas */
}

.button-group {
    display: flex;
    gap: 15px; /* Space between buttons */
    margin-top: 10px;
    margin-bottom: 10px;
}

.app-button {
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.app-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.app-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.app-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.start-button {
    background-color: #2ecc71; /* Green color for start */
}

.start-button:hover:not(:disabled) {
    background-color: #27ae60;
}

.stop-reset-button {
    background-color: #e74c3c; /* Red color for stop/reset */
}

.stop-reset-button:hover:not(:disabled) {
    background-color: #c0392b;
}