/* Default Margin & Padding Styling */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  background: linear-gradient(130deg, #f97794, #623aa2);
}

/* Main Container Styling */
.container {
  max-width: 600px;
  height: 100vh;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-bottom: 20px;
}

.container h1 {
  color: #fff;
  text-align: center;
  margin: 20px 0;
}

/* Cards Alignment */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.box-size {
  display: flex;
  flex-direction: column;
  width: auto;
  height: auto;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Cards Label Styling */
.box-size label {
  text-align: center;
  padding: 8px;
  background-color: orange;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  height: 30px;
  border-radius: 8px 8px 0 0;

  /* border: 1px solid rgba(255, 255, 255, 0.8); */
}

/* Cards Display Styling */
.box-size input {
  font-size: 40px;
  width: 100px;
  height: 100px;
  background-color: darkblue;
  color: #fff;
  text-align: center;
  /* border: 1px solid #fff;   */
  border-radius: 0 0 8px 8px;
}

.box-size input:hover {
  cursor: pointer;
}

/* Buttons Styling */

.buttons {
  display: flex;
  gap: 30px;
  padding: 30px;
}

.btn {
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: bold;
}

.btn:hover {
  cursor: pointer;
  opacity: 0.8;
}

.btn:active {
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.start {
  background-color: orange;
  color: #fff;
}

.pause {
  background-color: purple;
  color: #fff;
}

.reset {
  background-color: orangered;
  color: #fff;
}

.lap {
  background-color: navy;
  color: #fff;
}

/* Lap Time */
.lap-container {
  width: 100%;
  height: 400px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 10px;
  overflow: auto;
}

.lap-list {
  width: 600px;
  max-height: 400px;
  padding: 10px 0;
  display: flex;
  color: #fff;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  text-align: center;
}

.lap-list li {
  list-style: none;
}

/* Responsive Style for Mobile Users */
@media screen and (max-width: 500px) {
  /* Body Styling */
  body {
    width: 100%;
    overflow: hidden;
  }

  /* Main Container Styling */
  .container {
    width: 100%;
    overflow: hidden;
  }

  /* Cards Alignment */
  .cards {
    gap: 20px;
  }

  .buttons {
    display: flex;
    gap: 10px;
  }

  .btn {
    width: 80px;
    padding: 10px 20px;
    font-size: 12px;
  }

  .btn:active {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    opacity: 0.8;
  }

  .start {
    background-color: green;
    color: #fff;
  }

  .pause {
    background-color: slateblue;
    color: #fff;
  }

  /* Lap Time */
  .lap-container {
    width: 100%;
  }
  .lap-list {
    width: 100%;
  }
}
