/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: white;
    font-family: Arial, sans-serif;
    height: 100vh;
  }
  
  /* Container Grid Setup */
  .container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 120px;
    gap: 10px;
    background-color: black;
    padding: 10px;
    height: 100vh;
  }
  
  /* Base item styling */
  .item {
    background-color: white;
    border: 5px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
  }
  
  /* Pseudo-selectors to mimic Mondrian art */
  .item:nth-child(1) {
    background-color: red;
    grid-column: span 3;
    grid-row: span 2;
  }
  
  .item:nth-child(2) {
    background-color: blue;
    grid-row: span 3;
  }

  
  .item:nth-child(5),
  .item:nth-child(8),
  .item:nth-child(12) {
    background-color: white;
  }
  
  .item:nth-child(6):hover {
    background-color: red;
    cursor: pointer;
    grid-row: span 2;
  }

  .item:nth-child(9) {
    background-color: green;
    cursor: pointer;
    grid-column: span 2;
  }
  
  .item:nth-child(10):hover::after {
    content: " 🎨";
    color: black;
    font-size: 18px;
    margin-left: 8px;
  }
  
  .item:nth-child(14)::before {
    content: "★ ";
    color: gold;
    font-size: 20px;
  }
  
  .item:nth-child(16) {
    background-color: blue;
    grid-column: span 2;
  }
  
  .item:nth-child(17) {
    background-color: yellow;
    grid-row: span 2;
  }

.item:nth-child(18) {
        background-color: red;
        grid-column: span 3;
}

.item:nth-child(20) {
        background-color: green;
        grid-column: span 4;
}

.item:nth-child(8) {
        background-color: red;
        grid-row: span 1;
}


.item:nth-child(11) {
    background-color: green;
    grid-row: span 1;
}

.item:nth-child(7) {
  background-color:black;
  grid-column: span 1;
}

.item:nth-child(3) {
  background-color: yellow;
  border-radius: 30px;    
  font-size: medium;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  margin: 0 10px;
}

.item:nth-child(10) {
  background-color: orange;
  border-radius: 20%;
}
  
  /* Responsive scaling */
  @media (max-width: 768px) {
    .container {
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: 100px;
    }
  
    .item {
      font-size: 20px;
      text-align: center;
    }
  }
  
  a {
    text-decoration: none;
  }
  
  ul {
    list-style-type: none;
    padding-left: 0; /* removes the default left padding */
    margin: 0;        /* optional: remove default margin */
  }
  