@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&family=Poppins:wght@300&display=swap');
.generic_class {
    font-family: 'Poppins', sans-serif;
	font-family: 'Open Sans', sans-serif;
}

/* ---- GLOBAL STYLES ---- */
/* ---- GLOBAL STYLES ---- */
/* ---- GLOBAL STYLES ---- */

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

html {
    font-size: 10px;
}

section {
    margin-top: 5rem;
}

body {
    background-image: url('./images/bg-mobile.svg');
    background-repeat: no-repeat;
    background-color: var(--Violet);
    background-position: center top;
    background-size: 100%;
    height: 100%;
}

/* ---- VARIABLES ---- */
/* ---- VARIABLES ---- */
/* ---- VARIABLES ---- */

:root {
    --Violet: hsl(257, 40%, 49%);
    --soft-Magenta: hsl(300, 69%, 71%);
}

/* ---- MAIN ---- */
/* ---- MAIN ---- */
/* ---- MAIN ---- */

main {
    display: flex;
    flex-direction: column;
    margin: 0 3rem;
}

/* ---- HEADER ---- */
/* ---- HEADER ---- */
/* ---- HEADER ---- */

header {
    margin-top: 3.5rem;
}

header img {
    width: 14rem;
}

/* ---- 1ST SECTION ---- */
/* ---- 1ST SECTION ---- */
/* ---- 1ST SECTION ---- */

.s-1 {
    display: flex;
    flex-direction: column;
}

.s-1 img {
    width: 100%; 
}

.txt-cont {
    margin-top: 5rem;
}

.txt {
    text-align: center;
    color: white;
}

.txt h1 {
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.txt p {
    margin-top: 2rem;
    font-size: 1.7rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.both {
    display: flex;
    flex-direction: column;
}

.btn-cont {
    margin-top: 3rem;
    align-self: center;
}

.btn {
    cursor: pointer;
    color: var(--Violet);
    padding: 1rem 7rem;
    border-radius: 3rem;
    outline: none;
    border: 1px solid transparent;
}

/* ---- ICON SECTION ---- */
/* ---- ICON SECTION ---- */
/* ---- ICON SECTION ---- */

.icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.icons img {
    cursor: pointer;
    border: 1px solid white;
    border-radius: 50%;
    padding: .4rem;
    width: 3rem;
}

/* ---- FOOTER ---- */
/* ---- FOOTER ---- */
/* ---- FOOTER ---- */

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    background-color: var(--soft-Magenta);
    height: 5rem;
}

.attribution { 
    font-size: 1.3rem; 
    text-align: center; 
}

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


/* ---- MEDIA QUERY ----- */
/* ---- MEDIA QUERY ----- */
/* ---- MEDIA QUERY ----- */

@media screen and (min-width: 600px) {
    body {
        background-image: url('./images/bg-desktop.svg');
    }

    /* ---- 1ST SECTION ---- */

    .img {
        width: 65rem;
        grid-area: img;
    }

    .both {
        grid-area: both;
    }
   
    .s-1 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas: "img both";
        gap: 5rem;
    }

    .txt h1 {
        font-size: 3.2rem;
        width: 40rem;
    }

    .txt p {
        width: 50rem;
        font-size: 1.8rem;
    }

    .txt h1, p {
        text-align: left;
    }

    .btn-cont {
        align-self: flex-start;
    }

    .btn {
        padding: 1.2rem 7rem;
    }

    .btn:hover {
        background-color: var(--soft-Magenta);
    }

    /* ---- ICON SECTION ---- */

    .icons {
        justify-content: flex-end;
    }

    .icons img:hover {
        background-color: var(--soft-Magenta);
    }

}