body {
    padding: 0;
    margin: 0;
    background-color: black;
    color: white;
}

.navbar {
    margin: 0;
    height: 100px;
    width: 100%;
    display: flex;
    position: relative;
    align-content: center;
    z-index: 3;
    border-bottom: 2px solid white;
}
.navbar h1 {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    margin-left: 300%;
    align-content: center;
    font-size: xx-large;
    color: antiquewhite;
}
.story {
    position: relative;
    display: inline-block;
    width: 50%;
    height: auto;
    background-color: black;
    color: white;
    text-align: center;
    align-content: center;
    margin-left: 25%;
}
.story h2 {
    top: 0;
}
.gallery {
    position: relative;
    top: 20px;
    bottom: 0;
    right: 0;
    left: 0;
    border: 2px solid black; 
    margin-bottom: 20px;
    font-size: large;
}
.badge {
    align-content: center;
    padding-left: 2%;
}
.dropDown {
    align-content: center;
    padding-right: 2%;
}
.linkHead {
    text-align: center;
}
.storytags {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-bottom: 10rem;
    color: white;
    align-content: center;
    text-align: center;
    line-height: 2rem;
}
.storytags div {
    border: 2px solid gray;
    grid-gap: 1em;
}
.links {
    position: relative;
    margin-top: 0;
    margin-bottom: 3rem;
}
.ads {
    height: 10rem;
}
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  z-index: 10;
}

/* Modal Content/Box */
.modal-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: lightslategray;
    margin: auto; /* 15% from the top and centered */
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    position: relative;
    top: 2rem;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    align-content: center
}
.modal-content1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: lightslategray;
    margin: auto; /* 15% from the top and centered */
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    position: relative;
    top: 2rem;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    align-content: center
}
.modal-content img {
    width: 75%;
    margin-left: auto;
    position: relative;
    margin-bottom: 1rem
}
.modal-content1 img {
    width: 75%;
    margin-left: auto;
    position: relative;
    margin-bottom: 1rem
}

/* The Close Button */
.close {
    position: absolute;
  color: black;
  float: right;
  font-size: 40px;
  font-weight: bold;
    margin-left: 1rem
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
a {
    color: white;
    text-decoration: none;
}
a:hover {
    color: firebrick;
}
.linkContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.redditStories {
    border: 3px solid white;
    text-align: center
}
.HFY {
    border: 3px solid white;
    text-align: center;
}
.rTales {
    font-family: helvetica, verdana, arial, sans-serif;
    width: 100%;
    font-size: xxx-large;
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 750px)
  and (-webkit-min-device-pixel-ratio: 2)  {
      .navbar h1 {
        margin-left: 0;
      }
      .story {
          margin-left: 0;
          width: 100%;
      }
      .modal-content, .modal-content1 {
          left: 0;
          right:0;
          bottom: 2rem;
          display: inline-block;
          position: relative;
      }
      .close {
          margin: 0;
          z-index: 20;
          color: white;
      }
      .linkContainer {
          display: inline-block;
      }
      .rTales {
          font-size: large;
      }
}
