body{
    font-family: Arial, sans-serif;
    background:#f2f2f2;
    margin:0;
}

header{
    background:#2196F3;
    color:white;
    text-align:center;
    padding:25px;
}

/* Search Section Container */
.search-box {
    display: flex;
    justify-content: center;
    margin: 30px 20px;
}

/* Wrapper to position the icon inside the bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

/* Magnifying Glass Icon Styling */
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #777;
    pointer-events: none;
    z-index: 2; /* Brings the icon above the input background */
}

/* Modernized Input Field */
.search-container input {
    width: 100%;
    padding: 16px 20px 16px 50px; /* Extra padding on the left for the icon */
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 30px; /* Modern rounded pill shape */
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft, modern drop shadow */
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus State (When user clicks to type) */
.search-container input:focus {
    border-color: #2196F3;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
    transform: translateY(-1px);
}

/* Dark Mode Support for Search Input */
body.dark .search-container input {
    background: #1E1E1E;
    border-color: #333;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark .search-container input:focus {
    border-color: #64B5F6;
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.25);
}

body.dark .search-icon {
    color: #aaa;
}

input{
    width:70%;
    max-width:600px;
    padding:15px;
    font-size:18px;
    border-radius:8px;
    border:1px solid #ccc;
}

.card{
    background:white;
    width:80%;
    max-width:700px;
    margin:20px auto;
    padding:20px;
    border-radius:16px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    transition:all .35s ease;

    cursor:pointer;

    transform:perspective(1000px) translateZ(0);
}

.card:hover{

    transform:
        perspective(1000px)
        translateY(-10px)
        translateZ(40px)
        scale(1.03);

    box-shadow:
        0 25px 50px rgba(0,0,0,.35);
}

h2{
    color:#1976D2;
}
.section-title{
    text-align:center;
    margin-top:30px;
    color:#333;
}

.subjects,
.letters{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin:20px;
}

.subjects button,
.letters button{

    padding:10px 18px;

    border:none;

    border-radius:30px;

    background:#2196F3;

    color:white;

    font-size:16px;

    cursor:pointer;

    transition:.3s;
}

.subjects button:hover,
.letters button:hover{

    background:#1565C0;

    transform:translateY(-3px);

}

.subject-btn,
.letter-btn{

    background:#2196F3;
    color:white;
    border:none;
    border-radius:25px;
    padding:10px 18px;
    cursor:pointer;
    transition:0.3s;
}

.subject-btn:hover,
.letter-btn:hover{

    transform:translateY(-3px);
}

.subject-btn.active,
.letter-btn.active{

    background:#0D47A1;
    box-shadow:0 0 15px rgba(13,71,161,.4);
    transform:scale(1.08);
}

/* -------------------- */
/* Theme Button */
/* -------------------- */

header{
    position:relative;
}

.theme-btn{

    position:absolute;

    top:20px;
    right:20px;

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:white;

    font-size:24px;

    cursor:pointer;

    transition:.3s;

}

.theme-btn:hover{

    transform:rotate(20deg) scale(1.1);

}

/* -------------------- */
/* Dark Mode */
/* -------------------- */

body.dark{

    background:#121212;

    color:white;

}

body.dark header{

    background:#0D47A1;

}

body.dark .card{

    background:#1E1E1E;

    color:white;

}

body.dark .card h2{

    color:#64B5F6;

}

body.dark .section-title{

    color:white;

}

body.dark input{

    background:#2A2A2A;

    color:white;

}

body.dark input::placeholder{

    color:#bbbbbb;

}