body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

#app {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: #007BFF;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

label {
    display: block;
    margin-top: 20px;
    font-size: 16px;
}

.tempo-controls {
    margin: 20px 0;
}

.tempo-input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#tempoInput {
    width: 60px;
    padding: 5px;
    text-align: center;
    font-size: 16px;
}

#increaseTempo, #decreaseTempo {
    padding: 5px 15px;
    font-size: 18px;
    font-weight: bold;
}

input[type="range"] {
    width: 80%;
    margin: 10px 0;
}

.latency-display {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.latency-display p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

#latencyDisplay {
    font-weight: bold;
    color: #007BFF;
}

.settings-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.settings-icon:hover {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
}

.setting-item {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#inputKey {
    padding: 8px;
    font-size: 16px;
    text-align: center;
    background-color: #f5f5f5;
    cursor: default;
}

#changeKeyBtn {
    background-color: #6c757d;
}

#closeSettings {
    margin-top: 20px;
    width: 100%;
}
