* {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  color: #4d4d4d;
  box-sizing: border-box;
}

body {
  position: relative;
  background: #f7f7f7;
}

.add {
  text-decoration: none;
  color: rgb(21, 113, 250);
  position: absolute;
  top: 30px;
  left: 20px;
  z-index: 10;
  padding: 0 20px;
  border-radius: 6px;
  border: 2px solid rgb(21, 113, 250);
  font-size: x-large;
}

.profile {
  color: rgb(21, 113, 250);
  position: absolute;
  top: 30px;
  left: 200px;
  z-index: 10;
}

.profile span {
  font-size: 50px;
  color: rgb(21, 113, 250);
}

.add:hover {
  color: white;
  background-color: rgb(21, 113, 250);
}


.all {
  display: flex;
  flex-direction: row-reverse;
}

.title {
  width: 100%;
  height: 35%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: linear-gradient(122deg, rgba(42, 155, 255, 1) 30%, rgba(193, 206, 217, 1) 57%, rgba(200, 208, 215, 1) 69%, rgba(233, 229, 229, 1) 89%, rgba(255, 255, 255, 1) 100%);
}

.profile {
  width: 200px;
  height: 200px;
  border: 5px solid #ffffff;
  border-radius: 1000px;
  position: absolute;
  top: 100px;
  right: 30px;
  z-index: 1;
}

#p_img {
  color: transparent;
  position: absolute;
  z-index: 2;
  width: 150px;
  height: 150px;
}

#p_img::-webkit-file-upload-button {
  color: transparent;
  border: none;
  background-color: transparent;
  cursor: pointer;
}


.up_img {
  background-image: url(https://www.gstatic.com/images/icons/material/system/2x/photo_camera_white_24dp.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 45px 45px;
  opacity: 0;
  position: relative;
  top: 100px;
  right: 30px;
  width: 200px;
  height: 200px;
  background-color: rgba(0, 0, 0, 0.425);
  z-index: 1;
  border-radius: 1000px;
}

.up_img:hover {
  opacity: 100%;
}

#submit {
  position: absolute;
  right: 40px;
  top: 260px;
  z-index: 10;
  background-color: rgba(42, 155, 255, 1);
  border: none;
  height: 40px;
  width: 40px;
  border-radius: 1000px;
}

#submit span {
  color: white;
}

h1 {
  background-color: #ffffff;
  height: 70px;
  padding-left: 100px;
  padding-right: 100px;
  border-radius: 100px;
  position: absolute;
  top: 160px;
  right: 180px;
}

.user_info {
  text-align: center;
  margin-top: 150px;
  margin-right: 50px;
  margin-left: 30px;
  border-radius: 20px;
  height: fit-content;
  width: 400px;
  padding: 20px;
  position: sticky;
  top: 20px;
  border: 1px solid rgb(209, 208, 208);
  display: flex;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.user_info a:not(.logout) {
  text-decoration: none;
  color: rgb(255, 255, 255);
  background-color: #3e98ff;
  font-size: larger;
  padding: 5px 10px;
  border-radius: 4px;
  margin: 10px;
}

.user_info span {
  color: rgb(255, 255, 255);

}

.logout {
  color: red;
  font-weight: 600;
  font-size: larger;
}

.add {
  position: absolute;
  top: 240px;
  left: 10px;
  padding: 2px 10px;
  text-decoration: none;
  border-radius: 7px;
  font-size: 25px;
  border: 2px solid rgba(42, 155, 255, 1);
  color: rgba(42, 155, 255, 1);
}

.add:hover {
  color: white;
  background-color: rgba(42, 155, 255, 1);
}

.realestates h2 {
  text-align: center;
}

.realestates {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  margin-top: 55px;
  border-radius: 20px;
}

.show_ad {
  display: flex;
  margin: 10px;
  border: 1px solid rgb(209, 208, 208);
  border-radius: 10px;
  width: fit-content;
}


swiper-container {
  width: 350px;
  height: 250px;
}

swiper-slide img {
  border-radius: 0px 7px 7px 0px;
  display: block;
  width: 100%;
  height: 100%;
}

swiper-slide video {
  border-radius: 0px 7px 7px 0px;
  display: block;
  height: 100%;
}

.show {
  text-decoration: none;
  color: black;
}

.info {
  margin-right: 20px;
  width: 400px;
}

p {
  margin-bottom: 5px;
  width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.area_img,
.type_img,
.sale_rent_img,
.adress_img {
  width: 25px;
  margin-bottom: -7px;
}

ion-icon {
  font-size: x-large;
  color: white;
}

.contact {
  text-decoration: none;
  background-color: #3e98ff;
  font-size: larger;
  padding: 4px 41px;
  border-radius: 4px;
  margin: 4px;
  height: 32px;
  display: inline-block;
}

.contact span {
  color: white;
}

.delete span {
  text-decoration: none;
  text-align: center;
  color: white;
  background-color: red;
  border-radius: 4px;
  padding: 4px 10px;
  margin: 4px;
}

.separator {
  border-left: 1px solid black;
  margin-left: 10px;
  padding-left: 5px;
}

.error {
  background-color: rgb(255, 54, 54);
  color: white;
  text-align: center;
  border-radius: 7px;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 3px 10px;
  margin: 10px 0;
  border: 1.5px solid gray;
  text-decoration: none;
}

.pagination a {
  text-decoration: none;
}

.pagination a:hover {
  border: 1.5px solid #389ae1;
}


.pagination a.current {
  color: white;
  background-color: #389ae1;
  font-weight: bold;
}

@media (max-width:694px) {
  .title {
    height: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h1 {
    padding-left: 0;
    padding-right: 0;
    border-radius: 100px;
    position: static;
    background: none;
    font-size: x-large;
    width: 100%;
    text-align: center;
  }

  .user_info {
    text-align: center;
    margin-top: 95px;
    margin-right: 50px;
    margin-left: 30px;
    border-radius: 20px;
    height: fit-content;
    width: 315px;
    padding: 20px;
    position: relative;
    border: 1px solid rgb(209, 208, 208);
  }


  .all {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile {
    width: 150px;
    height: 150px;
    border: 5px solid #ffffff;
    border-radius: 1000px;
    position: static;
    z-index: 1;
  }

  .up_img {
    position: absolute;
    top: 0px;
    right: 97px;
    width: 150px;
    height: 150px;
  }

  #submit {
    position: absolute;
    right: 106px;
    top: 110px;
  }

  .add {
    position: relative;
    top: 330px;
    left: -110px;
  }

  .show_ad {
    flex-direction: column;
    align-items: center
  }

  .info {
    width: 330px;
  }

  .contact {
    padding: 4px 38px;
  }

  swiper-slide img {
    border-radius: 7px;
  }

  p {
    width: 300px;
  }

  .delete span {
    width: 96%;
  }
}