@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

/* body {
    display: grid;
    place-content: center;
    height: 100vh;
    width: 100vw;
	overflow: hidden;
	background: #fcfcfc;
} */

/* Default: desktop and tablets */
body {
    display: grid;
    place-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #fcfcfc;
}

/* Phones in portrait (vertical) */
@media only screen 
  and (max-width: 767px) 
  and (orientation: portrait) {
    body {
        height: 100vh;
        width: 256vw;
    }
}

/* Phones in landscape (horizontal) */
@media only screen 
  and (max-height: 767px) 
  and (orientation: landscape) {
    body {
        height: 166vh;
        width: 181vw;
    }
}


/* horizontal phone
height: 200vh;
    width: 259vw;

    vertical phone 

    height: 100vh;
    width: 256vw; */

.flipbook {
    width: 730px;
    height: 530px;
    position: relative;
}

.flipbook::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.flipbook.shadow-active::after {
    opacity: 1;
}




.flipbook .hard {
    font-size: 30px;
    background: #928f8f !important;
    color: #ffffffbb;
    /* font-weight: bold; */
    border: none; 
    font-family: "Mea Culpa", cursive;
}

 


.flipbook .hard small{
	font-style: italic;
	font-weight: lighter;
	opacity: 0.7;
	font-size: 14px;
}

/* .flipbook .page {
    background: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.11);
} */



.page img{
	width: 100%;
	object-fit: cover;
	margin: auto;
}

.flipbook .page small{
	font-size: 14px;
    margin-bottom: 10px;
}

/* .poem-page {
    width: 730px;     
    height: 530px;     
    background-image: url('images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.poem-container {
    text-align: center;
    max-width: 600px;
    color: #333;
    line-height: 1.8;
} */

.flipbook-page {
    width: 730px;      /* flipbook page width */
    height: 530px;     /* flipbook page height */
    position: relative;
}

.poem-page {
    width: 730px;      
    height: 530px;     
    position: relative;

    /* Background */
    background-image: url('images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Flex centering */
    display: flex;
    justify-content: center;  /* horizontal center */
    align-items: center;      /* vertical center */
}

.poem-container {
    text-align: center;
    max-width: 600px;
    width: 100%;       /* ensures container stretches for flex centering */
    line-height: 1.8;
    color: #333;
}



.poem-title {
    font-family: "Long Cang", cursive;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 9px;
    letter-spacing: 1px;
    opacity: 0.85;
}

.poem-line {
    font-size: 10px;
    font-family: "Long Cang", cursive; /* ✅ Correct */
    margin: 10px 0;
    opacity: 0.9;
}


.poem-pinyin {
    font-size: 10px;
    font-style: normal;
    color: #555;
    margin-top: 15px;
    margin-bottom: 15px;
}

.poem-translation {
    font-size: 10px;
    font-style: normal;
    color: #444;
    margin-top: 20px;
    line-height: 1.6;
}

.poem-credit {
    font-size: 8px;
    font-style: italic;
    color: #888;
    margin-top: 30px;
    opacity: 0.7;
    text-align: center;
}

.long-cang-regular {
  font-family: "Long Cang", cursive;
  font-weight: 400;
  font-style: normal;
}


.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-style: normal;
}


.mea-culpa-regular {
  font-family: "Mea Culpa", cursive;
  font-weight: 400;
  font-style: normal;
}


.hard-content {
    display: block;         /* normal block layout */
    text-align: center;     /* center text horizontally */
    line-height: 1.5;       /* spacing between lines */
    padding: 40px;          /* optional spacing from edges */
    font-size: 30px;        /* same as .hard */
    color: #ffffffbb;       /* same as .hard text */
    font-family: "Mea Culpa", cursive;
}

.hard-content small {
    display: block;         /* ensures small appears below text */
    font-style: italic;
    font-weight: lighter;
    opacity: 0.7;
    font-size: 14px;
    margin-top: 10px;       /* optional spacing above small text */
}

.audio-controls {
  position: fixed;
  top: 20px;      /* changed from bottom */
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 9999;
}
/* Play/Pause Button */
.audio-controls button {
  border: none;
  background: #000;
  color: white;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.audio-controls button:hover {
  background: #444;
}

/* Volume Slider */
.audio-controls input[type="range"] {
  width: 80px;
  cursor: pointer;
}

