:root {
  --body-textsize: 1rem;
  --caption-textsize: 1.1rem;
  --h1-textsize: 2rem;
}

/* this includes the paddings and border in the width/height defined */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  scrollbar-color: #087850 whitesmoke;
}

img {
  max-width: 100%;
}

body {
  background-image: url(../images/backgrounds/animalcrossingspringbackground.png);
}

p {
  font-size: var(--body-textsize);
  letter-spacing: .03rem;
  padding: 1rem 1rem -.5rem 1rem;
}

p a:hover {
  cursor: url(../images/favicons-pixels/googlyeyes.gif), auto;
}

h1 {
  font-size: var(--h1-textsize);
  font-weight: bold;
  letter-spacing: .05rem;
}

h2 {
  font-size: .9rem;
  letter-spacing: .1rem;
}

h3 {
  font-size: var(--caption-textsize);
  line-height: 2rem;
  font-weight: bold;
  font-style: italic;
  padding: 1rem;
}

h4 {
  font-size: var(--body-textsize);
  font-weight: bold;
}

.flex-wrap {
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0 7rem 0 7rem;
}

header, main, .content-grid {
  background-color: whitesmoke;
  padding: 1rem;
  margin: 1rem;
}

header {
  padding: 1rem;
}

main, header { 
  border-radius: 20px;
  box-shadow: 0px 0px 5px 2px rgb(220, 8, 8);
}

main p {
  margin: 1rem 1rem 0 1rem;
}


.content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 1rem;
  padding: 5px 5px 5px 5px;
}

.content-grid > * {
  padding: 5px 5px 5px 5px;
  text-align: center;
}

.favorites {
  display: grid;
  grid-column-start: 2;
  grid-column-end: 6;
}

.offsite {
  display: grid;
  grid-column-start: 1;
  grid-column-end: 2;
  margin: 1rem;
  align-self: center;
  justify-items: center;
  color: whitesmoke;
  border: 5px rgb(228, 5, 172) dashed;
  background-color: rgb(243, 107, 214);
  border-radius: 20px;
  box-shadow: 2px 2px 5px 1px rgb(128, 127, 127);
}

.offsite > h4 {
  line-height: 1.2rem;
}

.offsite img {
  scale: 90%;
}

.offsite img:hover {
  transform: scale(1.1);
}

.home {
  display: grid;
  grid-column-start: 6;
  grid-column-end: 7;
  margin: 1rem;
  color: whitesmoke;
  background-color: rgb(243, 107, 214);  
  border: 5px rgb(228, 5, 172) dashed;
  border-radius: 20px;
  box-shadow: 2px 2px 5px 1px rgb(128, 127, 127);
  align-self: center;
  justify-items: center;
  height: 40vh;
}

.home img {
  width: 88px;
  height: 31px;
}

.home > h4 {
  line-height: 1.2rem;
}

.links {
  min-width: 20vh;
  text-align: center;
  background-color: rgb(243, 107, 214);  
  border: 5px rgb(228, 5, 172) dashed;
  border-radius: 20px;
  color: whitesmoke;
  margin: 2rem;
  /* go thru and change this to var */
  box-shadow: 2px 2px 5px 1px rgb(128, 127, 127);
}

.links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  margin: .5rem;
}

.links a img:hover {
  transform: scale(1.1);
}

.credit {
  display: block;
  text-align: center;
  margin: 0 2rem 0 2rem;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  text-align: center;
  gap: .5rem;
  align-items: stretch;
  padding: 1rem;
}

.grid-gallery > * {
  margin: 10px 10px 10px 10px;
  padding: 1rem;
  line-height: 1.7em;
  background-color: whitesmoke;
}


.my-graphics {
  display: inline-block;
  border: ridge 8px rgb(83, 172, 99);
  background-color: rgb(159, 252, 166);
  box-shadow: 2px 2px 5px 1px rgb(128, 127, 127);
  border-radius: 20px;
}

.my-misc, .my-buttons, .my-blinkies, .my-stamps {
  display: inline-block;
  text-align: center;
  gap: .5rem;
}

.my-stamps a {
  display: inline-block;
  width: 109px;
  height: 66px;
}

.my-stamps img { 
  width: 109px;
  height: 66px;
}

.my-buttons a {
  display: inline-block;
  width: 99px;
  height: 41px;
}

.my-buttons img {
  width: 99px;
  height: 41px;
}

.my-blinkies a {
  display: inline-block;
  width: 225px;
  height: 30px;
}

.my-blinkies img {
  width: 225px;
  height: 30px;
}

.buttons {
  display: inline-block;
  border: ridge 8px rgb(83, 172, 99);
  background-color: rgb(159, 252, 166); 
  box-shadow: 2px 2px 5px 1px rgb(128, 127, 127);
  border-radius: 20px;
}

/* because anchor acts as an inline-block element, this makes anchor spread across img, and gets rid of the visible underscore _ */
.buttons a {
  display: inline-block;
  width: 99px;
  height: 41px;
}

.buttons img {
  width: 99px;
  height: 41px;
}

.blinkies {
  display: inline-block;
  border: ridge 8px rgb(83, 172, 99);
  background-color: rgb(159, 252, 166);
  box-shadow: 2px 2px 5px 1px rgb(128, 127, 127);
  border-radius: 20px;
}

.blinkies a {
  display: inline-block;
  width: 225px;
  height: 30px;
}

.blinkies img {
  width: 225px;
  height: 30px;
}

.stamps {
  display: inline-block;
  border: ridge 8px rgb(83, 172, 99);
  background-color: rgb(159, 252, 166);
  box-shadow: 2px 2px 5px 1px rgb(128, 127, 127);
  border-radius: 20px;
}

.stamps a {
  display: inline-block;
  width: 109px;
  height: 66px;
}

.stamps img {
  width: 109px;
  height: 66px;
}


a img:hover {
  cursor: url(../images/favicons-pixels/googlyeyes.gif), auto;
}



@media (max-width: 760px) {
  .flex-wrap {
    padding: 1rem;
  }

  .grid-gallery {
    padding: 1rem;
  }

  .content-grid {
  display: grid;
  grid-template-rows: repeat(6, auto);
  }

  .favorites {
  display: grid;
  grid-row-start: 2;
  grid-row-end: 6;
  }

  .offsite {
    display: grid;
    grid-row-start: 1;
    grid-row-end: 2;
  }
  
  .home {
    display: grid;
    grid-row-start: 6;
    grid-row-end: 7;
  }
}