/* google fonts */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap");

/* reset default css */

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background-image: repeating-linear-gradient(
      90deg,
      hsla(196, 0%, 79%, 0.06) 0px,
      hsla(196, 0%, 79%, 0.06) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      0deg,
      hsla(196, 0%, 79%, 0.06) 0px,
      hsla(196, 0%, 79%, 0.06) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      0deg,
      hsla(196, 0%, 79%, 0.09) 0px,
      hsla(196, 0%, 79%, 0.09) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      90deg,
      hsla(196, 0%, 79%, 0.09) 0px,
      hsla(196, 0%, 79%, 0.09) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(90deg, rgb(255, 255, 255), rgb(255, 255, 255));
}

header {
  background-color: #f8f7f5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 15px 0;
}

header h1 {
  text-align: center;
  color: #21496d;
  font-weight: 700;
}

a {
  font-size: 15px;
  font-weight: 800;
  color: #21496d;
  letter-spacing: 2px;
}

.container {
  width: 1150px;
  margin: 0 auto;
}

/* team Search Box */

.team__search__container {
  width: 100%;
  max-width: 570px;
  margin: 120px auto 50px auto;
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.team__search__container::before {
  content: "";
  position: absolute;
  top: calc(50% - 12px);
  left: 15px;
  width: 24px;
  height: 24px;
  background: url(../icon/search.svg) no-repeat center center / contain;
}

#team__search__input {
  border: 2px solid transparent;
  background-color: #f8f7f5;
  padding: 18px 18px 18px 50px;
  width: calc(100% - 100px);
}

#team__search__input::placeholder {
  color: #989898;
}

#team__search__input:focus {
  outline: 0;
  border: 2px solid #21496d;
}

#team__search__button {
  background-color: #21496d;
  border: 0;
  color: #fff;
  padding: 15px 20px;
  width: 100px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

/* spinner */

#spinner img {
  width: 450px;
  height: 450px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* team cards */

#display__all__team {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  padding: 30px;
  text-align: center;
  background-color: rgba(33, 73, 109, 0.294);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.btn {
  background-color: #21496d;
  border: 0;
  color: #fff;
  padding: 15px 20px;
  width: 100px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}

/* team details */

#team__detail {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
  display: none;
  position: fixed;
  animation: 1s fadedAnimation ease-in-out;
}

@keyframes fadedAnimation {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.modal {
  height: 90vh;
  width: 90vw;
  margin: 5vh auto;
  overflow: auto;
  background-color: #f8f7f5;
  border-radius: 10px;
}

.modal__image {
  height: 320px;
  position: relative;
}

.modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#cross__icon {
  padding: 5px 12px;
  border: none;
  outline: none;
  background-color: rgba(0, 0, 0, 0.2);
  color: red;
  backdrop-filter: blur(10px);
  font-size: 40px;
  position: absolute;
  right: 4px;
  top: 4px;
  border-radius: 50%;
  cursor: pointer;
}

.modal__content {
  padding: 20px;
}

.modal__content h4:nth-child(1) {
  text-align: center;
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 10px;
}

.modal__content h4 {
  color: #21496d;
  font-size: 20px;
  font-weight: 800;
  margin: 20px 0;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.achievements img {
  width: 100%;
  border-radius: 7px;
}

.modal__content p {
  color: #000;
  text-align: justify;
}

.modal::-webkit-scrollbar {
  background: #f0f0f0;
  width: 10px;
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background-color: #21496d;
  border-radius: 10px;
}

.copyright {
  margin: 50px 0 0 0;
  float: right;
  padding-bottom: 20px;
}

/*

      =========================

            media query 

      =========================

*/

@media only screen and (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

@media only screen and (max-width: 778px) {
  #display__all__team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 550px) {
  #display__all__team {
    grid-template-columns: repeat(1, 1fr);
    gap: 30px 0px;
  }
}

@media only screen and (max-width: 600px) {
  .achievements {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px 0px;
  }
}
