body{
    margin: 0;
    padding: 0;
    width: 100%;
    height: fit-content;
    background: #f4f6f8;
    font-family: 'Nunito', sans-serif;
    font-family: 'Rubik', sans-serif;
}

.bg{
    background : linear-gradient(87deg, #264a87 0, #1a174d 100%);
    background-size: cover;
    padding: 20px;
    height: 400px;
    width: 100%;
 }

.bg .bg-head{
    max-width: 90%;
    margin: 10% auto;
    height: fit-content;
      
     display: flex;
     flex-direction: column;
}

.bg-head h1{
    color: aliceblue;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    font-size: 36px;
}

.bg-head p{
    color: #f6f4f8;
    margin-top: 1rem;
    font-size: 15px;
    font-weight: 400;

}

/* This are My Just View and update toggles */
#just_update{
    display: none;
}
/* This is AN End */

main{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: -7rem;
    margin-bottom: 10rem;
}

 
main .profile-left{
    width: 20%;
    max-height: 100vh;
    background: white;
    border-radius: 5px;
    padding: 10px 20px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
}


.profile-left img{
    border-radius: 50%;
    width: 70%;
    height: 170px;
    margin: 3% auto;
}

.profile-left .button-edit{
    background-color: mediumseagreen;
    border-radius: 8px;
    border-width: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    list-style: none;
     
    padding: 10px 12px;
    text-align: center;
    transition: all 200ms;
    vertical-align: baseline;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: 100%;
   
}
.profile-left .button-edit:focus{
    background: lightblue;
    color: darkslategray;
}
/* This are My Buttons */

.profile-left .button-matrimonial{
    background-color: tomato;
    border-radius: 8px;
    border-width: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    list-style: none;
    padding: 10px 12px;
    text-align: center;
    transition: all 200ms;
     
    width: 90%;
}

 
/* CSS */
.button-2 {
  background-color: rgba(51, 51, 51, 0.05);
  border-radius: 8px;
  border-width: 0;
  color: #333333;
  cursor: pointer;
  display: inline-block;
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
  transition: all 200ms;
 
  width: 90%;
 
}
/* THis is An End to My Buttons */

main .profile-right{
    width: 60%;
    max-height: 100vh;
    background: white;
    border-radius: 5px;
    padding: 10px 20px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    transition: 0.5s ease-in-out;
}

/* This is My Just VIew Profile */
.just_view_row{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
}

.just_view_row i{
    color: steelblue;
    margin-right: 0.3rem;
}
 


.column{
    flex-direction: column;
    min-width: 40%;
    margin: 1.5% 3%;
}

.just_view_row .column h3{
    color: #262626;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.just_view_row span{
    color: lightslategray;
    font-size: 15px;
    font-weight: 400;
}

/* This is A End to My Just View PRofile */


.profile-right-content form{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.profile-right-content h2{
    color: darkslateblue;
    font-size: 34px;
    margin-bottom: 2rem;
    padding: 20px 0;
    border-bottom: 1px dashed lightslategrey;
    margin-top: 1rem;

}

.profile-right-content label{
    color: darkslategray;
    
}

.profile-right-content .input{
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.profile-right-content form input{
    border-color: rgba(50, 151, 211, .25);
    position: relative;
  height: 45px;
  min-width: 95%;
  outline: none;
  font-size: 1rem;
  color: #707070;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding-left: 10px;
}

.profile-right-content form input[type="file"]{
    min-width: 95%;
}

input[type="submit"]{
    max-width: 50%;
    cursor: pointer;
} 

input[type="submit"]:focus{
    background: lightblue;
    color: darkslategray;
}


/* This  Are My Error Messages */
.error-container {
    text-align: center;
    max-width: 400px;
    margin: 100px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.error-container h1 {
    color: #ff0000;
}

.error-container p {
    color: #333;
}

.error-container a {
    display: block;
    margin-top: 20px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    padding: 10px;
    border-radius: 5px;
}

.error-container a:hover {
    background-color: #0056b3;
}
/* This is An End */

/* This are My Media Queries */
@media screen and (max-width: 768px) {
    main{
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    .profile-right-content h2{
        font-size: 26px;
    }

    main .profile-left{
        width: 80%;
        margin: 5% auto;
        height: auto;
    }
    
    main .profile-right{
        width: 80%;
        margin: 5% auto;
        height: auto;
    }
}


@media screen and (max-width: 900px) {
    .bg{
        padding: 50px 0px;
    }
    
    .bg-head{
        width: 100%;
    } 

    .bg-head h1{
        font-size: 26px;
    }

}

@media screen and (max-width: 650px) {
    .profile-left img{
        width: 200px;
		height: 200px;
    }

    .profile-left .button-matrimonial {
        width: 100%;
}
}
@media screen and (max-width: 500px){
    main .profile-left{
        width: 97%;
        padding: 5px;
         
    }

    main .profile-right{
        width: 97%;
        padding: 5px;
    }
}
/* this is an End */