body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to bottom right, #0f0016, #270022);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
}

button, a.button {
  display: inline-block;
  margin: 10px 0;
  padding: 14px;
  color: white;
  border: none;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

#howToConsole, .button-container a.button {
  padding: 12px;
  height: auto;
  width: auto;
  border: 3px solid #0000;
  border-radius: 12px;
  background: linear-gradient(#1b001f, #1b001f) padding-box, linear-gradient(
        var(--angle),
    #070707,
    #ff4da6
      ) border-box;
  animation: 8s rotate linear infinite;
}

#howToConsole:hover, .button-container a.button:hover {
  background: linear-gradient(#3a062f, #1b001f) padding-box, linear-gradient(
        var(--angle),
    #070707,
    #ff4da6
      ) border-box;
}

#howToConsole {
  width: calc(91%);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: #2b0416;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 600px;
  height: auto;
  min-height: 320px;
  border: 3px solid #0000;
  background: linear-gradient(#2b0416, #2b0416) padding-box, linear-gradient(
    var(--angle),
    #070707,
    #ff4da6
  ) border-box;
  animation: 8s rotate linear infinite;
}

.popup-content h2 {
  margin-top: 0;
}

.popup-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #3a0f1f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.popup-content button:hover {
  background-color: #5a1630;
}

.language-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}

.popup-content .language-switch .flag {
  font-size: 24px;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  padding: 5px;
  transition: background-color 0.3s, transform 0.2s;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.popup-content .language-switch .flag:hover {
  transform: scale(1.1);
}

#closePopup {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: linear-gradient(90deg, #ff7ab8, #ff4da6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(255,77,166,0.15);
}

#closePopup:hover {
  transform: translateX(-50%) scale(1.03);
  box-shadow: 0 6px 16px rgba(255,77,166,0.22);
}

#closePopup:focus-visible {
  outline: 3px solid rgba(255,77,166,0.28);
  outline-offset: 3px;
}
