:root {
    --Strong-Cyan: hsl(171, 66%, 44%);
    --Light-Blue: hsl(233, 100%, 69%);
    --Dark-Grayish-Blue: hsl(210, 10%, 33%);
    --Grayish-Blue: hsla(201, 11%, 66%, 0.1);
    --white: hsl(0,0%,100%);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    background-color: rgba(250,250,250);
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 18px;
    text-align: center;
}

a {
    font-size: 1.1rem;
    text-decoration: none;
}
h1,
h2,
h3 ,
p {
    color: var(--Dark-Grayish-Blue);
}
h1 {
    font-size: 2.5rem;
    padding-top: 1rem;
}
h2 {
    font-size: 2rem;
}
p {
    line-height: 1.5;
    margin: 1.5rem auto 2.5rem;
    max-width: 645px; 
}
img {
    max-width: 100%;
    max-height: 100%;
}
li {
    list-style: none;
}
 /* header section */
header {
    background: url("../images/bg-header-desktop.png");
    background-size: cover;
    padding: 5rem 0 3rem;
}

button {
    border: none;
    border-radius: 25px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    color:var(--white) ;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.7rem;
}
.green-btn {
    background-color: var(--Strong-Cyan);
    margin-right: 1.5rem;
}
.green-btn:hover {
    background-color: hsla(171, 66%, 44%, 0.5);
}
.blue-btn {
    background-color: var(--Light-Blue);
}
.blue-btn:hover {
    background-color: hsla(233, 100%, 69%, 0.5);
}

/* features section */

#snippets {
    margin: 8rem 0 4rem;
}
#features-1 {
    display: flex;
    align-items: center;
}
.features-1-image-container {
    width: 55%;
    position: relative;
    left: -9rem;
}

.features-1-text-container{
   width: 28%;
   text-align: left;
}
#features-2,
.features-2-text-container,
.features-3-intro {
    margin-bottom: 4%;
}

.features-3-main {
    display: flex;
    justify-content: space-between;
}
.features-3-main img {
    width: 44px;
    margin-bottom: 1.5rem;
}
.features-3-main div {
   max-width: 380px;
   padding: 10px;
}

#sponsors ul{
    display: flex;
    justify-content: space-between;
}
#sponsors ul img {
    max-width: 80%;
}

/* cta section */
#cta {
    padding-bottom:  12%;
}

/* footer section */
footer {
    background-color: var(--Grayish-Blue);
    padding: 2rem 0;
    text-align: left;
}
.footer {
    display: flex;
    justify-content: space-between;
}
.footer-logo {
    width: 70px;
}
.footer li:first-child {
    margin-bottom: 1.5rem;
}
.footer a {
    color: var(--Dark-Grayish-Blue);
}
.footer a:hover {
    color: var(--Strong-Cyan);
}
.footer ul.socials {
    display: flex;
    align-self: center;
}
.footer ul.socials li {
    margin: 0 1rem;
}

/* combined sections*/
main,
.footer {
    width: 90%;
    margin: auto;
}
#sponsors,
#features-3, 
#features-1 {
     margin-bottom: 12%;
}


@media (max-width:820px){
    #features-1 {
        flex-direction: column;
    }
    .features-1-text-container {
        width: 90%;
        text-align: center;
    }
    .features-1-image-container {
        width: 80%;
        position: static;
        margin-bottom: 4rem;
    }
    .features-3-main {
        flex-direction: column;
    }
    .features-3-main div {
        max-width: 100%;
    }
    #sponsors ul {
        flex-direction: column;
    }
    #sponsors ul li {
        margin-bottom: 4rem;
    }
    main,
    .footer  {
        width: 95%;
        margin: auto;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo {
        margin: auto;
    }
    .footer ul {
        margin: 1.2rem 0;
    }
}

@media (max-width:470px) {
    html {
        font-size: 14px;
    }
    .green-btn {
        margin: 0 0 1rem;
    }
}