body {
    background-color: #222;
    color: #fff;
    font-family: monospace;
    margin: 0;
    padding: 0;
}

a:link,
a:visited {
    color: #52c456;
    text-decoration: none;
}

a:hover,
a:active {
    color: #3b9b3e;
}

a.link-btn:link,
a.link-btn:visited {
    color: #222;
    text-decoration: none;
}

a.link-btn:hover,
a.link-btn:active {
    color: #555;
}

a.link-btn-secondary:link,
a.link-btn-secondary:visited {
    color: #cfcfcf;
    text-decoration: none;
}

a.link-btn-secondary:hover,
a.link-btn-secondary:active {
    color: #a8a8a8;
}

.parent-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

h1 {
    color: #52c456;
    text-align: center;
    margin: 0;
}

.form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
    gap: 5px;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

input[type=text],
input[type=url],
select {
    width: 100%;
    padding: 5px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #333;
    color: #fff;
    font-family: monospace;
    box-sizing: border-box;
}

.htmlbox {
    width: 100%;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.encode-btn {
    padding: 10px 20px;
    background-color: #52c456;
    color: #222;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 400px;
    width: 100%;
}

.link-btn {
    padding: 10px 20px;
    background-color: #52c456;
    color: #222;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 250px;
    width: 100%;
}

.link-btn-secondary {
    padding: 5px 5px;
    background-color: #555;
    color: #e4e4e4;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 100px;
    width: 100%;
}

.resultblock {
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 20vw;
    max-width: 50vw;
    height: 50px;
    box-sizing: border-box;
    background-color: #111;
    border-radius: 5px;
}

.resultblock .inner {
    padding: 0 10px;
    white-space: nowrap;
}

.parent-container p {
    text-align: center;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background-color: #52c456;
    border: 3px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4caf50;
}

@media (max-width: 480px) {
    .parent-container {
        gap: 10px;
        padding: 10px;
    }

    .form-row {
        max-width: 100%;
    }

    .encode-btn {
        width: 100%;
    }
}