/* # Front-end Style Guide

## Layout

The designs were created to the following widths:

- Mobile: 375px
- Desktop: 1440px

## Colors

### Primary

- Violet: hsl(257, 40%, 49%)
- Soft Magenta: hsl(300, 69%, 71%)

## Typography

### Headings

- Family: [Poppins](https://fonts.google.com/specimen/Poppins)
- Weights: 400, 600

### Body

- Family: [Open Sans](https://fonts.google.com/specimen/Open+Sans)
- Weights: 400

## Icons

For the social icons, you can use a font icon library. Some suggestions can be found below:

- [Font Awesome](https://fontawesome.com/)
- [IcoMoon](https://icomoon.io/)
- [Ionicons](https://ionicons.com/) */




@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins:wght@400;600&display=swap');

/* UNIVERSAL AND GENERAL */

html {
    /* ## Colors
This is where i define colors and main font type
    ### Primary */
    --Violet: hsl(257, 40%, 49%);
    --SoftMagenta: hsl(300, 69%, 71%);

    font-family: "Open Sans", sans-serif;
    color: white;
}

body{
    background: var(--Violet) url('./images/bg-mobile.svg');
    background-repeat: no-repeat;
    background-size: 100vw;
    width: 100vw;
    height: 100vh;
    display: grid;
    text-align: center;
    grid-template-columns: 2fr 1fr 2fr;
    grid-template-rows: 6rem 1fr 3rem 1fr;
}

/* container positioning */
.container{
 grid-column: 2;
 grid-row: 2;
 width: 90vw;
 height: 650px;
}

/* logo image  */
.logocontainer{
    grid-column: 2;
    grid-row: 1;
    /* display flex on container centers the logo */
    display: flex;
}

#logo{
    width: 40vw;
    /* this just moves it to the left */
    margin-right: 100%;
}

/* mockup image */
#mockup{
    width: 90%;
}

.mockupcontainer{
    width: 90vw;
    margin: auto;
}

/* making the text look good */
#heading{
    font-family: "Poppins", sans-serif;
    line-height: 2.25rem;
}
.text span{
    display: block;
}

.text h3{
    font-weight: 400;
    line-height: 1.75rem;
}

/* register button */
.button{
    margin-top: 2.75rem;
}

#register{
    text-decoration: none;
    background-color: white;
    padding: 1rem 5rem;
    font-weight: 700;
    color:var(--Violet);
    border-radius: 2rem;
    box-shadow: 0px 6px 10px 1px rgba(0, 0, 0, .3);
    transition: color ease-in-out 100ms;
    transition: background-color ease-in-out 100ms;
}

#register:hover{
    background-color: var(--SoftMagenta);
    color: white;
    transition: color ease-in-out 100ms;
    transition: background-color ease-in-out 100ms;
}

/* social buttons */
.social{
    grid-column: 2;
    grid-row: 3;
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
}

.social a{
    /* I will admit I have no idea why these values make the button sizes perfect
    but i will leave it as it is.
    I will mention though that I'm happy I'm able to
    know with which values I have to play around
    to make something work :D */
    height: 16px;
    width: 16px;
    border: 1px solid white;
    border-radius: 50%;
    padding: .5rem;
    margin: 0 1rem;
}

/* links */
.social a{
    text-decoration: none;
    color: white;
}

/* MEDIA QUERIES FOR DESKTOP */
@media (min-width: 800px){
    body{
        background: var(--Violet) url('./images/bg-desktop.svg');
        background-repeat: no-repeat;
        background-size: cover;
        width: 100vw;
        height: 100vh;
    }
    
    #mockup{
        width: 100%;
    }

    .mockupcontainer{
        width: 800px;
        margin: 0;
        
    }

    .container{
        margin: 3rem 0;
        height: auto;
        max-height: 1000px;
        width: 1600px;
        display: flex;
        text-align: left;
        justify-content: space-between;
    }

   .sidecontent{
       width: 700px;
       height: 70%;
       display: flex;
       flex-direction: column;
       justify-content: center;
   }

   .sidecontent h3{
       width: 90%;
       line-height: 2.25rem;
       margin-right: 100%;
   }

   .sidecontent h2{
       font-size: 3rem;
       line-height: 5rem;
   }

   .text span{
       padding-top: 1.5rem;
   }

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



/* footer with my info */
footer{
    grid-column: 2;
    grid-row: 4;
}

footer a:hover{
    background-color: var(--SoftMagenta);
    color: white;
    transition: color ease-in-out 100ms;
    transition: background-color ease-in-out 100ms;
}
