* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}



a{
    color: #6d0000;
    text-decoration: none;
}

a:hover{
    color: rgb(255, 0, 0);
    text-decoration: none;
}

.title {
    margin: 0;
    margin-top: -30px;
    text-align: center;
}

h1{
    color: #197ced;
    text-align: center;
    font-size: 50px;
}

h2{
    color: #35cf8a;
    text-align: center;
    font-size: 50px;
}

body {
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: italic;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background: #01484c;
}


p{
    text-align: center;
    font-size: 25px;
}

#cards a {
    border: 2px solid rgb(86, 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);
    }
}