body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  min-height: 100vh;
  font-family: 'Helvetica', sans-serif;
  font-weight: 500;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

.egg-container {
  transform: scale(0.25);
  transition: transform .2s;
}
.egg-container.active {
  transform: scale(1);
}

.egg {
  --shadow-opacity: 1;
  border-radius: 100% 100% 76% 76% / 118% 118% 80% 80%;
  filter: drop-shadow(0 0px 2px Rgb(0 0 0/var(--shadow-opacity)));
  cursor: pointer;
}
.egg-container.active .egg {
  --shadow-opacity: 0;
  cursor: initial;
}
.egg.ringing {
  animation: ring .12s infinite;
}

@keyframes ring {
  0%,
  50%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}
.egg-top {
  background-color: #f4f4f4;
  background-image: url("https://assets.codepen.io/4175254/final-2.png"), linear-gradient(to right, #e6e6e6, #ffffff, #e6e6e6);
  background-size: 60px 60px, auto auto;
  background-blend-mode: multiply, normal;
  --background-translation: 0px;
  position: relative;
  z-index: 1;
  border-radius: 50% 50% 50% 50%/100% 100% 0% 0%;
  width: 274px;
  height: 210px;
  clip-path: inset(0 0 0 0 round 50% 50% 50% 50%/100% 100% 0% 0%);
  background-position-x: var(--background-translation), 0%;
  box-shadow: inset 0 4px 8px Rgb(0 0 0/0.05), inset 20px 0 16px Rgb(0 0 0/0.05), inset -20px 0 16px Rgb(0 0 0/0.05), inset 0 1px 1px Rgb(0 0 0/0.05), inset 1px 0 1px Rgb(0 0 0/0.05), inset -1px 0 1px Rgb(0 0 0/0.05);
  transition: background-position-x .2s;
  touch-action: none;
}
.egg-top.dragged {
  transition-duration: 0s;
  transition-timing-function: ease-out;
}
.egg-container.active .egg:not(.ringing) .egg-top {
  cursor: ew-resize;
}

.time-ruler-faces-container {
  --initial-rotation: calc(180deg + (360deg / var(--face-count) / 2));
  --rotation: 0deg;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 6px;
  transform: rotateY(calc(var(--rotation) + var(--initial-rotation)));
  transform-style: preserve-3d;
  aspect-ratio: 553.8592 / 76;
  width: 100%;
  transition: transform .4s;
}
.egg-top.dragged .time-ruler-faces-container {
  transition-duration: 0s;
  transition-timing-function: ease-out;
}

.time-ruler-face-wrapper {
  --angle: calc(360deg / var(--face-count) * var(--i));
  position: absolute;
  transform: rotateY(calc(var(--angle) - 90deg)) translateX(calc(100% / (2 * 0.06554) - 3px)) rotateY(90deg);
  backface-visibility: hidden;
  width: calc(100% * 0.0654);
  height: 100%;
  overflow: hidden;
}

.time-ruler-face {
  position: absolute;
  top: 0;
  left: calc(-100% * var(--i));
  height: 100%;
  fill: #484848;
  will-change: transform;
}

.egg-center {
  margin: 0 auto;
  height: 6px;
  width: calc(100% - 24px);
  background-color: #f4f4f4;
  box-shadow: inset 0 6px 2px Rgb(0 0 0/0.2), inset 0 2px 2px Rgb(0 0 0/0.2);
}

.egg-bottom {
  background-color: #f4f4f4;
  background-image: url("https://assets.codepen.io/4175254/final-2.png"), linear-gradient(to right, #e6e6e6, #ffffff, #e6e6e6);
  background-size: 60px 60px, auto auto;
  background-blend-mode: multiply, normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0% 0% 38% 38% / 0% 0% 100% 100%;
  width: 274px;
  height: 144px;
  box-shadow: inset 0 1px 0 Rgb(255 255 255/0.8), inset 0 -1px 1px Rgb(0 0 0/0.05), inset 1px 0 1px Rgb(0 0 0/0.05), inset -1px 0 1px Rgb(0 0 0/0.05), inset 0 -12px 8px Rgb(255 255 255/0.6), inset 0 -20px 8px Rgb(0 0 0/0.1), inset 0 -60px 20px Rgb(0 0 0/0.05);
}

.time-arrow {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  margin-bottom: -1px;
  /*  border-bottom: $height solid #d15705;
    border-right: $width / 2 solid transparent;
    border-left: $width / 2 solid transparent;
    width: 0;
    height: 0;*/
  width: 20px;
  height: 14px;
  background-color: #d15705;
  clip-path: polygon(50% 0, 0% 100%, 100% 100%);
}

.time-container {
  border-radius: 10px;
  padding: 4px 16px;
  transform: scale(0.125, 0);
  transform-origin: top;
  background-color: #d15705;
  box-shadow: inset 0 -2px Rgb(0 0 0/0.2), 0 2px 4px Rgb(0 0 0/0.2);
  font-size: 32px;
  color: #f4f4f4;
  transition: transform .2s;
}
.egg-container.active .time-container {
  transform: scale(1);
  transition-duration: .2s;
  transition-timing-function: cubic-bezier(0, 0, 0.3, 1.5);
  transition-delay: .1s;
}

.timer-button {
  margin-top: 1.5em;
  border-radius: 8px;
  padding: 10px 16px;
  transform: scale(0);
  width: 100%;
  background-image: linear-gradient(to bottom, #84b709, #46a100);
  box-shadow: inset 0 -2px Rgb(0 0 0/0.2), 0 2px 4px Rgb(0 0 0/0.2);
  text-align: center;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: .4s, .2s;
  transition-timing-function: cubic-bezier(0.55, 1, 0.15, 1), ease-in-out;
}
.egg-container.active .timer-button {
  transform: scale(1);
  opacity: 1;
}
.timer-button.stop {
  background-image: linear-gradient(to bottom, #d53f0b, #b00000);
}
.timer-button:active:not(:disabled) {
  transform: scale(0.92);
}
.timer-button:disabled {
  background-image: linear-gradient(to bottom, #9f9f9f, #848484);
  cursor: not-allowed;
}
.egg-container.active .timer-button:disabled {
  opacity: .4;
}
/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #3498db;
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.logo {
  cursor: pointer;
}

nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f1c40f;
}

/* Hide header in fullscreen if needed */
body.fullscreen header {
  display: none;
}

/* Footer */
footer {
  background: #1a252f; /* Darker slate blue/gray */
  color: #b0bec5;      /* Soft light blue-gray text */
  padding: 20px 30px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 3px solid #f39c12; /* Accent orange top border */
}

footer a {
  color: #90caf9;      /* Light blue links */
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  color: #ffb74d;      /* Warm amber hover */
}

/* Hide footer in fullscreen if needed */
body.fullscreen footer {
  display: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seo-content {
  max-width: 800px;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.body-text {
  max-width: 800px;
  margin: 20px auto 40px auto; /* top 20px, bottom 40px for spacing from footer */
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}
/* ARTICLE STYLING */
.egg-timer-article {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.egg-timer-article h2, 
.egg-timer-article h3, 
.egg-timer-article h4 {
  color: #222;
  margin-top: 1.5em;
}

.egg-timer-article p {
  margin: 1em 0;
  font-size: 16px;
}

.egg-timer-article ul, 
.egg-timer-article ol {
  margin: 0.5em 0 1em 1.5em;
}

/* TOC STYLING */
.toc {
  background: #f9f9f9;
  padding: 15px 20px;
  border-left: 4px solid #ff9800;
  margin-bottom: 20px;
}

.toc h2 {
  margin-top: 0;
}

.toc ul {
  list-style-type: none;
  padding-left: 0;
}

.toc ul li {
  margin: 5px 0;
}

.toc ul li a {
  text-decoration: none;
  color: #ff9800;
}

.toc ul li a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .egg-timer-article {
    padding: 15px;
    font-size: 15px;
  }

  .toc {
    padding: 10px;
  }

  .toc ul li {
    font-size: 14px;
  }
}
.toc ul.hidden { display: none; }
.toc-toggle {
  background: #ff9800;
  color: white;
  border: none;
  padding: 5px 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
