html {
  height: 100%;
  box-sizing: border-box;
  background-color: #80CBC4;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}


body {
  position: relative;
  margin: 0;
  padding-bottom: 6rem;
  min-height: 100%;
}

.centered {
  display: grid;
  font-family: 'Inconsolata', sans-serif;
  font-weight: 400;
  min-height: 100%;
  margin: 0 auto;
  padding-top: 10px;
  max-width: 900px;
  width: 90%;
}

/* CSS GRID STUFF */
.wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}

.wrapper>div {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  background-color: white;
  border: 2px solid black;
  padding: 5px;
  text-align: center;
  .date {
    position: absolute;
    display: inline-block;
    bottom: 0;
    right: 0;
    padding: 2px;
    background-color: inherit;
    color: inherit;
  }
}

.wrapper>a {
  position: relative;
  border: 2px solid black;
  background-color: white;
  padding: 5px;
  text-align: center;
  .date {
    position: absolute;
    display: inline-block;
    bottom: 0;
    right: 0;
    padding: 2px;
    background-color: inherit;
    color: inherit;
  }
}

.wrapper > a .title {
  text-align: center;
  display: block;
  width: 100%;
  margin: 0 auto;
}

.gridimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! NAV !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
.brand {
  position: absolute;
  padding-left: 20px;
  float: left;
  line-height: 72px;
}

.navdiv {
  height: 50px;
}


.nav {
  list-style: none;
  margin: 0;
  padding: 10px;
  text-align: right;
  font-size: large;
}

.nav ul {
  display: inline-block;
  list-style-type: none;
  list-style: none;
  text-align: center;
}

/* !!!!!!!!!!!!!!!!!!!!!! Links !!!!!!!!!!!!!!!!!!!!!!! */

.links ul {
  display: inline-block;
  list-style-type: none;
  list-style: none;
  text-align: left;
  /* color: rgb(1, 1, 165); */
}

.links {
  font-family: 'Inconsolata', sans-serif;
  padding-top: 20px;
}

/* !!!!!!!!!!!!!!!!!!!!!! END Links !!!!!!!!!!!!!!!!!!!!!!! */

.nav li {
  display: inline;
}

.nav a {
  display: inline-block;
  padding: 10px;
  color: rgb(70, 70, 70);
}

.ak {
  float: left;
  font-family: 'Kumar One', sans-serif;
  font-size: x-large;
  color: rgb(30, 30, 30);
}

.topnav a:hover {
  text-shadow: rgb(72, 255, 0) 2px 2px;
}

.active {
  color: white;
}

.topnav .icon {
  display: none;
}

/* !!!!!!!!!!!!!!!!!!!!!!!!! END NAV !!!!!!!!!!!!!!!!!!!! */


/*Other stuff*/

.row::after {
  content: "";
  clear: both;
  display: table;
}

/*Footer*/
.footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  text-align: center;
}


p {
  font-family: 'Inconsolata', sans-serif;
  font-size: 1.15em;
  padding-top: 20px;
  align-self: left;
}

footer {
  font-family: 'Inconsolata', sans-serif;
  font-size: 1em;
}

/*Links fun*/

a:link,:visited,:active {
  /* Applies to all unvisited links */
  text-decoration: none;
  color: inherit;
}


a:hover {
  /* Applies to links under the pointer */
  text-decoration: none;
  color: #fff;
}


/*For Tablets*/
@media only screen and (max-width: 900px) {

  .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
  }
}

/*For Cellphones*/
@media only screen and (max-width: 600px) {
  p {
    font-family: 'Inconsolata', sans-serif;
    font-size: 1em
  }

  footer {
    font-family: 'Inconsolata', sans-serif;
    font-size: .8em;
  }

  .centered {
    /* font-family: 'Kumar One', cursive; */
    font-weight: 400;
    max-height: 70%;
    width: 90%;
    display: block;
    text-align: center;
    max-width: 900px;
    min-width: 280px;
  }

  .wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
  }

  .links {
    font-size: .8em;
  }

}

@media only screen and (max-width: 450px) {

  .wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
  }
}



.wrapper > a > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.wrapper > a > div img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}