* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: roboto, sans-serif; 
}

header {

    background-color: #5f27cd;
    padding: 16px 0;
    color: #fff;
    display: flex;
    border-bottom: 16px solid #341f97;
    justify-content: center;
    text-transform: uppercase;
    font-style: italic;
}

header button {
    margin-left: 16px;
}

form {
    background-color:#c8d6e5;
    padding: 24px 0;
    text-align: center;
    display: none;
}

form h2 {
margin-bottom: 16px;
}

input, button {
    padding: 8px;
}

button {
    background-color: #009132;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

#botao-cancelar {
       background-color: red;
}

ul {
    display: flex;
    flex-wrap: wrap;
}
ul li {
    max-width: 25%;
    position: relative;
    max-height: 280px;
    overflow: hidden;
}
ul li img {
    width: 100%;
    list-style: none;
}

 .overlay {
 padding: 16px;
 background-color: rgba(0, 0, 0, 0.7);
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 opacity: 0;
 transition: all ease .5s;
}

.overlay a {
    color: #fff;
    text-decoration: none;  }

   ul li:hover .overlay{
    opacity: 1;
   }