html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    background-color: #f2f2f2;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.site-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
    background-color: #e0e0e0;
}

.site-nav a.active {
    background-color: #007bff;
    color: white;
}

.site-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.container-full {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

body,
div,
h1,
input {
    padding: 0;
    margin: 0;
    outline: none;
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    color: #636363;
}

h1,
h2 {
    padding: 10px 0;
    text-align: center;
}

h1 {
    font-size: 32px;
    font-weight: 300;
}

h2 {
    font-size: 28px;
    font-weight: 300;
}

.main-block {
    padding: 20px;
    border-radius: 5px;
    border: solid 1px #ccc;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, .31);
    background: #ebebeb;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

#asciiValueForHex {
    float: right;
}

.small {
    max-width: 340px;
}

textarea {
    width: 100%;
    height: 80px;
    resize: vertical;
    border-radius: 5px;
    border: solid 1px #cbc9c9;
    box-shadow: 1px 2px 5px rgba(0, 0, 0, .09);
}

hr {
    color: #a3a2a2;
    opacity: 0.3;
}

.input_wrap {
    margin: 38px auto;
    display: flex;
}

.input_wrap .input_box {
    position: relative;
    height: 60px;
    width: 100%;
}

.input_wrap .input_box .input {
    border: 0;
    outline: none;
    color: #8b7d77;
    height: 100%;
    font-size: 18px;
    padding-left: 80px;

    box-sizing: border-box;
    border-radius: 50px;
    width: 100%;
}

.input_wrap .input_box .input_icon {
    position: absolute;
    width: 60px;
    height: 100%;
    background: #7690da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.input_wrap .input_box .input_icon:hover {
    background: #708bd2;
}

/* Password Generator Styles */
.password-display {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 18px;
    min-height: 24px;
    word-break: break-all;
    text-align: center;
}

.controls {
    margin-top: 20px;
}

.slider {
    width: 100%;
    margin: 10px 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.primary-btn {
    background-color: #7690da;
    color: white;
}

.primary-btn:hover {
    background-color: #5e7ad0;
}

.secondary-btn {
    background-color: #636363;
    color: white;
}

.secondary-btn:hover {
    background-color: #4a4a4a;
}

/* Jekyll-specific styles */
header {
    background-color: #f2f2f2;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
}

header h1 a {
    text-decoration: none;
    color: #333;
}

header ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

header ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

header ul li a:hover {
    background-color: #e0e0e0;
}

header ul li a.active {
    background-color: #7690da;
    color: white;
}

/* Homepage tool cards */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* Using minmax prevents overflow */
    }
}

.tool-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.tool-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.tool-card h2 {
    color: #333;
    margin-top: 0;
}

.tool-card p {
    color: #666;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-block;
    background-color: #7690da;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.tool-link:hover {
    background-color: #5e7ad0;
}

main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

footer {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #f2f2f2;
    color: #666;
    margin-top: auto;
    width: 100%;
}