/* General Reset */
body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #e3f2fd;
    padding: 20px;
}

/* Container Styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    /* overflow: hidden; */
    padding: 20px;
}

/* Header Styling */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #bbdefb;
}

header h1 {
    font-size: 2.5em;
    color: #0d47a1;
    animation: fadeIn 2s ease-in-out;
}

header h2 {
    font-size: 1.2em;
    color: #1565c0;
    margin-top: 10px;
}

/* Tiles Section */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.subject-tile {
    background-color: #bbdefb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* position: relative; */
    overflow: visible; 
}

.subject-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.subject-tile img {
    width: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

.subject-tile h3 {
    font-size: 1.2em;
    color: #0d47a1;
    margin-bottom: 10px;
}

/* Dropdown Styling */
.dropdown {
    /* position: relative; */
    display: inline-block;
    z-index: 1000;
}

.dropbtn {
    background-color: #1565c0;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropbtn:hover {
    background-color: #0d47a1;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
    padding: 5px 0;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    color: #1565c0;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #bbdefb;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    background-color: #1565c0;
    color: white;
    border-radius: 8px;
    font-size: 0.9em;
}

footer a {
    color: #bbdefb;
    text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
