@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --white: hsl(0, 0%, 98%);
    --gray: hsl(0, 0%, 41%);
    --black: hsl(0, 0%, 8%);
}

body {
    font-size: 18px;
    font-family: 'Epilogue', sans-serif;
    padding: 20px 35px;
    height: 100vh;
    background-color: var(--white);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    height: 10%;
    position: relative;
    z-index: 5000;
}

header .right-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-grow: 1;
}

header nav {
    display: flex;
    margin-left: 50px;
}

header nav>div {
    margin-right: 30px;
}

header nav p {
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
}

header nav .features,
header nav .company {
    position: relative;
}

header nav .features ul {
    list-style: none;
    display: none;
    background-color: white;
    padding: 10px;
    position: absolute;
    bottom: -125px;
    right: -10px;
    border-radius: 10px;
    box-shadow: 1px 1px 1px -1px rgba(0, 0, 0, 0.5);
}

header nav .features ul li {
    margin-bottom: 10px;
    display: flex;
}

header nav .features ul li:last-child {
    margin-bottom: 0;
}

header nav .features ul li img {
    margin-right: 20px;
}

header nav .company ul {
    list-style: none;
    display: none;
    background-color: white;
    padding: 10px;
    position: absolute;
    bottom: -105px;
    left: 0px;
    border-radius: 10px;
    box-shadow: 1px 1px 1px -1px rgba(0, 0, 0, 0.5);
    width: 85px;
}

header nav .company ul li {
    margin-bottom: 10px;
    cursor: pointer;
}

header nav .company ul li:nth-last-child() {
    margin-bottom: 0;
}

header .register {
    display: flex;
}

header .register button:nth-child(1) {
    border: none;
    font-size: 14px;
    color: var(--gray);
    background-color: transparent;
    outline: none;
    cursor: pointer;
    display: block;
}

header .register button:nth-child(2) {
    margin-left: 30px;
    border: 1px solid black;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 12px;
    background-color: transparent;
    color: var(--gray);
    outline: none;
    cursor: pointer;
    display: block;
    transition: .3s all ease;
    -webkit-transition: .3s all ease;
    -moz-transition: .3s all ease;
    -ms-transition: .3s all ease;
    -o-transition: .3s all ease;
}

header .register button:nth-child(2):hover {
    border: 2px solid black;
}

header nav>div>p:hover,
header .register button:hover {
    color: black;
}

header .menu {
    display: none;
}

header .close-menu {
    display: none;
}

section {
    display: flex;
    width: 90%;
    margin-inline: auto;
    margin-bottom: 30px;
    height: 80%;
    gap: 40px;
    position: relative;
    z-index: 100;
}

section .content {
    width: 60%;
}

section .image {
    width: 40%;
}

section .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

section .content h1 {
    font-size: 4em;
    margin-bottom: 30px;
}

section .content p {
    color: var(--gray);
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 35px;
    width: 80%;
}

section .content button {
    display: block;
    width: 25%;
    padding: 15px 10px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid;
    color: white;
    background-color: black;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    -moz-transition: 0.3s all ease;
    -ms-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
}

section .content button:hover {
    color: black;
    background-color: white;
}

section .content .brands {
    position: absolute;
    bottom: 0;
}

section .image picture img {
    max-height: 100%;
}

section.mobile-navigation {
    display: none;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

.overlay {
    width: 100%;
    height: 100%;
    background-color: #00000060;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    header {
        padding: 20px;
        margin-bottom: 0;
    }

    header .right-content {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        flex-direction: column;
        width: 70%;
        background-color: white;
        height: 100vh;
        padding: 50px 20px;
        justify-content: flex-start;
    }

    header .close-menu {
        display: block;
        width: 30px;
        cursor: pointer;
        align-self: flex-end;
        margin-bottom: 50px;
    }

    header nav {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }

    header nav>div {
        margin-bottom: 15px;
    }

    header nav .features ul,
    header nav .company ul {
        padding: 20px;
        bottom: 0;
        right: 0;
        position: initial;
        margin-block: 10px;
        background-color: transparent;
        box-shadow: initial;
        width: 100%;
    }

    header nav .features::after,
    header nav .company::after {
        right: 57%;
    }

    header nav div>p {
        font-size: 18px;
    }

    header nav ul li p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    header .register {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    header .register button:nth-child(1) {
        margin-bottom: 15px;
    }

    header .register button:nth-child(2) {
        width: 80%;
        margin-left: 0;
    }

    header .menu {
        display: block;
    }

    section {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    section .content {
        width: 100%;
        order: 2;
        align-items: center;
    }

    section .content h1 {
        font-size: 2em;
    }

    section .content h1 br {
        display: none;
    }

    section .content p {
        font-size: 18px;
        width: 90%;
        text-align: center;
    }

    section .content button {
        width: 30%;
        margin-bottom: 50px;
    }

    section .content .brands {
        display: flex;
        justify-content: space-between;
        width: 85%;
    }

    section .content .brands img {
        width: 50px;
        display: block;
    }

    section .image {
        width: 100%;
    }

    section .image picture img {
        max-width: 100%;
        max-height: initial;
    }
}

.display {
    display: block !important;
}