* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

header .submit {
    background-color: #ffd600;
    color: #333;
    text-decoration: none;
    position: absolute;
    top: 30px;
    right: 20px;
    background-color: #ffd600;
    color: #333;
    border: none;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.header-container h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.header-container p {
    font-size: 1em;
    color: #666;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

.category {
    background-color: #ffd600;
    color: #333;
    border: none;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.category:hover {
    background-color: #f1c40f;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

#search-bar {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 1rem;
    outline: none;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

#search-bar:focus {
    border-color: #ffd600;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.tool-card img {
    max-width: 50px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card p {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #ddd;
}

section.tool-details{
    max-width: 40rem;
    margin: 0 auto;
    padding: 2rem;
    min-height: 70vh;
    display: grid;
    place-items: center;
}


section.tool-details {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    color: #666;
    font-size: 0.9em;
    border-top: 1px solid #ddd;
}

a{
    text-decoration: none;
    color: #666;
}


#tool-info{
    size: 2rem;
}
