:root {
	--pink: #f6a6b2;
	--blue: #64cdf2;
	--white: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* ✅ Prevent sideways scroll */
  background: #f6a6b2;
  font-family: sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6a6b2;
  padding: 1rem;
}


nav a {
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
  color: black;
}

.main {
  display: flex;
  justify-content: center;
	flex-wrap: wrap;
  padding: 2rem;
  --s: 200px;  /* size of hexagon */
  --m: 4px;    /* margin */
  --f: calc(1.732 * var(--s) + 4 * var(--m) - 1px); /* float helper */
}

.container {
  
	width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden; /* ✅ prevent sideways scroll */
}

.container div {
  width: var(--s);
  margin: var(--m);
  height: calc(var(--s) * 1.1547);
  display: inline-block;
  font-size: initial;
  clip-path: polygon(
    0% 25%, 0% 75%,
    50% 100%,
    100% 75%, 100% 25%,
    50% 0%
  );
  background-color: #eee;
  background-size: cover;
  background-position: center;
  margin-bottom: calc(var(--m) - var(--s) * 0.2885);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.container div:hover {
  transform: scale(1.05);
}

.container div:nth-child(odd) {
  background-color: #ddd;
}

.container::before {
  content: "";
  width: calc(var(--s)/2 + var(--m));
  float: left;
  height: 120%;
  shape-outside: repeating-linear-gradient(
    #0000 0 calc(var(--f) - 3px),
    #000 0 var(--f)
  );
}

form {
  max-width: 600px;
  margin: 3rem auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
}

form input[type="text"],
form input[type="file"],
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

form button {
  background-color: #64d1f7;
  color: white;
  border: none;
  padding: 0.75rem;
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

form button:hover {
  background-color: #4ebee2;
}

.site-header {
  background: #64cdf2;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.site-header nav a {
  margin-left: 20px;
  font-weight: bold;
  color: black;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.button-container {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically */
}

.button { 
  background-color: #000000; 
  border: none; 
  color: white; 
  padding: 20px 34px; 
  text-align: center; 
  text-decoration: none; 
  font-size: 20px; 
  cursor: pointer; 
  border-radius: 8px;
}
.hex {
  width: 120px;
  height: 138px;
  clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
  );
  background-color: #ddd; /* fallback if no image */
  overflow: hidden;
  position: relative;
}

.hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hex-link {
  text-decoration: none;
}

.hex-link .hex {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hex-link .hex:hover {
  transform: scale(1.05);
}

.artwork-page {
background: #f6a6b2;
}

/* Layout container */
.artwork-container {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Image section */
.artwork-left {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* About section */
.artwork-right {
  width: 100%;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border-left: 8px solid #46C6F0;
  box-sizing: border-box;
}

.artwork-right h2 {
  color: #46C6F0;
  font-size: 28px;
  margin-bottom: 10px;
}

.artwork-right h3 {
  margin: 10px 0 5px;
  font-size: 22px;
}

.artwork-right p {
  margin-bottom: 30px;
  font-size: 16px;
}

/* Back button */
.back-button {
  padding: 12px 24px;
  background-color: #46C6F0;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.back-button:hover {
  background-color: #2FBCE0;
}

.about-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 80%;
  max-height: 80%;
	align-items: center;
	  
}
.about-page {
  background: #f6a6b2;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.about-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.about-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.about-content h2 {
  font-size: 28px;
  color: #46C6F0;
  margin-top: 0;
}

.about-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.about-content .back-button {
  padding: 12px 24px;
  background-color: #46C6F0;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.about-content .back-button:hover {
  background-color: #2FBCE0;
}

body.upload main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
}

body.upload main {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html, body.upload {
  height: auto;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #f6a6b2;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-family: sans-serif;
}

body.index {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #a7d7f9, #fcd5f5);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

main.index-main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.site-footer {
  background-color: #fdfdfd;
  padding: 2rem 1rem;
  border-top: 2px solid #ccc;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo {
  max-width: 80px;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
	  padding-bottom: 300px; /* adjust as needed */

}

@media (max-width: 600px) {
  .container {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1rem;
  }

  .hex-link {
    flex: 0 0 calc(50% - 10px); /* 2 per row with small gap */
    margin: 5px;
    text-decoration: none;
  }

  .hex {
    clip-path: none !important;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
  }

  .hex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .container::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  float: none !important;
  height: 0 !important;
  shape-outside: none !important;
}
}