/* General body styles */
body {
    margin: 0;
    background-color: #111;
    color: #fff;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    font-size: 17px;
}
/* Top-left info */
.top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    text-align: left;
}
/* Main container */
.container {
    background-color: #222;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
/* Inputs */
input {
    width: 80px;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 8px;
    border: none;
    margin-top: 20px;
}
/* Buttons */
button {
    display: inline-block;
    margin-top: 20px;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    background-color: #444;
    padding: 10px 30px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
}
button:hover {
    background-color: #666;
}
/* Heading */
h1 {
    font-size: 5rem;
    margin-bottom: 15px;
}
/* Badge section */
.badge-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
/* Code box */
.code-box {
    text-align: left;
    background-color: #111;
    border-radius: 8px;
    padding: 10px;
    display: inline-block;
    font-size: 10px;
    line-height: 1.3;
    overflow-x: auto;
    white-space: pre;
    margin-top: -10px;
}
.warn-btn {
    position: fixed;   /* stays in the corner even when scrolling */
    top: 20px;
    right: 30px;
    display: inline-block;
    transition: filter 0.2s;
    z-index: 1000;     /* ensures it’s above other content */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.warn-btn img {
    width: 70px;
    height: auto;
    pointer-events: none;
    user-select: none;
}
.warn-btn:hover {
  background-color: #333;
}
.warn-btn:focus {
    outline: none;
    box-shadow: none;
}

/* popup overlay */
.popup {
  display: none;
  position: fixed;
  z-index: 4000; /* must be above warn button */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* visible state */
.popup.show { display: flex; }

/* popup box */
.popup-content {
  background: #222;
  color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px #000;
  text-align: center;
  position: relative;
}

/* close button (no float) */
.close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}
