@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
    --thistle: #bfacc8;
    --violet: #4a4063;
    --indigo: #4f1271;
}
body{
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    background: #c8c6d7;
}
.btn{
    font-family: inherit;
    cursor: pointer;
    outline: 0;
    font-size: 1.05rem;
}
.text{
    opacity: 0.8;
}
.title{
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.container{
    min-height: 100vh;
}
.event-wrapper{
    background: #c8c6d7;
    text-align: center;
}
.event-search{
    background: url('events-banner.png') no-repeat center center;
    background-size: cover;
    position: relative; 
    height: 900px;
    padding: 200px 0; 
    color: white; 
}
small {
    font-size: 1.2rem;
}
.event-search-box{
    margin: 1.5rem 0;
    display: flex;
}
.search-control,
.search-btn{
    width: 100%;
}
.search-control{
    padding: 0 1rem;
    font-size: 1.1rem;
    font-family: inherit;
    outline: 0;
    border: 1px solid var(--thistle);
    color: white;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    background-color: rgba(255, 255, 255, 0.3); 
}
.search-control::placeholder{
    color: var(--thistle);
}
.search-btn{
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    background: var(--violet);
    color: #fff;
    border: none;
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
    transition: all 0.4s linear;
    -webkit-transition: all 0.4s linear;
    -moz-transition: all 0.4s linear;
    -ms-transition: all 0.4s linear;
    -o-transition: all 0.4s linear;
}
.search-btn:hover{
    background: var(--indigo);
}
.event-search-box select {
    padding: 0 1rem;
    font-size: 1.1rem;
    font-family: inherit;
    border: 1px solid var(--thistle);
    color: var(--thistle);
    background: white;
    border-radius: 2rem;
    margin-right: 10px;
}
.event-result{
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem; 
}
.event-item{
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.79);
    margin: 2rem 0;
    position: relative;
}
.event-img img{
    width: 100%;
    display: block;
}
.event-name{
    padding: 1.5rem 0.5rem;

    overflow-y: auto; 
    margin-bottom: 80px;
}
.event-name h3{
    font-size: 1.4rem;
}
.event-btn{
    text-decoration: none;
    color: #fff;
    background: var(--violet);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    display: block;
    width: 200px;
    margin: 1rem auto;
    border-radius: 2rem;
    -webkit-border-radius: 2rem;
    -moz-border-radius: 2rem;
    -ms-border-radius: 2rem;
    -o-border-radius: 2rem;
    transition: all 0.4s linear;
    -webkit-transition: all 0.4s linear;
    -moz-transition: all 0.4s linear;
    -ms-transition: all 0.4s linear;
    -o-transition: all 0.4s linear;
    position: absolute;
    bottom: 10px; 
    left: 50%;
    transform: translateX(-50%);
    margin: 1rem auto;
}
.event-btn:hover{
    background: var(--indigo);
}
.event-details{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    color: #fff;
    background: var(--thistle);
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    width: 90%;
    display: none;
    padding: 2rem 0;
}
.event-details::-webkit-scrollbar-thumb{
    background: #f0f0f0;
    border-radius: 2rem;
    -webkit-border-radius: 2rem;
    -moz-border-radius: 2rem;
    -ms-border-radius: 2rem;
    -o-border-radius: 2rem;
}

/* js */
.showEvent{
    display: block; 
}
.event-details-content{
    position: relative; 
    padding-bottom: 80px;
}
.event-details-content p:not(.event-category){
    padding: 1rem 0;
}
.event-close-btn{
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 1.8rem;
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    z-index: 1000;
    cursor: pointer;
}
.event-title{
    letter-spacing: 1px;
    padding-bottom: 1rem;
}
.event-details-img img{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    margin: 0 auto;
    display: block;
}
.event-link{
    position: absolute;
    bottom: 20px; 
    left: 0;
    right: 0;
}
.event-link a{
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.4s linear;
    -webkit-transition: all 0.4s linear;
    -moz-transition: all 0.4s linear;
    -ms-transition: all 0.4s linear;
}
.event-link a:hover{
    opacity: 0.8;
}
.notFound{
    grid-template-columns: 1fr!important;
    color: var(--violet);
    font-size: 1.8rem;
    font-weight: 600;
    width: 100%;
}

.social-share {
    text-align: center;
    margin-bottom: 40px;
}

.social-icon {
    text-decoration: none;
    margin: 10px;
    color: #555;
    font-size: 24px;
}

.social-icon:hover {
    color: var(--indigo);
}

@media screen and (min-width: 768px){
    #event-list{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .event-item{
        margin: 0;
        position: relative; 
    }
    .event-details{
        width: 700px;
    }
}

@media screen and (max-width: 767px) {
    .title {
        font-size: 3rem; 
    }
}

@media screen and (min-width: 992px){
    #event-list{
        display: flexbox;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;   
    }
}
@media screen and (min-width: 1200px){
    .event-search-box{
        margin:1.5rem 25rem;
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    .event-search-box {
        margin: 1.5rem 10rem;
    }
}
@media screen and (max-width: 991px){
    .event-search-box, .title{
        padding: 0 3rem;
    }
}