@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
body, *{
    font-family: "Montserrat", serif!important;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    background-color: transparent;
    overflow-x: hidden;
}

#root{
    max-width: 1440px;
    margin: 0 auto;
}
.search-bar{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap:20px;
    padding: 20px 0;
}
.search-input{
    display: flex;
    flex-direction: column;
    min-width: 350px;
    

    label {
        color: rgb(5, 5, 5);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.30769rem;
        display: flex;
        margin-bottom: 8px;
    }
    input {
        min-height: 40px;
        border-radius: 8px;
        border: 1px solid #ccc;
        padding: 10px;
        font-size: 14px;
        color: rgb(5, 5, 5);
        transition: border-color 0.3s;
    }
    input:focus {
        border-color: #DE0623;
        outline: none;
    }
}

.search-select {

    display: flex;
    flex-direction: column;

    label {
        color: rgb(5, 5, 5);
        font-size: 14px;
        font-weight: 600;
        line-height: 1.30769rem;
        display: flex;
        margin-bottom: 8px;

       
    }
    select {
        min-height: 40px;
        border-radius: 8px;
        border: 1px solid #ccc;
        padding: 10px;
        font-size: 14px;
        color: rgb(5, 5, 5);
        transition: border-color 0.3s;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 0.7rem top 50%;
        background-size: 0.65rem auto;
        padding-right: 35px;
    }
    select:focus {
        border-color: #DE0623;
        outline: none;
    }

}
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(274px, 1fr)); gap: 20px; align-items: center; justify-items: center;}
.event-title {
    display: flex;
    align-items: center;
    flex-direction: row;
    font-size: 1.53846rem;
    line-height: 1.84615rem;
    color: rgb(43, 43, 43);
    font-weight: 600;

    h3 { 
        margin: 10px 0; 
        margin-left: 12px;
    }
}
.event-title-date {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    width: 42px;
    height: 42px;
    max-height: 42px;
    max-width: 42px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 6px 0px;
    color: rgb(85, 85, 85);
    font-size: 20px;
    
    &::before {
        content: '';
        position: absolute;
        border-top: 10px solid #DE0623;
        border-radius: 4px 4px 0 0;
        width: 100%;
        top: 0px;
    };
    span {
        padding-top: 10px;
    }
}
.event { 
    flex: 1; 
    background-color: #fff;
    max-width: 330px; 
    border-radius: 10px; 
    display: flex; 
    flex-direction: column; 
    align-items: start; 
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 6px 0px;
    min-height: 400px; 
}
.event-logo { width: 100%; height: auto; max-height: 168px; object-fit: cover;object-position: center top; border-radius: 10px 10px 0 0; }
.event-content { 
    padding: 32px 16px 24px; 
    p {
        color: rgb(5, 5, 5);
        font-size: 1.07692rem;
        font-weight: 400;
        display: flex;
        margin-top: 12px;
    }
}

img { width: 100%; height: auto; max-height: 168px; object-fit: cover; object-position: center top;border-radius: 10px 10px 0 0; }
.modal {
    display: flex; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        position: sticky;
        top: 0;
        color: rgb(43, 43, 43);
        font-size: 1.53846rem;
        line-height: 1.84615rem;
        font-weight: 600;
        background-color: rgb(255, 255, 255);
        padding: 24px 64px 24px 16px;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 6px 0px;

        span {
            position: absolute;
            right: 16px;
            top: 16px;
            color: rgb(5, 5, 5);
            font-weight: 600;
            display: flex;
            background-color: rgb(235, 238, 244);
            border-color: rgba(0, 0, 0, 0);
            border-radius: 5px;
            border-width: 0px;
            color: rgb(5, 5, 5);
            font-size: 2rem;
            opacity: 1;
            padding: 4px 9px;
            &:hover {
                background-color: rgb(222, 7, 35);
                color: #fff;
            }
        }
    }
    .modal-content {
        background-color: #fefefe;
        border-radius: 10px;
        
        border: 1px solid #888;
        

        background-color: #FEFEFE;
        overflow-y: scroll;
        @media screen and (min-width: 790px) {
            margin: 30px auto 30px;
            width: 80%; 
            max-width: 660px;
        }
        img {
            margin: 24px;
            border-radius: 10px;
            max-width: 80%;
        }
    }
    .modal-description {
        padding-inline: 24px;
        color: rgb(5, 5, 5);
        font-size: 1.07692rem;
        font-weight: 400;
        line-height: 1.30769rem;
        display: block;
        max-width: 535px;
        margin-top: 4px;
        margin-bottom: 42px;
        a{
            color: rgb(222, 7, 35);
        };
        p {
            margin-bottom: 20px;
        }
    }
    .modal-details {
        padding-inline: 24px;
        p {
            margin-bottom: 20px;
        }
    }
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }
    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }