* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eaeaea;
}

ul li {
    display: inline;
    list-style: none;
}

ul li a {
    color: black;
    display: inline-flex;
    text-decoration: none;
    padding-left: 15px;
}

nav {
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 50px;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
}

nav a:hover {
    background-color: #f0f0f0;
}

nav li:first-child {
    margin-right: auto;
}

.sidebar {
    position: fixed;
    top: 0; 
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 1000;
}

.sidebar.active {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
}

.logo-text {
    display: flex;
    align-items: center; 
}

.logo {
    width: 100%; 
    height: auto; 
    max-width: 50px; 
    margin-right: 5px;
}

.developer-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto;
}

.pill {
    background-color: #f9f9f9;
    border: 2px solid #007bff;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 1em;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
    margin: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;
    width: auto;
}

.pill:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

h2 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin: 30px 0;
}

.programming-languages {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
}

.language {
    text-align: center; 
    margin: 10px;
}
.language-logo {
    color: #007bff;
    transition: color 0.3s;
}

.language-logo:hover {
    color: #0056b3;
}

.language i {
    font-size: 50px; 
    color: #999; 
    transition: color 0.3s, transform 0.3s; 
}

.language i:hover {
    color: inherit; 
}

.language i.fa-html5:hover {
    color: #E44D26; 
}

.language i.fa-css3-alt:hover {
    color: #1572B6; 
}

.language i.fa-square-js:hover {
    color: #F7DF1E; 
}

.language i.fa-font-awesome:hover {
    color: #4E4E4E; 
}

.language:hover {
    transform: scale(1.1); 
}

.language span {
    display: block; 
    margin-top: 5px; 
    font-size: 16px; 
    color: #333; 
}

@media (max-width: 1200px) {
    ul li {
        display: inline-block;
        margin: 5px; 
    }
    .developer-pills {
        flex-direction: column;
        align-items: center;
    }
    .sidebar {
        width: 200px; /* Adjust sidebar width for larger screens */
    }
}

@media (max-width: 800px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    .sidebar {
        width: 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 600px) {
    ul li {
        display: block;
        text-align: center; 
    }
    ul li a {
        padding: 10px 15px; 
    }
    .pill {
        font-size: 0.9em;
        padding: 8px 10px;
        width: auto;
    }
    .developer-pills {
        margin: 10px; /* Reduce margin for smaller screens */
    }
}

@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }
    .pill {
        width: 90%;
    }
    .logo {
        max-width: 40px; /* Adjust logo size for smaller screens */
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .code-editor,
    .output-panel {
        margin-bottom: 1rem;
        width: 100%; /* Ensure full width on smaller screens */
    }
}
body {
    background-color: #f8f9fa;
}

.card {
    border-radius: 8px;
}

.menu-button {
    display: block; /* Ensure the menu button is visible */
    font-size: 24px; /* Adjust icon size */
    cursor: pointer; /* Change cursor to pointer */
}

.sidebar {
    display: none;
}

.sidebar.active {
    display: flex; 
}

.sidebar-icon {
    display: block; 
    cursor: pointer; 
}


@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}


.image-placeholder {
    height: 150px; 
    background-color: #ccc;
    border-radius: 0.25rem 0.25rem 0 0; 
}

h3 {
    font-size: 1.25rem; 
    color: #333;
    margin: 0; 
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language i.fa-github:hover {
    color: #181717; 
    transform: scale(1.1); 
}

.language i.fa-cloudflare:hover {
    color: #F38020; 
    transform: scale(1.1); 
}

.hidden {
    display: none;
}


.code-editor {
    min-height: 300px;
    font-family: monospace;
    border-radius: 8px;
}

.output-panel {
    min-height: 300px;
    border-radius: 8px;
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.visualization-area {
    min-height: 200px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.featured-categories .card-img-top {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .code-editor,
    .output-panel {
        margin-bottom: 1rem;
    }
}