body, 
.header, 
.header *, 
.container, 
.container *, 
.line-container, 
.line-container *, 
.button-group, 
.button-group *, 
.total, 
h2 {
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fafafa;
}

.user-heading-container {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

#user-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: #000;
  border: 1px solid #eee;
  text-align: center;
  border-bottom: 1px solid #ccc;
  resize: none; 
  overflow: hidden;
  width: 300px; 
  height: 100px; 
  line-height: 2rem; 
}

.feedback {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #333;
  margin-top: 10px;
  text-align: center;
  min-height: 25px;
}

.check-button {
  font-family: 'Poppins', sans-serif;
  display: block;
  margin: 15px auto;
  padding: 10px 15px;
  font-size: 1.1rem;
  background-color: #ADCBFD;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; 
}

.check-button:hover {
  background-color: #84A9E8;
}


#user-heading:focus {
  outline: none;
  color: #333; 
}

.total {
  font-size: 5.8rem;
  text-align: center;
  margin-top: 30px;
}

.visibility-toggle {
  display: flex;
  justify-content: right;
  margin-right: 30px;
  
}

.visibility-toggle .material-icons {
  cursor: pointer;
  font-size: 24px; 
  color: #aaa;
}

h2 {
  font-size: 20px;
  font-weight: 400;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  flex-wrap: wrap;
  margin-top: 5px;
}

.line-container {
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 20px;
}

.line {
  position: relative;
  width: 120px; 
  height: 120px; 
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: #fff;
  display: flex; 
  flex-direction: row; 
  align-items: flex-end; 
}

.brick-group {
  display: flex;
  flex-direction: column-reverse; 
  flex: 1; 
  justify-content: flex-end; 
}

.brick {
  width: 20px;
  height: 20px;
  margin: 2px; 
  border-radius: 50%;
}

.ones .brick {
  background-color: #7ED957;
}

.tens .brick {
  background-color: #ff69b4;
}

.hundreds .brick {
  background-color: #857FFA;
}

.borrowed {
  background-color: #FADD6C !important; 
}

.button-group {
  display: flex;
  flex-direction: column; 
  justify-content: center;
  margin-bottom: 10px; 
}

.add-button,
.remove-button {
  width: 40px;
  height: 40px;
  font-size: 25px;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  margin: 12px;
  transition: background-color 0.3s ease, color 0.3s ease; 
}

.borrow-button {
  width: 115px;
  height: 40px;
  font-size: 18px;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  margin: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.add-button:hover,
.remove-button:hover,
.borrow-button:hover {
  background-color: #EDF4FF;
}

.reset-container {
  display: flex;
  justify-content: center;
  margin-top: 35px;
  margin-bottom: 80px;
}

.reset-button {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; 
  height: 50px; 
  font-size: 24px;
  color: #000;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; 
}

.reset-button .material-icons {
  font-size: 2.2rem; 
}

.reset-button:hover {
  color: #FF5757;
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  
  .line {
    height: 150px; 
    background-color: transparent; 
    border: none; 
  }

  .brick {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    bottom: 0; 
  }

  .line-container {
    margin-top: 15x; 
  }
}
