:root {
  --accent: #f46569;
  --heading: #40667c;
  --footer-bg: #213d4d;
  --button-bg: #bee5fb;
  --text: #414141;
  --white: #ffffff;
  --line-pink: #ffe6e6;
  --site-width: 980px;
  --bg-overlay-color: rgba(65, 65, 65, 1);
  --bg-overlay-color-light: rgba(255, 230, 230, 1);
  --font-heavy: "Avenir Next", Avenir, Montserrat, "Segoe UI", sans-serif;
  --font-light: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-korean: "Nanum Gothic", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}

body {
  margin: 0;
  color: var(--text);
  font: 15px/1.4 var(--font-light);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-overlay-color);
  
}

.site-header__inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font: 25px/1.4 var(--font-heavy);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font: 17px/1.4 var(--font-light);
}

.nav a {
  color: var(--accent);
  transition: color 0.3s;
}

.nav a:hover,
.nav a:focus {
  color: var(--heading);
}

main {
  padding-top: 106px;
}

.container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 100px 0;
}

.hero {
  padding: 120px 0 80px;
  background-color: var(--bg-overlay-color)
}

.hero__visual {
  min-height: 420px;
  /*background: linear-gradient(135deg, #bee5fb 0%, #7fccf7 45%, #40667c 100%);*/
  border-radius: 2px;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  justify-content: flex-end;
}

.story {
  background-color: var(--bg-overlay-color-light);
}

.title-stack {
  margin: 0 0 24px;
  line-height: 1.1;
}

.title-stack__line {
  display: block;
  font: 50px/1.1 var(--font-heavy);
  color: var(--heading);
}

.title-stack__line--light {
  color: var(--white);
}

.section-heading {
  margin: 0 0 16px;
  font: 50px/1.1 var(--font-heavy);
  color: var(--heading);
}

.section-heading--news {
  font-size: 25px;
}

.rule {
  width: 56px;
  height: 3px;
  border: 0;
  margin: 0 0 32px;
  background: var(--line-pink);
}

.rule--light {
  background: rgba(255, 255, 255, 0.6);
}

.prose {
  max-width: 616px;
  margin-left: 80px;
  font: 15px/1.9 var(--font-korean);
  color: var(--heading);
  text-align: justify;
}

.prose p {
  margin: 0 0 1.25em;
}

.prose strong,
.prose .lead {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--font-korean);
}

.news-card {
  max-width: 616px;
  margin-left: 80px;
}

.news-card__title {
  margin: 0;
  font: 15px/1.6 var(--font-korean);
  color: var(--heading);
}

.btn {
  display: inline-block;
  padding: 4px 16px;
  border: 2px solid var(--accent);
  background: var(--button-bg);
  color: var(--accent);
  font: 15px/1.4 var(--font-heavy);
  text-align: center;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.btn:hover,
.btn:focus {
  color: var(--heading);
  border-color: var(--heading);
  background: rgba(190, 229, 251, 0.5);
}

.btn--outline-blue {
  background: transparent;
  border-color: var(--heading);
  color: var(--heading);
}

.btn--outline-blue:hover,
.btn--outline-blue:focus {
  color: var(--accent);
  border-color: var(--accent);
}

.actions {
  margin-top: 32px;
}

.section--game {
  background: var(--footer-bg);
  color: var(--white);
}

.section--game .section-heading,
.section--game .title-stack__line {
  color: var(--white);
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  background-color: var(--accent);
}

.gallery-note {
  margin: 0;
  padding: 48px 0;
  text-align: center;
  font: 15px/1.6 var(--font-light);
  color: #999;
  border: 1px dashed #ddd;
  background: #fafafa;
}

.contact-grid {
  display: grid;
  gap: 24px;
  max-width: 648px;
  margin-left: 80px;
}

.contact-item__label {
  margin: 0 0 4px;
  font: 15px/1.4 var(--font-heavy);
  color: var(--heading);
}

.contact-item__value {
  margin: 0;
  font: 15px/1.6 var(--font-light);
  color: var(--heading);
}

.contact-item__value a:hover {
  color: var(--accent);
}

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 21px 0;
  font: 12px/1.4 var(--font-light);
  text-align: center;
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: auto;
  }

  main {
    padding-top: 140px;
  }

  .prose,
  .news-card,
  .contact-grid {
    margin-left: 0;
  }

  .title-stack__line,
  .section-heading {
    font-size: 36px;
  }

  .hero__actions {
    justify-content: flex-start;
  }
}

body {
  background-image: url('/assets/background.jpg'); /* Replace with your image path */
  background-attachment: fixed; /* Keeps the image completely static */
  background-position: center;  /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from tiling */
  background-size: cover;       /* Forces image to scale nicely to fit screen */
}

.gallery-container{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  height: auto;
  padding: 10px;
}

.gallery-items{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  height: auto;
}

.gallery-item{
  flex: 1;
  width: 100%;
  height: auto;
  object-fit: contain;

}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
}