    body {
      margin: 0;
      font-family: sans-serif;
      background: white;
      color: black;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
	
	a:visited{
		color:#7200ff;
	}

    header {
      padding: 2rem 1rem 1rem;
    }
	
    footer {
      padding: 2rem 1rem 1rem;
    }

    header img {
      max-width: 500px;
      height: auto;
    }

    .categories {
      margin-top: 2rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      width: 90%;
      max-width: 1200px;
    }

.visit-counter {
  position: absolute;
  top: 6px;
  right: 6px;
  background: white;
  border: 2px solid black;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

    .category {
	  display: inline-block;
      position: relative;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      overflow: hidden;
    }
	
	.category-description{
		width:50%;
		font-size:large;
	}

    .category img {
      width: 100%;
      height: auto;
      display: block;
      transition: opacity 0.5s ease-in-out;
    }

    .category .color {
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
    }

    .category:hover .color {
      opacity: 1;
    }

.text-link {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  color: #007BFF;
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #444; /* dark gray border */
  text-decoration: underline;
  text-align: center;
}


.text-link:hover {
	color:black;
}


    .submission-section {
	  margin-top:2rem;
      background: #e6f0ff;
      padding: 3em 1em;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .submission-section form {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      width: 90%;
      max-width: 500px;
    }

    .submission-section textarea,
    .submission-section button {
      font-size: 1rem;
      padding: 0.75rem;
      border: 1px solid black;
      border-radius: 6px;
    }

    .submission-section button {
      background: white;
      color: black;
      font-weight: bold;
      cursor: pointer;
    }

    .history {
      margin-top: 2em;
      width: 90%;
      max-width: 700px;
      text-align: left;
    }

    .history-entry {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      background: white;
      border: 1px solid #ccc;
      border-radius: 12px;
      padding: 1em;
      margin-bottom: 1.5em;
    }

    .history-messages {
      flex: 1;
    }

    .date {
      font-size: 0.9em;
      color: #666;
      margin-bottom: 0.5em;
    }

    .bubble {
      background: #f0f0f0;
      border-radius: 12px;
      padding: 0.75em;
      margin-bottom: 0.5em;
    }

    .bubble.reply {
      background: #d9eaff;
      margin-left: 2em;
    }

    .thumbs {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-left: 1em;
	  margin-top:2em;
      user-select: none;
    }

    .thumbs .emoji {
      cursor: pointer;
      font-size: 2em;
      transition: transform 0.2s;
    }

    .thumbs .emoji:hover {
      transform: scale(1.3);
      color: #007BFF;
    }

    .thumbs .count {
      margin-top: 0.2em;
      font-size: 1em;
    }

.category-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
  width: 90%;
  max-width: 1200px;
  margin: 2em auto;
}

.image-link {
  position: relative;
  width: 100%;
  padding-top: 100%; /* forces square aspect ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.category-gallery a:hover img {
  transform: scale(1.05);
}


#thanks-message{
	display:none;
	margin-top: 15px;
	padding: 15px;
	border: 2px solid black;
	border-radius: 12px;
	background-color: #90EE90;
	color: black;
	max-width: 500px;
}

.image-container{
	width:50%;
}

.print-button{
	height:50px;
}

.image-img{
	width:100%;
}

.tags {
  margin-top: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.tag-link {
  background-color: #eee;
  color: #333;
  padding: 0.4em 0.8em;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.tag-link:hover {
  background-color: #333;
  color: #fff;
}

  .print-button {
    display: inline-block;
    padding: 0.6em 1.2em;
    font-size: 1rem;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 1em 0;
    transition: background-color 0.3s ease;
  }

  .print-button:hover {
    background-color: #444;
  }

 @media print {
    body * {
      visibility: hidden;
    }

    .image-container,
    .image-container * {
      visibility: visible;
    }

    .image-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
  }