/* ---------------- GLOBAL ---------------- */

body {
    margin: 0;
    padding: 0;
    background-image: url("Background with Logo 2.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    font-family: sans-serif;
}

p {
    line-height: 1.8;
    font-size: 18px;
    text-align: justify;
    margin: 20px;
}

@media (min-width: 768px) {
    p {
        font-size: 20px;
        margin-left: 29px;
        margin-right: 10px;
    }
}

/* ---------------- ABOUT HEADING ---------------- */

.Green {
    color: green;
    font-size: 20px;
    margin-top: 40px;
    text-align: center;
}

@media (min-width: 1024px) {
    .Green {
        margin-left: 400px;
        text-align: left;
    }
}

/* ---------------- TYPED URDU TEXT ---------------- */

.typed {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    width: fit-content;

    color: rgb(14, 89, 31);
    font-size: 30px;
    direction: rtl;
    font-family: 'Jameel Noori Nastaleeq';
    font-weight: normal;
    line-height: 1.2;
    text-align: center;

    animation: typing 3.5s steps(90, end),
               blink-caret .7s step-end infinite;
    animation-delay: 1s;
}

/* Typing effect */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}

/* ---------------- IMAGE ---------------- */

img {
    margin: 5px 20px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------- NAVIGATION ---------------- */

.topnav {
    background-color: silver;
    padding: 10px 20px;
    border: 3px solid maroon;
    border-radius: 8px;

    display: flex;
    justify-content: center;
    gap: 20px;

    margin: 20px auto;
    width: fit-content;
}

.topnav a {
    color: #cb1c1c;
    text-align: center;
    text-decoration: none;
    font-size: 20px;

    padding: 14px 16px;
    transition: 0.3s;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #151514;
    border-radius: 6px;
}

.topnav a:hover {
    background-color: rgb(134, 190, 220);
    border-radius: 70px;
}

.topnav a.active {
    background-color: #04AA6D;
    color: white;
}

@media (max-width: 600px) {
    .topnav {
        flex-direction: column;
        width: 90%;
        gap: 10px;
    }

    .topnav a {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------- POPUP ---------------- */

.popup {
    display: block;
}

.popup-content {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
}

.close {
    float: right;
    font-size: 30px;
    cursor: pointer;
}
