* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.title {
    padding: 40px;
    background: rgb(43, 0, 255);
    margin: 0;
    text-align: center;
}

a{
    color: #3a006d;
    text-decoration: none;
}

a:hover{
    color: red;
    text-decoration: none;
}

h2{
    color: green;
    text-align: center;
    font-size: 50px;
}

h4{
   color: teal;
    text-align: center;
    font-size: 50px; 
}

body {
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: italic;
    background: rgb(2, 43, 106);
    background: linear-gradient(0deg, #0308be, 70%, rgba(0, 208, 255, 1) 100%);
}

h1 {
    color: rgb(0, 0, 0);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: 2px;
    text-shadow: 2px 2px rgb(172, 172, 172);
    text-align: center;
    font-size: 50px;
}

p{
    text-align: center;
    font-size: 25px;
}

#cards a {
    border: 2px solid rgb(255, 0, 0);
    border-radius: 1rem;
    overflow: hidden;

}

#cards {
    display: grid;

    gap: 1.44rem;
}

#cards img {
    aspect-ratio: 16/15;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    transition: opacity 0.5s;
}

#cards figure {
    position: relative;
}


#cards section {
    padding: 0 0.5rem 0.25rem;
}


#cards .top {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

#cards a:hover .top {
    opacity: 1;
}
@media screen and (min-width: 600px) {
    #cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media screen and (min-width: 1200px) {
    #cards {
        grid-template-columns: repeat(3, 1fr);
    }
}