:root {
    --xColor: #111a2a;
    --txtColor: #6B778D;
    --towColor: #E65564;
    --sizeOne: .5em;
    --sizeTow: 5px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: var(--txtColor);
}



body {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}



::selection {
    background-color: transparent;
}

header {
    overflow-x: hidden;
    padding: 30px 6em;
    width: 100%;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

a,
.btn,
button {
    cursor: pointer;
}

/* ==== nav */
li {
    list-style: none;
}

nav,
main {
    margin: 0 auto;
    width: 100%;
}


nav {
    display: flex;
    justify-content: space-between;
}

nav img {
    float: right;
    width: 30px;
    border-radius: 50%;
    margin-left: 10px;
}

nav a {
    margin-left: var(--sizeOne);
    position: relative;
    line-height: 30px;
    transition: .4s .1s;
}


nav ul#menu li a:hover {
    color: var(--xColor);
    padding-bottom: .5px;
    border-bottom: var(--xColor) 1px solid;
}

nav .btn-nav {
    height: 16px;
    margin: 6px 0;
    display: none;
    flex-flow: column;
    justify-content: space-between;
}

nav .btn-nav span {
    background-color: var(--txtColor);
    width: 25px;
    border-radius: 3px;
    height: 3px;
    display: block;
}


/* ==== main. */
main {
    margin-top: 80px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        "tit vct"
        "fbtn vct"
        "lbtn vct";
}

main .Title {
    grid-area: tit;
}

main .Title p {
    width: 42ch;
}

main .Title h1 {
    margin-top: 2em;
    font-size: ca;
    color: #111A2A;
    font-weight: 600;
}

main .vector {
    grid-area: vct;
}

main .vector img {
    width: 530px;
}

/* content main*/
.btn.first {
    grid-area: fbtn;
}

.btn {
    margin-top: 2em;
    display: flex;
}

.btn.first button:first-of-type {
    margin-right: 15px;
    border-radius: 50%;
    background-color: #774AA2;
    width: 50px;
    height: 50px;
    position: relative;
    border: none;
}

.btn.first button:first-of-type::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-20%, -50%);
    width: 0;
    height: 0;
    border: 10px solid;
    /* This is a CSS trick to make the border disappear. */
    border-color: transparent transparent transparent #fff;
}

.btn.first button:hover:first-of-type::after {
    animation: fly .6s ease-in-out infinite alternate;
}

.btn.first button:last-of-type {
    border-radius: 30px;
    padding: 15px 25px;
    border: 1px solid #E65564;
    color: #E65564;
    background-color: #fff;
    transition: .6s;
    padding: 0 15px;
}

.btn button:hover:last-of-type {
    background-color: #E65564;
    color: #fff;
}


.btn.Down {
    margin-top: calc(15em);
    grid-area: lbtn;
}

.btn.Down .arrow img {
    margin-right: 5px;
    display: flex;
    flex-flow: column;
    width: 15px;
}

.btn.Down:hover .arrow img:last-of-type {
    animation: opacity 1s infinite;
}


@keyframes opacity {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fly {
    0% {
        top: 54%;
    }

    100% {
        top: 46%;
    }
}


@media (max-width: 1300px) {

    nav,
    main {
        width: 95%;
        max-width: 1300px;
    }
}

