:root {
  --bg-color: #0d0d0d;
  --text-color: #f5f5f5;
  --text-color0: #0097ff;
  --accent-color: #ff0000; 
  --nav-bg: #111;
  --footer-bg: #1a1a1a;
  --button-color: #00ff6a;
  --button-color-alt: #00a708;
  --notice-bg-color: #faff70;
}

body.light-mode {
  --bg-color: #f5f5f5;
  --text-color: #111;
  --nav-bg: #ddd;
  --footer-bg: #ccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: auto;
  padding: 20px;
  flex-grow: 1;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.notice a {
  text-decoration: none;
}

.notice {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  background-color: var(--notice-bg-color);
}

.notice h3 {
  color: #111;
}

.logo {
  height: 50px;
}

.socials {
  display: flex;
  gap: 5px;
  align-items: center;
}

.main-nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.main-nav a, .socials a, .links a, .creations a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

.main-nav a:hover, .links a:hover, .creations a:hover {
  color: var(--accent-color);
}

/* Hover zoom */
.link-img img:hover, .buy-now-img img:hover {
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 15px;
  background-color: var(--footer-bg);
  color: var(--text-color);
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

footer a {
  color: var(--text-color);
}

.toggle-theme {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s ease;
}

.toggle-theme:hover {
  transform: scale(1.1);
}

.link-img-space, .creation-img-space, .prod-img-space, .abtme {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: stretch;
  box-sizing: border-box;
}

.buy-now-img img {
  display: flex;
  justify-content: center;
}

.prod-img img {
  display: flex;
  justify-content: center;
  margin: auto;
  width: 200px;
  height: 200px;
}

.creation-img-space {
  margin-top: 20px
}

.image-caption {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.creation-img, .prod-img {
  padding: 0 30px
}

.link-img img {
  width: 100px;
  height: 100px;
}

.abtme img {
  width: 100px;
}

.link-img {
  max-inline-size: 100px;
}

.shop-placeholder {
  display: flex;
  justify-content: center;
  align-content: center;
}

.link, .creation, .abtme img {
  align-content: center
}

.about,
.links,
.credits,
.creations,
.shop,
.prods, 
.privacy,
.terms {
  margin-bottom: 15px;
}

.about h2,
.links h2,
.credits h2,
.creations h2,
.shop h2, 
.privacy h2, 
.terms h2,
.abtme h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-color0);
}

.about a, .shop a {
  color: var(--text-color);
}

.creations ul {
  margin: 40px;
}

.gallery {
  width: 1000px;
  display: flex;
  overflow-x: scroll;
}

.gallery div {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 20px;
  flex: none;
}

.gallery div img {
  width: 100%;
  filter: grayscale(100%);
  transition: transform 0.5s;
  opacity: 0.7;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10% auto;
}

#prevBtn, #nextBtn {
  width: 50px;
  height: 50px;
  cursor: pointer;
  margin: 10px;
}

.gallery div img:hover {
  filter: grayscale(0);
  cursor: pointer;
  transform: scale(1.1);
  opacity: 1;
}

.buy-button {
  background-color: transparent;
  border: 2px solid;
  color: var(--text-color);
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;

}

.buy-button:hover {
  background-color: var(--button-color-alt);
  color: var(--text-color);
}
