.badge-gold { background-color: gold; color: black; }
.badge-silver { background-color: silver; color: black; }
.badge-bronze { background-color: #cd7f32; color: white; }
.prize-info { font-size: 0.875rem; color: #555; }
.badge-secondary{ background-color: silver; color: black; }
.badge-success {
    color: #fff; /* White text color */
    background-color: #28a745; /* Green background */
}
.card {
border-radius: 0.25rem;
border: solid 1px #f1f1f1;
	position: relative;
    overflow: hidden; /* Ensures no overflow outside the card */
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em; /* Top and Bottom, Left and Right padding */
    font-size: 100%; /* Relative to the parent element */
    font-weight: 700; /* Bold font weight */
    line-height: 1; /* Line height of 1 */
    text-align: left; /* Center text alignment */
    white-space: nowrap; /* Prevents the content from wrapping */
    vertical-align: baseline; /* Aligns the badge to the baseline */
    border-radius: 0.25rem; /* Rounded corners */
}

.rank-badge {
    position: absolute;
    top: 10px; 
    left: 10px; 
    z-index: 1;
}
.prize-info {
  display:block;
    align-items: center; /* Align items vertically */
   
    flex-wrap: nowrap; /* Allow items to wrap as needed */
}

.prize-image-container {
    display:flex; /* Use flex to align the image as needed */
    align-items: center; /* Aligns the image vertically in the middle */
    justify-content: center; /* Aligns the image to the left */
    margin-right: 10px; /* Space between the image and the prize info */
	flex-wrap: wrap; /* Allow items to wrap as needed */
}


.prize-image {
  display: inline-block;
	 flex-wrap: nowrap; /* Allow items to wrap as needed */
}

.d-inline {
    margin-right: 5px; /* Add space to the right of each image */
}

.card {
    position: relative;
    overflow: hidden;
}

.badge-success {
    font-size: 1rem; 
}

.btn-primary {
    font-size: 0.8rem; 
}



.card-body {
    padding: 15px; 
}

/* Background overlay */
.badge-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark background */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 9999;
}

/* Popup container */
.badge-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 400px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Badge image */
.badge-content img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

/* Close button */
.close-badge-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.close-badge-button:hover {
    background: #0056b3;
}