/* Events */
.events-container {
    max-width: 100%;
    margin: auto;
    display: block;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: auto;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.thumb-box {
    display: flex;
    max-width: 100%;
    margin: 10px 15px;
    position: relative;
}

.thumb-box a {
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.thumb-box img {
    width: 100%;
    height: 250px;
    float: left;
    object-fit: cover;
    border-radius: 15px;
}

.overlay-box {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
    left: 0;
    padding: 5%;
    background-color: rgba(0,0,0,0.5);
    border-radius: 15px;
}

.event-date, .event-venue, .org-info {
    color: white;
    font-size: 10px;
    display: block;
    text-transform: uppercase;
    opacity: 0.8;
}

.event-title, .org-title {
    font-size: 16px;
    display: block;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 1px rgba(0,0,0,0.5);
}

.event-details, .org-details {
    color: #ccc;
    font-size: 10px;
    margin-top: 5px;
    display: block;
    max-height: 0;
    line-height: 18px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-out, max-height 0.4s ease-out, margin 0.4s;
    text-transform: uppercase;
}

.org-title {
    font-size: 16px;
    display: block;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 1px rgba(0,0,0,0.5);
}

.org-details {
    color: #ccc;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    max-height: 0;
    line-height: 18px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-out, max-height 0.4s ease-out, margin 0.4s;
}

.thumb-box a:hover .event-details,
.thumb-box a:hover .org-details {
    opacity: 1;
    max-height: 100px;
    margin-top: 5px;
    transition: opacity 0.4s ease-out, max-height 0.9s ease-out;
}

.thumb-box a:hover,
.overlay-box {
    background-image: linear-gradient(to bottom, transparent, rgba(0,0,0,1));
}

.w3-top {
    z-index: 4;
}


@media (max-width: 800px) {
    .sidebar {
        display: block;
        width: 100%;
    }

    .sidebar p {
        text-align: justify;
    }

    .row {
        display: block;
        align-items: center;
    }

    .events-container {
        width: 100%;
        margin-left: 0;
    }

    .organizations-container {
        width: 100%;
        margin-left: 0;
    }

    .thumb-box {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .thumb-box img {
        height: 267px;
    }

    .main-container {
        display: block;
    }

    .main-content {
        width: 100%;
        position: relative;
    }

    .sidebar {
        width: 100%;
        display: block;
        position: relative;
    }

    form.search-events input[type="text"] {
        margin-left: 10px;
    }
}


.btn {
    background-color: maroon;
    padding: 10px;
    font-size: 15px;
    color: white;
    margin-top: 20px;
    margin-bottom: 40px;
    position: static;
}

.btn:hover {
    cursor: pointer;
    background-color: #ffd700;
    color: black;
}


form.search-events input[type=text] {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    float: left;
    width: 75%;
    background: #f1f1f1;
    margin-left: 20px;
    position: relative;
}

form.search-events button {
    float: left;
    width: 10%;
    padding: 10px;
    background: maroon;
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none;
    cursor: pointer;
}

form.search-events button:hover {
    background-color: #ffd700;
    color: black;
}

form.search-events::after {
    content: "";
    clear: both;
    display: table;
}
