
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

main {
    padding-bottom: 4rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #20232a;
    color: #61dafb;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #61dafb;
    text-decoration: none;
}

.btn-primary {
    background-color: #61dafb;
    color: #20232a;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: #282c34;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: #61dafb;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 3rem 1rem;
    gap: 1.5rem;
    background-color: white;
}

.feature {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 1.5rem;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.feature h2 {
    margin-bottom: 1rem;
}

.features .feature:nth-child(2) p {
    white-space: nowrap;
}


footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    background-color: #20232a;
    color: #61dafb;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); 
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: #61dafb;
    text-decoration: none;
}

.code-snippets {
    margin: 0 20px 40px 20px; 
    background-color: #f4f4f4; 
    padding: 15px; 
    border-radius: 5px; 
}

.code-snippets h2 {
    margin-bottom: 10px; 
}

pre {
    background-color: #282c34; 
    color: #ffffff; 
    padding: 10px; 
    border-radius: 4px; 
    overflow-x: auto; 
    flex: auto;
}

#code {
    display: flex;
    gap: 16px;
}

.fade-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    background-image: url('images/newreact2.webp'); 
    background-size: cover; 
    opacity: 0.7;
    z-index: -1;
}