/***********************************************************************
 *  Aritcle
 **********************************************************************/
 .article p {
    color: var(--grey);
    line-height: 20px;
}

.article--title,
.article--description {
    font-family: 'Roboto', sans-serif;
    border: 1px solid transparent;
    padding: 10px 12px;
    background-color: transparent;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.article--title {
    margin: 35px 14%;
    text-align: center;
    font-weight: 700;
    font-size: 36px;
    line-height: 48px;
    width: 72%;
    resize: none;
}

.article--description {
    font-size: 18px;
    line-height: 22px;
    width: 50%;
    height: 120px;
    margin: 0px 25% 50px;
    resize: vertical;
}

.login--heading {
    text-align: center;
    margin: 120px 0;
}

.login--a {
    text-decoration: none;
    color: var(--blue);
}

.article--photo--div {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    overflow: hidden;
}

.article--photo--img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#articleImg {
    display: none;
}

.photo--icon--div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50px;
    opacity: 0.7;
}

.plus--icon {
    width: 22px;
    height: auto;
}

/***********************************************************************
 *  Editor
 **********************************************************************/
.editor {
    margin: 40px 22%;
    border: 1px solid #ECECEC;
    border-radius: 10px;
    transition: border .4s;
}

/***********************************************************************
 *  Paid article
 **********************************************************************/
.article--paid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 20px auto 0;
}

.article--paid--text {
    font-size: 16px;
}

/* Checkbox */
.cbx {
    -webkit-user-select: none;
    -moz-user-select: none;
     -ms-user-select: none;
         user-select: none;
    cursor: pointer;
    padding: 4px 0px 6px 0px;
    border-radius: 6px;
    overflow: hidden;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.cbx span {
    float: left;
    vertical-align: middle;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.cbx span:first-child {
    position: relative;
    width: 24px;
    height: 24px;
    -webkit-transform: scale(1);
            transform: scale(1);
    border: 1px solid var(--grey);
    border-radius: 4px;
    background-color: unset;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.cbx span:first-child svg { 
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: rgb(23, 207, 38);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-transition-delay: 0.1s;
            transition-delay: 0.1s;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.cbx span:last-child {
    padding-left: 8px;
    line-height: 18px;
}

.inp-cbx:checked + .cbx span:first-child {
    -webkit-animation: wave 0.4s ease;
            animation: wave 0.4s ease;
}

.inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

@-webkit-keyframes wave {
    50% {
      -webkit-transform: scale(0.9);
              transform: scale(0.9);
    }
}

@keyframes wave {
    50% {
      -webkit-transform: scale(0.9);
              transform: scale(0.9);
    }
}
/* End of checkbox */

/***********************************************************************
 *  Form
 **********************************************************************/
.form--button {
    text-align: center;
    margin: 40px 0 60px;
}

select:invalid, select option[value=""] {
    color: var(--grey);
}

select {
    display: block;
    border: 1px solid transparent;
    background-color: #F3F3F3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 11px 16px;
    margin: 0 auto;
    outline: none;
    cursor: pointer;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border .4s, color .4s;
}

input[type=button] {
    background: var(--blue);
    border: 2px solid var(--blue);
    padding: 12px 45px;
    border-radius: 25px;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    outline: none;
    transition: background .5s, color .5s;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

input[type=button]:hover {
    background-color: transparent;
    color: var(--blue);
}

input.wrong,
textarea.wrong,
input[type=text]:not(:placeholder-shown).wrong,
select.wrong {
    border: 1px solid red;
    color: red;
}

.editor.wrong {
    border: 1px solid red;
}

.article--photo--div.wrong {
    border: 1px solid red;
}

#warning {
    display: none;
    color: red;
    font-size: 15px;
    margin-bottom: 15px;
}

#notification {
    display: none;
    color: rgb(145, 228, 22);
    font-size: 15px;
    margin-top: 20px;
}

#warning.active,
#notification.active {
    display: block;
}

#gif {
    display: none;
    width: 70px;
    height: auto;
}

/***********************************************************************
 *  Responzivity
 **********************************************************************/
@media screen and (max-width: 1460px) {
    .article--main--img {
        min-height: 300px;
        max-height: 500px;
    }

    .editor {
        margin: 40px 20%;
    }
}

@media screen and (max-width: 1300px) {
    .article--title {
        font-size: 30px;
        line-height: 40px;
    }
}

@media screen and (max-width: 1100px) {
    .article--main--img {
        min-height: 200px;
        max-height: 400px;
    }

    .article--title {
        margin: 30px 14%;
        font-size: 28px;
        line-height: 36px;
    }

    .editor {
        margin: 40px 16%;
    }

    .article--description {
        width: 70%;
        margin: 0px 15% 30px;
    }
}

@media screen and (max-width: 900px) {
    .article--main--img {
        min-height: 200px;
        max-height: 350px;
    }

    .editor {
        margin: 40px 12%;
    }
}

@media screen and (max-width: 800px) {
    .editor {
        margin: 40px 8%;
    }
}

@media screen and (max-width: 700px) {
    .article--main--img {
        min-height: 180px;
        max-height: 320px;
    }

    .article--title {
        margin: 15px 0% 30px;
        font-size: 26px;
        line-height: 32px;
        text-align: left;
        width: 100%;
    }

    .article--description {
        font-size: 16px;
        line-height: 20px;
        height: 120px;
        margin: 0px 0% 30px;
        text-align: left;
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .editor {
        margin: 30px 5%;
    }
}

@media screen and (max-width: 450px) {
    .article--title {
        margin: 15px 0% 24px;
        font-size: 24px;
        line-height: 30px;
    }

    .article--description {
        margin: 0px 0% 24px;
    }

    .editor {
        margin: 24px 5%;
    }
}