:root {
    /*### Primary*/

--VeryDarkBlue: hsl(243, 87%, 12%);
--DesaturatedBlue: hsl(238, 22%, 44%);

    /*### Accent*/

--BrightBlue: hsl(224, 93%, 58%);
--ModerateCyan: hsl(170, 45%, 43%);

    /*### Neutral*/

--LightGrayishBlue: hsl(240, 75%, 98%);
--LightGray: hsl(0, 0%, 75%);
}
h1 {
    font-family: 'Raleway', sans-serif;
}
p {font-weight: 400;}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
button {
    background-color: var(--BrightBlue);
    color: white;
    font-weight: 500;
    padding: .7rem;
    border: none;
    margin-top: 1rem;
    width: 25%;
    cursor: pointer;
    margin-left: 5px;
    border-radius: 3px;
}
button:focus,
button:hover {
    opacity: .6;
}
li {list-style: none;}
a {text-decoration: none;}
body {
    height: 100vh;
    margin-top: 2rem;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

.top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-img {
    width: 100px;
    margin-left: 1.5rem;
}
.nav-bar {
    position: static;
    display: flex;
    justify-content: flex-end;
    top: 0;
    left: 0;
    width: 100%;
}
.nav-list {
    display: flex;
    list-style: none;
    margin-right: 6rem;
}
.nav-link {
    display: block;
    padding: .8rem;
    font-family: 'Raleway', sans-serif;
    margin-top: 2rem;
    color: var(--VeryDarkBlue);
    text-decoration: none;
    margin-right: 2rem;
}
    /*First section*/

.container {
    margin-top: 4rem;
}
.hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-left: 1.5rem;
}
.hero .hero-text h1 {
    font-size: 2.1rem;
    width: 80%;
    line-height: 1.5;
    color: var(--VeryDarkBlue);
}
.hero .hero-text p {
    font-size: 1rem;
    margin-top: 1rem;
    width: 75%;
    font-family: 'Open Sans', sans-serif;
}
form #email {
    width: 40%;
    padding: .5rem;
    border: 2px solid var(--LightGray);
    margin-top: 1rem;
}

.error-email {
    display: none;
    color: red;
    font-size: .7rem;
}
    /*Second section*/

.features {
    margin-top: 15rem;
    margin-left: 1.5rem;
}
.features h1 {
    font-size: 2.1rem;
    color: var(--VeryDarkBlue);
}
.features p {
    margin-top: 1.2rem;
    width: 38%;
}
.features .span-text{
    color: var(--ModerateCyan);
    margin-top: 15px;
    text-decoration: underline;
}
.features .green-text {
    cursor: pointer;
    color: var(--ModerateCyan);
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}
.green-text:focus,
.green-text:hover {
    opacity: .8;
}
.feature-tweet {
    background-color: var(--LightGrayishBlue);
    width: 21%;
    border-radius: 5px;
    margin-top: 40px;
}
.feature-tweet article {
    padding: .7rem;
}
.feature-tweet article p {
    width: fit-content;
    line-height: 1.8;
    font-size: .8rem;
    margin-top: -3px;
}
.feature-tweet article .tweet-photo {
    display: flex;
    align-items: center;
}
.feature-tweet article .tweet-photo .profile-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.feature-tweet .user-name {
    display: flex;
    flex-direction: column;
}
.feature-tweet .tweet-photo .user-name p {
    font-size: .8rem;
    font-weight: 600;
    margin: 0;
}
.feature-tweet .tweet-photo .user-name span {
    font-size: .7rem;
    color: var(--LightGray);
    margin: 0;
}

/*Access section - Third Section*/

.access {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 15rem;
    background-color: var(--DesaturatedBlue);
    height: 290px;
    width: 100%;
}
.access .access-text {
    width: 70%;
    margin-top: 4rem;
    margin-left: 4rem;
}
.access .access-text h1 {
    color: white;
    font-size: 2.1rem;
    width: 80%;
}
.access .access-text p {
    color: var(--LightGrayishBlue);
    margin-top: 1.2rem;
    width: fit-content;
    font-size: 1rem;
}
.access .access-form {
    display: flex;
    flex-direction: column;
    margin-top: 6rem;
}
.access .access-form .second-error {
    display: none;
    color: var(--LightGray);
    font-size: .8rem;
    font-style: italic;
}
.access .access-form .form-group {
    display: flex;
    flex-direction: column;
}
.access .access-form .form-group #email-access {
    padding: .8rem;
    width: 60%;
}

/*Footer*/

footer {
    background-color: var(--VeryDarkBlue);
    color: var(--LightGray);
    padding: 1.5rem;
}
footer .logo-footer img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

footer .phone-icon {
    content: url('./images/icon-phone.svg');
    margin-right: 1rem;
}
footer .email-icon {
    content: url('./images/icon-email.svg');
    margin-right: 1rem;
}
footer .logo-phone-email p {
    margin-top: 1rem;
}
footer .about-us {
    justify-items: center;
}
footer .about-us .menu-1 {
    margin-top: -3rem;
}
footer .contact-us {
    position: absolute;
    right: 30%;
    margin-top: -7.5rem;
}
.footer-link {
    color: var(--LightGray);
}
footer nav ul li {
    margin-bottom: .5rem; /*Space between li elements*/
}

footer .social-icons {
    display: flex;
    flex-direction: row;
    position: absolute;
    right: 15%;
    margin-top: -7.5rem;
}
footer .social-icons .social_link {
    color: var(--LightGray);
    font-size: 1.2rem;
    margin: 4px;
    border: 1px solid white;
    border-radius: 50%;
    width: 2.2rem;
    height: 2rem;
    justify-content: center;
    text-align: center;
} 


/*Image - first image and second*/
.hero-image img {
    width: 70%;
}
.feature-image img {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 40%;
}

/*Hoover*/
.footer-link:hover {
    color: var(--DesaturatedBlue);
}
