* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: whitesmoke;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-out {
  animation: fadeOut 0.5s forwards;
}
@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

.parent {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 500px;
  height: 300px;
  padding: 20px;
  border: 2px solid black;
  border-radius: 60px;
  background-color: white;
  gap: 30px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.box {
  position: absolute;
  top: 15px;
  right: 20px;
  padding: 8px 14px;
  background-color: #007bff;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.box:hover {
  background-color: #0056b3;
  animation: pulse 0.4s;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.icon-label {
  display: none; 
}

.timer-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 24px;
}

.circles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.child1, .child2, .child3 {
  background-color: rgb(223, 221, 218);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
}

.b1 {
  background-color: #28a745;
}

.b3 {
  background-color: #fd7e14;
}

.b2 {
  background-color: #dc3545;
}

@media (max-width: 480px) {
  .parent {
    width: 90%;
    height: auto;
    padding: 15px;
    border-radius: 30px;
  }

  .box {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 16px;
  }

  .text-label {
    display: none; 
  }

  .icon-label {
    display: inline-block; 
    font-size: 18px;
  }

  .timer-title {
    font-size: 18px;
    margin-top: 10px;
  }

  .child1, .child2, .child3 {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }

  .buttons {
    gap: 10px;
  }

  .btn {
    min-width: 70px;
    padding: 8px 12px;
    font-size: 14px;
  }
}
