@import url('https://fonts.googleapis.com/css?family=Berkshire+Swash');

.hof-title {
    font-family: "Berkshire Swash", cursive;
    text-align: center;
    font-size: 48px; /* Reduced font size */
    color: rgb(255, 213, 0);
    text-shadow: rgb(0, 0, 0) 2px 2px 4px;
    margin-top: -20px;
    margin-bottom: 8px;
}

.winner-cards-container {
    max-width: 1200px; /* Adjusted maximum width for tighter layout */
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Reduced gap for compact spacing */
    padding: 15px;
}

.winner-card {
    background-color: rgba(0, 0, 0, 0.8);
    width: 240px; /* Reduced card width */
    border-radius: 12px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: center;
    font-family: "Berkshire Swash", cursive;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-8px); /* Slightly adjusted lift effect */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.7);
}

.winner-card-image {
    width: 100%;
    height: 150px; /* Reduced image height */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.winner-card:hover .winner-card-image {
    transform: scale(1.05); /* Subtle zoom effect */
}

.winner-card-info {
    padding: 12px; /* Reduced padding for compact look */
    color: white;
}

.winner-card-title {
    font-size: 18px; /* Reduced title font size */
    margin-bottom: 8px;
    color: rgb(255, 213, 0);
    text-shadow: rgb(0, 0, 0) 2px 2px 4px;
}

.winner-card-winner-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

.winner-card-winner {
    font-size: 24px; /* Reduced font size */
    color: #DAA520;
    font-weight: bold;
    text-shadow: 0px 0px 0.2em red, 0px 0px 0.2em pink, 0px 0px 0.2em red;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.winner-card:hover .winner-card-winner {
    color: #FFD700;
    text-shadow: 0px 0px 6px red, 0px 0px 6px pink, 0px 0px 6px red;
}

@media (max-width: 768px) {
    /* Make the container scrollable */
    .winner-cards-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        margin-bottom: 10px;
        gap: 15px; /* Small gap between items */
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
        scroll-padding-left: 10vw; /* ✅ Ensures first item is properly positioned */
        justify-content: flex-start; /* ✅ Ensures items align from the start */
    }

    /* Hide scrollbar for WebKit browsers */
    .winner-cards-container::-webkit-scrollbar {
        display: none;
    }

    /* Ensure each card is properly sized */
    .winner-card {
        flex: 0 0 70%; /* ✅ Each item takes 70% of the screen width */
        scroll-snap-align: center;
        text-align: center;
    }

    /* Ensure first item is properly visible */
    .winner-card:first-child {
        margin-left: 0;
    }
}

