@import "https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap";

/* index.css */
body {
  color: #ff0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='28' font-size='28'%3E%E2%98%80%EF%B8%8F%3C/text%3E%3C/svg%3E"), auto;
  background-color: navy;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='40' font-size='30' opacity='0.15'%3E%E2%98%80%EF%B8%8F%3C/text%3E%3C/svg%3E");
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Comic Neue, Comic Sans MS, cursive;
}

.page-wrapper {
  max-width: 750px;
  margin: 0 auto;
  padding: 10px;
}

.marquee-banner {
  color: #ff0;
  overflow: hidden;
  white-space: nowrap;
  background: #f0f;
  border-bottom: 3px solid #0ff;
  padding: 4px 0;
  font-size: 14px;
  font-weight: bold;
}

.marquee-text {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

.hit-counter {
  text-align: center;
  color: #0f0;
  margin: 8px 0;
  font-size: 12px;
}

.hit-counter span {
  color: #0f0;
  letter-spacing: 2px;
  background: #000;
  border: 1px inset gray;
  padding: 2px 8px;
  font-family: Courier New, monospace;
}

.main-title {
  text-align: center;
  margin: 10px 0;
}

.main-title h1 {
  color: red;
  text-shadow: 3px 3px #ff0, -1px -1px #0ff;
  animation: rainbow 3s infinite;
  margin: 0;
  font-size: 48px;
}

@keyframes rainbow {
  0% {
    color: red;
  }

  16% {
    color: #f80;
  }

  33% {
    color: #ff0;
  }

  50% {
    color: #0f0;
  }

  66% {
    color: #08f;
  }

  83% {
    color: #f0f;
  }

  100% {
    color: red;
  }
}

.main-title .subtitle {
  color: #0ff;
  font-size: 16px;
}

.fancy-hr {
  background: linear-gradient(to right, red, #f80, #ff0, #0f0, #08f, #f0f);
  border: none;
  height: 6px;
  margin: 10px 0;
}

.converter-box {
  background: silver;
  border: 3px outset #fff;
  margin: 16px 0;
  padding: 16px;
  box-shadow: 4px 4px #000;
}

.converter-box .box-title {
  color: #fff;
  display: flex;
  background: linear-gradient(to right, navy, #1084d0);
  justify-content: space-between;
  align-items:  center;
  margin: -16px -16px 12px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: bold;
}

.converter-box .box-title .window-buttons {
  display: flex;
  gap: 2px;
}

.converter-box .box-title .window-btn {
  display: flex;
  cursor: pointer;
  color: #000;
  background: silver;
  border: 1px outset #fff;
  justify-content: center;
  align-items:  center;
  width: 16px;
  height: 14px;
  font-size: 10px;
  line-height: 1;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
  margin: 12px 0;
}

.input-group label {
  color: #000;
  min-width: 140px;
  font-size: 16px;
  font-weight: bold;
}

.input-group input {
  color: #000;
  background: #fff;
  border: 2px inset gray;
  width: 160px;
  padding: 4px 8px;
  font-family: Courier New, monospace;
  font-size: 22px;
}

.input-group .unit {
  color: #000;
  font-size: 20px;
  font-weight: bold;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.convert-btn {
  color: #000;
  cursor: pointer;
  background: silver;
  border: 3px outset #fff;
  padding: 8px 20px;
  font-family: Comic Neue, Comic Sans MS, cursive;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 2px 2px #000;
}

.convert-btn:active {
  box-shadow: none;
  border-style: inset;
  transform: translate(1px, 1px);
}

.convert-btn.primary {
  color: #fff;
  background: #f60;
}

.result-area {
  text-align: center;
  background: #ffc;
  border: 2px inset gray;
  min-height: 40px;
  margin: 16px 0;
  padding: 12px;
}

.result-area .result-value {
  color: red;
  font-family: Courier New, monospace;
  font-size: 36px;
  font-weight: bold;
}

.result-area .result-label {
  color: #333;
  font-size: 14px;
}

.result-area .result-emoji {
  display: block;
  margin-top: 8px;
  font-size: 48px;
}

.under-construction {
  text-align: center;
  color: #ff0;
  margin: 16px 0;
  font-size: 14px;
}

.under-construction img {
  vertical-align: middle;
  width: 40px;
}

.guestbook {
  text-align: center;
  margin: 12px 0;
}

.guestbook a {
  color: #0ff;
  text-decoration: underline;
  font-size: 18px;
  font-weight: bold;
}

.guestbook a:visited {
  color: #f8f;
}

.webring {
  text-align: center;
  color: silver;
  border: 1px dashed #0ff;
  margin: 16px 0;
  padding: 8px;
  font-size: 12px;
}

.webring a {
  color: #0f0;
  margin: 0 8px;
}

.blink {
  animation: blink-anim 1s step-end infinite;
}

@keyframes blink-anim {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.dancing-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 8px 0;
  font-size: 24px;
}

.dance {
  display: inline-block;
  animation: dance .5s ease-in-out infinite alternate;
}

.dance:nth-child(2) {
  animation-delay: .1s;
}

.dance:nth-child(3) {
  animation-delay: .2s;
}

.dance:nth-child(4) {
  animation-delay: .3s;
}

.dance:nth-child(5) {
  animation-delay: .4s;
}

.dance:nth-child(6) {
  animation-delay: .15s;
}

.dance:nth-child(7) {
  animation-delay: .25s;
}

.dance:nth-child(8) {
  animation-delay: .35s;
}

@keyframes dance {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

.sparkle {
  position: fixed;
  pointer-events: none;
  animation: sparkle-fade .8s forwards;
  z-index: 9999;
  font-size: 16px;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0)rotate(180deg);
  }
}

.flame-text {
  color: #f40;
  text-shadow: 0 0 4px #f80, 0 0 8px #f40;
  animation: flame .3s infinite alternate;
}

@keyframes flame {
  0% {
    text-shadow: 0 0 4px #f80, 0 0 8px #f40;
  }

  100% {
    text-shadow: 0 0 8px #fc0, 0 0 16px #f60, 0 -4px 12px #f40;
  }
}

.thermometer {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.thermo-body {
  position: relative;
  overflow: hidden;
  background: #ddd;
  border: 2px solid #888;
  border-radius: 15px 15px 0 0;
  width: 30px;
  height: 120px;
}

.thermo-fill {
  position: absolute;
  background: linear-gradient(to top, red, #f60);
  transition: height .5s;
  bottom: 0;
  left: 0;
  right: 0;
}

.thermo-bulb {
  background: red;
  border: 2px solid #888;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-top: -2px;
  margin-left: -7px;
}

.best-viewed {
  text-align: center;
  color: #999;
  margin: 16px 0 8px;
  font-size: 11px;
  font-style: italic;
}

.midi-controls {
  text-align: center;
  color: #aaa;
  margin: 8px 0;
  font-size: 12px;
}

.midi-controls button {
  cursor: pointer;
  background: silver;
  border: 2px outset #fff;
  margin: 0 2px;
  padding: 2px 8px;
  font-family: Courier New, monospace;
  font-size: 11px;
}

.conversion-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 13px;
}

.conversion-table th {
  color: #fff;
  background: navy;
  border: 1px solid #fff;
  padding: 4px 8px;
}

.conversion-table td {
  color: #000;
  text-align: center;
  background: #ffc;
  border: 1px solid gray;
  padding: 4px 8px;
}

.conversion-table tr:nth-child(2n) td {
  background: #ffe0b0;
}

.email-link {
  text-align: center;
  margin: 12px 0;
  font-size: 13px;
}

.email-link a {
  color: #0ff;
}

.spinning-sun {
  display: inline-block;
  animation: spin 4s linear infinite;
  font-size: 40px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
