
/* Styles specific to the subject list and links */
.subject-list li {
    list-style-type: none; /* Remove default bullet points */
}

.subject-link {
    display: inline-block;
    padding: 4px 8px ;
    font-size: 18px;
    color: #0d47a1;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none; 
    margin-bottom: 10px;
}

.subject-link:hover {
    background-color: #e3e3e3;
}

/* Dark mode styles */
.dark-mode .subject-link {
    color: #bb86fc;
}

/* Phones — ~320 px */
@media (min-width: 320px) {
    h1 { font-size: 1.75rem; line-height: 1.15; }  /* ≈28 px */
h2 { font-size: 0.925rem; line-height: 1.35; } /* ≈15 px */

}

/* Tall phones / small tablets — ~576 px */
@media (min-width: 576px) {
h1 { font-size: 2.25rem; line-height: 1.2; }   /* ≈36 px */
h2 { font-size: 1.1rem;  line-height: 1.4; }   /* ≈17.6 px */
}

/* Tablets & small laptops — ~768 px */
@media (min-width: 768px) {
h1 { font-size: 2.75rem; line-height: 1.25; }  /* ≈44 px */
h2 { font-size: 1.25rem; line-height: 1.45; }  /* ≈20 px */
}

/* Standard laptops — ~1024 px */
@media (min-width: 1024px) {
h1 { font-size: 4.rem; line-height: 1.3; }   /* ≈52 px */
h2 { font-size: 1.375rem; line-height: 1.5; }  /* ≈22 px */
}

/* Desktops & large laptops — ~1280 px */
@media (min-width: 1280px) {
h1 { font-size: 3.75rem; line-height: 1.32; }  /* ≈60 px */
h2 { font-size: 1.5rem;   line-height: 1.55; } /* ≈24 px */
}

/* XL desktops / ultra-wide — ~1536 px */
@media (min-width: 1536px) {
h1 { font-size: 4.5rem;  line-height: 1.34; }  /* ≈72 px */
h2 { font-size: 1.7rem;  line-height: 1.6; }   /* ≈27 px */
}
/* Additional custom styles if needed */
.dropdown-menu {
    display: none;
}

.show > .dropdown-menu,
.library-label:focus + .dropdown-menu,
.library-label:hover + .dropdown-menu {
    display: block;
    cursor: pointer;
}
#banner {
    top: 0;
    justify-content: center; /* Centre children horizontally */
    align-items: center; /* Centre children vertically */
}

#banner div {
    width: 90%;
    background-color: rgba(0, 0, 0, 0.9); /* Darker with high contrast */
    color: white;
    padding: 24px; /* Increased for better spacing */
    border-radius: 12px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#banner,
#banner h1,
#banner h2 {
    color: #fff; /* white text */
    text-align: center; /* centre horizontally */
}