* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: rgb(19, 19, 19);
  color: #fff;
  height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  /* line-height: 1.6; */
}

a,
a:visited {
  text-decoration: none;
  /* color: #fff; */
}
/* XXXXXXXXXXXXXXXXXXXXXXXX Skip LInk XXXXXXXXXXXXXXXXXXXXXXXXX */
.skip-link {
  position: absolute;
  top: -60px;
  left: 0;
  background: #000000;
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
/* XXXXXXXXXXXXXXXXXXXXXXXX Skip LInk XXXXXXXXXXXXXXXXXXXXXXXXX */

h1,
h2,
p {
  color: #fff;
  padding: 0.2rem;
  margin: 0.2rem;
}

.outer-post,
.outer-post:visited {
  text-decoration: none;
  color: #fff;
  background-color: #282f44;
  max-width: 20rem;
  border-radius: 10px;
  padding: 0 0 0.2rem 0;
  /* margin: 0.5rem; */
  margin: 1.5em 0;
  /* changing basis */
  flex-basis: 100%;
}
.articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 1rem;
}
.post {
  max-width: 20rem;
  /* flex-shrink: 0; */
  height: 13rem;
  margin: 0.5rem;
  padding: 0.2rem;
  background: #282f44;
  color: #394867;
  border-radius: 10px;
  text-align: center;
  transition: all 500ms;
  background-size: cover;
  background-position: center;
}
hr {
  border: solid 1px #000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* nav color stuff */
:root {
  --navbar-bg-color: hsl(202, 40%, 96%);
  --navbar-text-color: hsl(223, 30%, 5%);
  --navbar-text-color-focus: hsl(223, 30%, 5%);
  --navbar-bg-contrast: #282f44;
}

/* nav color stuff */

/* Nav Bar starting */
.container {
  /* max-width: 1000px; */
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  margin-left: auto;
  margin-right: auto;
}
#navbar {
  --navbar-height: 64px;
  position: sticky;
  height: var(--navbar-height);
  background-color: var(--navbar-bg-color);
  left: 0;
  right: 0;
  top: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  height: 100%;
  align-items: center;
}
.navbar-item {
  margin: 0.4em;
  width: 100%;
}

.home-link,
.navbar-link {
  color: var(--navbar-text-color);
  transition: color 0.2s ease-in-out;
  text-decoration: none;
  display: flex;
  font-weight: 400;
  align-items: center;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.home-link:focus,
.home-link:hover {
  color: var(--navbar-text-color-focus);
}

.navbar-link {
  justify-content: center;
  width: 100%;
  padding: 0.4em 0.8em;
  border-radius: 5px;
}

.navbar-link:focus,
.navbar-link:hover {
  color: var(--navbar-text-color-focus);
  background-color: var(--navbar-bg-contrast);
}
.navbar-toggle {
  cursor: pointer;
  border: none;
  background-color: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.icon-bar {
  display: block;
  width: 25px;
  height: 4px;
  margin: 2px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out,
    opacity 0.2s ease-in-out;
  background-color: var(--navbar-text-color);
}

.navbar-toggle:focus .icon-bar,
.navbar-toggle:hover .icon-bar {
  /* button color disable */
  background-color: var(--navbar-text-color-focus);
}
#navbar.opened .navbar-toggle .icon-bar:first-child,
#navbar.opened .navbar-toggle .icon-bar:last-child {
  position: absolute;
  margin: 0;
  width: 30px;
}

#navbar.opened .navbar-toggle .icon-bar:first-child {
  transform: rotate(45deg);
}

#navbar.opened .navbar-toggle .icon-bar:nth-child(2) {
  opacity: 0;
}

#navbar.opened .navbar-toggle .icon-bar:last-child {
  transform: rotate(-45deg);
}
.navbar-menu {
  position: fixed;
  top: var(--navbar-height);
  bottom: 0;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  opacity: 0;
  visibility: hidden;
  left: 0;
  right: 0;
}
#navbar.opened .navbar-menu {
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
  visibility: visible;
}

/* modle like style */
.navbar-links {
  list-style-type: none;
  max-height: 0;
  overflow: hidden;
  position: absolute;
  background-color: var(--navbar-bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  left: 0;
  right: 0;
  margin: 1.4rem;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#navbar.opened .navbar-links {
  padding: 1em;
  max-height: none;
}
/* desktop style */
@media screen and (min-width: 700px) {
  .navbar-toggle {
    display: none;
  }

  #navbar .navbar-menu,
  #navbar.opened .navbar-menu {
    visibility: visible;
    opacity: 1;
    position: static;
    display: block;
    height: 100%;
  }

  #navbar .navbar-links,
  #navbar.opened .navbar-links {
    margin: 0;
    padding: 0;
    box-shadow: none;
    position: static;
    flex-direction: row;
    list-style-type: none;
    max-height: max-content;
    width: 100%;
    height: 100%;
  }

  #navbar .navbar-link:last-child {
    margin-right: 0;
  }
}
/* Nav Bar ending */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(40, 47, 69); /* Fallback color */
  background-color: rgba(40, 47, 68, 0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: rgb(19, 19, 19);
  margin: 0 auto; /* 15% from the top and centered */
  padding: 0.3em;
  /* border: 1px solid #888; */
  border: none;
  width: 97%; /* Could be more or less, depending on screen size */
  height: 97%;
}

/* The Close Button */
.close {
  color: red;
  float: right;
  font-size: 35px;
  font-weight: bold;
  position: absolute;
  top: 0;
  right: 0;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

#iframe {
  border: none;
  width: 100%;
  height: 100%;
  /* overflow: hidden; */
  /* margin: 0.1em 0.1em; */
}

.pagination {
  text-align: center;
  /* margin: 1em 0 5em 0; */
  margin-top: 1em;
  margin-bottom: 2em;
}
.pagination-btn {
  padding: 0.4em;
  border-radius: 5px;
  background-color: #282f44;
  color: white;
  /* margin: 0.4em; */
}
/* .pagination-btn > a,
a:visited {
  margin: 1em auto;
  text-decoration: none;
} */

#share_btn {
  background: white;
  border-radius: 0.5rem;
  max-width: 21.3rem;
  height: 2.3rem;
  padding: 0.2rem;
  margin: 0.2rem auto;
  position: fixed;
  bottom: 2em;
  right: 0;
  left: 0;
  text-align: center;
}
#share_btn > .facebook,
.twitter,
.pin,
.linkedin,
.reddit,
.whatsapp,
.site_link {
  margin: 0 0.4rem;
}
.share-off {
  display: none;
}

/* Footer stuff */
footer > hr {
  border: 0;
  height: 3px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgb(241, 246, 249),
    rgba(0, 0, 0, 0)
  );
}
footer {
  /* position: fixed;
  bottom: 0;
  right: 0;
  left: 0; */
  text-align: center;
  margin: 0;
  padding: 0;
}
footer > p {
  color: #f1f6f9;
  margin: 0;
  padding: 0;
}
