@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,900;1,300;1,700&family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,300;0,400;0,500;0,700;0,800;1,200;1,400;1,500&family=Roboto:ital,wght@0,900;1,100;1,300&display=swap");
:root {
  --primary-color: #093475;
  --bg-color: white;
  --secondary-color: #d0d0d0;
  --font-color: black;
  scroll-behavior: smooth;
  --accent-primary-color: #284064;
}
/* 
@media (prefers-color-scheme: dark) {
  :root{
  --bg-color: #1c1c1c;
  --primary-color: rgb(14, 67, 146);
  --secondary-color: rgb(68, 68, 68); 
  --accent-primary-color: rgb(111,159,230);
  --font-color: rgb(220,219,219); 
  }
} */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  font-size: 100%;
  color: var(--font-color);
  font-family: Nunito, Sans-Serif;
  font-weight: 400;
  background-color: var(--bg-color);
  line-height: 1.5em;
}
.dark {
  --bg-color: #1c1c1c;
  --primary-color: rgb(14, 67, 146);
  --secondary-color: rgb(68, 68, 68);
  --accent-primary-color: rgb(111, 159, 230);
  --font-color: rgb(220, 219, 219);
}

.img-dark {
  filter: invert(1) hue-rotate(190deg);
}

h1:not(.header-text) {
  font-style: italic;
  font-size: 1.8rem;
  margin: 0.6em 0 0 0;
  font-weight: 500;
  line-height: 2.5rem;
}
a {
  text-decoration: none;
  cursor: pointer;
}
hr {
  background-color: var(--primary-color);
  border: none;
  height: 2px;
  margin: 0.5em 0 0.8em 0;
}
#sticky {
  position: fixed;
  font-size: 2rem;
  bottom: 3vh;
  right: 9vw;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  transform: rotate(-10deg);
  background: var(--secondary-color);
  animation: darkmode 0.5s ease 4 forwards;
}
.fa-sun {
  transition: all 1s linear;
  color: yellow;
}
.fa-moon {
  color: var(--primary-color);
}
@keyframes darkmode {
  40% {
    transform: rotate(20deg) scalex(1.2);
  }
  75% {
    transform: rotate(-20deg);
  }
  100% {
    transform: rotate(-10deg) scalex(1);
  }
}
.fa-heart {
  color: #f11515;
  font-size: 1.3rem;
  animation: scaling 0.6s linear infinite;
}
@keyframes scaling {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}
.error {
  color: red;
  text-align: center;
}

/*nav-bar*/
nav {
  height: 60px;
  width: 100vw;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  padding: 0 1rem;
  z-index: 10;
}
nav .menu {
  color: var(--accent-primary-color);
  font-size: 1.8rem;
  cursor: pointer;
}
.nav-menu .nav-item,
.nav-menu p {
  list-style: none;
  padding: 1.5rem 1rem;
  display: block;
  color: white;
  font-size: 1.4rem;
  transition: all 0.5s ease;
}
.nav-menu p {
  font-size: 1rem;
  border-top: 1px solid white;
  width: 100%;
  margin: 40vh 0 0 0;
}
.socials {
  font-size: 1.7rem;
  display: flex;
  justify-content: space-around;
  margin: 0.6rem 0 0 0;
}
.lab {
  color: white;
}
a .icons {
  font-size: 1.7rem;
}
.lab:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}
ul .nav-item:hover {
  color: var(--accent-primary-color);
  background: var(--secondary-color);
}
.nav-icon {
  margin-right: 1rem;
}
nav img {
  height: 40px;
  width: 100px;
}
.nav-menu {
  background: var(--primary-color);
  transition: 0.6s;
  width: 77vw;
}
.overlay {
  width: 100vw;
  background: rgba(0, 0, 0, 0.6);
}
.nav-menu,
.overlay {
  left: -100vw;
  position: absolute;
  top: 60px;
  min-height: 100vh;
  max-height: 100vh;
}
/*header*/
header {
  background-image: url("../images/ISS-Space-Background-Dark-web.jpg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  max-height: 75vh;
  min-height: 530px;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vw;
  position: relative;
  z-index: 1;
}
header::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: rgba(19, 19, 19, 0.493);
}
.active {
  left: 0vw;
}
.header-text {
  margin-bottom: 1rem;
  color: white;
  line-height: 1.3em;
  font-size: 2.3rem;
  max-width: 700px;
  font-family: "Roboto", Sans-Serif;
}
.nav-item {
  color: var(--primary-color);
}
span {
  color: #093475;
}
.form {
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  width: 100%;
  background: var(--bg-color);
  max-width: 700px;
  height: 57px;
}
.search-box {
  padding: 0 20px;
  width: 80%;
  color: var(--font-color);
  border: none;
  border-radius: 10px 0 0 10px;
  background: none;
  outline: none;
}
::placeholder {
  color: grey;
}
.search-box,
.search-icon,
::placeholder {
  font-weight: 500;
  font-size: 1.1rem;
}
.search-icon {
  color: white;
  width: 20%;
  border: none;
  transition: 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 10px 10px 0;
  background: var(--primary-color);
}

header #tip {
  color: white;
  font-size: 0.8rem;
  padding: 1rem 0;
}

/*article content*/
article {
  padding: 1em;
  max-width: 800px;
  margin: 0 auto;
}
section {
  margin: 0.5rem 0;
}
section p {
  margin: 2rem 0;
}
ol {
  padding: 1.2rem;
}
em {
  color: var(--accent-primary-color);
}
p,
ol,
em {
  font-size: 1.1rem;
}
.demo {
  width: 80vw;
  min-height: 40vh;
  max-width: 500px;
  max-height: 700px;
  margin: 2rem auto;
  display: flex;
}
.footer-1 {
  display: flex;
  align-items: center;
  padding: 1em;
  background: var(--primary-color);
  flex-direction: column;
}
.footer-1 * {
  margin: 0.6rem;
  color: white;
  font-size: 0.9rem;
}
.socials {
  display: flex;
  padding: 0 1rem;
}
.card {
  display: flex;
  align-items: center;
  align-content: center;
  width: 85vw;
  max-width: 500px;
  margin: 2rem auto;
  background: var(--secondary-color);
  flex-direction: column;
  border-radius: 6px;
  padding: 2rem 0;
}
.card h1 {
  margin: 1rem;
  text-align: center;
  color: var(--accent-primary-color);
}
.card p {
  text-align: center;
  padding: 0 0.7rem;
}
.contact-pic {
  width: 8rem;
  height: 9rem;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}
.review .icons {
  color: var(--accent-primary-color);
}
.footer-1 img {
  width: 170px;
  height: 60px;
}
.overlay1 {
  display: none;
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  z-index: 1;
  height: 100vh;
  width: 100vw;
}
.alert-box {
  display: none;
  height: 40vh;
  width: 78vw;
  min-height: 300px;
  max-width: 400px;
  max-height: 400px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--bg-color);
  z-index: 1;
  border-radius: 10px;
  animation: top 0.5s ease-out;
}
@keyframes top {
  0% {
    transform: scale(0.4);
    left: -20%;
    top: -50%;
  }
  20% {
    transform: scale(0.7);
    left: -10%;
    top: -20%;
  }
  109% {
    transform: scale(1);
    left: inherit;
    top: inherit;
  }
}
#alert-logo {
  width: 100%;
  height: 30%;
  border-radius: 10px 10px 0 0;
}
#network {
  font-size: 1rem;
}
.alert-box h4 {
  font-size: 0.7rem;
}
.close {
  width: 90%;
  padding: 10px;
  text-decoration: none;
  color: var(--bg-color);
  background-color: var(--accent-primary-color);
  border-radius: inherit;
  text-align: center;
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
  transition: 0.5s;
}
.close:hover,
.search-icon:hover {
  background: var(--secondary-color);
  color: var(--accent-primary-color);
}
.glo {
  color: #0abf53;
}
.airtel {
  color: #ff0000;
}
.mtn {
  color: #f1d012;
}
.etisalat {
  color: #7fbb00;
}
@media screen and (min-width: 360px) {
  #network {
    font-size: 1.4rem;
  }
  .alert-box h4 {
    font-size: 0.9rem;
  }
}
@media screen and (min-width: 760px) {
  p,
  ol,
  em {
    font-size: 1.3rem;
    font-weight: 300;
  }
  header {
    align-items: center;
  }
  .header-text {
    font-size: 3rem;
  }
  .form {
    height: 65px;
  }
  .search-box,
  .search-icon,
  ::placeholder {
    font-size: 1.2rem;
  }
  .nav-item,
  .follow {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-self: center;
    width: max-content;
    min-height: 60px;
    max-height: 70px;
    position: relative;
    background: none;
    padding: 0;
    top: 0;
    left: 0;
  }
  .nav-menu .nav-item {
    color: var(--primary-color);
    padding: 1.5rem 1rem 0.7rem 1rem;
    margin: 0 1rem;
  }
  ul .nav-item:hover {
    background: var(--primary-color);
    color: var(--bg-color);
  }
  .nav-icons,
  .nav-menu p,
  .overlay {
    display: none;
  }
  #network {
    font-size: 1.5rem;
  }
}
