/* Help Menu Styles */
#helpMenu {
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 32px;
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Close Button */
#closeButton {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #666;
  transition: all 0.2s ease;
}

#closeButton:hover {
  background: #e0e0e0;
  color: #333;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Email Link */
#email {
  display: block;
  text-align: center;
  color: #1976d2;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

#email:hover {
  background: #f0f7ff;
  color: #1565c0;
}

/* Intro Tutorial Button */
#show_welcome {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 90%;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

#show_welcome:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

#show_welcome:active {
  transform: translateY(0);
}

/* Overlay Background */
#helpMenuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}

/* Responsive Design */
@media (max-width: 600px) {
  #helpMenu {
    width: 95%;
    padding: 24px;
    margin: 20px;
  }

  .video-container {
    margin-bottom: 20px;
  }

  #email {
    font-size: 14px;
    margin-bottom: 16px;
  }

  #show_welcome {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Language Selector */
.language-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
}

.language-flag {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: 60px;
  height: 45px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0;
  overflow: hidden;
}

.language-flag .fi {
  font-size: 2.5rem;
  line-height: 1;
  border-radius: 4px;
}

.language-flag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: #1976d2;
}

.language-flag.active {
  border-color: #1976d2;
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
  transform: scale(1.05);
}

.language-flag:active {
  transform: translateY(0) scale(1);
}

/* Animation */
#helpMenu {
  animation: helpMenuFadeIn 0.3s ease-out;
}

@keyframes helpMenuFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
