body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease;
  position: relative;
  min-height: 100vh;
}

body.dimmed {
  background-color: rgba(0, 0, 0, 0.85);
}

.container {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

#title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #222;
  transition: color 0.3s ease;
}

body.dimmed #title {
  color: #fff;
}

#textbox {
  width: 300px;
  height: 50px;
  font-size: 18px;
  text-align: center;
  border: 2px solid #666;
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fff;
  position: relative;
  z-index: 2;
  color: #222;
}

#textbox::placeholder {
  color: #666;
}

#textbox.error {
  border-color: #d32f2f;
  background-color: #ffebee;
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
}

.highlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 0.3s ease;
  z-index: 0;
}

body.dimmed .highlight-overlay {
  background-color: rgba(0, 0, 0, 0.85);
}

.highlight-hint {
  position: absolute;
  left: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 200px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
  color: #222;
}

.highlight-hint:after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

body.highlight-active .highlight-hint {
  opacity: 1;
}

body.highlight-active #textbox {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.3);
  transform: scale(1.02);
}

#joinButton {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  color: #fff;
  background-color: #2e7d32;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

#joinButton:hover {
  background-color: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#joinButton:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#shareLink {
  margin-top: 50px;
  font-size: 16px;
  color: #222;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

body.dimmed #shareLink {
  color: #fff;
}

#copyButton {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  color: #fff;
  background-color: #424242;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

#copyButton:hover {
  background-color: #212121;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#copyButton:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

#blurBackground {
  margin-top: 15px;
  position: relative;
  z-index: 2;
  color: #222;
}

body.dimmed #blurBackground {
  color: #fff;
}

#blurBackground label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#blurBackground input {
  margin-right: 8px;
}

#footer {
  margin-top: 40px;
  padding: 20px 0;
  color: #222;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
}

body.dimmed #footer {
  color: #fff;
}

#footer a {
  color: inherit;
  text-decoration: underline;
}

#joinButton img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}