/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #222;
    border: 4px solid #DC0A2D;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    color: white;
    font-family: 'Roboto', sans-serif;
    position: relative;
    box-shadow: 0 0 20px rgba(220, 10, 45, 0.5);
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}

.modal-header {
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: #FFD700;
    font-family: 'Press Start 2P', cursive;
    text-shadow: 2px 2px 0 #000;
    margin: 0;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.modal-images {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    min-width: 140px !important;
    margin-right: 20px !important;
}

.img-container {
    text-align: center;
}

.img-container img {
    width: 120px;
    height: 120px;
    background-color: #333;
    border-radius: 10px;
    border: 2px solid #555;
}

.modal-details {
    flex: 2;
    min-width: 250px;
}

.detail-section {
    margin-bottom: 15px;
}

.detail-section h3 {
    color: #4db8ff;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

#modal-stats {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

#modal-stats li {
    font-size: 14px;
    background-color: #333;
    padding: 5px;
    border-radius: 3px;
}

#modal-description {
    font-style: italic;
    line-height: 1.4;
}