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

/* Static Card */
.wrapper {
    width: 350px;
    height: 600px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 20px;
    flex-shrink: 0;
}

.title-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #aaa;
}

/* Viewport (NEW — isolates movement) */
.viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Sliding Track */
.container {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Each Stopwatch */
.stopwatch {
    height: 520px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Circle */
.circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid #2b2b2b;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: white;
    margin-top: 20px;
}

/* Buttons */
.buttons {
    width: 85%;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.row {
    display: flex;
    gap: 12px;
}

button {
    padding: 12px;
    border-radius: 30px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    flex: 1;
}
.footer {
  margin-top: 20px;
  padding: 15px;
  font-size: 16px;
  color: #aaa;
}

.start {
    background: #00c853;
    color: black;
}

.dark-btn {
    background: #2a2a2a;
    color: white;
}

.add-btn {
    width: 50px;
    flex: none;
    background: #2a2a2a;
    font-size: 20px;
}

/* Laps */
.laps {
    width: 85%;
    margin-top: 15px;
    font-size: 13px;
    color: #aaa;
    overflow-y: auto;
    height: 120px;
}

.lap-item {
    padding: 4px 0;
    border-bottom: 1px solid #222;
}
