:root{
  --topcard-padding: 4.5rem;
}

html, body{
  margin: 0;
  padding: 0;
  background-color: #FFF1E8;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body::-webkit-scrollbar{ display: none; }

img{ max-width: 100%; height: auto; display: block; }

.bigview{
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#topCard{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: #FFF1E8;
  z-index: 1000;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body { padding-top: var(--topcard-padding); }

#logo{
  width: 48px; 
  height: auto;
  margin: 0;
}

.navbarLink{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #291814;
  text-decoration: none;
  padding: 8px 10px;
  margin: 4px 6px;
  border-radius: 6px;
  display: inline-block;
}

.navbarLink:hover{
  color: #291814;
  background-color: #FF77A8;
  transition: background 0.2s, color 0.2s;
}

.navbarLink.active{
  color: #FFF1E8;
  background-color: #291814;
}

#navigation{ display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

#bottomRight{
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  width: 120px;
  z-index: 2000;
}

.gameRow{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 100%;
  padding: 0 1rem;
}
.gameCover{ width: 90%; max-width: 300px; border-radius: 12px; }

main{ display:flex; flex-direction:column; align-items:center; gap:1rem; }

.gallery{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin: 24px 0; }
.gallery-img{ width: calc(50vw - 24px); max-width:200px; height: auto; object-fit: cover; border-radius:8px; cursor:pointer; transition: transform .2s; }
.gallery-img:hover{ transform: scale(1.03); }

.modal{ display:none; position:fixed; z-index:1000; left:0; top:0; width:100vw; height:100vh; overflow:auto; background-color:rgba(0, 0, 0, 0.85); align-items:center; justify-content:center; }
.modal-content{
  display:block;
  margin:auto;
  width: 80vw;
  max-width: 900px;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
  border-radius:8px;
  box-sizing: border-box;
}
.close{ position:absolute; top:18px; right:22px; color:#FFF1E8; font-size:32px; font-weight:700; cursor:pointer; z-index:1001; transition: color .2s; }
.close:hover{ color:#FF77A8; }

@media (min-width: 800px){
  :root{ --topcard-padding: 6.5rem; }
  #logo{ width: 12%; }
  .navbarLink{ font-size: 1.6rem; margin-right: 1.5rem; }
  #bottomRight{ width: 30%; }
  .gameRow{ flex-direction: row; gap: 3rem; max-width: 900px; }
  .gameCover{ width: 300px; }
  .gallery-img{ width: 200px; height:200px; }
  main{ margin-top: 0; }
}

@media (min-width: 1200px){
  .navbarLink{ font-size: 2.5em; }
}

@media (max-width: 799px) {
  #bottomRight{
    width: 90vw;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2vh;
    max-width: 90vw;
  }
}