/* Google Fonts */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #fdf6e3;
    color: #333;
}

/* Header Styles */
header {
    text-align: center;
    background: linear-gradient(90deg, #ffb347, #ffcc33);
    padding: 20px;
    border-bottom: 3px solid #e0a800;
}

header h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 2em;
    margin: 0;
    color: #fff;
}

header h2 {
    font-weight: 300;
    font-size: 1.2em;
    margin-top: 5px;
    color: #fff8e1;
}

/* Buttons */
.button-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px auto;
}

button {
    padding: 10px 18px;
    font-size: 1em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: 'Baloo 2', cursive;
}

button:hover {
    transform: scale(1.05);
}

.primary-btn {
    background-color: #ff6f61;
    color: white;
}

.secondary-btn {
    background-color: #6fb1fc;
    color: white;
}

/* Word Boxes */
main {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

.word-box {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    border: 2px solid #ffcc33;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
    transition: background 0.3s ease;
}

/*
.word-box:hover {
    background: #fff6cc;
}
*/

/* Responsive tweaks */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }

    button {
        width: 100%;
        max-width: 250px;
    }
}

/* Modal overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Dark overlay */
  overflow: auto;
}

/* Modal content container */
.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 0; /* No padding so iframe fills space */
  border-radius: 8px;
  width: 90%;
  max-width: 640px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* Close button top right */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  z-index: 10;
}
.close-btn:hover {
  color: #000;
}

/* Responsive iframe */
.modal-content iframe {
  width: 100%;
  height: 80vh; /* Take most of the viewport height */
  border: none;
  border-radius: 0 0 8px 8px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    border-radius: 6px;
  }
  .close-btn {
    top: 8px;
    right: 10px;
    font-size: 22px;
  }
}

/* Reuse your modal and close-btn styles from before */

.modal h2, .modal h3 {
  font-family: 'Baloo 2', cursive;
  color: #ff6f61;
  margin-bottom: 10px;
  text-align: center;
}

#downloadLinks ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

#downloadLinks li {
  margin: 6px 0;
}

#downloadLinks a {
  color: #6fb1fc;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
}

#downloadLinks a:hover {
  text-decoration: underline;
}

#audioPlayerContainer {
  text-align: center;
}

#audioPlayer {
  width: 100%;
  max-width: 600px;
  outline: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255, 111, 97, 0.3);
}

/* Responsive modal content */
@media(max-width:600px) {
  .modal-content {
    width: 95%;
  }
  #audioPlayer {
    max-width: 100%;
  }
}

#applePodcastLink {
  text-align: center; /* center text and inline elements */
}

#applePodcastLink a {
  display: inline-block; 
  background-color: #ff6f61;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-family: 'Baloo 2', cursive;
  font-size: 1em;
  transition: background-color 0.2s ease;
}

#applePodcastLink a:hover {
  background-color: #e85b4f;
}
