@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900;1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");
* {
  margin: 0;
  padding: 0;
  transition: all 500ms ease;
  font-family: "Nunito", sans-serif;
}

.Iosimg {
  background-attachment: none !important;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: row;
  background-color: #fff;
  box-shadow: 1px 1px 10px 0.1px grey;
  z-index: 1000000000000000;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

header > div {
  display: flex;

  flex-direction: row;
}

header div:nth-child(2) img {
  width: 30px;
  height: 30px;
  margin-top: 5px;
}
header div:nth-child(1) img,
header div:nth-child(1) a div {
  /* margin-left: 10px; */
  height: 80px;
  position: absolute;
  left: 10px;
  top: 0;
  width: 80px;
  background-size: cover;
}
header div:nth-child(4) > a > img {
  width: 30px;
  height: 30px;
  /* margin-top: 8px; */
}
header div a {
  margin-top: auto;
  margin-bottom: auto;
  width: fit-content;
  font-size: 19px;
  height: fit-content;
  text-align: center;
  border-radius: 10px;
  color: gray;
  font-weight: 500;
  text-decoration: none;
  margin-left: 23px;
}
header div:nth-child(2) {
  margin-left: 80px;
  
}
/* 
header div a:nth-child(4),header div a:nth-child(3){
  width: 155px;
  margin-left:  0px;
}
header div a:nth-child(5){
  width: 90px;
  margin-left: 5px;
} */
header div:nth-child(2) a:hover,
header div:nth-child(3) a:hover {
  color: black;
}

main {
  margin-top: 100px;
}

.notActive {
  display: none !important;
}
.active {
  display: block;
}

.Service {
  display: flex;
  width: 100%;
  border-radius: 10px;
  flex-direction: column;
  flex-wrap: wrap;
  align-self: center;
  justify-content: space-around;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 100px;
  padding-top: 50px;
  margin-bottom: 200px;
  background: #fbfbfb;
  /* padding: 50px; */
}

.Service > h1,
.map > h1 {
  color: #024461;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 800;
  padding-top: 30px;
  margin-left: auto;
  margin-right: auto;
}
.Service > h1 {
  left: 0;
}
.Service > div {
  display: flex;
  width: 90%;
  flex-direction: row;
  flex-wrap: wrap;
  align-self: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  padding: 50px;
}
.Service .card {
  display: block;
  width: 500px;
  height: 300px;
  padding-top: 30px;
  background-color: #fff;
  position: relative;
  border-radius: 10px;
  margin-left: 20px;
  margin-bottom: 30px;
}

.Service .card:hover > h1 {
  /* transform: scale(1.05,1.05); */
  color: black;
}

.remove-scrolling {
  margin: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

#ServiceImage {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  align-self: center;
  justify-content: center;
  margin-bottom: 100px;
}

#ServiceImage img {
  width: 500px;
  margin: 20px;
  border-radius: 6px;
}

.map {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  /* border-left: 120px solid white;
  border-right: 35px solid #fff; */
  /* background-color: white; */
}
.who {
  position: relative;
  width: 100%;
  height: fit-content;
  /* margin-bottom: 260px; */
}
.who > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
  position: absolute;
  top: 0;
  bottom: 0;
}

.who > div:nth-child(1) {
  width: 100%;
  height: 430px;
  background: url("https://firebasestorage.googleapis.com/v0/b/care-ocenan-clinic.appspot.com/o/jamie-street-s9Tf1eBDFqw-unsplash%20(1).jpg?alt=media&token=a202976d-0b0f-46a6-a826-1e4f0bf87bc9")
    no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -10;
}

.who h1 {
  /* margin-bottom: 5px; */
  font-size: 45px;
  display: block;
  width: fit-content;
  padding-left: 50px;
  color: #fff;
  font-family: "Merriweather", serif;
  font-weight: 900;
  background-color: rgba(2, 68, 97, 0.8);
  padding-right: 338px;
  padding-top: 20px;
  border-top-right-radius: 20px;
}
.who h2 {
  display: block;
  font-size: 24px;

  font-weight: 400;
  width: fit-content;
  padding-left: 60px;
  color: #fff;
  font-family: "Merriweather", serif;
  background-color: rgba(2, 68, 97, 0.8);

  padding-right: 10px;
}
.who h3 {
  display: block;
  font-size: 20px;
  font-weight: 300;
  width: fit-content;
  padding-left: 57px;
  color: #fff;
  font-family: "Merriweather", serif;
  background-color: rgba(2, 68, 97, 0.8);

  padding-right: 24px;
  padding-bottom: 20px;
  border-bottom-right-radius: 10px;
}

#phonepop {
  background-color: #fff;
  width: fit-content;
  height: 0;
  padding: 25px 0 50px 0;
  border-radius: 10px 0 10px 10px;
  text-align: center;
  position: absolute;
  bottom: 10px;
  right: 30px;

  z-index: 99;
}
.Service .card > h1 {
  width: 200px;
  margin-left: auto;
  text-align: center;
  margin-right: auto;
  color: grey;
  text-decoration: none;
}

.Service a {
  text-decoration: none;
  color: grey;
}
.Service a:focus {
  color: grey;
}
.Service .card ion-icon,
.Service .card img {
  display: block;
  width: 100px;
  height: 100px !important;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  color: rgb(100, 100, 100);
  border-radius: 10px;
}
.Service .card:hover ion-icon {
  color: black;
}
#Gallry {
  position: relative;
}
#Gallry > h1 {
  color: #024461;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 800;
  padding-top: 30px;
  text-align: center;
}

#current {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  z-index: -11111;

  bottom: 0;
  left: 0;
  right: 0;
  background-color: transparent;
}

.currentA {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.8) !important;
}
.ListNum {
  display: none;
  position: absolute;
  color: rgb(197, 197, 197);

  bottom: 7%;
  left: auto;
}
.current-image {
  width: 76%;
  height: 66%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding-left: auto;
  padding-right: auto;
}

.close {
  display: none;
  transition: all 40ms;
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 55px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: rgb(197, 197, 197);
}
.close:hover {
  /* color: rgb(196, 51, 51); */
  color: rgb(197, 80, 80);
}

.gr {
  display: none;
  z-index: 999999;
  position: fixed;
  right: 20px;
  font-size: 55px;
  background-color: transparent;
  border: none;
  color: rgb(197, 197, 197);

  cursor: pointer;
  transition: all 40ms;
}
.gl {
  display: none;
  z-index: 999999;
  position: fixed;
  left: 20px;
  font-size: 55px;
  background-color: transparent;
  border: none;
  color: rgb(197, 197, 197);

  cursor: pointer;
  transition: all 40ms;
}
.gr:hover,
.gl:hover {
  color: white;
}

#ImgGallry {
  width: 80%;
  height: 500px;
  margin-left: auto;
  margin-right: auto;
  overflow-y: auto;
  white-space: nowrap;
  margin-bottom: 100px;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 50px;
  padding-left: 50px;
  padding-right: 50px;
  border-radius: 10px;
}
#ImgGallry::-webkit-scrollbar,
#scroll::-webkit-scrollbar {
  display: none;
}
.thumb {
  width: fit-content;
  height: 450px;
  border-radius: 10px;
  display: block;
  cursor: pointer;
  transition: all 300ms ease;
}

.thumb:hover {
  opacity: 0.8;

  border-radius: 25px;
}

.gr2 {
  position: absolute;
  height: 30px;
  width: 30px;
  font-size: 45px;
  border: none;
  background-color: transparent;
  color: #024461;
  z-index: 100;
  top: 340px;

  right: 30px;
  margin-left: auto;
  margin-right: auto;
}

.gl2 {
  position: absolute;
  height: 30px;
  width: 30px;
  color: #024461;
  font-size: 45px;
  border: none;
  background-color: transparent;

  z-index: 100;
  top: 340px;
  left: 15px;
  margin-left: auto;
  margin-right: auto;
}
.cat {
  position: absolute;
  top: -50px;
  height: 100%;
  width: 100%;
}
.catImg {
  margin-top: 16px;
  text-align: center;
  width: 100%;
  height: 300px;
}
#NeonatalImg{
  transform: scale(150%) !important;
}
.cat > h1 {
  color: #024461;
  text-align: center;
  font-size: 70px;
  margin-top: 100px;
}

.Service .card img {
  height: 50%;
}

.Service .card > ion-icon {
  font-size: 166px;
  display: block;
  width: 100px;
  margin-right: auto;
  margin-left: auto;
}
.Service .card > i {
  font-size: 133px;
  display: block;
  width: 135px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 29px;
  margin-bottom: 6px;
}

#list,
#listClose {
  display: none;
  font-size: 34px;
  width: 100px;
  height: 50px;
  margin-top: 15px;
}
#listClose {
  position: absolute;
  right: 0;
  top: 0;
}
.listIN {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 323px;
}
header div:nth-child(4) a {
  height: 40px;
  text-align: center;
  overflow: hidden;
}
#listPh {
  width: 100%;

  position: relative;
  top: 80px;
  display: none;
  flex-direction: column;
  animation-name: Listopen;
  animation-duration: 500ms;
  padding-bottom: 80px;
}
#listPh a {
  width: 70%;
  text-align: left;
  display: block;
}
#listPh a:hover {
  color: black;
}
@keyframes Listopen {
  0% {
    transform: translateX(-680px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes ListClose {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-680px);
  }
}

.listPhActive {
  display: grid !important;

  grid-template-columns: 1fr;
  grid-template-rows: repeat(6, 40px);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

#listIN a:hover {
  background-color: #f1f1f1;
  color: black;
}
#listIN a:nth-child(1) {
  padding-left: 3px;
}
#listIN a {
  margin-top: 5px;
  text-align: center;
  margin-bottom: 5px;
}
.ListINActive {
  display: flex !important ;
  animation-name: ListInOpen;
  animation-duration: 500ms;
}
@keyframes ListInOpen {
  0% {
    height: 0;
  }
  100% {
    height: 323px;
  }
}
.Error h1,
.Error h2,
.Error a {
  margin-left: 100px;

  color: #024461;
}
.Error a {
  display: block;
  margin-top: 10px;
}

.footerA {
  position: absolute;
  bottom: 0;
}
footer {
  position: relative;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  height: 450px;

  width: 100%;
  color: #fff;
  background-color: #024461;
}

footer section:nth-child(1) {
  /* padding: 100px 0 100px 0; */
  display: grid;
  padding: 100px;
  /* justify-content: center; */
  gap: 40px;
  grid-template-columns: 200px 200px 200px 200px;
}


footer section:nth-child(1) div h1 {
  font-size: 25px;
  font-weight: 700;
}
footer section:nth-child(1) div a:hover {
  color: #e4e4e4;
  text-decoration: underline;
}
footer section:nth-child(1) div a {
  color: #fff;
  font-size: 15px;
  margin-top: 2px;
  display: block;
  margin-left: 0px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px;
}
footer section:nth-child(1) div:nth-child(1) a:nth-child(4),
footer section:nth-child(2) a:nth-child(4) > a {
  text-decoration: none;
}
footer section:nth-child(1) div a:nth-child(2) {
  margin-top: 10px;
}

footer:hover section:nth-child(2) h1 {
  bottom: 40px;
}
footer section:nth-child(2) h1 {
  color: white;
  font-size: 20px;
  position: absolute;
  right: 40px;
  bottom: 20px;
}
footer section:nth-child(1) h3 {
  margin-top: 15px;
  margin-left: 10px;
  color: white;
  font-size: 16px;
  font-weight: lighter;
}

.docs {
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 200px;
}

.gr3 {
  height: 30px;
  width: 30px;
  color: #024461;
  font-size: 45px;
  border: none;
  background-color: transparent;
  z-index: 100;
  margin-right: 10px;
}

.gl3 {
  height: 30px;
  width: 30px;
  color: #024461;
  font-size: 45px;
  border: none;
  background-color: transparent;
  z-index: 100;
  margin-right: 15px;
}
.docs > div {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  /* gap: 10px; */
  justify-content: center;
}
.docs > div > div {
  width: 80%;
  overflow-y: auto;
  white-space: nowrap;
  height: 100%;

  scroll-behavior: smooth;
  transition: all 300ms;
}

.docs > h1 {
  color: #024461;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 800;
  margin-top: 150px;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}
.docs > div::-webkit-scrollbar {
  display: none;
}
.doc {
  display: inline-block;
  width: 300px;
  background: #fcfcfc;

  height: 300px;
  overflow: hidden;
  padding: 20px;
  border-radius: 10px;
  margin: 0px 20px;
}
.doc:hover{
  border-radius: 22px;
  margin: 0px 24px ;
 }
.doc:hover img{
 border-radius: 22px;
 opacity: 0.8; 
  }
.doc img {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.doc h1,
.doc h4 {
  font-weight: 500;
  margin-left: 20px;
}
@media (max-width: 1012px) {
  .Service > div {
    padding: 0;
  }
}
@media (max-width: 917px) {
  footer section {
    grid-template-columns: 200px 200px !important;
    padding: 100px 0 100px 0;
    display: grid;
    justify-content: center;
    gap: 40px;
  }
  footer {
    height: fit-content;
  }
  footer:hover {
    height: fit-content;
  }
  .gr2,
  .gl2,
  .gr3,
  .gl3 {
    display: none !important;
  }
}
@media (max-width: 750px) {
  .thumb {
    width: 450px;
    height: 337.5px;
  }
  .close {
    right: 5%;
  }
  header div a {
    font-size: 16px;
  }
  
}
@media (min-width: 681px) {
  .ListINActive {
    display: none !important;
  }
}
@media (max-width: 680px) {
  .Service > div {
    align-items: center;
    justify-content: center;
    width: 89%;
  }
  .who > div:nth-child(2) {
    display: block;
    position: relative;
    margin: 20px;
  }
  .who h1,
  .who h3,
  .who h2 {
    padding: 0;
    color: black;
    background-color: white;
  }
  .gr:hover,
  .gl:hover {
    color: rgb(197, 197, 197);
  }
  .Service {
    margin-left: auto;
    margin-right: auto;
  }
  .who > h3 {
    margin-left: 100px;
  }
  .who {
    padding-left: 0px;

    width: 100%;
  }

  .Service .card {
    margin-left: auto;
    margin-right: auto;
  }
  .Service h1 {
    left: 27px;
  }
  .who > h1 {
    margin-left: 60px;
  }
  header div:nth-child(1) a {
    margin-left: 0;
  }

  header > div:nth-child(2) a {
    display: none;
  }
  .ListINActive {
    display: flex !important;
  }
  header > div:nth-child(3) #list {
    display: block;
  }
  header > div:nth-child(3) {
    display: block;
  }

  header {
    justify-content: space-between;
  }

  #ImgGallry {
    width: 450px;
  }
}
@media (max-width: 620px) {
  .cat .Service > h1 {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    padding: 20px;
  }

  header > div {
    margin: 0;
  }
  .Service > div {
    padding: 0;
  }

  footer section {
    grid-template-columns: 200px !important;
    align-items: center;
  }

  #ImgGallry {
    padding: 0;
  }
  .card {
    width: 400px !important ;
  }
  .gr {
    width: 40px;
    height: 40px;
    right: 0;
  }
  .gl {
    width: 40px;
    height: 40px;
    left: 0;
  }
  #ServiceImage img {
    width: 200px;
  }
}

@media (max-width: 500px) {
  header > div {
    margin: 0;
  }
  header > div:nth-child(1) {
    padding-left: 10px;
  }
  .doc {
    margin-left: 0;
  }

  #ImgGallry {
    width: 420px;
    height: 420px;
  }

  .thumb {
    width: 420px;
    height: 315px;
  }
  header div a {
    font-size: 20px;
    width: 100px;
  }


@media (max-width: 440px) {
  header > div {
    margin: 0;
  }
  #ImgGallry {
    width: 350px;
    height: 350px;
  }
  .thumb {
    width: 350px;
    height: 262.5px;
  }
  header div:nth-child(2) {
    display: none;
  }
  .Service .card {
    margin-left: auto;
    margin-right: auto;
  }
  header > div:nth-child(1) {
    padding-left: 10px;
  }
  header div a {
    font-size: 20px;
    width: 100px;
  }
  .doc {
    width: 230px;
    height: 250px;
  }
  .doc img {
    height: 140px;
  }
  .who h1 {
    font-size: 35px;
  }
}

@media (max-width: 416px) {
  .card {
    width: 310px !important;
    height: 280px !important;
  }
  .who > h1 {
    font-size: 33px;
  }
  .docs > h1,
  .Service > h1,
  .map > h1 {
    font-size: 37px;
  }
  #ImgGallry {
    width: 275px;
  }
  .thumb {
    width: 275px;
    height: 206.25px;
  }
  .who > h3 {
    font-size: 22px;
    margin-left: 70px;
  }
}

@media (max-width: 340px) {
  header > div {
    margin: 0;
  }
}
@media (max-width: 327px) {
  .Service .card {
    margin-left: auto;
    margin-right: auto;
    width: 250px !important;
    height: 250px !important;
  }
  header > div {
    margin: 0;
  }
  header > div:nth-child(1) {
    padding-left: 10px;
  }



  header > div:nth-child(2) a {
    display: none;
  }
  header > div:nth-child(3) {
    display: block;
  }
  #ImgGallry {
    width: 225px;
  }
  .thumb {
    width: 225px;
    height: 178.75px;
  }
}

@media only screen and (min-device-width: 0px) and (max-device-width: 1024px) {
  .backimg,
  .frontimg {
    background-attachment: initial;
  }
}
}