/* 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);
    max-width: 70%;
    margin-top: 55px;
}

/* 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;
    max-width: 100%;
}

/* Warn button */
.warn-btn {
    position: fixed;
    top: 15px;
    right: 5px;
    display: inline-block;
    transition: filter 0.2s;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background-color: #000;
}
.warn-btn img {
    width: 30px;
    height: auto;
    pointer-events: none;
    user-select: none;
}
.warn-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Popup overlay */
.popup {
    display: none;
    position: fixed;
    z-index: 4000;
    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: 70%;
    max-width: 400px;
    box-shadow: 0 0 15px #000;
    text-align: center;
    position: relative;
}

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

/* Responsive adjustments (optional for mobile) */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 3rem;
    }

    button {
        font-size: 1.5rem;
        padding: 8px 20px;
    }

    input {
        width: 60px;
        font-size: 1rem;
        padding: 8px;
    }

    .code-box {
        font-size: 8px;
    }
}
