body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #1c1e21;
    margin-bottom: 10px;
    font-size: 24px; /* Adjusted font size */
    /* Removed white-space: nowrap; */
}

p {
    color: #606770;
    margin-bottom: 30px;
    font-size: 16px; /* Adjusted font size */
    /* Removed white-space: nowrap; */
}

button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block; /* Center button */
    margin: 10px auto; /* Center button */
}

button:hover {
    background-color: #166fe5;
}

.upload-container {
    border: 2px dashed #1877f2;
    padding: 20px;
    border-radius: 8px;
    background-color: #f7f8fa;
}

#image-container {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background-color: #f7f8fa;
}

#uploaded-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    display: block; /* Center image */
    margin: 0 auto; /* Center image */
}

#label-container {
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #f7f8fa;
}

#label-container div {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#label-container div:last-child {
    border-bottom: none;
}

#label-container .rank-1 {
    font-weight: bold;
    font-size: 22px;
    color: #DAA520; /* Goldenrod - slightly darker gold */
}

#label-container .rank-2 {
    font-weight: bold;
    color: #A9A9A9; /* DarkGray - slightly darker silver */
}

#label-container .rank-3 {
    font-weight: bold;
    color: #CD7F32; /* Bronze */
}

/* Styles for the informational content sections */
.content-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    text-align: left;
}

.content-section h2 {
    color: #1c1e21;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.content-section p, .content-section li {
    line-height: 1.6;
    color: #333;
}

.content-section ol {
    padding-left: 20px;
}

.content-section ol li {
    margin-bottom: 10px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.type-card-simple {
    background-color: #f7f8fa;
    border: 1px solid #e1e2e3;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #333;
    transition: background-color 0.3s;
}

.type-card-simple:hover {
    background-color: #e9ebee;
}

/* Button for opening info modal */
.button-secondary {
    background-color: #e9ebee;
    color: #4b4f56;
    margin-top: 20px;
}

.button-secondary:hover {
    background-color: #dddfe2;
}

/* Modal Overlay for Information */
.info-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto; /* Allow scrolling */
    padding: 5vh 20px;
    box-sizing: border-box;
}

.info-overlay.visible {
    display: flex;
}

.info-overlay .info-container {
    margin: 0;
    width: 100%;
    max-width: 800px;
}

/* Make the first content section relative for the close button */
.info-overlay #about {
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #606770;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.modal-footer {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    margin: 0 auto 5vh;
    color: #f0f2f5; /* Lighter color for dark overlay */
    font-size: 12px;
}

.disclaimer-text {
    font-size: 0.8rem; /* Smaller font size */
    color: #888; /* Muted color */
    margin-top: 15px; /* Spacing from the above elements */
    margin-bottom: 5px; /* Spacing from the button below */
    padding: 0 10px; /* Some horizontal padding */
    line-height: 1.4;
}
