body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #6dd5fa, #ffffff);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    animation: fadeIn 1s ease;
}

h1, h2 {
    text-align: center;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

input, select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0,123,255,0.3);
    outline: none;
}

button {
    padding: 12px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

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

#resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-item {
    padding: 15px;
    background-color: #f0f8ff;
    border-left: 5px solid #007BFF;
    border-radius: 8px;
    animation: slideIn 0.5s ease;
    transition: transform 0.3s;
}

.resource-item:hover {
    transform: scale(1.02);
}

.resource-item a {
    color: #007BFF;
    text-decoration: none;
}

.resource-item a:hover {
    text-decoration: underline;
}

.resource-type, .resource-subject, .resource-contact {
    font-style: italic;
    color: #555;
    margin-right: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
