::root
{
    --greenish: #4CAF50;
    --whiteish: #f1f1f1;
    --blackish: #333;
    --white: #fff;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    margin-top: 20px;
    font-size: 1.2rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    width: 70%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    
    a
    {
        color: #4CAF50;
        text-decoration: none;
        transition: color 0.3s ease;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.modal-content h3 {
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.modal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 0.9rem;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.info-box {
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-box h4 {
    margin-top: 0;
    color: #333;
    margin-bottom: 10px;
}

.algorithm-info {
    display: none;
    animation: fadeIn 0.5s ease;
}

.algorithm-info.visible {
    display: block;
}

.info-box:hover .algorithm-info {
    display: block;
}
