body{
  margin: 0px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.afegir{
  top:5vh;
  position: relative;
  height: 50px;
  width: 150px;
  font-weight: bold;
}
.afegir:hover{
  box-shadow: 0px 0px 2px 1px cyan;
}
#container{
  position: relative;
  top:20vh;
  min-height: 70px;
  width: 90vw;
  border-bottom: 3px double lightgrey;
  border-right: 3px double lightgrey;
  border-left: 3px double lightgrey;
  background-color: rgb(234, 250, 248);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap-reverse;
}
.ball-in{
  height: 60px;
  width:60px;
  border-radius: 50%;
  position: relative;
}


#c {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.menu-container {
  position: fixed;
  left: 0;
  padding: 10px;
  top: 50px;
}


.menu-container2 {
  position: fixed;
  right: 0;
  padding: 10px;
  top: 50px;
}


.menu-toggle {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  border-radius: 5px;
}


.menu-ampliar {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  border-radius: 5px;
}


.menu {
  display: none;
  position: absolute;
  background-color: #f0f0f0; /* Fondo claro */
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  width: max-content;
  max-width: 300px;
}


.menu-container:focus-within .menu {
  display: grid;
  grid-template-columns: repeat(5, 40px); /* 5 por fila */
  gap: 10px;
}


.menu button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}


.menu button:hover {
  transform: scale(1.2);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}


.menu-empty {
  padding: 10px;
  font-size: 14px;
  color: #555;
}


:root {
  --light-color: #fff;
  --dark-color: #000;
  --light-text-color: #000;
  --dark-text-color: #fff;
  --light-background: #fff;
  --dark-background: #1a1a1a;
 }
 
 body.light {
  background-color: var(--light-background);
  color: var(--light-text-color);
 }
 
 body.dark {
  background-color: var(--dark-background);
  color: var(--dark-text-color);
 }
 
 #clar-fosc {
  background-color: var(--light-text-color);
  color: var(--light-color);
  padding: 10px 20px;
  border: none;
  transition: background-color 0.3s ease;
 }

 .afegir {
  background-color: var(--light-text-color);
  color: var(--light-color);
  padding: 10px 20px;
  border: none;
  transition: background-color 0.3s ease;
 }
 
 body.dark button {
  background-color: var(--dark-color);
  color: var(--dark-text-color);
 }


 #colorMenu {
  display: none;
}

#colorMenu.visible {
  display: flex;          
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

#colorMenu button {
  display: block;
  border: none;
  background-color: #444;
  min-width: 35px;
  min-height: 35px;
}  

#eliminar {
  background-color: var(--dark-background);
  color: var(--light-color);
}