*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body{
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg,#1e3c72,#2a5298);

  color: white;
}

.container{

  width: 90%;
  max-width: 500px;

  background: rgba(255,255,255,0.1);

  padding: 40px;

  border-radius: 20px;

  backdrop-filter: blur(10px);

  box-shadow: 0 8px 20px rgba(0,0,0,0.3);

  text-align: center;
}

h1{
  font-size: 45px;
  margin-bottom: 30px;
}

.time{
  font-size: 55px;
  font-weight: bold;

  margin-bottom: 35px;

  letter-spacing: 3px;
}

.buttons{

  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 15px;

  margin-bottom: 30px;
}

button{

  padding: 12px 24px;

  border: none;

  border-radius: 10px;

  font-size: 18px;

  cursor: pointer;

  transition: 0.3s;
}

/* Button Colors */

#startBtn{
  background: #00c853;
  color: white;
}

#pauseBtn{
  background: #ffab00;
  color: white;
}

#resetBtn{
  background: #d50000;
  color: white;
}

#lapBtn{
  background: #2962ff;
  color: white;
}

button:hover{
  transform: scale(1.08);
  opacity: 0.9;
}

/* Lap Section */

.laps-container{

  max-height: 220px;

  overflow-y: auto;

  text-align: left;
}

.laps-container h2{

  margin-bottom: 15px;

  text-align: center;
}

#laps{

  list-style: none;
}

#laps li{

  background: rgba(255,255,255,0.15);

  padding: 12px;

  margin-bottom: 10px;

  border-radius: 8px;

  font-size: 18px;

  display: flex;
  justify-content: space-between;
}

/* Responsive */

@media(max-width: 600px){

  .time{
    font-size: 40px;
  }

  h1{
    font-size: 35px;
  }

  button{
    width: 100%;
  }

}