/* General Page Styling */
body {
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0e0e;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    background-image:url(back.jpg) ;
    background-size: cover;
    height: 100vh;
}

/* Heading Style */
h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff9800;
}

/* Input Box Styling */
#input {
    height: 40px;
    width: 280px;
    border: none;
    outline: none;
    background-color: #1e1e1e;
    color: white;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

#input:focus {
    border: 1px solid #ff9800;
    background-color: #2a2a2a;
}

/* Button Styling */
button {
    height: 30px;
    width: 90px;
    background-color: #ff9800;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
}

button:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

/* Container for Results */
.data {
    width: 100%;
    display: flex;
    justify-content: center; 
    padding: 20px 0;
}

/* Cards wrapper */
.card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  
    gap: 20px;
    max-width: 1200px;        
    width: 100%;
    padding: 0 10px;
}

/* Each anime card */
.card li {
    background: #1a1818;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1rem;
    color: #ffcc80;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    gap: 15px;
    width: 20rem;
    text-align: center;
}

/* Hover effect for card */
.card li:hover {
    background: #292929;
    transform: translateY(-3px);
}

/* Link styling */
.card li a {
    display: block;
    color: #03a9f4;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 6px;
}

.card li a:hover {
    text-decoration: underline;
}


.card li img {
    width: 150px;
    border-radius: 6px;
    border: 2px solid #444;
    transition: 0.3s;
}

.card li img:hover {
    transform: scale(1.05);
    border-color: #ff9800;
}


@media (max-width: 600px) {
    .card li {
        width: 90%;   
    }
    body{
        height: 100vh;
        background-image: url(mobile.jpg);
        background-size: cover;
    }
}
