/* Base Body Styling */
body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #226055 0%, #acb6e5 100%);
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  font-size: 4rem;
  color: rgb(199, 205, 223);
  letter-spacing: 5px;
  text-shadow: 2px 2px #333;
  text-align: center;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-area {
  width: 50%;
  text-align: center;
  background: #dee4f0;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.instructions-area {
  width: 40%;
  background-color: #dee4f0;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.instructions-area h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #acb6e5;
  padding-bottom: 10px;
}

.steps {
  list-style-type: decimal;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-left: 20px;
}

.steps li {
  margin-bottom: 15px;
  color: #555;
}

/* Game Board Styling */
#colors {
  width: 420px;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  justify-content: center;
  align-items: center;
}

.color-btn {
  width: 180px;
  height: 180px;
  border: 2.5px solid #1b1111;
  border-radius: 20px;
  box-shadow: 0px 5px 10px;
  margin: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.color-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#red {
  background-color: #ff5959;
}

#blue {
  background-color: #5979ff;
}

#purple {
  background-color: #9b27b0;
}

#green {
  background-color: #4caf50;
}

#colors .flash {
  background-color: white;
}

#colors .userflash {
  background-color: pink;
}

/* Creators Section */
.creators {
  margin-top: 0px;
  background-color: rgb(38, 39, 40, 0.5);
  color: #fff;
  padding: 0px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.creators h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #264d45;
}

.creators a {
  margin-right: 20px;
  margin-left: 20px;
  font-size: 1.5rem;
  color: #feefef;
  text-decoration: none;
  transition: color 0.3s;
}

.creators a:hover,
.creators .fa-github:hover {
  color: #569ce7;
}

.creators .fa-linkedin:hover {
  color: #0073b1;
}

/* Responsive Design - Move instructions below game on small screens */
@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .game-area,
  .instructions-area {
    width: 100%;
    margin-bottom: 30px;
  }

  #colors {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .color-btn {
    width: 120px;
    height: 120px;
    margin: 5px;
  }
}

@media (max-width: 480px) {
  #colors {
    width: auto;
  }
  .color-btn {
    width: 30%;
    height: 75px;
    margin: 5px;
    padding: 0px;
  }

  .game-area {
    width: 100%;
    padding: 10px;
  }

  .instructions-area {
    width: 100%;
    padding: 10px;
  }

  .container {
    padding: 0px;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
  }

  h1 {
    font-size: 3rem;
  }

  .creators a {
    margin-right: 0px;
  }
}
