.link-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Distribute links evenly horizontally */
    align-content: space-between; /* Distribute links evenly vertically */
    padding-top: 20px; /* Add spacing between content and links */
    width: 90%;
    margin: 0 auto;
}

.toplink {
    width: calc(33.33% - 10px); /* Adjust the width to make them square and add margin */
    aspect-ratio: 1;
    max-height: 200px;
    background-color: #1a1a1a; /* Change the link background color */
    overflow: hidden; /* Hide the overflow */
    margin: 0 0px 15px; /* Margin for spacing between links */
    display: flex; /* Add display flex to center image vertically and horizontally */
    align-items: center;
    justify-content: center;
    position: relative; /* Required for absolute positioning */
}

     /* Media Query for mobile screens */
     @media screen and (max-width: 768px) {
        .toplink {
            width: calc(50% - 10px); /* Adjust width for 2 columns on mobile */
            max-height: none; /* Override any specific max-height */
        }
    }

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and fit inside the container */
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add a drop shadow to the image */
    border-radius: 5px;
}

.overlay {
    position: absolute;
    border: 5px solid whitesmoke;
    border-radius: 5px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.toplink:hover .overlay {
    background-color: rgba(255, 255, 255, 0.1); /* Lighten the overlay on hover */
}


.link-title {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000925;
    color: white;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    font-weight: 700;
    width: 90%;
    border: 1px solid white;
}

.beginner-stamp {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: limegreen;
    color: #000925;
    padding: 5px;
    font-size: 10px;
    border-radius: 5px;
}
