html, body {
  font-family: "Lato", serif;;
  font-weight: 800;
  background-color: #F4F1DE;
  align-items: center;
  justify-content: center;
  color: #3D405B;
}

h1{
  font-family: "Montserrat", serif;
  font-weight: 800;
  margin-bottom: 0;
}

h2 {
  margin-top: 0;
  text-decoration: none;
}

h2 a {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

h2 a:hover,
h2 a:active {
  color: grey;
  cursor: pointer;
}

h2 a:visited{
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.chord:hover rect {
  fill: #E07A5F;
}

.selected rect {
  fill: #81B29A;
}

#controls{
  width: max-content;
  padding-left: 50px;
  display: inline-block;
  justify-content: center;
  position: sticky;
}

#compose {
  background-color: #3D405B; /* Blue */
  color: white;
}

#compose:hover {
  background-color: #1976D2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#stop-compose {
  background-color: #E07A5F; /* Red */
  color: white;
}

#stop-compose:hover {
  background-color: #e53935;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#titles{
  padding-left: 50px;
  justify-content: center;
  position: sticky;
}

#piano-roll{
  padding-left: 15px;
}

#chord-info{
  font-family: "Lato", serif;;
  font-weight: 700;
  width: max-content;
  padding-left: 50px;
  width: 450px;
  height: 200px;
  display: inline-block;
  position: sticky;
}

button {
  border: none;
  padding: 10px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

#play {
  background-color: #81B29A; /* Green */
  color: white;
}

#play:hover {
  background-color: #45a049;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#stop {
  background-color: #E07A5F; /* Red */
  color: white;
}

#stop:hover {
  background-color: #e53935;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sticky-container{
  position: sticky;
}

.flash {
  animation: flash-animation 2s infinite;
}

@keyframes flash-animation {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}

footer{
  padding-left: 50px;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.8); /* Black with opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* Centered vertically and horizontally */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  text-align: center;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content button {
  padding: 10px 20px;
  font-size: 16px;
}



