iframe, embed, object {
    max-width: 100%;
}

pre {
    white-space: pre; /* 공백 유지 */
    overflow-x: auto; /* 내용이 길면 스크롤 활성화 */
}

@font-face {
    font-family: 'D2Coding';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_three@1.0/D2Coding.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.wrapper {
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

.intro {
    font-family: 'D2Coding', Consolas, 'Courier New', monospace;
    font-size: 14px;
    color: white;
    margin: 36px auto;
    text-align: center;
    max-width: 600px;
}

.intro h1 {
    font-family: 'D2Coding', Consolas, 'Courier New', monospace;
    font-size: 16px;
    color: white;
    margin: 12px auto;
    text-align: center;
    max-width: 600px
}

body {
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: 'D2Coding', Consolas, 'Courier New', monospace;
    margin: 0;
    padding: 0;
    text-align: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.logo {
    display: block;
    margin: 20px auto;
    max-width: 80%;
    height: auto;
}

#qr-form input {
    width: 400px;
    padding: 10px;
    font-size: 12px;
    margin: 5px;
    font-family: 'D2Coding', Consolas, monospace;
}

#qr-form button {
    padding: 10px 15px;
    font-size: 12px;
    font-family: 'D2Coding', Consolas, monospace;
    background: none;
    color: lime;
    border: 2px solid lime;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#qr-form button:hover {
    background-color: lime;
    color: black;
}

#qr-actions button {
    background: none;
    color: lime;
    border: 2px solid lime;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'D2Coding', Consolas, monospace;
    border-radius: 1px;
    transition: background-color 0.5s;
    margin-top: 8px;
}

#qr-actions button:hover {
    background-color: lime;
    color: black;
}

.footer {
    font-family: 'D2Coding', Consolas, 'Courier New', monospace;
    font-size: 14px;
    color: white;
    text-align: center;
    margin-top: 30px;
    padding: 10px 0;
}

.subtitle {
    color: white;
    font-family: 'D2Coding', Consolas, 'Courier New', monospace;
    font-size: 14px;
    margin: 16px auto;
    text-align: center;
}

#mouse-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 255, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-70%, -50%);
    transition: width 0.5s ease, height 0.5s ease, transform 0.1s ease;
    z-index: 1;
}

#qr-result {
    margin: 12px;
}

@media screen and (max-width: 860px) {
    body {
        padding: 2em;
    }

    .container {
        padding: 0 1.2em;
    }

    .intro {
        font-size: 14px;
    }

    .intro h1 {
        font-size: 14px;
        color: white;
    }

    #qr-form input {
        width: 100%;
        display: block;
        box-sizing: border-box;
        font-size: 14px;
        margin: 5px auto;
    }

    #qr-form button,
    #qr-actions button {
        width: 100%;
        display: block;
        box-sizing: border-box;
        font-size: 14px;
        margin: 5px auto;
    }

    .footer {
        font-size: 12px;
    }

    .logo {
        max-width: 100%;
    }

    #mouse-circle {
        display: none;
    }

}
