html, body {
    height: 100%; /* Ensure that the body covers the full height of the viewport */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f8d3f8, #b791fd); /* Gradient from light to dark blue */
    background-size: cover; /* Ensure the gradient covers the entire background */
    background-position: center; /* Center the gradient */
    background-attachment: fixed; /* Keep the background fixed while scrolling */
    background-size: 100% auto; /* Make sure the gradient covers the entire height of the content */
    user-select: none;
}

header {
    background: linear-gradient(135deg, #9d72c3, #4a2574);
    color: white;
    text-align: center;
    padding: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    transition: opacity 1s;
}

header:hover {
    opacity: 0.5;
}

nav {
    background: linear-gradient(135deg, #232526, #414345);
    overflow: hidden;
}

nav a {
    float: left;
    display: block;
    color: rgb(204, 204, 204);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
   background: linear-gradient(135deg, #bfa9d2, #4a2574);
    color: rgb(255, 255, 255);
    transform: scale(1.05);
}



/* Add the animated circles background */
.area {
    background: #603a8cd4;  /* Darker base color */
    background: -webkit-linear-gradient(to left, #4e5d92, #633a8c);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it's behind the content */
    overflow: hidden;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}





main {
    padding: 20px;
    color: #fff;
    backdrop-filter: blur(10px);
    margin-bottom: 60px; /* Space for footer */
}

.cambridge-books-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-template-areas:
        "book1 book2 book3"
        "book4 book5 book6"
        "book7 book8 book9"
        "book10 book11 book12"
        "book13 book14 book15"
        "book16 book17 book18"
        "book19 book19 book19";
}

.cambridge-book {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    text-decoration: none; /* Remove underline from the link */
    color: #43cea2;
    font-weight: bold;
}

.cambridge-book:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #33bd91;
}

.cambridge-book.large {
    grid-column: 1 / -1; /* Spans across all columns */
}

.test-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.test {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.test:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.test h3 {
    margin: 0;
    font-size: 1.2em;
}

.test ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test li {
    margin: 10px 0;
}

.test a {
    text-decoration: none;
    color: #43cea2;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.test a:hover {
    color: #33bd91;
}

/* Ensure the body covers the full height of the viewport */


.test-selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.test {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none; /* Remove underline from the link */
    color: #43cea2;
    font-weight: bold;
}

.test:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #33bd91;
}

.test h3 {
    margin: 0;
    font-size: 1.2em;
}

.test a {
    text-decoration: none;
    color: inherit; /* Inherit color from .test */
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.test a:hover {
    color: #33bd91;
}
 

