@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css?family=Pacifico&display=swap');
* {
  box-sizing: border-box;
}

body {
  background: #224941 no-repeat center center/cover;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  position: relative; 
}

.breath-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 220px; 
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 2;
  width: 300px;
  position: relative;
  margin: 40px auto 0 auto;
  height: 0;
}

.left-btn {
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.right-btn {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.breath-btn {
  padding: 12px 32px;
  font-size: 1.2rem;
  border: none;
  border-radius: 25px;
  background: #4caf50;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px #0003;
  transition: background 0.2s, transform 0.2s;
}

.breath-btn:hover {
  background: #388e3c;
  transform: scale(1.05);
}

h1 {
  font-family: 'Comic Sans MS', 'Comic Sans', 'Pacifico', cursive;
  font-size: 4.5rem;
  margin-top: 30px;
  letter-spacing: 3px;
  color: #645d5d; 
  padding: 10px 40px;
  border: 6px solid #85c79e;
  border-radius: 30px;
  background: #222;
  box-shadow:
    0 8px 0 #000,
    0 0 0 8px #fff,
    0 0 24px 4px #76e49b;
  text-shadow:
    4px 4px 0 #000,
    2px 2px 0 #fff,
    0 0 12px #72f8ae;
  display: inline-block;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
  background: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  height: 300px;
  width: 300px;
  position: relative;
  transform: scale(1);
}

.circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #010f1c;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.gradient-circle {
  background: conic-gradient(
    #55b7a4 0%,
    #4ca493 40%,
    #fff 40%,
    #fff 60%,
    #336d62 60%,
    #2a5b52 100%
  );
  height: 320px;
  width: 320px;
  z-index: -2;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: -10px;
}

.pointer {
  background-color: #fff;
  border-radius: 50%;
  height: 20px;
  width: 20px;
  display: block;
}

.pointer-container {
  position: absolute;
  top: -40px;
  left: 140px;
  width: 20px;
  height: 190px;
  animation: rotate 7.5s linear forwards infinite;
  transform-origin: bottom center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.container.grow {
  animation: grow 3s linear forwards;
}

@keyframes grow {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.2);
  }
}

.container.shrink {
  animation: shrink 3s linear forwards;
}

@keyframes shrink {
  from {
    transform: scale(1.2);
  }

  to {
    transform: scale(1);
  }
}

.leaf-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s;
}

.leaf-icon.hidden {
  opacity: 0;
  pointer-events: none;
}
