:root {
  --main-text-color: #060317;
  --dark-color: #060317;
  --background-size: 900px;
  --header-color: 100, 20, 20;
}

.image-color {
  filter: hue-rotate(120deg);
}

/* gallery aspects */

.gallery-grid {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border: 3px solid #9fd6ff;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-item p {
  font-family: Mudah;
  font-size: 18px;
  margin-top: 8px;
  color: grey;
}

/* Main layout */

main {
  background: #b4afb5 url(../images/home/paperBackground.gif);
  color: var(--dark-color);
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.handclass:hover {
  cursor: url('../images/cursorSelect.png'), default !important;
}

header {
  background: linear-gradient(rgba(var(--header-color), 0.2), rgba(var(--header-color), 1));
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

header img {
  max-width: 100%;
  height: auto;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  color: var(--main-text-color);
  font-family: Christana;
}

@keyframes xscroll {
  from { background-position: 0; }
  to   { background-position: var(--background-size); }
}

body {
  cursor: url("../images/cursorIdle.png"), auto;
  color: white;
  background-image: url('../images/backgrounds/block_2.png');
  animation: xscroll 60s linear infinite;
  background-attachment: fixed;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Navigation */

.topnav {
  background: var(--dark-color) linear-gradient(#e0210b, #450e08);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 3px #ff9f9f solid;
  width: 100%;
  box-sizing: border-box;
}

.topnav a {
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  cursor: url("../images/cursorSelect.png"), pointer;
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #bc6565;
  color: white;
}

/* Hamburger icon — hidden on wide screens */
.topnav .icon {
  display: none;
}

/* Responsive navbar */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    display: block;
    float: right;
  }

  .topnav.responsive {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav.responsive a {
    display: block;
    width: 100%;
    text-align: left;
  }

  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
}

p {
  font-size: 20px;
  color: grey;
}

a {
  font-size: 30px;
}

/* Responsive videos */
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Small screen tweaks */
@media screen and (max-width: 600px) {
  p  { font-size: 16px; }
  a  { font-size: 20px; }
  h1 { font-size: 1.4rem; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }
}