* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 430px) {
    .container {
        --height-division-factor: 3 !important;
    }
}

h2 {
    text-align: center;
}

.container {
    margin: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    --height-division-factor: 2;
}

.generator-container {
    margin: 1rem;
    background-color: #eee;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 0.5rem;
    gap: 0.5rem;
    box-shadow: 2px 2px 10px #bbb;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ccc;
    overflow: hidden;
}

#text-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 0.6rem;
    font-size: 1rem;
    height: 2rem;
    border: none;
    transition-duration: 0.5s;
    background: linear-gradient(#088CE8 0 0) left bottom / 0% 3px no-repeat #fff;
}

#text-input:focus {
    outline: none;
    border: none;
    background-size: 100% 3px;
}

.x-clear {
    position: absolute;
    right: 0.5rem;
    background: #ccc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;

    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.input-container:focus-within .x-clear {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#code-image {
    width: calc(100vh / var(--height-division-factor));
    border: 0.2rem solid darkgray;
    border-radius: 0.5rem;
    padding: 10px;
}

#ip-paragraph {
    font-family: monospace;
    font-size: 10px;
}

button {
    padding: 0.5rem;
    font-size: 1rem;
}