body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background-color: #edd6d6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("back.png");
  background-repeat: repeat;
  opacity: 0.1;
  z-index: -1;
}

h1 {
  font-size: 4em;
  text-align: center;
  color: #d63c3c;
}

input {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 10px;
  margin: 8px;
  padding: 4px;
  font-family: Instrument Sans;
  font-size: 1.2em;
}

.myInput {
  background-color: #323232;
  border-radius: 50%;
  color: #323232;
  width: 30px;
  height: 30px;
}

input[type="number"].filled-circle {
  background-color: #323232;
  border-radius: 50%;
  color: #323232;
  width: 30px;
  height: 30px;
}

img {
  height: 100px;
  width: auto;
  align-items: center;
}

#chartContainer {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

#textContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20px; /* Adjust the height as needed */
}


/* Button styles */
.generate-button,
.add-names-button {
  display: inline-block;
  padding: 10px 20px;
  font-family: sans-serif;
  font-size: 1.4em;
  font-weight: bold;
  color: #f6e9c8;
  background-color: #e96850;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Button hover effect */
.generate-button:hover,
.add-names-button:hover {
  background-color: #ea8371;
}

/* Button animation */
.generate-button,
.add-names-button {
  animation-duration: 0.3s;
  animation-fill-mode: both;
  animation-timing-function: ease-in-out;
}

@keyframes button-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.generate-button.animated,
.add-names-button.animated {
  animation-name: button-animation;
}

.header {
    display: flex; /* Use flexbox layout */
    align-items: center; /* Center items vertically */
  }
  
.header img {
    margin-right: 15px; /* Add spacing between image and text */
    margin-left: 15px;
  }

  .modal {
    display: none; /* Hide the modal by default */
    position: fixed; /* Position the modal */
    z-index: 2; /* Set the z-index to ensure it appears on top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Add a semi-transparent background */
  }
  
  .modal-content {
    background-color: #db5252;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 30px;
    width: 300px;
    font-size: 30px;
    text-align: center;
    display: flex; /* Add flexbox layout */
    flex-direction: column; /* Set flex direction to column */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
  }
  
  .close {
    color: #aaa;
    float: right;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .centered {
    text-align: center;
  }

  .header-row {
    position: sticky;
    top: 0;
    background-color: #edd6d6; /* Set the desired background color */
    border-bottom: 1px solid black;
  }

  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0; /* Optional: Adjust margin as needed */
  }
  


  
  /* Styles for mobile */
  @media (max-width: 480px) {
    body {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-left: 1%;
      margin-right: 1%;
    }
      
    .header {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
      justify-content: flex-end; /* Align items to the end */
      padding-top: 50px;
      height: 50px; /* Adjust the height as needed */
      width: auto; /* Allow the width to adjust proportionally */
    }

    .header img {
      margin-right: 0; /* Remove right margin */
      width: 5em;
      height: auto;
    }
  
    .header h1 {
      font-size: 3em;
      text-align: center;
      margin-left: 25px;
    }
  
    #chartContainer {
      margin-top: 20px;
      margin-bottom: 20px;
      text-align: center;
      width: 100%;
    }
    .object-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }
    
    .object {
      flex-basis: 50%; /* Display two objects per row */
    }
    .add-names-button {
      font-size: 1em;
    }
  }