* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.event-card {
    height: auto;
    width: 400px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin: 0 3px 4% 3px;
    text-align: center;
}

 :root {
    --distance: 20px;
}

 ::-webkit-scrollbar-thumb {
    background: #888;
    border: 2px solid #888;
    border-radius: 12px;
}

 ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.event-img-button {
    width: 100%;
    /* background-color: #e5edb7; */
    border: 3px solid #acddde;
    height: auto;
    border-radius: 40px;
    border-radius: 40px;
}

.event1 {
    background-image: url(assets/images/demo.jpg);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    background-size: calc(80%);
    background-repeat: no-repeat;
}

.event-image {
    border-radius: inherit;
    position: relative;
    height: fit-content;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #fff;
}

.event-description {
    position: absolute;
    font-weight: 700;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: rgb(220, 245, 230, 0.6);
    color: rgb(64, 33, 33);
    visibility: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.2s, visibility 0.2s;
}

.event-description p {
    text-align: justify;
    padding: 30px;
    transition: transform 0.2s;
    transform: translateY(1em);
    font-size: 1rem;
}

.event-image:hover .event-description {
    visibility: visible;
    opacity: 1;
}

.but {
    height: 116px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #acddde;
    /* background: #abf5ab; */
    /* border-radius: 33px; */
    border-bottom-left-radius: 33px;
    border-bottom-right-radius: 33px;
}

.but a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

#but-1 button {
    background-color: #D9819C;
    color: white;
    transition: all 0.3s;
}

#but-2 button {
    background-color: #D9819C;
    color: white;
}

.but a button {
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    height: 33px;
    width: 172px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    /* box-shadow: 2px 2px 8px #3b3636; */
    font-weight: bold;
    padding: 25px 30px;
}

#but-1 button:hover {
    background-color: #e4911b;
    transition: all 0.3s;
    color: #fff;
}

#but-2 button:hover {
    background-color: #678dbe;
    transition: all 0.3s;
    color: #fff;
}