.clickable {
    cursor: pointer;
}

.book {
    display: none;
}

.lesson-cont {
    line-height: 1.7;
    background-color: white;
    color: black;
    margin: 0 auto; /* Center container and add top/bottom margin */
    max-width: 92%; /* mobile */
}
@media (min-width: 1000px) {
    .lesson-cont {
        max-width: 75%; /* ADAPT */
    }
}
@media (min-width: 1275px) {
    .lesson-cont {
        max-width: 65%;
    }
}
/* @media (min-width: 1400px) {
    .lesson-cont {
        max-width: 60%;
    }
} */

.lesson-cont h1 {
    font-size: 1.5rem;
    text-align: left;
    /* color: rgb(23, 82, 131); */
    margin: 1rem 0rem 0rem;
    /* background-image: linear-gradient(rgb(63, 130, 185), rgb(39, 101, 152)); */
    background-image: linear-gradient(rgb(83, 146, 197), rgb(61, 122, 172));
    color: white;
    border-radius: 1.25rem;
    padding: 0.5rem 1.5rem;
}

.lesson-cont h2 {
    font-size: 1.4rem;
    /* color: rgb(170, 7, 7);
    background-color: white; */
    background-image: linear-gradient(rgb(66, 185, 120), rgb(57, 174, 110));
    color: white;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); */
    border-radius: 1.25rem;
    padding: 0.5rem 1.5rem;
    margin: 1rem 0rem;
}

.part-title {
    font-size: 1.2rem !important; 
    margin: 1rem 0rem 0rem !important;
}

.lesson-cont h3 {
    font-size: 1.2rem;
    background-image: linear-gradient(rgb(101, 155, 200), rgb(119, 170, 211));
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
    /* background-image: linear-gradient(rgb(91, 197, 161), rgb(105, 202, 169));    */
    padding: 0.4rem 1.5rem;
    /* color: rgb(23, 82, 131); */
    color: white;
    margin: 0.5rem 0rem 1rem;
    border-radius: 1.25rem;
}

.lesson-cont h4 {
    font-size: 1.2rem;
    color: rgb(45, 45, 45);
    margin: 0.5rem 0rem 0.3rem;
}

.lesson-cont section {
    margin-bottom: 1.5rem;
}

.lesson-cont p {
    margin-bottom: 0.7rem;
}

.pointer{
    position: relative;
    padding-left: 1.2rem; /* Indents text to make space for triangle */
}

.pointer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px; /* Creates triangle shape */
    border-color: transparent transparent transparent green; /* Green triangle */
}

/* add to homescreen banner / div  */
.homescreen {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; 
    align-items: center;
    padding: 0.3rem 1rem;
    /* width: auto; */
    cursor: pointer;
    background-image: linear-gradient(rgb(63, 130, 185), rgb(39, 101, 152));
    border-radius: 0.85em;
    margin: 0 auto;
}
.homescreen-content { /* add to homescreen banner / div  */
    display: flex;
    flex-direction: row;
    justify-content: flex-start; 
    align-items: center;
    gap: 1rem; /* Space between image and slogan */
    max-width: fit-content; /* Shrink-wrap the content */
}
.homescreen img { /* add to homescreen banner / div  */
    height: 6rem;
    width: auto;
    border-color: white;
    border-width: 0.15rem;
    border-style: solid; /* Added to make the border visible */
}

.homescreen-slogan { /* add to homescreen banner / div  */
    display: flex;
    align-items: center;
    height: 6rem;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 1.15rem;
    /* color: rgb(23, 82, 131); */
    color:white;
    font-weight: 600;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); Adds a subtle shadow */

}

/* Type Styling */
.chars, .chars2 {
    font-size: 1.2rem;
}

.play-button {
    text-decoration: none;
    margin-right: 0.2rem;
}

/* Pronunciation */

.tone-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 1rem;
}

.tone-list li {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
    position: relative;
}

.tone-list li strong {
    color: rgb(23, 82, 131);
}

.tone-list li p, 
.tone-list li .voc-grid {
    margin: 0.8rem 0rem;
}

.tone-list li::before {
    content: '✓'; /* Or '→', '•', etc. */
    position: absolute;
    left: 0;
    color: green;
    /* color: rgb(170, 7, 7); Accent color */
    font-weight: bold;
    font-size: 1rem;
}

/* Vocabulary Grid Layout */
.voc-grid {
    display: grid;
    grid-template-columns: 20% 20% 60%;
    margin-bottom: 1.5rem;
    margin-top: 1.2rem;
}

.voc-grid > div {
    display: flex; 
    align-items: center; /* vertically in cell */
    padding: 0.2rem 0.6rem;
    overflow-wrap: anywhere; /* Avoids breaking words */
    white-space: normal; /* Ensures natural text wrapping */
}

@media (max-width: 650px) {
    .voc-grid {
        grid-template-columns: 100%;
    }
    .voc-grid > div {
        grid-column: 1;
    }
}

.alt {
    /* background-color:rgb(255, 242, 242) !important; */
    background-color:rgb(231, 242, 249) !important; 
    
}

.voc-header {
    font-weight: bold;
    /* background-color: rgb(255, 242, 242);
    color: rgb(170, 7, 7); */
    background-color:rgb(231, 242, 249);
    color: rgb(23, 82, 131);
    font-size: 1.05rem;
}

.lesson-cont .note {
    padding: 0.75rem 1.25rem;
    /* background-color: rgb(255, 242, 242); */
    /* background-color:rgb(226, 240, 249); */
    background-color:rgb(231, 242, 249); 
    border-radius: 1rem;
    margin: 1.4rem 0rem 1.5rem;
    /* color:black; */
}

.note p {
    margin: 0rem 0rem 0.6rem;
}

/* Grammar  */

.check {
    text-indent: 0rem; /* Indents the paragraph to the right */
    position: relative; /* Allows positioning of the pseudo-element */
    padding-left: 1.5rem; /* Makes space for the checkmark */
    font-size: 1.05rem;
}
  
.check::before {
    content: '✓'; /* Adds the checkmark symbol */
    position: absolute; /* Positions the checkmark relative to the paragraph */
    left: 0; /* Aligns the checkmark to the left */
    top: 0%; 
    margin-right: 0.5rem; /* Adds space between checkmark and text */
    color: green;
    font-weight: bold;
    font-size: 1.2rem;
}

.pattern {
    font-size: 1.05rem;
    color: rgb(23, 82, 131);
    font-weight: 550;
}

/* Sentences */
.sentences-list {
    margin-top: 1.1rem;
}

.lesson-cont .example {
    margin-bottom: 1.1rem;
    margin-top: 1rem;
    padding: 0.2rem 0.6rem;
    background-color: #fdfdfd;
    border-left: 0.22rem solid green; 
}

.example p {
    margin: 0.6rem 0;
}

.example p:last-child {
    margin-bottom: 0rem; /* Remove margin from the last line */
}
.example p:first-child {
    margin-top: 0rem; /* Remove margin from the first line */
}

/* Dialogue Section */

.dialogue-list {
    margin-top: 1.1rem;
}

.dia-line {
    margin-bottom: 1.1rem;
    padding: 0.2rem 0.6rem;
    background-color: #fdfdfd;
    border-left: 0.22rem solid green; 
}

.dialogue-list > .speaker-2 {
    border-left: 0.22rem solid rgb(33, 114, 180);
}

.dialogue-list > .speaker-3 {
    border-left: 0.22rem solid rgb(228, 164, 68);
}

.dia-line p {
    margin: 0.6rem 0;
}

.dia-line p:last-child {
    margin-bottom: 0rem; /* Remove margin from the last line */
}
.dia-line p:first-child {
    margin-top: 0rem; /* Remove margin from the first line */
}

/* Character analysis */

.char-item .voc-grid {
    margin: 0.2rem 0rem;
}

.char-item {
    margin-bottom: 1.1rem;
    padding: 0.1rem 0.6rem;
    background-color: #fdfdfd;
    border-left: 0.22rem solid green; /* Accent color border */
}
.char-item p {
    margin: 0.5rem 0;
}
.char-item p:last-child {
    margin-bottom: 0rem; /* Remove margin from the last line */
}
.char-item p:first-child {
    margin-top: 0rem; /* Remove margin from the first line */
}

/* bottom */
.section-end {
    padding-bottom: 1rem;
}