* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px; 
}

.grid-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 90px);
  grid-template-rows: repeat(3, 90px);
  gap: 28px;
}

.square {
  width: 90px;
  height: 90px;
  cursor: pointer;
}

.square:nth-child(1) {
  background-color: #f44336; 
}
.square:nth-child(2) {
  background-color: #6b0703; 
}
.square:nth-child(3) {
  background-color: #000000; 
}
.square:nth-child(4) {
  background-color: #ffe478; 
}
.square:nth-child(5) {
  background-color: #b48322; 
}
.square:nth-child(6) {
  background-color: #190000; 
}
.square:nth-child(7) {
  background-color: #89ecff; 
}
.square:nth-child(8) {
  background-color: #2e6ea3; 
}
.square:nth-child(9) {
  background-color: #050000; 
}

.word-display {
  margin-top: 40px;
  min-height: 40px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.word-display a {
  color: #000000;
  text-decoration: none;
  border-bottom: 2px solid #000000;
  padding-bottom: 3px;
}

.word-display a:hover {
  opacity: 0.7;
}


.bottom-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background-color: #111111;
}


@media (max-width: 600px) {
  .color-grid {
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: repeat(3, 70px);
    gap: 20px;
  }

  .square {
    width: 70px;
    height: 70px;
  }

  .word-display {
    font-size: 20px;
  }
}
