/*
FontAwesome is used so it should be loaded globaly:
In child Function by adding or using the wordpress plugin:
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome_global' );
function enqueue_font_awesome_global() {
    // Using the official Font Awesome CDN for v5/v6
    wp_enqueue_style( 'font-awesome', 'https://use.fontawesome.com/releases/v6.4.0/css/all.css', array(), '6.4.0' );
}   
*/
.recurrence-badge {
    display: inline-block;
    background: #4a7bd0;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin: 6px 0;
}

.recurrence-dates {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}


.recurrence-dates {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

#results {
    margin: 0 auto;
    width: 70%;
}

select {
    font-size: 18px;
    min-height: 55px;
    background-repeat: no-repeat;
    background-position: right;
    background-size: 18px;
    padding-right: 20px !important;
}

select#event_year {
    width: 100%;
}
#event_year, #event_month {
    width: 100%;
    box-shadow: 0 12px 24px rgba(121, 103, 103, 0.6);
    border-radius: 10px;
    font-size: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3em;
    background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%);
    background-position: calc(100% - 1.5em) 50%, calc(100% - 1em) 50%;
    background-size: 0.5em 0.5em, 0.5em 0.5em;
    background-repeat: no-repeat;
}

#loadEvents:hover{
    transform: scale(1.1);
    color: white;
}
button#loadEvents {
        width: 152px;
    padding: 15px;
    color: white !important;
    height: 57px !important;
    margin: auto 10px auto 10px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
    background: #b90000 !important;
    box-shadow: rgb(168 7 7 / 35%) 4px 4px 1px !important;
}
#event_year:hover, #event_month:hover {
        cursor: pointer;
}

.choix {
    line-height: 0.1em;
    display: inline-flex;
    margin-bottom: 10px;
}

h1.maintitle {
    font-weight: 900;
    font-family: 'Playfair Display', 'sans-serif';
    margin-top: 60px;
    font-size: 5.2rem;
    width: 100%;
    text-align: center;
    display: inline-block;
    position: relative;
}

.maintitle::after {
    content: "";
    width: 1.8rem;
    height: 1.8rem;
    position: absolute;
    top: 65px;
    transform: translate(-15px, -5px);
    background-color: #cc0a5eba;
    border-radius: 3rem;
    /* z-index: -1; */
}

img.calendar {
    width: 20px;
}

.description {
    padding: 20px 0 20px 0;
    text-align: justify;
    margin-right: 10px;
    line-height: 1.3rem;
}

.eventid {
    margin-top: 20px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    border: none;
    display: block;
    width: 100% !important;
    font-size: 28px;
    color: #000;
}

.lieu,
.description,
.dates-sticker,
.file {
    margin-bottom: 20px;
}

.lieu::before {
    font-family: FontAwesome !important;
    content: "\f041";
    padding-right: 5px;
    font-size: 25px;
    font-style: normal !important;
    color: #a21616;
}

.lieu {
    font-size: 1.5rem;
    font-weight: 700;
}

.title {
    text-transform: uppercase;
    font-weight: 900;
}

.date::before {
    font-family: FontAwesome !important;
    content: "\f073";
    padding-right: 5px;
    font-size: 16px;
    font-style: normal !important;
    color: #a21616;
}


.select-box {
    width: 70%;
    margin: 10px auto 20px auto;
}

fieldset {
    border: 2px solid #007bff;
    padding: 5px;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin: 0 3px 0 0;
}

legend.legend {
    width: auto !important;
    color: #007bff;
    font-weight: 400;
    padding: 5px 10px;
    background-color: #f9f9f9;
    border-bottom: none;
}


fieldset legend {
    margin: 0 !important;
}

.event-card {
    max-width: 80vw;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    overflow: hidden;
    border: 1px solid black;
    border-radius: 10px;
    display: flex;
    margin: 0 auto 40px auto;
    transition: transform 0.5s ease-in-out;
}

.event-card img {
    object-fit: contain;
    max-width: 350px;
}

.itemInfo {
    width: 100% !important;
    padding: 20px;
}

.event-thumb {
    max-width: 300px;
    border-radius: 6px;
    display: block;
}

.label {
    padding: 12px;
}

.thumb {
    display: contents;
}

.empty-thumb {
    width: 30%;
}

.thumb img {
    margin: 40px;
    height: 250px;
    object-fit: contain;
}
.dotted-date::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: inherit;
    box-shadow: inset -16px -21px 33px rgb(20 15 15 / 50%);
    z-index: 1;
    pointer-events: none;
}
.dotted-date {

    z-index: 1;
    height: 88px;
    clip-path: ellipse(50% 50% at 50% 50%);
    word-wrap: break-word !important;
    text-align: center;
    vertical-align: middle;
    width: 110px;
    top: 35px;
    left: 10px;
    position: absolute;
    background: #cc095d;
    color: white;
    padding: 19px;
}

.semaine,
.jour,
.mois {
    font-weight: 900;
    text-transform: capitalize;
}

a.file {
    text-decoration: underline;
    text-underline-offset: 3px;
}

p.no-events {
    text-align: center;
    padding: 40px;
    font-size: 20px;
}

a.file:before {
    font-family: FontAwesome !important;
    display: inline-block;
    /* Prevents inheritance of underline */
    text-decoration: none;
    /* Explicitly removes underline */
    font-weight: 900;
    /* Required for solid icons in FA6 */
    content: "\f0c1";
    /* Unicode for the icon */
    margin-right: 8px;
    /* Space between icon and text */
    vertical-align: middle;
    /* Align icon with text baseline */
}

@media (max-width: 940px) {
    .event-card {
        flex-direction: column;
        padding: 20px;
    }

    .itemInfo {
        padding: 0 !important;
    }

    .thumb img {
        margin: 0 !important;
        height: 250px;
        object-fit: cover;
    }

    .select-box {
        margin: 10px auto 20px auto !important;
        width: 70%;
    }

    .choix {
        display: flex;
    }

    #results {
        width: 100%;
    }

    button#loadEvents {
        width: 209px;
    }
}