/* Info Icon and Modal Styles */
.info-icon-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#info-icon {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover; /* This will prevent the image from stretching */
}

#info-icon:hover {
    transform: scale(1.1);
}

#info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-content {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid #000000;
    box-shadow: 8px 8px 0px #000000;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.info-section h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-section p, .info-section ul {
    font-size: 1rem;
    line-height: 1.6;
}

.info-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.similar-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.similar-game-card {
    padding: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.similar-game-card h2 {
    font-size: 1.2rem;
}

/* Specificity fix for hidden modal */
#info-modal.hidden {
    display: none;
}
