body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    background: #f4f4f4;
    font-size: 14px; /* Reduced global font size */
}

.navbar {
    background: #ffffff; /* White background */
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ddd; /* Light grey border */
}

.navbar a {
    color: #007bff; /* Blue text */
    text-decoration: none;
    padding: 8px 12px; /* Adjusted padding */
    display: inline-block;
    font-size: 16px; /* Slightly smaller navbar text */
    font-weight: bold;
}

.navbar a:hover {
    background: #f0f0f0; /* Light grey hover effect */
    border-radius: 5px;
}

.section {
    display: none;
    padding: 15px;
    text-align: center;
    min-height: calc(100vh); /* Ensures content is not overlapped by footer */
}
/* Ensure lists inside sections are left-aligned */
.section ul,
.section ol {
    text-align: left;
    padding-left: 20px; /* Adds spacing for indentation */
    margin: 10px 0;
    list-style-position: inside; /* Ensures bullet points are properly aligned */
}

/* Improve spacing for each list item */
.section ul li,
.section ol li {
    margin-bottom: 5px;
}

.active {
    display: block;
}

.container {
    max-width: 500px;
    background: #fff;
    padding: 15px; /* Reduced padding */
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    margin: auto;
    font-size: 13px; /* Smaller text inside container */
}

textarea { 
    width: 100%; 
    height: 80px; /* Reduced height */
    padding: 8px; /* Adjusted padding */
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    font-size: 13px;
}

button { 
    padding: 8px 12px; /* Adjusted button size */
    font-size: 14px; 
    border: none;
    cursor: pointer; 
    border-radius: 5px;
    margin: 5px;
}

.btn-encode { background: #28a745; color: white; }
.btn-decode { background: #007bff; color: white; }
.btn-clear { background: #dc3545; color: white; }
.btn-copy { background: #ffc107; color: black; }

footer {
    background-color: #f8f8f8;
    text-align: center;
    padding: 3px;
    position: relative; /* Changed from fixed to relative */
    bottom: 0;
    width: 100%;
    font-size: 11px;
}

footer a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    margin: 0 3px;
}

footer a:hover {
    text-decoration: underline;
}
