body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background: linear-gradient(135deg, #3f51b5, #5c6bc0);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    margin: 0;
}

header p {
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

nav {
    background-color: #ffffff;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul{
    flex-wrap: wrap!important;
}


nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap!important;
    list-style: none;
    padding: 0;
    margin: 0;
}


nav li {
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    font-weight: 700;
    color: #3f51b5;
    transition: color 0.3s;
}

nav a:hover {
    color: #283593;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-bar input {
    width: 60%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-bar button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #283593;
}

.categories {
    margin-bottom: 2rem;
}

.categories h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.categories ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    background-color: #e8eaf6;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.categories li:hover {
    background-color: #c5cae9;
}

.categories a {
    text-decoration: none;
    color: #3f51b5;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.term-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.term-card h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    margin-top: 0;
}

.term-card p {
    font-size: 1rem;
    margin: 1rem 0 0;
    line-height: 1.6;
}

.term-card button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.term-card button:hover {
    background-color: #283593;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #3f51b5;
    color: white;
    margin-top: 2rem;
    position: relative;
    top: 55;
    /* overflow: ; */
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

.container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.container h1 {
    font-size: 1.8rem;
    color: #3f51b5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #3f51b5;
    outline: none;
    box-shadow: 0 0 4px rgba(63, 81, 181, 0.5);
}
.button {
    background-color: #3f51b5;
    color: white;
    border: none;
    padding: 0.75rem;
    width: 100%;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #283593;
}

.switch {
    margin-top: 1rem;
    text-align: center;
}

.switch a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: bold;
}

.switch a:hover {
    text-decoration: underline;
}

