body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #0f0c29;
    background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: aliceblue;
    box-sizing: border-box;
}
#heading{
    text-align: center;
    font-size: 2.5em;
}
.tokenContainer{
    width: 100vw;
    height: 45vh;
    justify-content: space-around;
    display: flex;
}
h3{
    font-size: 2em;
}
#encodeDiv{
    height: 100%;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#decodeDiv{
    height: 100%;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
input, textarea, button {
    padding: 8px;
    margin: 3px 0;
    font-size: 16px;
}
textarea {
    width: 100%;
    height: 75%;
    border-radius: 10px;
    background-color: #1e1e1e;
    color: #ccc;
}
button {
    cursor: pointer;
    width: 120px;
    height: 15%;
    background: #6200ee;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 20px
}
.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.token-card {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.token-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.token-char {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 8px;
}
.token-num {
    font-size: 0.9em;
    color: #ccc;
}
.back-link {
    display: block;
    width: 60px;
    justify-self: center;
    margin: 20px 0;
    padding: 8px 14px;
    background: #6200ee;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.back-link:hover {
    background: #4b00bb;
}
.encoded-card {
    justify-self: center;
    padding: 8px;
    margin-top: 10px;
    border-radius: 12px;
    max-width: 40%;
    font-family: Arial, sans-serif;
    width: 100%;
}
.card-header{
    display:flex;
    justify-content: space-around;
}
.result-item {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 10px 50px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-label {
    font-weight: bold;
    color: #ccc;
}
.result-value {
    font-family: monospace;
    color: white;
    word-break: break-word;
    text-align: right;
}
.view-mappings {
    background: #6200ee;
    width: 200px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    margin-top: 12px;
}
.view-mappings a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}