/**
 * Copyright (c) 2022-2024 UFOCMS
 *
 * This software is licensed under the GPLv3 license.
 * See the LICENSE file for more information.
 */

@import "editor.css";

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: UFOCMS, sans-serif;
}
a, a:hover {
    text-decoration: none;
    color: inherit;
}

body.ufo-wizard {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #4b4b4b;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
}
.ufo-wizard-container {
    width: 50%;
    height: 80%;
    padding: 40px;
    border-radius: 35px;
    background: white;
    box-shadow: rgb(0 0 0 / 16%) 0 1px 4px;
    font-family: ufocms;
}
.ufo-wizard-container .ufo-step-circle-pages {
    width: 100%;
    height: calc(100% - 60px);
    margin: 25px 0;
    background: white;
    border-radius: 18px;
    padding: 12px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    overflow: auto;
}
.ufo-wizard-container .ufo-wizard-act {
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    justify-content: center;align-items: center;
    flex-direction: column;
}
.ufo-wizard-container img {
    pointer-events: none;
    height: 225px;
    width: 225px;
}

/* Default Article */
.ufo-article-wrp {
    width: 100%;
    overflow: auto;
    padding: 18px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.ufo-article-content {
    border-radius: 18px;
    width: 90%;
    padding: 20px;
    background: #f5f3f3;
}
.ufo-article-content hr {
    height: 2px;background: black;margin: 20px 0 40px
}
.ufo-article-row-img {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0 0 30px;
}
.ufo-article-row-img img {
    width: 150px;
    height: 150px;
    margin: 0 10px 15px;
    border-radius: 18px;
}

/* Comments */
.ufo-send-comment-wrp {
    width: 100%;
    height: auto;
    background: whitesmoke;
    box-shadow: rgb(0 0 0 / 10%) 0 0 5px 0, rgb(0 0 0 / 10%) 0 0 1px 0;
    margin: 25px 0;
    border-radius: 12px;
    display: none;
    padding: 18px;
}
.ufo-send-comment-wrp textarea {
    min-height: 100px;
    resize: vertical;
    margin: 20px 0 0;
}
.ufo-comment-wrp {
    width: 100%;
    padding: 20px 60px;
}
.ufo-comments {
    width: 100%;
    height: auto;
    padding: 0;
    margin: 20px 0 0;
}
.ufo-comments .ufo-item-comment {
    width: 100%;
    min-height: 80px;
    background: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px 0, rgba(0, 0, 0, 0.1) 0 0 1px 0;
    padding: 16px;
    border-radius: 12px;
    margin: 0 0 20px;
}
.ufo-comments .ufo-item-comment:first-child {
    margin-top: 20px;
}
.ufo-comments .ufo-item-comment:last-child {
    margin: 0;
}
.ufo-comments .ufo-item-comment.reply {
    background: #ffffff;
    border-radius: 12px;
}
.ufo-comments .ufo-item-comment .ufo-container-comment {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.ufo-comments .ufo-item-comment img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}
.ufo-comments .ufo-item-comment .ufo-content-comment {
    padding: 0 0 0 20px;
    width: 100%;
}
html[dir="rtl"] .ufo-comments .ufo-item-comment .ufo-content-comment {
    padding: 0 20px 0 0;
}
.ufo-comments .ufo-item-comment .ufo-content-comment span {
    font-size: 14px;
    text-align: end;
}
.ufo-comments .ufo-item-comment .ufo-content-comment .ufo-comment-username {
    font-size: 17px;
}

/* Login & Signup form */
.ufo-form {
    width: 350px;
    height: fit-content !important;
    background: whitesmoke;
    padding: 20px;
    height: 325px;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px 0, rgba(0, 0, 0, 0.06) 0 1px 2px 0;
}
.ufo-signup-form {
    height: 380px;
}
.ufo-form .ufo-form-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}
.ufo-form img {
    width: 80px;
    height: 80px;
    margin: 0 0 20px;
}

.ufo-exit-preview-template {
    position: sticky;
    width: 200px;
    left: 10px;
    right: 10px;
    top: 10px;
    font-size: 14px;
}

.ufo-default-container {
    display: block;
}

.ufo-default-container h2 {
    margin: 10px 0 5px;
}
.ufo-default-container .copyright {
    color: #a1a1a1;
}

.ufo-default-container .input-field {
    margin: 20px auto;
    width: calc(70% - 5rem);
    display: flex;
    align-items: center;
    padding-left: 1rem;
    border-radius: 5px;
    border: 1px solid #A2A0B4;
}
.ufo-default-container .input-field input {
    border: none;
    outline: none;
    width: 100%;
    padding: .8rem 0;
}
.ufo-default-container .input-field button {
    font-size: 22px;
    margin: 0 10px;
    background: transparent;
    border: none;
    outline: none;
}
.ufo-default-container .ufo-article-cards {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0 0 0 10px;
    margin: 80px 0 0;
}
html[dir="rtl"] .ufo-default-container .ufo-article-cards {
    padding: 0 10px 0 0;
}
.ufo-default-container .item {
    width: 23%;
    padding: 1.3rem 1.3rem 2rem;
    border-radius: 5px;
    text-align: start;
    margin: 0 10px 60px;
}
.ufo-default-container .item .ufo-article-img {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
}
.ufo-default-container .item .ufo-article-img img {
    width: 95%;
    height: 200px;
    border-radius: 12px;
    margin-top: -70px;
    margin-bottom: 20px;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.ufo-default-container .item h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    overflow: hidden;
    max-height: 50px;
    min-height: 50px;
}
.ufo-default-container .item p {
    font-size: .85rem;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 22px;
}
.ufo-default-container .item .link {
    border-radius: 30px;
    text-decoration: none;
    font-size: .8rem;
    border: 1px solid #A2A0B4;
    color: #000;
    padding: .5rem 1rem;
    transition: .2s ease-in-out;
    margin: 5px 0 0;
    display: inline-block;
}
.ufo-default-container .item .link:hover {
    background: #fff;
    border-color: #fff;
}

.ufo-front-menu {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 25px 0 30px;
    padding: 0;
}
.ufo-front-menu:empty {
    display: none;
}
.ufo-front-menu li {
    margin: 0 10px;
}
.ufo-front-menu li:hover {
    border-bottom: 3px solid blue;
    transition: all 100ms linear;
}

.ufo-form-password-page {
    width: 35%;
    position: relative;
    left: 0;right: 0;
    margin: 20px auto;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
}

@media screen and (min-width: 200px) and (max-width: 400px) {
    .ufo-article-row-img img {
        width: 46%;
        margin: 0 5px;
    }
    .ufo-form-password-page {
        width: 100%;
    }
}
@media screen and (min-width: 200px) and (max-width: 680px) {
    .ufo-login-form, .ufo-signup-form {
        width: 80%;
    }
    .ufo-form-password-page {
        width: 90%;
    }
}
@media screen and (max-width: 1024px) {
    .ufo-wizard-container {
        width: 95%;
        height: 95%;
        border-radius: 15px;
        padding: 15px;
    }
    .ufo-wizard-container .ufo-step-circle-pages {
        height: calc(100% - 80px);
    }
    .ufo-article-content {
        width: 100%;
        border-radius: 12px;
        padding: 12px;
    }
    .ufo-article-row-img {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .ufo-comment-wrp {
        width: 100%;
        padding: 20px 0 0;
    }
    .ufo-comments .ufo-item-comment img {
        height: 45px;
    }
    .ufo-comments .ufo-item-comment .ufo-content-comment {
        padding: 0 5px;
    }
}
@media screen and (max-width: 500px) {
    .ufo-default-container {
        padding: 12px;
    }
    .ufo-default-container .ufo-article-cards {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
    }
    html[dir="rtl"] .ufo-default-container .ufo-article-cards {
        padding: 0;
    }
    .ufo-default-container .item {
        width: 90%;
        margin: 0 0 60px;
    }
    .ufo-default-container .item .ufo-article-img img {
        height: 250px;
    }
    .ufo-default-container .input-field {
        width: 90%;
    }
}
@media screen and (min-width: 500px) and (max-width: 700px) {
    .ufo-default-container .item {
        width: 45%;
    }
    .ufo-default-container .item img {
        height: 150px;
    }
}
@media screen and (min-width: 700px) and (max-width: 1000px) {
    .ufo-default-container .item {
        width: 30%;
    }
    .ufo-default-container .item img {
        height: 150px !important;
    }
}