body{
    font-size: 22px;
    background: rgb(231, 228, 228);
}
#loader {
  position: fixed;
  top: 25%;
  left: 44%;
  margin: auto;
  display: flex;
  justify-content: center;
  z-index: 8; /* Ensure it stays on top */
}
.spinner{
    display: none;
    border: 4px solid rgb(52, 33, 78);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border-left-color: rgb(250, 62, 41);
    animation: spinner 1s ease-in-out infinite;
}
@keyframes spinner{
    0%{
        transform: rotate((0deg));
    }
    100%{
        transform: rotate(360deg);
    }
}
.vgrgert{
    border: 1px solid red;
    margin: 3px;
}
h2{
    color: rgb(205, 205, 239);
    margin-bottom: 1px;

}
h3{
    margin: 2px;
}
label{
    font-size: 1rem;
    margin-bottom: 5px;
}
li{
    list-style: none;
    margin: 5px;
}
.head{
    display: flex;
    justify-content: space-between;
    align-items:end;
    padding: 10px;
    min-height: 110px;
    background-color: rgb(41, 25, 70);
}
.buttons{
    height: 1.8rem;
    display: flex;
    align-items:center;
}

button{
    margin: 5px;
    font-size: 1rem;
}
.app{    
    max-width: 1000px;
    margin: auto;
    margin-bottom: 40px;
}
.personal{
    text-align: end;
    margin-right: 20px;
    min-height: 77px;
}
.personal > h5{
    margin: 2px;
}
.userpict{
     font-size: 0.9rem;
}
#logedin{
    color: rgb(249, 30, 30);
    font-size: 1.2rem;
}

.personal >.userpict > img{
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid blue;
    background-color:antiquewhite;
    margin-right: 1px;
}
.adduser{
    display: none;
    flex-direction: column;
    position: relative;
    font-size: 0.95rem;
}
.form{
    width: 340px;
    position: absolute;
    z-index: 2;
    background-color: rgb(243, 234, 219);
    padding: 10px;
    box-shadow: 1px 1px 8px black;
}
.adduser label{
    display:flex;
    justify-content: space-between;
    margin: 8px;
    margin-right: 5px;
    margin-left: 10px;
}
.adduser >.form > label>#name, #email, #passw, #profession, #logemail, #loginPassw{
    width: 240px;
    margin-left: 1px;
}

#signup{
    margin: 10px;
}
#logout{
    display: none;
}
#uploadpic{
    display: none;
}
.uploadprofiles{
    display: none;
    position: relative;
    z-index: 1;
}
.uploadprofiles >form{
    position: absolute;
    background-color:rgb(217, 215, 211);
    padding: 10px;
    top: 0;
    margin-top: 1px;
}
#addmessage{
    display: none;
}
.picturess{
    display: flex;
    z-index: 0;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgb(41, 176, 70);
}
.pic{
    position: relative;
    margin: 8pxx;
    max-width: 360px;
}

.pictures >.pic > img{
    max-width: 320px;
    margin: 10px;
    height: auto;
    box-shadow: 2px -2px 20px rgb(41, 36, 63);
    object-fit: cover;
}
.requestsform{
    display: none;
    position: relative;
    background-color: rgb(55, 43, 68);
    padding-left: 10px;
    padding-right: 10px;
}
.usersstatus{
    max-width: 500px;
    margin: auto;
    border: 1px solid black;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: rgb(243, 192, 114);
}
.usersstatus > form{
    margin: 4px;
    display: flex;
    justify-content:center;
    align-items: center;
    font-size: 0.9rem;
    background-color: rgba(241, 234, 215, 0.929);
}
.usersstatus > form > label{
    margin-left: 10px;
}
.usersstatus .membername{
    width: 160px;
 
}
.intro{
    padding: 10px;
    line-height: 1.4;
}
.intro >h5{
    margin: 10px;
    font-family:Arial, Helvetica, sans-serif;
    font-style: italic;
}
.linktoviews{
    font-size: 1rem;
    padding: 3px;
    margin: 5px;
    margin-top: 0px;
    text-align: end;
}
.allusers{
    background-color:rgb(77, 154, 110);
    max-width: 100%d;
}
.users{
    resize: both;
    display: flex;
    flex-wrap: wrap;
    padding: 1px;
    margin: auto;
    max-width: 700px;
}
.user{
    border: 1px solid black;
    box-shadow: 1px 2px 8px black;
    display: flex;
    width: 140px;
    height: 210px;
    justify-content: space-between;
    flex-direction: column;
    margin: 10px;
    padding: 5px;
    background-color: rgba(3, 72, 54, 0.719);
    font-size: 0.8rem;
}
.user >h4{
    margin-top: 2px;
    margin-bottom: 1px;
    color: rgb(240, 233, 234);
    text-shadow: 1px 1px 1px black;
}
.user> p{
    margin-top: 1px;
    margin-bottom: 1px;
    color: rgb(238, 238, 246);
    text-shadow: 1px 1px 1px black;
}
.deluser, #btnSignup, .submrequest{
    width: 60px;
    margin: auto;
}
.divbtndel{
    margin: 4px;
    text-align: end;
}
.deluser{
    display: none;
}
.user >img{
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 25px;
    object-fit: cover;
    box-shadow: 2px 2px 20px lightgreen;
    padding: 2px;
    border-radius: 50%;

}

.usernameemail{
    display: flex;
}
.username{
    width: 200px;
}
.loginuser{
    display: none;
    position: relative;
    flex-wrap: wrap;
    flex-direction: column;
}
.loginuser li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 5px;
}
.loginuser label{
    margin-right: 20px;
}
.messageslist{
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    background: radial-gradient(white, rgb(223, 245, 233) );
    padding: 1px;
    padding-bottom: 20px;
}
.messages{
    border: 1px solid black;
    padding: 10px;
}
.message{
    border: 1px solid black;
    margin: 1px;
    max-width: 400px;
    padding: 10px;
    background-color: rgb(230, 162, 217);
}
.postid{
    background-color:deepskyblue;
    z-index: 2;
}
.messagepost{
    position: relative;
    display: none;
    min-width: 380px;
    flex-direction: column;
    z-index: 3;
}
.messagepost >.form{
    display: flex;
    flex-direction: column;
    min-width: 380px;
    background: linear-gradient(30deg, grey, white, grey, white);
    border-radius: 20px;
}

textarea{
    min-height: 100px;
    background-color: rgb(232, 236, 236);
    margin: none;
    border: none;
    box-shadow: 1px 1px 4px black;
    border-radius: 10px;
}
.post{
    max-width: 600px;
    font-size: 1.2rem;
    position: relative;
    background-color:rgb(242, 235, 235);
    box-shadow: 2px 2px 10px darkblue;
    padding: 5px;
    margin: 5px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
}
.postcontent p{
    width: auto;
    font-size: 1rem;
    line-height: 1.4;
    margin: 1px;
    font-style: italic;
}
.postcontent{
    padding: 5px;
    max-width: auto;
    min-height: 200px;
}
.postcontent >img{
    float: left;
    margin: 10px;
    max-width: 300px;
    max-height: 250px;
}
.authdate{
    display: flex;
    justify-content: space-between;
}
.post h5{
    text-align: end;
    margin-bottom: 5px;
    margin-top: 1px;
    margin-right: 10px;
}
.pdate{
    text-align: end;
    margin: 5px;
    margin-top: 0px;
    font-size: 0.9rem;
}

.uploadPicPost{
    display: none;
    max-width: 600px;
    position: absolute;
    box-shadow: 1px 1px 8px black;
    margin-top: 35px;
    font-size: 0.95rem;
    background-color: azure;
    padding: 8px;
    right: 8;
    z-index: 2;
}
.uploadPicPost > form > input{
    font-size: 0.95rem;
}
.picsize{
    margin-bottom: 10px;
}
.postbuttons{
    margin-bottom: 5px;
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
}
.postbuttons > .uploadpicture, .postedit, .postdel, .delcomment, .uploadpicture{
    display: none;
    font-size: 0.95rem;
    margin: 4px;
}
.editform{
    display: flex;
    flex-direction: column;
    max-width: 450px;
    font-size: 0.9rem;
    background-color: cadetblue;
    padding: 5px;
}

.commentx{
    background-color: rgba(25, 14, 46, 0.634);
    border: 1px solid black;
    color: white;
    max-width: 400px;
    margin: 5px;
    min-width: 340px;
    border-radius: 10px;
    padding: 5px;
    min-height: 50px;
}
.comments{
    display: none;
    flex-direction: column;
    font-size: 0.95rem;
    line-height: 1.4;
    flex-wrap: wrap;
    align-items: end;
    position:absolute;
    justify-content:right;
    right: 0;
    margin-right: 10px;
    top: 100%;
    z-index: 1;

    
}
.commentx  h5{
    margin: 5px;
}
.authanddate{
    display: flex;
    background-color: rgb(40, 81, 81)dd;
    justify-content: space-between;
    align-items: baseline;
}
.msgdate{
    font-size: 0.80rem;
}
.formcontainer{
    display: block;
    position: relative;
    min-width: 380px;
}
.commentform{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: absolute;
    z-index: 2;
    background-color: white;
    right:2%;
    padding: 5px;
    border: 2px solid grey;
    border-radius: 10px;
}
#commenttext{
    background-color: white;
    padding: 5px;
    

}
.deldiv{
    display:flex;
    justify-content: right;
}

.submitcom{
    width: 60px;
}
.item{
    display: flex;
    margin-top: 1px;
    height: auto;
    max-width: 800px;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 1px;
    margin: auto;
    flex-wrap: wrap;
    justify-content: center;
}
.item img{
    max-width: 360px;
}

footer{
    font-size: 0.9rem;
    text-align: center;
    background-color: rgb(181, 181, 185);
    padding: 10px;
    margin-top: 2px;
}

@media (min-width: 600px) {
  .pic {
    width: calc(50% - 80px);
  }
}

@media (max-width: 600px) {
  .pic {
    width: calc(100% - 50px);
  }
}

@media (max-width: 400px) {
    .appd{
        max-width: 100vw;
    }
  .pic {
    width: calc(100% - 20px);
  }
}
