@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200;300;400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Raleway', sans-serif;
    color: hsl(197, 66%, 18%)
}


img {
    display: block;
    max-width: 100%;
}

h1 {
    text-align: center;
    font-size: 3em;
}
nav {
    background-color: hsl(197, 65%, 31%);
}
ul, ul a{
    padding: 0.2em 0;
    text-decoration: none;
    color: hsl(196, 51%, 93%);
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: space-around;    
}
li {
    
    list-style-type: none;
}
main {
    display: grid;
    gap: 4em;
    padding: 5em 2em;

}
nav a {
    padding: 1em 1em;
   
    border-bottom: 2px solid hsl(197, 65%, 31%);
}
nav a:hover {
    
    color: hsl(53, 65%, 43%);
    border-bottom: 2px solid hsl(53, 65%, 43%)
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2em;

}

article {
    width: 80%;
    display: grid;
    gap: 1em;
}
article h2 {
font-size: 1.5em;
}
article p {
    font-size: 1em;
    line-height: 2em;
}
figure {
    padding: 0.8em;
    border-radius: 0.5em;
    transition: 0.5s ease;
}
figure:hover {
    opacity: 0.6;

}
footer {
    border-top: 1px solid hsl(197, 66%, 18%);
}

/* largescreen */
@media screen and (min-width:900px){
    section {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    article {
        padding: 0 4em;
        text-align: left;
    }
}