* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding-top: 20px;
}

.header {
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    margin-bottom: 10px;
}

.logo h1 {
    color: #333;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.welcome-text h2 {
    color: #555;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.version-info {
    color: #888;
    font-size: 1em;
    font-style: italic;
    margin-top: 5px;
}

.shake-counter {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.shake-counter h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.shake-info {
    font-size: 1.1em;
    margin-bottom: 8px;
}

.shake-info span:first-child {
    color: #555;
    font-weight: bold;
}

.shake-info span:last-child {
    color: #ff9500;
    font-weight: bold;
    font-size: 1.2em;
}

.shake-status {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.shake-status.active {
    color: #28a745;
    font-weight: bold;
}

.shake-status.detected {
    color: #ff9500;
    font-weight: bold;
    animation: shakeAnimation 0.5s ease-in-out;
}

@keyframes shakeAnimation {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.calculator {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.calculator-display {
    background-color: #333;
    color: white;
    text-align: right;
    padding: 20px;
    font-size: 2em;
    height: 80px;
    overflow: hidden;
}

#display {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calculator-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1px;
    background-color: #ddd;
}

button {
    border: none;
    background-color: white;
    padding: 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #f0f0f0;
}

.operator {
    background-color: #f8f8f8;
    font-weight: bold;
}

button[data-action="calculate"] {
    background-color: #ff9500;
    color: white;
    grid-row: span 1;
    grid-column: span 2;
}

button[data-action="calculate"]:hover {
    background-color: #e68600;
}

