
.cards {
    padding: 0 100px 50px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #A0A0A0;
    padding: 20px;
    flex-direction: column;
    display: flex;
    border-radius: 5px;
    background-color: rgba(0,0,0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /*aspect-ratio: 1;*/
    transition: .5s;
    background-size: cover;
    background-position: center;
    background-blend-mode: hue;
    cursor: pointer;
    width: 100%;
    /*max-height: 100vh;*/
    height: 400px;
}

.card:hover:not(form) {
    background-color: rgba(0,0,0, 0.7);
}

.card-layout {
    flex-direction: column;
    display: flex;
}

.when {
    margin-bottom: 20px;
}

.when .time {
    display: flex;
    flex-direction: row;
}

.when .time input {
    width: auto;
}

.update_event_adminform {
    display: none;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    z-index: -9999;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto
}

.price {
    font-size: 1.4rem;
    color: #fff;
}

.bottom {
    align-self: end;
    justify-content: start;
    width: 100%;
    display: flex;
    align-items: center;
}

.additional {
    padding: 10px 15px;
    border: 1px solid #A0A0A0;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    transition: .3s;
}

.additional:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.name {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.shortdesc {
    flex: 1;
}

.titleline {
    padding: 0 100px;
    margin: 50px 0 10px 0;
    font-size: 3.5em;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.archive {
    color: #a0a0a0;
    display: flex;
    justify-content: center;
    align-items: end;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    transition: .3s;
}

.archive:hover {
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 0.5);
}

.content {
    padding: 0 100px 50px 100px;
}

.admin-form-element {
    cursor: default;
}

.admin-form-element textarea {
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
    resize: none;
}

.admin-form-element textarea,
.admin-form-element input,
.admin-form-element [contenteditable] {
    color: #A0A0A0;
    background: none;
    border: none;
    width: 100%;
    outline: none;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    -webkit-appearance: none;
}

.admin-form-element .name [contenteditable] {
    color: #fff;
    font-size: 1.5rem;
}

.admin-form-element button {
    background: none;
    padding: 10px;
    margin: 0;
    color: #A0A0A0;
    cursor: pointer;
    border: 1px solid #A0A0A0;
    border-radius: 3px;
}

#etitle {
    grid-column-start: 1;
    grid-column-end: -1;
}

#esdesc {
    grid-column-start: 1;
    grid-column-end: -1;
}

#edesc {
    grid-column-start: 1;
    grid-column-end: -1;
}

.adminform button {
    grid-column-start: 1;
    grid-column-end: -1;
    z-index: 11;
}

::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.event_admin_actions {
    margin: 0;
    padding: 0;
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 20px;
}

.event_admin_actions form {
    background: none;
    padding: 10px;
    margin: 0;
    color: #f66e6e;
    cursor: pointer;
    border: 1px solid #f66e6e;
    border-radius: 3px;
}



@media screen and (max-width: 970px) {
    .archive {
        display: none;
    }

    .cards {
        padding: 0 20px 150px 20px;
    }
}

input::-webkit-outer-spin-button, /* Removes arrows */
input::-webkit-inner-spin-button, /* Removes arrows */
input::-webkit-clear-button { /* Removes blue cross */
    -webkit-appearance: none;
    margin: 0;
    color: #fff;
    background: #fff;
}

#etitle_div:empty::before {
    content: attr(placeholder);
    color: #A0A0A0;
    margin-left: 1px;
}

#etitle_div:empty:focus::before {
    content: "";
}

.admin-form-element {
    flex: 0 0 auto;
    width: 100%;
    transition: .5s;
}

form.card {
    flex-direction: row;
    overflow: hidden;
    cursor: default;
    z-index: 11;
}

.long-description-input {
    display: flex;
    flex-direction: column;
}

/* #region file_input */

.input-file {
    position: relative;
    display: inline-block;
}

.input-file a {
    background: none;
    padding: 10px;
    margin: 0;
    color: #A0A0A0;
    cursor: pointer;
    border: 1px solid #A0A0A0;
    border-radius: 3px;
    display: inline-block;
}
.input-file input[type=file] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}


/* #endregion file_input */

.admin-telegram-input-group {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 100px 50px;

    @media screen and (max-width: 970px) {
        padding: 0 20px 50px;
    }
}

.admin-telegram-input {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    padding: 10px 20px;
    border-radius: 5px 0 0 5px;
    background-color: rgba(24, 24, 24, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 100%;
    outline: none;
    width: 100%;
}

.admin-telegram-button {
    width: fit-content;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    border-radius: 0 5px 5px 0;
    border-left: 0;
    background-color: rgba(24, 24, 24, 0.3);
    user-select: none;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#edesc {
    color: #fff;
}

.md-preview {
    display: none;
    flex: 1;
    color: #fff;
    overflow: auto;
    margin-bottom: 10px;
}

.event_admin_actions form * {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.event_admin_actions .updatephoto {
    border-color: #A0A0A0;
}

.event_admin_actions .deleteevent button {
    color: #f66e6e;
}

#etitle_div {
    cursor: text;
}