/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

a {
	text-decoration: none;
	color: #2869c1;
	font-size: 16px;
}
/* Sticky header styles */
.sticky-header {
    background-color: #1c7ad2;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
	font-size: 18px;
}

.sticky-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.sticky-header .logo {
    font-size: 2.1rem;
    font-weight: 600;
    margin-left: 100px;
}

.sticky-header .logo a {
    background: #ffffff;
    background: linear-gradient(to right, #ffffff 40%, #14EB88 10%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sticky-header .logo a:hover {
	background: #14EB88;
	background: linear-gradient(to right, #14EB88 40%, #ffffff 10%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.sticky-header .navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.sticky-header .navbar ul li {
    margin-right: 20px;
}

.sticky-header .navbar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.sticky-header .navbar ul li a:hover {
    color: #14EB88;
}

.sticky-header .search-box {
    text-align: right;
}

.sticky-header .search-box input[type="text"] {
    padding: 8px;
    border: none;
    border-radius: 3px;
}

.sticky-header .search-box button {
    padding: 8px 12px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: auto;
    font-size: 16px;
}

.sticky-header .search-box button:hover {
    background-color: #6c6969;
}
/* Hamburger Menu Icon */
.menu-button {
    display: none; /* Hide by default on larger screens */
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease-in-out;
}
/* Logo Text Letters */
	.cc-letter{/*position: fixed;*/position: relative;top: 0;left: 0;right: 0;bottom: 0;display: flex;align-items: center;justify-content: center;background-color:#fff;: 9999;}
    .cc-letter h1{position: relative;font-size: 15vw;color: #fff;-webkit-text-stroke: 0.3vw #1c7ad2 ;text-transform: capitalize;font-weight: 600;z-index: 0;}
    .cc-letter h1 span{color: #fff;-webkit-text-stroke: 0.3vw #fe672c ;text-transform: capitalize;}
    .cc-letter h1::before{content: attr(data-text);position: absolute;top: 0;left: 0;width: 0%;height: 100%;color: #7C32FF;-webkit-text-stroke: .2vw #7C32FF !important;/*border-right: 3px solid #7C32FF ;*/overflow: hidden;animation: typeload 6s linear infinite ;z-index: 9;}
    .cc-letter a{position: relative;font-size: 28px;background-color: #1c7ad2;color: #fff;-webkit-text-stroke: 0.05vw #1c7ad2 ;text-transform: capitalize;font-weight: 600;z-index: 0;}
    .cc-letter a span{color: #fff;-webkit-text-stroke: 0.05vw #fe672c ;text-transform: capitalize;}
    .cc-letter a::before{content: attr(data-text);position: absolute;top: 0;left: 0;width: 0%;height: 100%;color: #7C32FF;-webkit-text-stroke: .2vw #7C32FF !important;/*border-right: 3px solid #7C32FF ;*/overflow: hidden;animation: typeload 6s linear infinite ;z-index: 9;}
    .cc-letter h2{color: #fe672c;text-transform: capitalize;}

/* Main content and sidebar layout */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
/* CSS for Category Sections */
.category-sections {
    background-color: #fff;
    padding: 40px 0;
}

.category-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.category-tiles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.category-tile {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    width: 30%;
    margin: 10px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.category-tile a{
	font-size: 22px;
}	
.category-tile:hover {
    transform: scale(1.05);
}

.category-tile h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.category-tile p {
    font-size: 18px;
}

.converter-column {
    flex: 3;
    padding: 20px 30px;
    margin: 0 auto;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.converter {
    margin: 20px 0;
}

input[type="number"],
select {
    width: 100%;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

button:hover {
    background-color: #218838;
}

.result {
    margin-top: 20px;
}

.result p {
    font-size: 18px;
    color: #555;
}

.info-section {
    margin-top: 20px;
}

.sidebar {
    width: 25%;
    background-color: #f1f1f1;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px; /* Adjust as needed */
    height: calc(100vh - 40px); /* Adjust as needed */
    overflow-y: auto; /* Enable vertical scrolling */
}

.content {
    width: 75%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    bottom: 0;
}

pre {
    background-color: #f0f0f0;
    font-size: 15px;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.code-section {
    margin-top: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .sticky-header .menu-button {
        display: block; /* Show hamburger menu icon on smaller screens */
    }
	
	.sticky-header .logo {
		font-size: 1.5rem;
		font-weight: 700;
		margin-left: 5px;
	}

    .sticky-header .navbar ul {
        display: none; /* Hide navigation links by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Height of the header */
        left: 0;
        background-color: #333;
        width: 100%;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .sticky-header .navbar ul.open {
        display: flex; /* Show navigation links when menu is open */
    }

    .sticky-header .navbar ul li {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .sticky-header .navbar ul li a {
        padding: 15px 0;
    }

    .sticky-header .menu-button.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .sticky-header .menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .sticky-header .menu-button.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-content {
        flex-direction: column;
    }

    .content, .sidebar {
        width: 100%;
    }
	.sidebar {
        display: none;
    }
}
