@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans&display=swap");

:root {
    --naranjaC3: rgb(255, 103, 27);
    --naranja: rgb(255, 142, 66);
}

* {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    /* font-family: "Roboto", sans-serif; */
}

.events {
    position: relative;
    width: auto;
    top: 133px;
    /* margin-right: 30px;
    margin-left: 30px; */
}

.events-container {
    margin: 10px 20px 30px 20px;
    margin-bottom: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.menu,
.row1,
.row2,
.date,
.search,
.category,
.search-bar {
    display: flex;
}

.row1,
.row2 {
    justify-content: center;
}

.date {
    align-items: center;
}

.search {
    width: 90%;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
}

.menu {
    width: 100%;
    margin: 0 10px;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu-events {
    display: none;
}

.category {
    width: 100%;
    margin: 5px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    background-color: #dfdfdf;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.5s ease-out;
}

.category:hover {
    cursor: pointer;
    background-color: #ff671b;
    color: white;
}

.category-picked {
    background-color: #ff671b;
    color: white;
    border-color: white;
}

.search-bar {
    margin-top: 25px;
    align-items: center;
}

.search-name {
    margin-left: 25px;
    padding: 0 25px;
    border-left: 1px solid black;
}

.title {
    margin: 40px 60px 10px 60px;
}

.title > h2 > span {
    font-size: inherit;
}

.category-title {
    grid-column: span 2;
    background: #ff671b;
    color: white;
    margin: 10px 30px;
    padding: 5px 10px;
    font-weight: 500;
}

.event-card {
    width: 40vw;
    margin: 20px 10px;
    align-self: center;
    justify-self: center;
    background-color: white;
    transition: all 0.3s ease-out;
}

.event-card:hover {
    cursor: pointer;
}

.event-card img {
    max-width: 100%;
    max-height: 100%;
}

.search label {
    padding-right: 6px;
    margin: 0;
    font-size: 15px;
}

.search input {
    margin: 0 3px;
    padding: 5px 0 5px 8px;
    border: 1px solid black;
    outline: none;
}

#year,
#month {
    width: 120px;
}

#name {
    width: 300px;
}

.buttons .search-button {
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    background-color: #ccc;
    color: black;
    font-size: 14px;
    cursor: pointer;
}

/* Móvil */
@media (max-width: 780px) {
    .events {
        top: 100px;
    }

    .events-container {
        grid-template-columns: 1fr;
    }

    .menu {
        width: 100%;
    }

    .search {
        width: auto;
        margin: 0 25px;
    }

    .search-bar {
        display: flex;
        flex-direction: column;
        margin-top: 15px;
    }

    .search-name {
        margin: 20px 0 0 0;
        padding-top: 20px;
        text-align: center;
        border: none;
        border-top: 1px solid black;
    }

    .buttons {
        margin-top: 20px;
    }

    .search input {
        margin: 5px 0;
    }

    .mobile-menu-events {
        margin: 15px 8px 2px 8px;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #ccc;
    }

    .mobile-menu-events img {
        width: 25px;
    }

    .row1,
    .row2 {
        flex-wrap: wrap;
    }

    .open-event {
        display: flex;
    }

    .close-event {
        display: none;
    }

    .category {
        margin: 3px 8px;
    }

    .category-title {
        grid-column: span 1;
    }

    .title {
        margin-top: 25px;
        text-align: center;
    }

    .event-card {
        width: 80vw;
    }
}

@media (max-width: 480px) {
    .date {
        display: flex;
        flex-direction: column;
    }

    #name {
        width: 250px;
    }

    .category-title {
        margin: 5px;
    }
}

@media (max-width: 1240px) {
    .buttons {
        display: flex;
        margin-top: 20px;
    }

    #date {
        margin: 15px 0;
    }

    .search-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
}
