body {
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin: 0;
    padding-top: 80px; /* Add padding to account for the sticky header */
    background-color: #f0f0f0;
}
img {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
}
header {
    background-color: #2124B1;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
header.scrolled {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

m-0 {
    color: white;
}


.m-0 a {
    color: white;
    text-decoration: none;
    position: relative;
}

.m-0 a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: red;
    transition: width 0.3s ease;
}

.m-0 a:hover::after {
    width: 100%;
}


.logo {
    margin-left: 250px; /* Align with sidebar */
}
.logo h1 {
    margin: 0;
    font-size: 24px;
}
.logo .fs-4 {
    font-size: 24px;
}
.logo a {
    color: white;
    text-decoration: none;
}
nav {
    display: flex;
    align-items: center;
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 6px;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4136;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}
nav ul li a:hover::after {
    transform: scaleX(1);
}
.premium-btn {
    background-color: #ff4136;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.premium-btn:hover {
    background-color: #ff725c;
}
main {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
aside {
    width: 250px;
    flex-shrink: 0;
    background-color: white;
    padding: 1rem;
    margin-right: 1rem;
}
section {
    flex: 1;
    background-color: white;
    padding: 1rem;
    padding-bottom: 4rem;
    overflow-wrap: break-word;
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.tool-item {
    text-align: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: background-color 1s ease;
    position: relative;
    overflow: hidden;
}
.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #2124B1;
    transition: clip-path 1s ease;
    clip-path: inset(0 100% 100% 0);
    cursor: pointer;
}
.tool-item:hover {
    background-color: #e0e0e0;
}
.tool-item:hover::before {
    clip-path: inset(0 0 0 0);
}
.tool-item i {
    font-size: 2rem;
    /*color: #4a0e78;*/
    color: #0d78e9;
}
.tool-item a {
    display: block;
    margin-top: 0.5rem;
    color: #333;
    text-decoration: none;
}
h1, h2 {
    color: #484646;
}
h1 {
    text-align: center;
}
.sidebar-menu {
    list-style-type: none;
    padding: 0;
}
.sidebar-menu li {
    margin-bottom: 0.5rem;
}
.sidebar-menu a {
    color: #333;
    text-decoration: none;
}
.sidebar-menu a:hover {
    color: #4a0e78;
}
.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}
footer {
    background-color: #2124B1;
    color: white;
    padding: 1rem;
    text-align: center;
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    .logo {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    .logo h1 {
        font-size: 20px;
    }
    .logo .fs-4 {
        font-size: 20px;
    }
    nav {
        width: 100%;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 15px;
    }
    .hamburger {
        display: block;
        position: absolute;
        top: 0rem;
        right: 1rem;
    }
    main {
        flex-direction: column;
    }
    aside {
        order: 2;
        width: 100%;
        margin-right: 0;
        margin-top: 1rem;
    }
    section {
        order: 1;
    }
}

.footer-tools-links {
    color: white;
}

.footer-tools-links:visited {
    color: rgb(194, 242, 36);
}


/* Modern styles for XML Sitemap Generator */

.tool-main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tool-main-content h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tool-main-content p, li, .tool-main-content ol {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-main-content ol {
    padding-left: 1.5rem;
}

#sitemapForm {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn-primary {
    background-color: #3498db;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.alert-info {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
}

.alert-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

#sitemapLink {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

#sitemapLink:hover {
    text-decoration: underline;
}

.calculatorTutorial {
    margin-top: 50px;
}

.div-back-to-tools-botton {
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    margin-bottom: 10px
}

.back-to-tools-botton {
    background-color: #4CAF50; 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 14px; 
    margin-bottom: 0px; 
    cursor: pointer; 
    border-radius: 5px;
}

.bottomlines {
    font-size: 28px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 400;
}

.row {
    display: flex;
    flex-wrap: nowrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3 {
    flex: 0 0 22%;
    max-width: 22%;
    padding-right: 5px;
    padding-left: 5px;
}