@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    color: white;
}

h1,
h2,
h3,
h4,
p,
a,
li {
    font-family: 'Inter', sans-serif;
}

h1 {
    font-size: 3em;
    font-weight: 700;
}

h2 {
    font-size: 2em;
    font-weight: 600;
}

h3 {
    font-size: 1.5em;
    font-weight: 500;
}

h4 {
    font-size: 1.1em;
    font-weight: 300;
    color: #d5d5d5;
    transition: 0.2s ease;
}

p {
    font-size: 1em;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #02071a;
    min-height: 100vh;
}

.logo-container img {
    width: 50px;
    height: auto;
    transition: transform 0.2s ease;
}

.logo-container img:hover {
    transform: scale(1.1);
}

header {
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 150px;
    justify-content: center;
    align-items: center;
}

header>img {
    z-index: -1;
    position: absolute;
    height: 800px;
    width: auto;
}

header>img.left {
    left: 0;
    top: 0;
}

header>img.right {
    right: 0;
    top: 0;
}

header nav {
    width: 1000px;
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    display: flex;
    gap: 40px;
}

header div.header-content {
    display: flex;
    flex-direction: column;
    padding: 0 25%;
    gap: 60px;
    text-align: center;
}

main {
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

main section {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

main div.articles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

main div.articles a {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 30%;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 2px solid #494f5e;
    background-color: #181d2f;
    cursor: pointer;
    transition: all 0.2s ease;
}

main div.articles a:hover {
    transform: scale(1.03);
    background-color: #02071a;
}

footer {
    background: url("./img/footer_light.webp");
    background-size: cover;
    background-position: 50% 100%;
    padding: 15%;
    display: flex;
    gap: 25px;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    align-items: center;
    border-top: #181d2f 1px solid;
}

footer .logo-container {
    height: fit-content;
}

footer ul {
    display: flex;
    gap: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    text-decoration: none;
    color: #d5d5d5;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 800px) {

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    header nav {
        width: fit-content;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    main section {
        flex-direction: column;
        align-items: center;
    }

    main section div.articles {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    main section div.articles a {
        width: 80%;
    }
}