/*events_page.php only*/
.upcoming-event{
    width: 85%;
    min-width: fit-content;
    max-width: 1700px;
    margin: 40px auto;
    padding: 10px;
    padding-top: 30px;
    background-color: var(--event-background-color);
    border-radius: 8px;
}

.event-wrap{
    background-color: var(--event-card-color);
    width: 75%;
    min-width: 900px;
    height: fit-content;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; 
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
}

/*"közelgő események" felirat az ALLSTYLE h2-t használja*/
.event-card{
    height: fit-content;
    min-height: 90px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--event-desc-color);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid black;
}
.event-card img{
    width: 70px;
    height: 70px;
    margin-right: 25px;
}
.event-date{
    margin-right: 30px;
    font-size: 18px;
    font-weight: bold;
}

.event-desc{
    height: fit-content;
    width: 90%;
    display: block;
    background-color: var(--event-desc-color);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid black;
}
.event-desc h4{
    padding: 6px;
}
.fa-list, .fa-clock, .fa-calendar-plus{
    margin-right: 10px;
}

.event-desc p{
    padding: 6px;
    overflow-wrap: anywhere; /*nagy linkek miatt kell*/
}


@media only screen and (max-width: 425px){ /*legkisebb*/

    .upcoming-event{
        width: 100%;
        border-radius: 0px;
    }

    .event-wrap{
        width: fit-content;
        min-width: unset;
    }

    .event-card{
        width: 100%;
        min-width: unset;
        padding: 8px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .event-card img{
        margin-right: 0px;
        width: 50px;
        height: 50px;
    }
    .event-date{
        margin-right: 0px;
        font-size: 17px;
    }
}

@media only screen and (min-width: 426px) and (max-width: 650px){ /*kisebb*/

    .upcoming-event{
        width: 100%;
        border-radius: 0px;
        padding: 4px;
        padding-top: 24px;
        margin: 30px auto;
    }

    .event-wrap{
        width: 90%;
        min-width: 400px;
    }
}

@media only screen and (min-width: 651px) and (max-width: 992px){ /*medium*/
   
    .upcoming-event{
        width: 100%;
        border-radius: 0px;
    }

    .event-wrap{
        width: 85%;
        min-width: 500px;
    }
}