*, ::after, ::before {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

body {
    width: 100vW;
    background: #F1F1F1;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.c-article {
    position: relative;
    overflow: hidden;
}

.c-img {
    width: 90vw;
    max-width: 1920px;
    border-radius: 1.5rem;
}

.c-data {
    width: 80vw;
    max-width: 1600px;
    background-color:#F1F1F1;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    position: absolute;
    bottom: -12rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    opacity: 0;
    transition: opacity 1s 1s;
}
.c-title{
    font-family: 'Dela Gothic One', sans-serif;
    color: #4193A0;
    display: block;
    font-size: 12px;
}
.c-description {
    display: block;
    color: #4193A0;
    font-size: 10px;
    margin-bottom: 0.25rem;
}

.c-buttun {
    text-decoration: none;
    color:#D8AE98;
    font-size: 10px;
    font-weight: 500;
}

.c-buttun:hover {
    text-decoration: underline;
}

.c-article:hover .c-data{
    animation: show-data 1s forwards;
    opacity: 1;
    transition: opacity 0.2s ease;

}

.c-article:hover {
    animation: remove-overflow 2s forwards;
}

.c-article:not(:hover) {
    animation: show-overflow 2s forwards;
}

.c-article:not(:hover) .c-data{
    animation: remove-data 1s forwards;
}

@keyframes show-data{
    50%{
        transform: translateY(-15rem);
    }
    100%{
        transform: translateY(-12rem);
    }
}

@keyframes remove-overflow {
    to{
        overflow: initial;
    }
    
}

@keyframes remove-data{
    0%{
        transform: translateY(-12rem);
    }
    50%{
        transform: translateY(-15rem);
    }
    100%{
        transform: translateY(5rem);
    }
}

@keyframes show-overflow {
    0%{
        overflow: initial;
        pointer-events: none;
    }
    70%{
        overflow: hidden;
    }

}

/* --------------------RESPONSIVE-------------------- */

@media screen and (max-width: 450px) {
    .c-data {
        width: 90vw;
        padding: 0.5rem 1rem;
    }
    .c-img {
        width: 95vw;
    }
    
}

@media screen and (min-width: 1150px) {
    .c-description{
        font-size: 15px;
    }
    .c-title{
        font-size: 20px;
    }
    .c-buttun {
        font-size: 15px;
    }
}
@media screen and (min-width: 2000px) {
    .c-description{
        font-size: 20px;
    }
    .c-title{
        font-size: 25px;
    }
    .c-buttun {
        font-size: 20px;
    }
}

@media screen and (max-height: 500px) {
    .c-img{
        width: 80vw;
    }
    .c-data{
        width: 70vw;
    }
} 

@media screen and (max-height: 450px) {
    .c-img{
        width: 70vw;
    }
    ;.c-data{
        width: 60vw;
    }
} 
