/* ✅ Google Fonts for Child-Friendly Fonts */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2&family=Poppins&display=swap');

/* ✅ Additional Font Classes */
.font-opendyslexic {
  font-family: 'OpenDyslexic', sans-serif;
}

.font-comic {
  font-family: 'Comic Sans MS', cursive, sans-serif;
}

.font-verdana {
  font-family: 'Verdana', sans-serif;
}

.font-trebuchet {
  font-family: 'Trebuchet MS', sans-serif;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

.font-baloo {
  font-family: 'Baloo 2', cursive;
}

/* Base body style */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Import OpenDyslexic Font */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Regular.woff2') format('woff2'),
       url('../fonts/OpenDyslexic-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'OpenDyslexic';
  src: url('../fonts/OpenDyslexic-Bold-Italic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

/* Global body styling */
body {
  margin: 0;
  padding: 0;
  font-family: 'OpenDyslexic', sans-serif;
  color: white;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* === Theme Styles (Dyslexia-Friendly Versions) === */
.theme-dark {
  background-color: #5e4106;
  color: #f5f5f5;
}

.theme-light {
  background-color: #f8f8f8;
  color: #333333;
}

.theme-sepia {
  background-color: #f8f1e3;
  color: #1b160b;
}

.theme-yellow {
  background-color: #fffde7;
  color: #141313;
}

.theme-blue {
  background-color: #e3f2fd;
  color: #021b40;
}

/* Chapter 1 Background */
.theme-chapter1 {
  background-color: #3B2F2F;
  color: #f5f5f5;
}

/* Welcome Page Background */
body.welcome-page-bg {
  background-image: url('../images/background-welcome-page.png.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.welcome-page {
  max-width: 800px;
  text-align: center;
  margin-left: auto;
  margin-right: 15%;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

button#welcomeSettingsBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 15px;
  background-color: #FFA500;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

/* Text Styling */
h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

p, h1 {
  letter-spacing: -0.1px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #FFA500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e69500;
}

/* Font Sizes */
.font-small .reader-page p {
  font-size: 1em;
}

.font-normal .reader-page p {
  font-size: 1.2em;
}

.font-large .reader-page p {
  font-size: 1.5em;
}

.highlighted {
  font-weight: bold;
  background-color: yellow;
  color: black;
}

#floatingPlayButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 20px;
  background-color: #FFA500;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

#floatingPlayButton:hover {
  background-color: #e69500;
}
