/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f3f8f1;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    background: linear-gradient(to right, #a8e6cf, #dcedc1);
    color: #2f4f4f;
    text-align: center;
    padding: 2rem 0;
}

.header-container h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Top Students Section */
.top-students {
    text-align: center;
    padding: 2rem 0;
}

.top-students h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #4caf50;
    margin-top: -1rem;
}

/* Podium Styling for 1st, 2nd, and 3rd Place */
.students-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.student {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 160px;
}

.student:hover {
    transform: translateY(-10px);
}

/* Height Adjustments for Podium Effect */
.first {
    transform: translateY(-50px);
}

.second {
    transform: translateY(-30px);
}

.third {
    transform: translateY(-10px);
}

/* Name Styling with Blur */
.student-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #2f4f4f;
    transition: filter 0.6s, opacity 0.6s; /* Add transition for blur effect */
}

/* Initially Blurred */
/* .blurred {
    filter: blur(5px);
    opacity: 0.5;
} */

/* Remove Blur */
/* .unblurred {
    filter: blur(0);
    opacity: 1;
} */

/* Points Styling */
.student p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: #555;
}

.points {
    font-weight: bold;
    color: #2f4f4f;
}

/* Footer */
footer {
    background-color: #4caf50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive Design for smaller screens (phones) */
@media (max-width: 768px) {
    .students-container {
        flex-direction: column;
        align-items: center;
    }

    .student {
        width: 90%;
        margin-bottom: 2rem;
    }

    .first, .second, .third {
        transform: translateY(0); /* Remove podium effect on small screens */
    }

    .top-students h2 {
        font-size: 1.5rem;
    }
}

/* Responsive Design for larger screens (laptops/tablets) */
@media (min-width: 769px) {

    .top-students h2 {
        font-size: 1.8rem;
        font-weight: 600;
        margin-bottom: 5rem;
        color: #4caf50;
        margin-top: -1rem;
    }

    .student {
        width: 200px; /* Increase the width */
        height: 220px; /* Increase height for laptops/tablets */
    }

    .student-name {
        font-size: 1.3rem; /* Increase font size */
    }

    .points {
        font-size: 1.3rem;
    }

    .student h3 {
        font-size: 1.7rem; /* Increase title font size */
    }

    .first {
        transform: translateY(-80px); /* Raise 1st place box */
    }

    .second {
        transform: translateY(-50px); /* Raise 2nd place box */
    }

    .third {
        transform: translateY(-30px); /* Raise 3rd place box */
    }
}
