body {
    display: flex;
    height: 83vh;
    align-content: center;
    justify-content: center;
    align-items: center;
    overflow: auto; /* Enable vertical scrolling if content overflows */
  }
  
  p {
    font-family: 'Roboto', sans-serif; font-size: 20pt;
    font-weight: 600;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    color: black;
  }

  h1 {
    font-family: 'Roboto', sans-serif; font-size: 20pt;
    font-weight: 600;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
    color: black;
  }

  h5 {
    font-family: 'Roboto', sans-serif; font-size: 13pt;
    font-weight: 600;
    margin: 0 auto;
    text-align: center;
    padding: 5px;
    color: #9b59b6;
  }

  h6 {
    font-family: 'Roboto', sans-serif; font-size: 10pt;
    font-weight: 600;
    margin: 0 auto;
    text-align: left;
    padding: 0px;
    color: black;
  }
  
  p a {
    text-decoration: none;
    color: #f1c40f;
  }
  
  #squarefree {
    font-family: Helvetica;
    margin: 0 auto;
    background: #5dc4de;
    text-align: center;
    font-weight: 600;
    font-size: 15pt;
  }
  
  #soundboard {
    margin: 0 auto;
    text-align: center;
    width: 80px;
    height: 80px;
    border-collapse: collapse;
    background: white;
  }
  #audio_title {
    margin: 0 auto;
    width: 80px; /* Adjust the width as needed */
    height: 80px; /* Make sure height matches width for square shape */
    text-align: center;
    vertical-align: middle; /* Optional: Center text vertically */
    background: white;
  }

  #audio_title th {
    padding: 15px; /* Adjust padding to increase cell size */
    width: 80px;
  }
  
  th, td {
    font-family: Helvetica;
    margin: 0 auto;
    text-align: center;
    border: 3px solid black;
    width: 20%;
  }
  
  .orange {
    background: #9b59b6;
  }

  .scrollable {
    overflow: auto;
  }

/* Add CSS styles here */
#soundboard {
  width: 90%;
  height: 80px;
  border-collapse: collapse;
}

#audio_title {
  width: 100%;
  border-collapse: collapse;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #222222; /* Dark background color */
  color: white; /* Light text color */
}

body.dark-mode p {
  color: white;
}

body.dark-mode h1 {
  color: white;
}

body.dark-mode h5 {
  color: #c493ff; /* Light purple color for dark mode */
}

body.dark-mode a {
  color: #1E90FF;
}

body.dark-mode h6 {
  color: #b0b0b0; /* Light gray color for dark mode */
}

body.dark-mode p a {
  color: #ffeb3b; /* Bright yellow color for dark mode */
}

body.dark-mode #squarefree {
  background: #1E90FF; /* Dark mode background */
  color: white;
}

body.dark-mode #soundboard {
  background: #222222; /* Dark background for table */
  border-color: #444444; /* Dark gray border */
}

body.dark-mode #audio_title {
  background: #222222; /* Dark background for table */
  border-color: #444444; /* Dark gray border */
}

body.dark-mode th, body.dark-mode td {
  border-color: #888888; /* Light gray border */
  color: white;
}

body.dark-mode .orange {
  background: #7d12ff; /* Light purple for dark mode */
}

.sound-square {
  position: relative;
  width: 100px; /* Adjust as needed */
  height: 100px; /* Adjust as needed */
  text-align: center; /* Center text horizontally */
  vertical-align: middle; /* Center text vertically */
  border: 3px solid black; /* Optional: to see the cell borders */
}

.sound-square img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%; /* Adjust as needed to fit the icon within the cell */
  max-height: 80%; /* Adjust as needed to fit the icon within the cell */
}

@media only screen and (max-width: 600px) {
      .sound-square {
          font-size: 10px; /* Adjust font size for smaller screens */
          padding: 5px; /* Adjust padding for smaller screens */
          height: 80px;
      }

      .sound-square img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 80%; /* Adjust as needed to fit the icon within the cell */
        max-height: 80%; /* Adjust as needed to fit the icon within the cell */
    }
}

.bottom-left {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Style for the button */
.black-button {
  display: inline-block;
  padding: 5px 5px;
  background-color: #222222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  margin: 1px;
  font-size: 11px;
}

.dark-mode .black-button {
  display: inline-block;
  padding: 5px 5px;
  background-color: lightgrey;
  color: #222222;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  margin: 1px;
  font-size: 11px;
}

.black-button:hover {
  background-color: black;
}

/* Checkbox style */
#toggle-sound-effects {
  display: none; /* Hide the default checkbox */
}

#checkbox-label {
  display: inline-block;
  width: 50px;
  height: 30px;
  background-color: #ccc;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  line-height: 30px;
  color: black;
  transition: background-color 0.3s;
}

/* Update background color and text based on checkbox state */
#toggle-sound-effects:checked + #checkbox-label {
  background-color: red;
}

#toggle-sound-effects:checked{
  content: "LIVE";
}

#toggle-sound-effects:not(:checked){
  content: "OFF";
}