  footer {
    padding: 1rem;
    font-size: 0.9rem;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    color: #666;
    position: absolute;
    width: 100%;
    height: 56px;
    bottom: 0px;
  }

  html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

/*TRANSLATE*/
#langSwitcher {
  position: fixed;
  top: 10px;
  left: 10px;
  font-family: Arial, sans-serif;
  z-index: 1000;
}
#langSwitcher button {
  background-color: #4f46e5;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}
#langSwitcher button:hover {
  background-color: #4f46e5;
}
#langList {
  display: none;
  margin-top: 5px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  list-style: none;
  padding: 0;
}
#langList li {
  padding: 8px 12px;
  cursor: pointer;
}
#langList li:hover {
  background-color: #f0f0f0;
}

/*ANIMATIONS*/
canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  z-index: 999;
}

/*FORM*/
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#popup .popup-content {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  animation: form_fadeIn 0.3s ease-out;
  position: relative;
  max-height: 80%;
  overflow-y: auto;

}

#popup .popup-content h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

#popup .popup-content h2, #popup .popup-content h3, #popup .popup-content h4  {
  text-align: center;
}

#popup .popup-content input[type="text"], #popup .popup-content select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  box-sizing: border-box;
}

#popup .popup-content .popup-buttonRow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
#popup .popup-content button {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
#popup .popup-content .popup-next {
  background-color: #4f46e5;
  color: white;
}
#popup .popup-content .popup-next:hover {
  background-color: #4338ca;
}
#popup .popup-content .popup-cancel {
  background-color: #dc2626;
  color: white;
}
#popup .popup-content .popup-cancel:hover {
  background-color: #b91c1c;
}

#popup .popup-content sup.required {
  color: red;
  font-weight: bold;
  display:  none;
  font-size: 0.6em;
}

#popup .popup-content input.required {
  border:  2px solid;
}

#popup .popup-content label {
  display: block;
  margin-bottom: 6px;
  margin-top: 14px;
  font-weight: 600;
}

#popup .popup-content .form_copyBtn {
  width: 100%;
  background: #4f46e5;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#popup .popup-content .form_copyBtn:hover:not(.form_copied) {
  background: #4338ca;
}

#popup .popup-content .form_copyBtn.form_copied {
  background-color: #16a34a !important;
  color: white !important;
}

#popup .popup-content .form_closeIcon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s;  
}

#newGame {
  position: fixed;
  top: 10px;
  right: 10px;
  font-family: Arial, sans-serif;
  z-index: 1000;
}

#newGame button {
  background-color: #4f46e5;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}
#newGame button:hover {
  background-color: #4f46e5;
}