/* Game Info Modal & Floating Button Styles */

/* Floating Button */
#info-btn {
    position: fixed;
    top: 85px;
    /* Below header */
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    /* High index to float above game elements */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#info-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    border-color: #00cc6a;
    color: #00cc6a;
}

/* Modal Overlay */
.info-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    /* Above everything */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.info-content {
    background: #1a1a1a;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    color: #f0f0f0;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    line-height: 1.6;
}

.info-modal.show .info-content {
    transform: scale(1);
}

/* Close Button */
.close-info {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-info:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Typography in Modal */
.info-content h2 {
    margin-top: 0;
    color: #00cc6a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
    font-size: 1.8rem;
}

.info-content h3 {
    color: #fff;
    margin-top: 1.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.info-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-content li {
    margin-bottom: 0.5rem;
}

.info-content p {
    margin-bottom: 1rem;
}

/* Scrollbar for modal */
.info-content::-webkit-scrollbar {
    width: 8px;
}

.info-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.info-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}