body {
background-color: #009EE3;
margin: 0 auto;
max-width: 1040px;
padding: 0px 20px 20px 20px;
font-family: Helvetica;
font-weight: bold;
}

h2 {
font-size: 24px;
line-height: 28px;
}


p {
font-size: 18px;
line-height: 24px;
}

a {
color: black;
text-decoration: underline;
}

a:hover, a:focus {
background-color: #FFED00;
text-decoration: none;
}

img {
max-width: 100%;
height:auto;
}


/*Basic structure of slider*/
.container{
overflow: hidden;
}

/*Area of images*/
.wrapper{
display: flex;
animation: slide 20s infinite;
}

/*Animation activated by keyframes*/
@keyframes slide{
    0%{
        transform: translateX(0);
    }
    15%{
        transform: translateX(0);
    }
    25%{
        transform: translateX(-100%);
    }
    40%{
        transform: translateX(-100%);
    }
    50%{
        transform: translateX(-200%);
    }
    65%{
        transform: translateX(-200%);
    }
    75%{
        transform: translateX(-300%);
    }
    90%{
        transform: translateX(-300%);
    }
    100%{
        transform: translateX(0%);
    }
}


ul {
font-size: 18px;
line-height: 24px;
list-style-type: square;
padding-left: 1em;
}

li { 
list-style-position: outside;
margin-bottom: 10px;
}


 /* H E A D E R */

header {
display: grid;
gap: 40px;
grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
margin: 40px 0px 0px 0px;
}

header > div > p {
background-color: #fff;
padding: 40px;
margin: 0px 0px 40px 0px;
border: 1px solid #000;
}

header > div > img {
display: block;
max-width: 250px;
margin: auto;
height:100%;
}


 /* M A I N */

main > section {
background-color: #fff;
border: 1px solid #000;
padding: 40px 40px 20px 40px;
margin: 40px 0px 0px 0px;
}


 /* F O O T E R */

footer {
background-color: #fff;
border: 1px solid #000;
padding: 20px 40px 20px 40px;
margin: 80px 0px 80px 0px;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}
.popup {
margin: 40px auto;
padding: 40px;
background: #fff;
border-radius: 5px;
border: 1px solid #000;
width: 70%;
position: relative;
height: 80%;
overflow-y: scroll;
}
.popup .close {
position: sticky;
float:right;
top: 0px;
margin-right: -20px;
transition: all 200ms;
font-size: 30px;
text-decoration: none;
color: #000;
}

@media screen and (max-width: 700px){
.box{
width: 70%;
}
.popup{
 width: 70%;
}
}