/* Desktop */
@media only screen and (min-width: 992px) {
  /* Your desktop styles here */
  html {
    color: darkred;
    font-size: 15px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
  }

  body {
    background-image: url("https://www.KCBAdmin.com/Images/KCBListen_BG.png"); /* replace with your image path */
    background-position: center;
    background-repeat: repeat-y;
    background-size: cover;
  }

  #imgLogo {
    width: 600px;
    aspect-ratio: 1/1;
  }
}

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* Your tablet styles here */
  html {
    color: darkred;
    font-size: 16px;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }

  #imgLogo {
    width: 400px;
    aspect-ratio: 1/1;
  }
}

/* Mobile phone */
@media only screen and (max-width: 767px) {
  /* Your mobile phone styles here */
  html {
    color: darkred;
    font-size: 16px;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }

  h2 {
    font-size: 2em;
  }

  #imgLogo {
    width: 25%;
    max-width: 200px;
    aspect-ratio: 1/1;
  }
}

h3 {
  width: 100%;
  text-align: center;
  margin: auto;
}

h3 img {
  text-align: center;
  margin: auto;
  width: 90%;
  max-width: 340px;
}

li {
  line-height: 3rem;
  margin: 2rem auto;
  display: block;
}

a {
  padding: 0.5rem;
  color: darkred;
  text-decoration: none;
  border: 2px solid darkred;
  border-radius: 8px;
  cursor: pointer;
}

a:hover {
  background-color: darkred;
  color: white;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

#imgLogo {
  width: 100px;
  aspect-ratio: 1/1;
}

#pMsg {
  width: fit-content;
  max-width: 400px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem auto;
  border: 2px solid darkred;
  border-radius: 8px;
}

#ulLinkButtons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

table {
  border: 2px solid rgb(80, 80, 80);
  border-radius: 12px;
  padding: 8px;
  width: 80%;
  max-width: 600px;
}

table a {
  margin: auto;
  padding: 6px;
  color: darkred;
  background-color: white;
  border: 4px solid silver;
  border-radius: 12px;
  display: block;
  width: fit-content;
  max-width: 380px;
  font-size: 12px;
}

table a:hover {
  background-color: silver;
  color: black;
  border: 4px outset rgb(45, 45, 45);
  border-radius: 12px;
  text-decoration: none;
}

#divAudio {
  padding: 1rem;
  color: white;
  background-color: darkred;
  border: 1px solid darkred;
  border-radius: 12px;
  width: 30%;
  min-width: 360px;
  margin: auto auto 2rem auto;
}

#divAudio a {
  color: darkred;
  background-color: white;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 12px;
  padding: 4px;
}

#divAudio a:hover {
  background-color: silver;
  color: black;
  text-decoration: none;
}

#divControls {
  margin: 12px auto;
  font-size: 0.6rem;
  white-space: nowrap;
}

#audio {
  width: 100%;
  min-width: 360px;
}

#lblAudio {
  color: white;
  font-size: 1rem;
  font-weight: bold;
  margin: 0.5rem auto;
}

#divcomments {
  font-size: 1.12rem;
  width: 80%;
  max-width: 400px;
  margin: 1.5rem auto -2rem;
  padding: 1rem;
}

#divLinksTable {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

#divLinksTable table {
  width: 100%;
  max-width: 33.33%; /* 3 columns */
  box-sizing: border-box;
  padding: 10px;
}

#divLinksTableFraze {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

#divLinksTableFraze table {
  width: 100%;
  max-width: 33.33%; /* 3 columns */
  box-sizing: border-box;
  padding: 10px;
  border: 4px solid darkred;
  border-radius: 12px;
}

@media (max-width: 1200px) {
  #divLinksTable table {
    max-width: 50%; /* 2 columns */
  }
}

@media (max-width: 800px) {
  #divLinksTable table {
    max-width: 100%; /* 1 column */
  }
}

.tblHdr {
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: darkred;
  margin: 1rem auto;
}
