body{
    display: flex;
    margin: 0;
    background-color: var(--main-color);
    height: 100vh;
    flex-direction: column;
}

:root {
    --main-color: rgb(255, 255, 255);
    --secondary-color: rgb(175, 225, 247);
    --shadow-def: #90909057 0px 0px 5px ;
}

*{
    scroll-behavior: smooth;
    scroll-margin: 50px;
}

ul ,ol, li {
    padding: 0;
    margin: 0;
    list-style: none;
}

a{
    color: #3f3f3f;
    text-decoration: none;
    transition: 0.5s all;
}
p{
    margin: 5px;
}

a:hover{
    color: #000;
}

button{
    padding: 0;
    border: 0;
    margin: 0;
    background-color: transparent;
}

button > a{
    display: block;
    color: hsl(0, 0%, 90%);
    padding: 7.5px 15px;
    text-decoration: none;
    background-color: #6c757d;
}
button > a:hover{
    color: #ffffff;
    background-color: #000;
}


button[type="submit"]{
    text-align: center;
    opacity: 0.6;
    background-color: #000;
    color:  #fff;
    padding: 5px;
    transition: all 0.5s;
}

button[type="submit"]:hover{
    opacity: 1;
}

button:hover{
    cursor: pointer;
}

input{
    border: 2px solid #000;
    padding: 2px;
    outline: none;
}

input:focus{
    outline: none;
}

.red{
    background-color: hsl(354, 70%, 54%);
}

.red:hover{
    transition: all 0.5s ;
    background-color: hsl(354, 70%, 64%);
    color: #000000;
}

.green{
    background-color: hsl(152, 69%, 31%);
}

.green:hover{
    transition: all 0.5s ;
    background-color: hsl(152, 69%, 41%);
    color: #000000;
}
.yellow{
    background-color: hsl(45, 100%, 41%);
}
.yellow:hover{
    background-color: hsl(45, 100%, 61%);
    transition: all 0.5s ;
    color: #000000;
}

a.green{
    flex: 1;
}

.red , .green , .yellow{
    padding: 5px 10px;
    font-size: 15px;
    color: #fff;
    text-align: center;
    margin-right: 10px;
}

/* end start*/



/* start header */

.main_header{
    text-align: center;
    z-index: 1;
    padding: 10px;
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-def);
}

.main_menu{
    display: flex; 
    justify-content: space-around;
}

.hover_drop{
    position: relative;
    flex:1;
    padding:4px 4px;

}

.drop_menu{
    display: none;
}

.hover_drop:hover > .drop_menu{
    display: block;
    position: absolute;
    top: -2px;
    width: 96%;
    background-color: #fff;
    max-height: 95vh;
    opacity: 1;
    overflow-y: auto;
    box-shadow: var(--shadow-def);
}

.drop_menu .drop_element a{
    background-color: var(--secondary-color);
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
}

.drop_element:nth-child(2n) a{
    background-color: var(--main-color);
    
}

.drop_element:last-child{
    margin: 0;
    border: none;
}

.button_menu{
    display: none;
}

/*end header*/



/*start main */

main{
    flex: 1;
}

main > *{
    padding: 10px;
    background-color: var(--main-color);
}

main > *:nth-child(2n){
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-def);
}

/*end main */



/* start hero */

#Hero{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 87vh;
    padding-top: 50px;
}

.hero_main{
    display: flex;
    justify-content: space-evenly;
    width: 95%;
    align-items: center;
    flex: 1;
    gap: 5%;
    padding: 0 2.5%;
}

.hero_main > .left , .hero-main > .right{
    margin-bottom: 60px;
}

.hero_main > .left{
    max-width: 600px;
}

.hero_main > .left h1{
    font-size: 40px;
    margin: 0;
    word-spacing: 3px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero_main > .left > .submit{
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-def);
    padding: 8px 15px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #000;
}

.hero_main > .right {
    max-width: 500px;
    
}

.hero_main > .right > h2{
    word-spacing: 2px;
    letter-spacing: 1px;
}

.hero_main > .right .block{
    margin: 0 10px;
}

.hero_link{
    padding: 10px;
}

/*end hero*/



/*start help*/

#Help{
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 30px;
    word-spacing: 3px;
    letter-spacing: 1.5px;
}

#Help > .container{
    max-width: 800px;
}

/*end help*/



/* start whay */

#Why{
    text-align: center;
}

.why_header{
    margin-top: 50px;
}

.why_header h2{
    margin: 20px;
    font-size: 35px;
}

.why_main{
    display: flex;
    justify-content: space-evenly;
    padding:70px;
    padding-top: 140px;
    gap: 50px;
    text-align: center;
}

.why_main_block{
    padding: 10px;
}

.why_main_block i{
    font-size: 40px;
}

.why_main_block h3{
    font-size: 25px;
    margin: 3px;
    letter-spacing: 2px;
}

.why_main_block p{
    font-size: 15px;
    letter-spacing: 1px;
    max-width: 200px;
    margin: 5px;
}

.why_main_block:nth-child(2){
    position: relative;
    top:-50px;
}

/* end whay */



/* start article */

#Articleview{
    display: flex;
    min-height: 10vh;
    justify-content: center;
    align-items: center;
}

.grid_article{
    margin-bottom: 20px;
    display:grid;
    padding: 50px;
    grid-template-columns:repeat(4,1fr);
    gap: 30px 20px;
}

.header_grid_article{
    grid-column: 1/5;
    font-size: 25px;
    margin-left: -25px;

}

.header_grid_article h3{
    margin: 0;
}

.block{
    display: flex;
    flex-direction: column;
    background-color: var(--main-color);
    box-shadow: var(--shadow-def);
}

.article_block{ 
    padding: 10px;
    padding-bottom: 0;
    flex: 1;
}

.img_miniature{
    float: left;
    margin: 0 5px;
    width:40px;
    height: 40px;

}

.article_block_intro{
    margin-left: 15px;
    word-break:break-all;
}

.article_block_intro_title{
    display: inline;
    text-align: justify;
}

.article_block_intro_title{ 
    margin: 0;
    font-size: 17px;
}

.article_block_intro_title:first-letter{
    text-transform: capitalize;
}

.article_block_intro_content{
    margin: 0;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-left: 15px;
    display: inline;
}
.button_nav{
    text-align: end;
    padding: 5px;
}

.article_aside{
    grid-column: 4/5;
    grid-row: 2/6;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    box-shadow: var(--shadow-def);
}

/*end article*/



/*start aside */

aside form{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

aside > * {
    padding: 0 20px;
}

/*end aside */



/*start contact */

.center_form{
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form_grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:20px 10px ;
}

#mesage{
    margin: 0;
}

.form_grid > input{
    background-color: transparent;
    border: none;
    padding: 2px;
    border-bottom:solid #000 2px ;
    transition: all 0.5s;
}

.textarea_form{
    background-color: transparent;
    resize: none;
    padding: 10px;
    height: 200px;
    transition: all 0.5s;
    border:solid #000 2px;
}

progress{
    background-color: transparent;
    border:2px #000000 solid;
}

.form_grid > *{
    grid-column-start: 1;
    grid-column-end: 3;
}

.one_two{
    grid-column: span 1;
}

.no_send{
    z-index: -1;
}

/* end contakt */



/*start login_register*/

    .login_register{
        padding: 0;
        display: flex;
        justify-content: space-between;
        height: 100%;
    }

    .login_register .left , .login_register .right{
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

         .login_register .left{
       padding: 20px;
     }

    .login_register .left form{  
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .login_register .right{
        background-color: var(--secondary-color);
    }

/*end login_register*/



/*start panel_user*/
    .panel_user{
        display: flex;
        gap: 50px;
        height: 100%;
    }

    .main_panel_user{
        padding: 20px;
        flex: 4;
    }
    
    .main_panel_user h1{
        font-size: 40px;
        margin: 5px 0 ;
    }
   
    .main_panel_user h2{
        margin: 5px 10px ;
    }

    .panel_user_option{
        margin-left: 20px;
    }

    .restart_pass{
        display: flex;
        gap: 5px;
    }

    .list_option_user dt{
        margin: 10px;
    }

    .list_option_user dd{
        margin: 5px 20px;
        display: flex;
        gap:10px;
    }

/*end panel_user*/



/*start post*/
.container_post{
    height: 100%;
    padding: 0;
    display: flex;
}

.post{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding:1.5%;
    height: 97%;
    gap: 20px;
    text-align: justify;
}

.post .content{
    letter-spacing: 1.6px;
    word-break:break-all;
    word-spacing: 1.6px;
}

.img_post {
    float: left;
    width: 500px;
    margin-right: 20px;
    margin-bottom: 0;
}

.post_title{
    text-align: justify;
    word-break:break-all;
    font-size: 25px;
    margin: 0;
}

.post_autor{
    margin: 5px;
}

.post_content{
    margin: 0;
}

.nav_article{
    text-align: end;
}

.admin_post{
    display: flex;
}

.container_post aside{
    width: 100%;
    flex: 0;
    padding: 0;
    max-height: 500px;
}

/*end post*/


/* start add post */

.container_addpost{
    padding: 0;
    height: 100%;
}

.addpost{
    height: 97%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1%;
}

.addpost > .post{
    padding: 0;
}

.addpost > .post > .content{
    display: flex;
    height: 100%;
}

.addpost .img_container{
    position: relative;
    max-height: 500px;
}

.addpost .img_post{
    margin: 0;
    height:100%;
}

#select_images_add{
    position: absolute;
    left: 0;
    width: 100%;
    height:100%;
    padding: 0;
    transition: all 0.5s;
}

#select_images_add:hover{
     background-color: color-mix(in srgb, var(--secondary-color) 50%, transparent);
}

.addpost > .post > .content > .content_data{
    margin-left: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
} 

.addpost textarea , .addpost input{
    border: none;
    border: 1px #000 solid;
    width: auto;
    padding: 5px;
}

.addpost textarea{
    resize: none;
    height: 100%;
}

.addpost input:first-child{
    font-size: 20px;
    font-weight: bold;
}

.addpost input[type="file"]{
    all: unset;

}

#menager_file{
    display: none;
}

#menager_file.active{
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-color: color-mix(in srgb, var(--secondary-color) 50%, transparent);
    backdrop-filter: blur(2px);
}

.menager_file_views{
    width: 80%;
    height: 80vh;
    display: flex !important;
    background-color: var(--main-color);
    box-shadow: var(--shadow-def);
}

.menager_file_views>*{
    padding: 25px;
}

.fold{
    border-right: 5px solid var(--secondary-color);
    font-size: 25px;
}

.fold .fold_select{
    display: block;
    margin-bottom: 15px ;
    opacity: 0.5;
    transition: all 0.5s;
}

.fold .fold_select.active , .fold .fold_select:hover{
    opacity: 1;
}

#fold_in_views{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.folder_in_view{
    display: none;
}

.folder_in_view.active{
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 10px;
    max-height: 100%;
    overflow-y: scroll;
    justify-content: space-evenly;
}

.img_select{
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.img_select img{
    width: 100%;
}

.img_select label{
    justify-self: end;
}

.img_select p {
    text-align: center;
    font-size: 12px;
    margin: 2px;
}

.img_select input{
    all: unset;
    top: 0;
    left: 0;
    position: absolute;

    width: 100%;
    height: 100%;
    z-index: 100;
    margin: 0; 
}

.img_select input:hover , .img_select input:checked {
    background-color: color-mix(in srgb, var(--secondary-color) 50%, transparent);
    cursor: pointer;
}

.img_select_none{
    font-size: 20px;
    height: 100%;
    width: 100%;
}

.nav_folder{
    display: flex;
    justify-content: space-between;
    font-size: 20px;
}

.file_dir{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.select_file{
    font-size: 15px;
}

.addpost button{
    padding: 10px;
}

/* end add post */



/* start postviewsman*/

.continer{
    display: flex;
    height: 100%;
    padding: 0;
}

.postmanipulation{
    flex: 4;
    padding: 10px;
}

.much{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 10px ;
}

.much span{
    font-size: 15px;
    font-weight: normal;
}

.much span:last-child{
    text-align: end;
}

.much span:first-child{
    text-align: left;
}

.much form{
    display: inline-block;
}

#select_user{
    background-color: transparent !important;
    color: #000;
    padding: 1px 5px;
    text-align: center;
    width:fit-content;
    border: solid 1px #000 ;
    
}

.post_list > form {
    display: flex;
    flex-direction: column;
    margin-top:10px;
    gap: 10px;
    overflow-y: auto;
    height: 83vh;
    padding: 0 10px ;
}

.post_list .block{
    border: #000000 solid 2px;
    padding: 10px;
}

.block_group_post{
    display: flex;
    align-items: center;
    justify-content: end;
}

.post_list .button_post{
    transition: all 0.5s;
}

.red[type="checkbox"]{
    all:unset;
    height: 25px;
    width: 25px;
    transition: all 0.5s;
    border: hsl(354, 70%, 54%) solid 2px;
    margin-right: 5px;
    background-color: #ffffff;
}

.red[type="checkbox"]:hover,.red[type="checkbox"]:checked{
    background-color: hsl(354, 70%, 54%);
}

.button_group{
    display: flex;
    text-align: right;
    margin-top: 10px;
    padding: 0 10px ;
}

#multi_check{
    all:unset;
    text-align: center;
    width: 25px;
    height: 25px;
    background-color: #fff;
    color: hsl(354, 70%, 54%);
    border:2px hsl(354, 70%, 54%) solid;
}

.hidden{
    display: none;
}

/* end postviews*/



/* usermenager*/
.list_user{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    padding-top: 0;
    flex: 4;
}

.list_user  > *{
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list_user > *:nth-child(2n){
    background-color: var(--secondary-color);
}

.button_continer{
    display: flex;
    text-align: end;
}

/* usermenager*/


/* start file */
    .form_set{
        width: 100%;
    }

    .file_header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 20px;
        padding: 10px;
    }

    .file_header a {
        color: #6c757d; 
        padding: 0 5px;
        border-right: #000 solid 1px;
        transition: all 0.5s ;
    }

    .file_header a:last-child{
        border-right: 0;
        color: #000;
    }

    .file_header a:hover{
        color: #000;
    }

    .file_header > div{
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .file_header input[type="file"]::file-selector-button , .file_header input{
        padding: 3px 10px;
        font-size: 15px;
    }

    #dellmas > .list_user li p{
        display: flex;
        align-items: center;
    } 

    .list_user img{
        height: 40px; 
        margin-right: 5px;
    }

/* end file */


/*start aside*/

aside{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 5px;
}

h2{
    font-size: 20px;
    margin: 5px 0;
}

select , .userop{
    background-color: #4c4c4c;
    color: #fff;
    padding: 10px 5%;
    border: 0;
    width: 100%;
    font-size: 12px;
}

.userop{
    display: none;
    width: 90%;
}

.viewop{
    display: block;
}

input[type="file"]{
    font-size: 12px;
    padding: 0;
    border: #4c4c4c solid 2px;
}


input[type="file"]::file-selector-button{
    font-size: 12px;
    border: none;
    background-color: #4c4c4c;
    color: #fff;
    padding: 10px;
}

aside button[type="submit"]{
    font-size: 12px;
    all:unset;
    padding: 10px;
    width: fit-content;
    justify-self: end;
    align-self: end;
    background-color: #4c4c4c;
    color: #fff;
    border: #4c4c4c solid 2px;
}

aside select:hover , aside button[type="submit"]:hover , aside input[type="file"]::file-selector-button:hover{
    background-color: #7e7e7e;
    border-color: #7e7e7e;
}

/*end asiede*/


/*start footer*/
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    min-height: 50px;
}

footer p{
    margin: 0;
    margin-right: 5px;
}

#Top{
    display: block;
    position: fixed;
    bottom: 20px;
    padding: 5px;
    padding-bottom: 0;
    font-size: 40px;
    font-weight: bold;
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-def);
    border-radius: 5px;
    right:20px;
    transition: bottom 0.5s ;
    opacity: 1;
}

#Top.hidden{
    bottom: -50vh;

}
/*end footer*/

.error{
    border-color:  red!important; 
}



@media (min-width:1900px) {
    .grid_article{
        grid-template-columns:repeat(5,1fr) ;
    }

    .header_grid_article{
        grid-column: 1/6;
    }

    .article_aside{
        grid-column: 5/6;
        grid-row: 2/5;
    }

}


@media (max-width:960px) {

    .grid_article{
        grid-template-columns:repeat(2,1fr) ;
        padding: 25px;
    }

    .header_grid_article , .article_aside{
            grid-column: 1/3;
    }

    .article_aside{
        grid-row: 1/2;
    }

    aside{
        justify-content: center;
        padding: 5px 20px;
    }

    aside button[type="submit"]{
        width: auto;
        align-self: auto;
        text-align: center;
    }

    .container_post{
        flex-direction: column-reverse;
        padding: 10px;
    }

    .addpost > .post > .content{
        flex-direction: column;
    }
    .addpost .img_post{
        width: 100%;
        max-height: 500px;
    }
    .addpost > .post > .content > .content_data{
        margin: 0;
        margin-top: 10px;
    }

    .list_user{
        padding: 0;
    }

    .list_user  > *{
        flex-direction: column;
    }
}


@media(max-width:850px) {

    .main_header.full{
        display: flex;
        height: 100vh;
        width: 95%;
        padding: 2.5%;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #Main_nav{
        display: none;
    }

    #Main_nav.open{
        display: flex;
        gap: 20px;
    }

    .main_menu{
        flex-direction: column;
        gap:10px;
    }

    .hover_drop:hover > .drop_menu {
        display: none;
    }

    .account_drop > .drop_menu ,  .account_drop:hover > .drop_menu{
        display: block;
        position: static;
        width: auto;
        box-shadow: var(--shadow-def);
        margin-top: 5px;
    }

    .button_menu{
        display: block;
        text-align: center;
    }
    
    #Menu_open{
        width: 100%;
        font-size: 25px;
        padding: 10px;
    }

    .hidden_main{
        display: none;
    }

    .hero_main{
        flex-direction: column-reverse;
        justify-content: space-evenly;
        align-items: center;
        gap: 50px;
    }

    .hero_main > .left{
        text-align: center;
    }

    .why_main{
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
    }

    .why_main_block:nth-child(2){
        top: 0;
    }

    .post{
        flex-direction: column;
    }

    .img_post{
        float: none;
        width: 100%;
        margin: 0;
    }

    .nav_folder{
        flex-direction: column;
    }

    .panel_user{
        flex-direction: column;
    }


    .continer aside{
        display: none;
    }

    .post_list{
        display: flex;
        flex-direction: column-reverse;
        
    }

    .post_list form{
        height: auto;
    }


}
@media (max-width:530px){

    .login_register .right{
        display: none;
    }

    .views_select_img{
        flex-direction: column;
        height: auto;
    }

    .nav_article{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .admin_post{
       flex-direction: column;
    }

    .admin_post form button{
        width: 100%;
        margin: 5px 0;
    }

}
@media (max-width:460px) {

    .grid_article{
        grid-template-columns:repeat(1,1fr) ;
        padding: 5px;
    }

    .header_grid_article , .article_aside{
        grid-column: 1/2;
        margin-left:0 ;
    }

    aside{
        padding: 5px;
    }

    aside form{
        padding: 5px;
    }

    input[type="file"]{
        width: 98%;
    }

    .one_two{
        grid-column: 1/3;
    }


    .list_option_user dd{
        flex-direction: column;
    }

    .list_option_user dd > *{
        flex:1;
    }

     .list_option_user dd form > *:not(input){
        width: 100%;
        margin: 0;
    }

    .list_option_user .restart_pass{
        flex-direction: column;
    }


    .much{
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }

    .much span{
        text-align: center !important;
    }

    #form_select_user{
        margin-top: 10px;
    }

    .menager_file_views{
        flex-direction: column;
        max-height: 70vh;
    }




    .post{
        padding: 5px;
        padding-top: 20px;
    }

    .button_continer{
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }


    .postmanipulation{
        padding: 10px 5px;
    }

}

@media (max-height:800px) {
    .continer aside{
        display: none;
    }
    .post_list{
        display: flex;
        flex-direction: column-reverse;
        
    }

    .post_list form{
        height: auto;
    }
}