/*for lllearning.html*/
.upper-part {
    font-weight: bold;
    font-size: 22px;
    height: 100px;
    margin-bottom: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: top;
}
.upper-part-1a {
    background-color: hsl(185, 74%, 48%);
}
.upper-part-1b {
    background-color: hsl(340, 64%, 63%);
}
.upper-part-2a {
    background-color: hsl(285, 67%, 61%);
}
.upper-part-2b {
    background-color: hsl(32, 85%, 56%);
}
.upper-part-3a {
    background-color: hsl(269, 85%, 54%);
}
.upper-part-3b {
    background-color: rgb(241, 213, 26);
}
.description {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    color: black;
    text-align: justify;
}
.cell-frame {
    border: 1px solid #ccc;
    margin-bottom: 2px; /* Add margin between sections */
    padding: 6px;
}
a.upper-link {
    color: white;
    text-decoration: none;
    text-align: center;
}

.story-frame {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    margin-bottom: 2px; /* Add margin between sections */
    padding: 6px;
    width: 100%;
}

@media (min-width: 800px) {
    .right-hand-part {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .right-hand-part h2 {
        margin: auto; /*centers the element both vertically and horizontally.*/
        font-size: 20px;
        margin-top: 10px;
        width: 100%; /* Make the h2 element occupy the full width */
        text-align: center; /* Center the text within the h2 element */
    }

    .right-hand-part h3 {
        margin-left: 30px;
    }

    .cell-frame {
        border: 1px solid #ccc;
        width:49.8%; /* Adjust the width as needed */
        box-sizing: border-box;
        margin-bottom: 2px; /* Add margin between sections */
        padding: 6px;
    } 
}

/*for lllearning_child & lllearning_adult*/
.subheader {
    font-weight: bold;
    font-size: 16px;
    width:220px;
    height: auto;
    padding: 20px 0px 10px;
    margin-bottom: 0px;
    color: green;
    display: flex;
    justify-content: left;
    align-items: center;
}

.link {
    font-weight: bold;
    font-size: 16px;
    color: orange;
}

.link a {
    text-decoration: none;
    color: orange;
}

.link a:hover {
    text-decoration: underline;
    color: orange;
}

.section-divider {
  border-top: 1px solid #999; /* 1px solid grey line */
  margin-top: 10px; /* Adjust the spacing above the line as needed */
}

#storybooks .flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
  }

  #storybooks .item {
    width: calc(33.33% - 2px);
    padding: 2px;
    box-sizing: border-box;
  }

 
  #music .flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content:left;
  }

  #music .item {
    width: 100%; 
    margin-left: 30px;
  }

  audio {
    width: 100%; /* Set the width */
  }  

  @media only screen and (max-width: 600px) {
    .right-hand-part h2 {
        font-size: 20px;
        margin-top: 10px;
        text-align: center;
    }

    .right-hand-part h3 {
        font-size: 16px;
        text-align: center;
    }

    #storybooks .flex-container {
        justify-content: center;
      }

    #storybooks .item {
      width: 100%;
      max-width: 220px;    
    }

    #music .flex-container {
        justify-content: center;
    }

    #music .item {
      max-width: 230px;    
    }
  }

/*for lllearning_globalnews.html */
.newslist {
    margin-left:2em; /* You can adjust the value as needed */
   /* list-style-type: none; /* Remove default list bullet */
    line-height: 2vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0; /* Remove default padding */
}

.newslist li {
    flex: 0 0 50%; /* Adjust the width as needed, leaving some space for margins */
    margin-bottom: 10px; /* Add some space between items */
    margin-top: 30px;
}

/* for lllearning_monexcel.html */
.circle-img {
    width: 350px;
    height: 350px;
    margin: 0 auto; /* Center horizontally */
}

.circle-img .glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure no overflow */
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#f06, #3cf);
    border-radius: 50%;    
    filter: blur(50px);
}

.glowing-circle .image {
    position: relative;
    width: 320px;
    height: 320px;
    background: purple;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
}

.image img {
    position: absolute;
    top: 0px; /* Adjusted to fit the circle better */
    left: 0px;
    transform: translate(15px, 15px); /* Adjusted to center image perfectly */
    width: 290px;
    height: 290px;
    object-fit: cover;
    border-radius: 50%;
    padding: 0; /* Ensure there's no white frame */
    margin: 0; /* Ensure there's no white frame */
    border: none; /* Remove any potential borders */
}

.profile {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;  /* Center horizontally */
}

.archive-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;  /* Center horizontally */
}

.namecard_headline{
    font-weight: bold;
    font-size: 20px;
    padding: 0px 0px 15px;
    display: flex;
    justify-content: center;
}        

.namecard_title_1 {
    font-weight: bold;
    font-size: 18px;
    padding: 20px 0px 10px;
    display: flex;
    justify-content: center;
} 

.namecard_title_2 {
    font-size: 16px;
    display: flex;
    justify-content: center;
} 

.namecard_title_3 {
    font-weight: bold;
    font-size: 14px;
    display: flex;
    padding: 20px 0px 10px;
    text-align: left;
} 

.namecard_content {
    text-align: justify;
}

/* for screen < = 375 lllearning_monxcel.html ok*/
@media only screen and (max-width: 376px) {
    .namecard_headline{
        font-size: 18px;
    }        
    .circle-img {
        width: 320px;
        height: 320px;
    }
    .circle-img .glowing-circle::after {
        width: 290px;
        height: 290px;
    }

    .glowing-circle .image {
        position: relative;
        width: 290px;
        height: 290px;
    }
}
/*for iPad lllearning_globalnews.html ok*/ 
@media only screen and (max-width: 810px) {
    .newslist {
        margin-left:5em; /* You can adjust the value as needed */
        line-height: 1vh;
    }   
}

/* for screen < = 412 lllearning_globalnews.html ok*/
@media only screen and (max-width: 428px) {  
    .newslist li {
        flex: 0 0 100%; /* Adjust the width as needed, leaving some space for margins */
        margin-top: 10px;
    }    
}