* {
    box-sizing: border-box;
}
html, body {
    height: 100%; /* Make the body fill the entire height of the viewport */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
}
header {
    background-color: #130217;
    color: white;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em; /* Space between logo and title */
    height: 80px; /* Adjust height as needed */
}
.logo {
    width: 40px; /* Adjust size as needed */
    height: auto;
}
h1 {
    margin: 0;
    font-size: 2em; /* Adjust size as needed */
}
.info {
    background-color: #f4f4f4; /* Light background for the info section */
    padding: 1em;
    font-size: 1.2em; /* Adjust size as needed */
    height: 80px; /* Adjust height as needed */
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 1em;
    padding: 0 1em;
    flex-grow: 1; /* Makes the container take up available space between header and footer */
    box-sizing: border-box;
}
.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    padding: 2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #ccc; /* Default background, overridden by specific classes */
    font-size: 1.2em; /* Adjust font size as needed */
}
.tile:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.advert {
    background-color: #ffffff; /* Light background for the advert section */
    padding: 1em;
    font-size: 1.2em; /* Adjust size as needed */
    height: 100px; /* Adjust height as needed */
}
footer {
    background-color: #130217;
    color: white;
    padding: 1em;
    text-align: center;
    height: 80px; /* Adjust height as needed */
    width: 100%; /* Ensures footer takes up full width */
    position: relative;
    bottom: 0;
}
.footer-button {
    background-color: #4cc9f0;
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.footer-button:hover {
    background-color: #7209b7;
}
.part1 { background: #ecd078; }
.part2 { background: #d95b43; }
.part3 { background: #c02942; }
.part4 { background: #542437; }
.part5 { background: #53777a; }
.part6 { background: #ff3d7f; }

/* Game Container */
.game-container {
    text-align: center;
    border: 2px solid #000;
}

canvas {
    background-color: #70c5ce;
    display: block;
    margin: auto;
    width: 320px;
    height: 480px;
}

/* Advertisement Section */
.advert {
    background: #f4f4f4;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    font-size: 14px;
    text-align: center;
}

header {
    margin-bottom: 20px;
    text-align: center;
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.wm-wrap{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.wm-page-head{
  padding: 26px 0 10px;
}

.wm-page-head-inner{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  text-align: center;
}

.wm-h1{
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.wm-subtitle{
  margin: 8px 0 0 0;
  opacity: 0.75;
}

.wm-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.wm-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.wm-btn-ghost{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}

.wm-btn-ghost:hover{
  background: rgba(255,255,255,0.10);
}

.wm-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 14px 0 22px;
}

.wm-card{
  grid-column: span 4;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.wm-card-link{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease;
}

.wm-card-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
}

.wm-card-top{
  padding: 16px 16px 10px;
}

.wm-card-title{
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.wm-card-desc{
  margin: 0;
  opacity: 0.75;
  line-height: 1.4;
}

.wm-card-bottom{
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.wm-linkhint{
  font-weight: 700;
  opacity: 0.85;
}

.wm-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(79,101,255,0.22);
  border: 1px solid rgba(79,101,255,0.35);
}

.wm-badge-soft{
  background: rgba(122,79,194,0.18);
  border: 1px solid rgba(122,79,194,0.32);
}

.wm-badge-muted{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  opacity: 0.85;
}

.wm-card-disabled{
  opacity: 0.55;
}

.wm-ad{
  margin: 6px 0 30px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 980px){
  .wm-card{ grid-column: span 6; }
}

@media (max-width: 640px){
  .wm-card{ grid-column: span 12; }
}
