
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 */
}

/* Safari-specific CSS adjustments */
@supports (-webkit-touch-callout: none) {
  .line {
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
  }

  .brick {
    position: static; 
    margin-bottom: 2px; 
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
}

.user-heading-container {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

#user-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: black;
  border: none;
  text-align: center;
  border-radius: 7px;
}

#user-heading:focus {
  outline: none;
}

.total {
  font-size: 5.8rem;
  text-align: center;
  margin-top: 85px;
  margin-bottom: 10px;
}

.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: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.line-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 20px;
}

.line {
  position: relative;
  width: 20px;
  height: 200px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: transparent;
}

.brick {
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 50%;
  bottom: 0; 
}

.ones .brick {
  background-color: #7ED957;
}

.tens .brick {
  background-color: #ff69b4;
}

.hundreds .brick {
  background-color: #857FFA;
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 80px;
}

.add-button,
.remove-button {
  width: 50px;
  height: 50px;
  font-size: 1.6rem;
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  background-color: 0.3s ease, color 0.3s ease; 
}

.add-button:hover,
.remove-button:hover {
  background-color: #EDF4FF;
}

.celebration-container {
  display: none; 
  position: absolute; 
  top: 60px; 
  left: 0;
  width: 100%;
  height: 70px; 
  background: url('/img/generelt/feire.png') repeat-x;
  background-size: contain; 
  z-index: 1; 
  transition: top 0.3s;
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {

  .total {
    font-size: 5em;
  }

  .user-heading-container {
    margin-bottom: 5px;
  }
  
  #user-heading {
    font-size: 2em;
  }
  
  .line {
    height: 200px;
    background-color: transparent; 
    border: none; 
  }

  .brick {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    bottom: 0; 
  }

  .line-container {
    margin-top: 40px; 
  }
}
