/*  2.1
Developer: profygroup.com
Screen resolution: 460, 860, 1200, 1600, 1920 */
#loading {
    display: none;
    position: fixed;
    background: rgb(0 0 0 / 80%);
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5000px rgb(0 0 0 / 80%);
    z-index: 999;
}

#loading-text {
    display: none;
}

#loading-content {
    background: var(--color1);
    width: 80px;
    height: 80px;
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    25% {
        transform: perspective(100px) rotateX(180deg) rotateY(0);
    }

    50% {
        transform: perspective(100px) rotateX(180deg) rotateY(-180deg);
    }

    75% {
        transform: perspective(100px) rotateX(0) rotateY(-180deg);
    }

    100% {
        transform: perspective(100px) rotateX(0) rotateY(0);
    }
}

/* CELENA ANSWER */
#main_answer_server {
    position: fixed;
    width: 250px;
    left: 10px;
    bottom: 10px;
    z-index: 999;
}

#main_answer_server .server_say {
    position: relative;
    background: #094b79;
    box-shadow: 3px 5px 8px rgb(0 55 76 / 31%);
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    animation: slideUp .3s cubic-bezier(0, 0, .07, 1.42);
    margin-top: 10px;
}

#main_answer_server .success,
#main_answer_server .true,
#main_answer_server .ok {
    background: #62c324;
}

#main_answer_server .danger {
    background: #ea7337;
}

#main_answer_server .error,
#main_answer_server .wrang,
#main_answer_server .false {
    background: #d01717;
}

@keyframes slideUp {
    0% {
        left: -100%
    }

    100% {
        left: 0
    }
}

/* CELENA CONTENT */
.celena_grid #celena_content {
    display: grid;
    grid-gap: 20px 20px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(4, 1fr);
}

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

/* CELENA 404 */
.celena-error {
    align-items: center;
}

/* CELENA NAVIGATION */
.navigation {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.navigation li a {
    display: inline-block;
    background: var(--bg2);
    border-radius: 10px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
}

.navigation li a:hover {
    background: var(--color2);
    color: #fff;
}

.navigation li+li {
    margin-left: 10px;
}

.navigation a.active,
.navigation .pagination_edge a {
    background: var(--color1);
    color: #fff;
}

.navigation .pagination_edge a:before {
    content: "\f015";
    font-family: "Font Awesome 6 Pro";
    font-weight: 600;
}

/* CELENA CRUMBS */
#crumbs {
    display: inline-block;
    background: var(--bg2);
    color: var(--color1);
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 20px;
    grid-column: 1/-1;
}

#crumbs a {
    display: inline-block;
    background: var(--bg);
    padding: 0 20px;
    height: 30px;
    line-height: 30px;
    border-radius: 10px;
}

#crumbs a:hover {
    color: var(--color1);
}

#crumbs span {
    padding: 10px;
}

/* CELENA FAST SEARCH */
.search_result {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 10%);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 10px;
}

@media (max-width: 860px) {
    .search_result {
        position: fixed;
        top: 60px;
    }
}

.search_result li+li {
    padding-top: 10px;
    border-top: 1px solid var(--bg2);
    margin-top: 10px;
}

/* CELENA FORM */
.celena-form_flex {
    display: flex;
    align-items: center;
}

.celena-form_flexno select,
.celena-form_flexno textarea,
.celena-form_flexno+div,
.celena-form_flexno input,
.celena-form_flex+div {
    margin-top: 20px;
}

.celena-form_flex>label {
    font-size: 16px;
    font-weight: 500;
    flex: 0 0 auto;
    width: 25%;
}

/* CELENA USER */
.celena-user {
    background: var(--bg2);
    border-radius: 20px;
}

.celena-user>img:first-child {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.celena-user_content {
    align-items: center;
    justify-content: space-between;
    padding: 20px 90px;
}

@media (max-width: 820px) {
    .celena-user_content {
        padding: 30px;
        justify-content: center;
    }
}

.celena-user_profile {
    margin-top: -60px;
    text-align: center;
}

.celena-user_profile>img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
}

@media (max-width: 820px) {
    .celena-user_profile>img {
        width: 100px;
        height: 100px;
    }
}

.celena-user_profile h3 {
    margin-bottom: 0;
}

.celena-user_profile span {
    font-size: 14px;
}

.celena-user_detal {}

@media (max-width: 820px) {
    .celena-user_detal {
        margin: 30px 0;
    }
}

.celena-user_detal span {
    display: block;
    padding: 5px 0;
}

.celena-user_edit:target {
    display: block;
    background: var(--bg2);
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
}

.celena-user_edit input:not([type="submit"]) {
    background: var(--bg);
}

.celena-user_edit .upload_files {
    display: block;
    margin: 20px 0;
}

/* CELENA COMM */
.celena-comm {
    position: relative;
    margin: 20px 0;
}

.celena-comm>img:first-child {
    float: left;
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.celena-comm_user span {
    font-weight: bold;
}

.celena-comm_content span:nth-child(2) {
    display: block;
    font-size: 12px;
    font-weight: 300;
    margin-top: 3px;
}

.celena-comm>p {
    position: relative;
    display: block;
    background: var(--bg2);
    padding: 10px 20px;
    margin-top: 20px;
}

.celena-comm>p:before {
    content: "";
    position: absolute;
    background: var(--bg2);
    top: -5px;
    left: 1%;
    width: 26px;
    height: 26px;
    transform: rotate(45deg);
    z-index: -1;
}