@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 10px;
}

body {
    width: 100%;
    height: 100%;
    background-color: #eee;
    display: flex;

}

.header {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(to right, #00093c, #6e1f05);
    position: relative;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}


nav img {
    width: 80px;
} 

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: aqua;
    text-decoration: none;
    font-size: 16px;
}


.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: auto;
    padding: 0 1.5rem;
}

h2 {
    font-size: 25px;
    text-align: center;
    color: aqua;
    margin-bottom: 50px;
}

h2::after {
    content: "";
    height: 5px;
    width: 350px;
    background-color: #ec0c0c;
    border-radius: 25px;
    display: block;
    margin: auto;
}


div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

div img {
    width: 450px;
    height: 300px;
    border: 2px solid #ff3d0036;
    box-shadow: 4px 7px 7px 0px #00000042;
    cursor: pointer;
    margin: 10px;
    transition: 400ms;
}

div img:hover {
    filter: grayscale(1);
    transform: scale(1.03);
}



@media (max-width:700px) {
    .text-box h1 {
        font-size: 20px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 0.5s ease-in;
    }

    nav .fas {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }

    div img {
        width: 350px;
        height: 200px;
        border: 2px solid #ff3d0036;
        box-shadow: 4px 7px 7px 0px #00000042;
        margin: 10px;
    }
}