body {
  font-family: Arial, sans-serif;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  min-height: 100vh;
  margin: 0;
  background: #f0f0f5;
}

.container {
  text-align: center;
}

form {
  margin-bottom: 20px;
}

label {
  display: block;
  margin: 10px 0 5px;
}

input {
  margin-bottom: 10px;
  background: none;
  border: 0.5px solid hsl(234, 62%, 60%);
}

input[type="text"] {
  padding: 1rem 1.5rem;
  color: hsl(235, 70%, 82%);
  font-size: 1.05rem;
  outline: none;
  border-radius: 0.4rem;
  border-width: 2px;
}

button[type="submit"] {
  padding: 1rem 2.5rem;
  width: max-content;
  height: max-content;
  background: hsl(234, 62%, 60%); /* #5a67d8 */
  color: #fff;
  border-radius: 0.25rem;
  font-size: 1.15rem;
  border: none;
  outline: none;
  cursor: pointer;
}

button:hover {
  background: #434aa8;
}

/* .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  justify-content: center;
}

.cube {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid #000;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
} */

/* Default voor mobiel */
/* .grid-container {
  display: grid;
  gap: 10px;
  justify-content: center;
  grid-template-columns: repeat(2, 1fr);
} */

/* Voor tablets */
/* @media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
} */

/* Voor desktop */
/* @media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(5, 1fr);
  }
} */

/* .cube {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid #000;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
} */

/* .grid-container {
  display: grid;
  gap: 10px;
  justify-content: center;
  grid-auto-rows: auto; /* Dynamische rijen voor kleuren 
}

.grid-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(var(--cube-size), 1fr));
}

.cube {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid #000;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
} */

/* Responsieve cube-groottes */
/* :root {
  --cube-size: 10%;
}

@media (max-width: 1024px) {
  :root {
    --cube-size: 20%;
  }
}

@media (max-width: 768px) {
  :root {
    --cube-size: 30%;
  } 
}
*/

/*=====================================================================*/
/* .grid-container {
  display: flex;
  flex-direction: column;
   Ruimte tussen rijen
  gap: 20px;
} */

/* .grid-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(
    auto-fit,
    minmax(100px, 1fr)
  ); Dynamische kolommen
} */

/* .cube { */
/* Basisbreedte */
/* width: 100px; */
/* Basishoogte */
/* height: 100px; 
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #000;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
} */

/* Responsieve cube-groottes */
/* @media (max-width: 1024px) {
  .cube {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 768px) {
  .cube {
    width: 50px;
    height: 50px;
  }
} */

/* =========================================================================== */

/* .grid-container {
  display: flex;
  flex-direction: column;
  gap: 20px; 
  Ruimte tussen rijen
} */

/* .grid-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(
    auto-fit,
    minmax(100px, 1fr)
  ); Dynamische kolommen
} */

/* .cube {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #000;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
} */

/* Responsieve cube-groottes */
/* @media (max-width: 1024px) {
  .cube {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 768px) {
  .cube {
    width: 50px;
    height: 50px;
  }
} */

/* ====================================================================== */

/* .grid-container {
  display: flex;
  flex-direction: column;
  gap: 20px; Ruimte tussen rijen
  padding: 10px;
}

.grid-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(
    auto-fit,
    minmax(100px, 1fr)
  ); Dynamische kolommen
  position: relative;
  padding: 20px;
  border-radius: 8px;
}

.delete-row-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 18px;
}

.delete-row-btn:hover {
  background: #ff2d2d;
}

.cube {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #000;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.color-info {
  font-size: 12px;
  color: white;
  text-align: center;
  margin-top: 5px;
}

Responsieve cube-groottes
@media (max-width: 1024px) {
  .cube {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 768px) {
  .cube {
    width: 50px;
    height: 50px;
  }
} */

/*========================================================================*/

/* body {
  font-family: Arial, sans-serif;
  background-color: #0a0f23;
  color: white;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

#cubeContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 15px;
  border-radius: 8px;
}

.delete-row-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #ff4d4f;
  border: none;
  color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.delete-row-btn:hover {
  background-color: #d9363e;
}

.card {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 150px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card .cube {
  flex-grow: 1;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card .color-values {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 12px;
  color: #f0f0f0;
  opacity: 0.9;
} */

/* ===================================================================== */

body {
  font-family: Arial, sans-serif;
  background-color: #0a0f23;
  color: white;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

.clr-panel {
  background-color: hsla(236, 93%, 23%, 0.423);

  margin: 2rem auto;
  width: 95%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
}

.clr-panel > * {
  background-color: #141414;
  padding: 1rem;
}

#cubeContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  padding: 15px;
  border-radius: 8px;
}

.delete-row-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #ff4d4f;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
  z-index: 1;
}

.delete-row-btn:hover {
  background-color: #d9363e;
  transform: scale(1.1);
}

.card {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 170px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card .cube {
  flex-grow: 1;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card .color-values {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #f0f0f0;
  opacity: 0.9;
}
