* {
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #7c9b4f;
  color: #2a160d;
  font-family: "Fuzzy Bubbles", cursive, Arial, sans-serif;
  font-size: 1.25rem;
  background-image: url(./images/iced-matcha-bg.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  justify-content: space-between;
  padding: 1rem;
  background-color: rgba(42, 22, 13, 0.5);
  align-items: center;
}

.header-left{
  display: grid;
  justify-content: left;
  align-items: center;
}

img.logo {
  max-width: 150px;
  border: #1c1c1c .37rem solid;
  border-radius: 50%;
  box-shadow: 2px 2px 5px #000000;
}

.header-center {
  display: grid;
  justify-content: center;
  align-items: center;
}

.header-right {
  display: grid;
  justify-content: right;
  align-items: right;
}

h1.title {
  font-size: 2.5rem;
  text-align: right;
  color: #7c9b4f;
  text-shadow: 2px 2px 4px #000000;
  margin-bottom: 0.5rem;
}

h3.subtitle {
  font-size: 1.5rem;
  text-align: right;
  color: #7c9b4f;
  text-shadow: 2px 2px 4px #000000;
}

button.nav-button {
  font-family: "Fuzzy Bubbles", cursive, Arial, sans-serif;
  background-color: #7c9b4f;
  color: #1c1c1c;
  border: solid #000000 3px;
  border-radius: 13px;
  padding: .5rem 1rem;
  margin: 0.3rem;
  box-shadow: 2px 2px 4px #000000;
}

button.nav-button:hover {
  background-color: #5e7a33;
  color: #ffefbf;
  cursor: pointer;
  transform: scale(1.10);
}




/* footer styles */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr .5fr 1fr;
  justify-content: space-between;
  background-color: rgba(42, 22, 13, 0.5);
  padding : 1rem;
  color: #7c9b4f;
  text-shadow: 2px 2px 4px #000000;
}

.footer-left {
  display: grid;
  justify-content: left;
  align-items: left;
}

.footer-center {
  display: grid;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-right {
  display: grid;
  justify-content: right;
  align-items: right;
  text-align: right;
}

button.social-button {
  font-family: "Fuzzy Bubbles", cursive, Arial, sans-serif;
  background-color: #7c9b4f;
  color: #1c1c1c;
  border: solid #000000 3px;
  border-radius: 13px;
  box-shadow: 2px 2px 4px #000000;
  margin: 0.3rem;
}

button.social-button:hover {
  background-color: #5e7a33;
  color: #ffefbf;
  cursor: pointer;
  transform: scale(1.10);
}

img.social-icon {
  max-width: 30px;
  max-height: 30px;
  padding: 0.2rem;
}

button.footer-button {
  font-family: "Fuzzy Bubbles", cursive, Arial, sans-serif;
  background-color: #7c9b4f;
  color: #1c1c1c;
  border: solid #000000 3px;
  border-radius: 13px;
  padding: .5rem 1rem;
  margin: 0.3rem;
  box-shadow: 2px 2px 4px #000000;
}

button.footer-button:hover {
  background-color: #5e7a33;
  color: #ffefbf;
  cursor: pointer;
  transform: scale(1.10);
}

/* link styles */
a {
  text-decoration: none;
  color: #f193a1;
}

a:hover {
  color: #ffefbf;
  text-decoration: underline;
}

a:visited {
  color: #d16f78;
}




/* Main Content Styles */
main.homepage, main.portfolio, main.poetry, main.commissions, main.termsofservice, main.pagename, main.four04 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  width: 75%;
  margin: 0 auto;
}

.homepage-container, .portfolio-container, .poetry-container, .commissions-container, .tos-container, .pagename-container, .four04-container {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 2px 2px 10px #000000;
  padding: 1rem;
  width: 100%
}

h1.main-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #2a160d;
  text-shadow: 2px 2px 4px #000000;
}

h2.main-subtitle {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2a160d;
  text-shadow: 2px 2px 4px #000000;
}

p.homepage-description {
  font-size: 1.5rem;
  color: #2a160d;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  padding: 0.5rem;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

button.writing-button, button.webdev-link {
  font-family: "Fuzzy Bubbles", cursive, Arial, sans-serif;
  background-color: #f193a1;
  color: #1c1c1c;
  border: solid #000000 3px;
  border-radius: 13px;
  padding: .5rem 1rem;
  margin: 0.3rem;
  box-shadow: 2px 2px 4px #000000;
}

button.writing-button:hover, button.webdev-link:hover {
  background-color: #d16f78;
  color: #ffefbf;
  cursor: pointer;
  transform: scale(1.10);
}

.chibi-commTable, .anime-commTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

td {
  border: 1px solid #000000;
  padding: 0.5rem;
  text-align: center;
}



/* Responsive Design */
/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-grid, .footer-grid, .writing-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-left, .header-center, .header-right,
  .footer-left, .footer-center, .footer-right {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  h1.title {
    font-size: 2rem;
    text-align: center;
  }

  h3.subtitle {
    font-size: 1.2rem;
    text-align: center;
  }

  main.homepage {
    width: 90%;
    padding: 1rem;
  }

  h1.homepage-title {
    font-size: 2rem;
  }

  p.homepage-description {
    font-size: 1.2rem;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  img.logo {
    max-width: 100px;
  }

  button.nav-button, button.social-button, button.footer-button {
    padding: .3rem .5rem;
    font-size: 0.9rem;
  }
}

/* Mobile Phones */
@media (max-width: 768px) {
  .header-grid, .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-left, .header-center, .header-right,
  .footer-left, .footer-center, .footer-right {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  h1.title {
    font-size: 2rem;
    text-align: center;
  }

  h3.subtitle {
    font-size: 1.2rem;
    text-align: center;
  }

  main.homepage {
    width: 90%;
    padding: 1rem;
  }

  h1.homepage-title {
    font-size: 2rem;
  }

  p.homepage-description {
    font-size: 1.2rem;
  }
}

