
/* Modal styling */
/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 10%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: black;
    }

/* Content styling */
.modal-body {
    padding: 16px;
    line-height: 1.6;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #333;
}

.formatted-text {
    font-family: Arial, sans-serif;
    color: #444;
    margin-bottom: 20px;
}

    .formatted-text h2 {
        color: #2c3e50;
        margin-top: 20px;
    }

    .formatted-text p {
        margin-bottom: 12px;
    }

    .formatted-text .highlight {
        background-color: #fffde7;
        padding: 2px 4px;
        border-radius: 3px;
    }

/* Close button styling */
.modal-footer {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.close-btn {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

    .close-btn:hover {
        background-color: #d32f2f;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }

    .modal-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .formatted-text h2 {
        font-size: 18px;
    }

    .close-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Button styling */
#showModalBtn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px;
}

    #showModalBtn:hover {
        background-color: #45a049;
    }

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.loading-content {
    background-color: #37AAE3;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}