* {
    margin: 0%;
    padding: 0%;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url(imges/Biology.jpg.webp);
    background-attachment: fixed;
    background-position: center;
    background-size: 100% 100%;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

body::before {
    content: " ";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}


a {
    text-decoration: none;
    color: #fff;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px;
    z-index: 99;
}

nav .logo {
    color: #fff;
    margin-left: 60px;
    z-index: 999;
    font-size: 40px;
}

nav ul {

    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin-left: 750px;

}

nav ul li a {
    position: relative;
    font-size: 1.1em;
    font-weight: 500;
    margin-left: 40px;
    padding: 5px;


}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 6%;
    bottom: -6px;
    width: 90%;
    height: 3px;
    background: #ffffff;
    background-repeat: 5px;
    transform: scaleX(0);
    transition: transform .3s;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}


header h1 {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 10;
}


main {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 30px;
}

main a {
    text-decoration: none;
}

main .one {
    width: 50%;
    height: 420px;
    padding: 20px;
}

main .tow {
    width: 30%;
    height: 420px;
    padding: 20px;

}


main div a img {
    width: 100%;
    height: 300px;
    border: 1px solid white;
}

main div a h3 {
    font-size: 1.5em;
    color: #ffffff;
    height: 20px;
    margin: 10px 0 15px 0;
    text-transform: uppercase;
}

main div a p {
    color: white;
    height: 30px;
    border-bottom: 1px solid white;
    padding-bottom: 10px;
    text-transform: uppercase;
    word-spacing: 3px;
}



footer {
    width: 100%;
    height: 250px;
    background-color: #ffffff;
    position: relative;
}

footer #About {
    display: flex;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: space-around;


}

footer .about,
.follow {
    margin-top: 20px;
    width: 30%;
    height: 150px;
    padding-left: 50px;
}

footer .about h1 {
    font-size: 30px;
    color: #000000;
}

footer .follow h1 {
    font-size: 20px;
    color: #000000;
}

footer .follow ul {
    display: flex;
    justify-content: left;
    list-style: none;
    width: 100%;
    height: 40px;
}

footer .follow ul li {
    color: #000000;
    font-size: 30px;
    margin-right: 40px;
    margin-top: 10px;
}

footer .follow .contry {
    display: flex;
    justify-content: left;
}

footer .follow .contry img {
    width: 50px;
    height: 20px;
    border: 1px solid white;
    margin-top: 10px;
    margin-right: 5px;
}

footer .follow .contry h4 {
    color: #000000;
    margin-top: 11px;
    justify-content: center;
    font-size: 15px;
}

footer div p {
    margin-top: 10px;
    font-size: 15px;
    color: #000000;
    line-height: 140%;
}

footer p {
    margin-top: 15px;
    font-size: 15px;
    color: #000000;
    display: grid;
    place-items: center;
}

/* ============================= */
/* Responsive Design */
/* ============================= */

/* Prevent Horizontal Scrolling */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main,
nav,
footer {
    max-width: 100%;
}

/* Hide Menu Checkbox and Icon by Default */

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
}


/* ============================= */
/* Tablets and Small Laptops */
/* ============================= */

@media (max-width: 1024px) {

    nav {
        margin: 25px;
    }

    nav .logo {
        margin-left: 20px;
        font-size: 35px;
    }

    nav ul {
        margin-left: auto;
    }

    nav ul li a {
        margin-left: 20px;
    }

    main .one {
        width: 55%;
        height: auto;
    }

    main .tow {
        width: 35%;
        height: auto;
    }

    main div a img {
        height: 250px;
    }

    footer .about,
    footer .follow {
        padding-left: 20px;
    }
}


/* ============================= */
/* Tablets */
/* ============================= */

@media (max-width: 768px) {

    /* Header */

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        flex-wrap: nowrap;
        margin: 20px;
    }

    nav .logo {
        margin-left: 10px;
        font-size: 32px;
    }

    .menu-icon {
        display: block;
        color: white;
        font-size: 30px;
        cursor: pointer;
        margin-right: 15px;
        z-index: 1001;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 55px;
        right: 0;
        margin: 0;
        padding: 15px;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 10px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        z-index: 1000;
        min-width: 130px;
    }

    #menu-toggle:checked~ul {
        display: flex;
    }

    nav ul li a {
        margin: 0;
        font-size: 15px;
    }


    /* Header Title */

    header h1 {
        font-size: 26px;
        padding: 0 10px;
    }


    /* Main Content */

    main {
        padding: 20px 10px;
    }

    main .one,
    main .tow {
        width: 90%;
        height: auto;
        margin: 15px auto;
        padding: 10px;
    }

    main div a img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    main div a h3 {
        font-size: 1.3em;
        height: auto;
    }

    main div a p {
        height: auto;
    }


    /* Footer */

    footer {
        height: auto;
    }

    footer #About {
        height: auto;
        flex-wrap: wrap;
        padding: 15px 0;
    }

    footer .about,
    footer .follow {
        width: 45%;
        padding-left: 15px;
        margin-bottom: 20px;
    }

    footer .follow ul li {
        margin-right: 20px;
    }
}


/* ============================= */
/* Mobile */
/* ============================= */

@media (max-width: 480px) {

    /* Header */

    nav {
        margin: 15px 10px;
    }

    nav .logo {
        margin-left: 0;
        font-size: 30px;
    }

    .menu-icon {
        font-size: 28px;
    }

    nav ul {
        top: 45px;
        right: 0;
    }

    nav ul li a {
        font-size: 14px;
        padding: 3px;
    }


    /* Header Title */

    header h1 {
        font-size: 22px;
    }


    /* Main Content */

    main {
        padding: 10px 5px;
    }

    main .one,
    main .tow {
        width: 100%;
        margin: 12px 0;
        padding: 10px;
    }

    main div a img {
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    main div a h3 {
        font-size: 1.15em;
        margin: 10px 0;
    }

    main div a p {
        font-size: 12px;
        word-spacing: 2px;
        height: auto;
    }


    /* Footer */

    footer #About {
        flex-direction: column;
        align-items: center;
    }

    footer .about,
    footer .follow {
        width: 90%;
        height: auto;
        padding-left: 0;
        margin: 15px 0;
    }

    footer .about h1 {
        font-size: 25px;
    }

    footer .follow h1 {
        font-size: 19px;
    }

    footer .follow ul {
        flex-wrap: wrap;
    }

    footer .follow ul li {
        font-size: 25px;
        margin-right: 20px;
    }

    footer p {
        padding: 0 10px 15px;
        text-align: center;
    }
}


/* ============================= */
/* Very Small Mobile */
/* ============================= */

@media (max-width: 350px) {

    nav .logo {
        font-size: 27px;
    }

    .menu-icon {
        font-size: 25px;
    }

    nav ul li a {
        font-size: 12px;
        margin-left: 3px;
    }

    header h1 {
        font-size: 19px;
    }

    main div a h3 {
        font-size: 1em;
    }

    main div a p {
        font-size: 11px;
    }

    footer .follow ul li {
        font-size: 22px;
        margin-right: 15px;
    }
}