.contest-card {
    display: flex;
    flex: 1 1 30%;
    flex-wrap: wrap;
    flex-direction: column;
    margin: .5em;
    padding: 1em .5em;
    border-radius: 5px;
    border: 1px solid black;
    position: relative;
}

.contest-card-body.theme-light{
    border-color: var(--dark-blue);
    box-shadow: 1px 1px 15px var(--dark-blue);
}

.contest.theme-dark,
.contest-card-body.theme-dark{
    border-color: var(--medium-blue);
    box-shadow: 1px 1px 10px var(--medium-blue);
}

.contest-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.contest-card-body {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 1em .5em;
    z-index: 1;
    border-radius: 0 0 5px 5px;
    border: 1px solid black;
    overflow-y: scroll;
}

.contest-card-body.theme-light.show {
    background-color: #ffffff;
}

@media (width < 1100px) {
    .contest-card {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (width < 850px) {
    .contest-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
