body {
    background:
        url("imgs/starback.gif"),
        black;
    background-repeat: repeat;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    backdrop-filter: blur(1px);
}

nav#side-bar {
    display: none;
}

article {
    width: 100%;
    max-width: 100%;
    backdrop-filter: none;
}

input[name="dirdir_edit"] {
    color: #2667de;
    display: inline-block;
    font-weight: normal;
    padding: 0;
    font-size: 100%
}
input[name="dirdir_edit"]:hover {
    color: #2667de !important;
    background-color: none;
    border-left: none;
    text-decoration: underline;
}

.icofeed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    padding: 20px;
}

.categories_box {
    max-width: 100%;
}

.categories_box legend {
    font-size: large;
    font-weight: bold;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    font-size: large;
}

.categories a {
    position: relative;
    text-decoration: none;
    transition: color 0.1s ease;
}

.categories a:hover {
    color: white;
    animation: flicker 0.8s infinite;
    transition: opacity 0.1s ease;
}

.categories a::after {
    content: "|";
    color: white;
    padding-right: 0.5em;
    padding-left: 0.5em;
}

.categories a:last-child::after {
    content: "|";
}

.categories a:first-child::before {
    color: white;
    content: "|";
    padding-right: 0.5em;
}

@keyframes flicker {
    0% { color: #fff; opacity: 1; }
    25% { color: #def8ff; opacity: 1; }
    50% { color: #fff; opacity: 1; }
    75% { color: #def8ff; opacity: 1; }
    100% { color: #fff; opacity: 1; }
}

.event_box {
    text-align: center;
    border-left: 4px solid white;
    border-right: 4px solid white;
    border-radius: 4px;
    max-width: fit-content;
    margin: auto;
}

.event_box h2 {
    font-size: xxx-large;
}

.date {
    display: flex;
    background-color: rgba(30,30,30,0.5);
    color: #f0f0f0;
    padding: 8px 0px 8px 0px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #4a4a4a;
    align-items: center;
    font-size: large;
    margin: auto;
    max-width: none;
}

.date::before,
.date::after {
    content: '⋆★⋆';
    flex: 1;
    color: grey;
}

.date:not(:empty)::before {
    margin-right: .25em;
}

.date:not(:empty)::after {
    margin-left: .25em;
}


.post {
    background-color: rgba(0,0,0,0);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.post .event_info .date {
    font-size: 0.9em;
}

.post .event_info .date::before,
.post .event_info .date::after {
    content: '⋆★⋆';
    flex: 1;
    color: var(--alt-accent)
}

.post .event_info .date:not(:empty)::before {
    margin-right: .25em;
}

.post .event_info .date:not(:empty)::after {
    margin-left: .25em;
}

.post .event_box h2 {
    margin: 0;
    padding: 12px;
    font-size: 200%;
    text-align: center;
}

.post .cat_list {
    padding: 0 12px;
    font-size: 0.9em;
    color: #b0b0b0;
}

.post .cat_list a {
    color: #66b3ff;
    text-decoration: none;
}

.location a[href=""] {
    color: white;
}

.location a[href=""]:hover {
    color: white;
    text-decoration: none;
    filter: none;
}

.post .cat_list a:hover {
    text-decoration: underline;
}

.cat_list div {
    display: inline-block;
}

.cat_list::before {
    content: 'Catagories: ';
}

.post .cat_list::before {
    content: '';
}

.post .cat_list div:nth-child(n+4) {
    display: none;
}

.event_body {
    padding: 12px;
    color: #c0c0c0;
    flex-grow: 1;
    overflow: hidden;
    font-size: medium;
    max-width: 650px;
}

.post .event_body {
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.9em;
}

.event_info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(30,30,30,0.5);
    padding: 1px 1px 5px 1px;
    margin: 0px 0px 0px 0px;
}

.event_info > div {
    text-align: center;
    border-bottom: 1px solid #4a4a4a;
    width: 100%;
}

.event_info .cat_list {
    padding-bottom: 5px;
}

.post .event_info .cat_list {
    width: initial;
}

.event_info .location::before {
    content: 'Location: ';
    font-weight: bold;
}

.event_info .event_link::before {
    content: '> ';
}
.event_info .event_link::after {
    content: ' <';
}

.post .event_poster {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: black;
}

.event_poster img {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.post .event_poster img {
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.post .event_box {
    width: 100%;
    height: 100%;
    text-align: left;
    border: none;
}

.post .event_box > * {
    display: none;
}

.post:hover .event_info a, .post:hover .event_body  {
    z-index: 2;
}

.event_box_link {
    display: none;
}

.post .event_box_link {
    display: block;
}

.event_img_link {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.post:hover .event_box {
    background-color: rgba(0,0,0,0.7);
}

.post:hover .event_box > * {
    display: block;
}

.post .event_box .event_poster {
    display: block;
}

.link_span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.post:hover .link_span {
    z-index: 0;
}

@media (max-width: 768px) {
    .icofeed {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}