body {
    background-color: #121212;
    color: #ffffff;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 100%;
}

h1 {
    letter-spacing: 2px;
    color: #4caf50;
}

.battery-container {
    width: 200px;
    height: 80px;
    border: 4px solid #fff;
    border-radius: 10px;
    position: relative;
    margin: 40px 0;
    padding: 4px;
    box-sizing: border-box;
}

.battery-container::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 20px;
    width: 8px;
    height: 32px;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.battery-fill {
    height: 100%;
    background-color: #4caf50;
    border-radius: 4px;
    width: 0%; /* Set via JS */
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    width: 150px;
}

button {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #3c3c3c;
}

.attempts-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.history-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.history-row {
    display: grid;
    grid-template-columns: 1fr 50px 2fr;
    gap: 10px;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    align-items: center;
}

.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #2c2c2c;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}