#navbar {
    background-color: #f4f4f4;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#header-link {
    text-decoration: none;
    color: #fff;
}

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

#container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero {
    text-align: center;
    margin-bottom: 2rem;
}

#intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#tools-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

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

.tool-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tool-card a:hover {
    background-color: #0052a3;
}

#dark-mode-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
    background-color: #333;
    color: #fff;
}

.dark-mode #navbar {
    background-color: #222;
}

.dark-mode #navbar a, .dark-mode #header-link {
    color: #fff;
}

.dark-mode .tool-card {
    border-color: #555;
    background-color: #444;
}

.dark-mode #dark-mode-toggle {
    background-color: #f4f4f4;
    color: #333;
}

@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    #navbar > div {
        margin-top: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}