:root {
  --bg-color: #1e1e1e;     /* background color */
  --text-color: #ffffff;   /* text color */
}

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

@media (max-width: 768px) and (orientation: portrait) {
  .floating-button {
    bottom: 12vmin !important;
    width: clamp(64px, calc(64px + ((64 * 5) * (100vw - 1920px) / 1920)), 296px) !important;
    height: clamp(64px, calc(64px + ((64 * 5) * (100vw - 1920px) / 1920)), 296px) !important;
  }

  .header {
    font-size:  clamp(22px, calc(22px + (60 * (100vw - 1920px) / 1920)), 96px) !important;
  }
  .footer {
    font-size:  clamp(24px, calc(24px + (100 * (100vw - 1920px) / 1920)), 96px) !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .floating-button {
    bottom: 3vmin !important;
    width: clamp(64px, calc(64px + ((64 * 5) * (100vw - 1920px) / 1920)), 296px) !important;
    height: clamp(64px, calc(64px + ((64 * 5) * (100vw - 1920px) / 1920)), 296px) !important;
  }

  .header {
    font-size:  clamp(22px, calc(22px + (60 * (100vw - 1920px) / 1920)), 96px) !important;
  }
  .footer {
    font-size:  clamp(24px, calc(24px + (100 * (100vw - 1920px) / 1920)), 96px) !important;
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
  height: 100%;
  margin: 0;
}

.main-section {
  padding: 1.3em 1.3em 0.7em 1.3em;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 2em); /* ✅ uses dynamic viewport height */
}

.header {
  border-top: 0.2em solid var(--text-color);
  height: auto;
  font-size:  clamp(42px, calc(42px + (60 * (100vw - 1920px) / 1920)), 96px);
  flex: 0 0 auto;
}

.title {
  flex: 1 1 auto;
  display: flex;
}

.title h2 {
  margin: auto;
  line-height: 1;
  width: 100%;
  /* white-space: break-spaces; */
  /* word-break: break-all; */
}

.footer {
  margin: auto;
  justify-content: center;
  display: flex;
  font-size:  clamp(62px, calc(62px + (100 * (100vw - 1920px) / 1920)), 96px);
  padding: 1vw;
  flex: 0 0 auto;
  min-height: 1.5em;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline; /* optional hover effect */
}

.floating-button {
  position: absolute;
  width: clamp(124px, calc(124px + ((64 * 5) * (100vw - 1920px) / 1920)), 296px);
  height: clamp(124px, calc(124px + ((64 * 5) * (100vw - 1920px) / 1920)), 296px);
  right: 3vmin;
  bottom: 3vmin;
  -webkit-mask: url("./refresh2.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask: url("./refresh2.svg") no-repeat center;
  mask-size: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: var(--text-color);
  background-color: var(--text-color);
}

.header h1 {
  margin: auto;
  width: 3.5em;
  height: auto;
  aspect-ratio: 591 / 271;
  -webkit-mask: url("./smg-logo.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask: url("./smg-logo.svg") no-repeat center;
  mask-size: contain;
  cursor: pointer;
  color: var(--text-color);
  background-color: var(--text-color);
}

.floating-button:hover {
  transform: scale(1.1); /* grow 20% */
}

.floating-button.rotate {
  animation: spin .20s ease-in;
}

h1, h2, h3 {
 margin: 0; 
}
