@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400&display=swap');
html, body {
    text-align: center;
}
body {
    background-color: #edeae5;
}

/* media query breakpoints
SMARTPHONES AND TABLETS PORTRAIT:	@media only screen and (max-width: 780px) and (orientation:portrait)
 */


*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.page{
    height: 100%;
    padding-top: 50px;
}
/* Begin Font */
.lines{
    width: 100%; 
    clear: both;
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    color: black;
}
p {
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    color: black;
    line-height: 30px;
}
.textleft{
    text-align: left;
    float: left;

}
.textright{
    text-align: right;
    float: right;
}
.textcentre{
    text-align: center;
}
h1 { 
    text-align: center;
    font-family: 'Mochiy Pop P One', sans-serif;
    font-size: 34px;
    color: black;
}
h2 {
    text-align: left;
    padding-left: 20px;
    font-family: 'Mochiy Pop P One', sans-serif;
    font-size: 20px;
    color: black;
}
h3 {
    text-align: left;
    padding-left: 20px;
    font-family: 'Mochiy Pop P One', sans-serif;
    font-size: 16px;
    color: black;
}
.indent {
    margin-left: 40px;
}
.hidden {
    display: none;
}

@media only screen and (max-width: 780px) and (orientation:portrait){
h2{
    font-size: 4vw; /* Adjust the vw value as needed */
}
h1{
    font-size: 4vw; /* Adjust the vw value as needed */
}}

/* End of Font */
/* Box behaviour*/
.bigtit{
    background-color: #fce181;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 0 10px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Optionally add ellipsis for overflow */
    
}
.smalltit{
    background-color: #9fedd7;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 0 10px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Optionally add ellipsis for overflow */
}
.cntbox{
    background-color: #fef9c7;
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0 0 10px 2px;
}

/* End of Box behaviour*/
/*Begin Navbar */

.navbarzone {
    width: 20%;
    float: left;    
}
.navbar{
    width: 90%;
    margin: auto;
    margin-bottom: 10px;
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    .navbar  {
        width: 100%;
        display: none;
    }}
.navbox {
    background-color: #fce181;
}
.navitem {
    width: 100%;
    text-align: left;
    left: 20px;
}
.navitemtitle1, .navitemtitle2, .navitemtitle3, .navitemtitle4, .navitemtitle5, .navitemtitle6, .navitemtitle7, .navitemtitle8, .navitemtitle9, .navitemtitle10 {
    background-color: #9fedd7;
    width: 100%;
    padding: 10px; 
    cursor: pointer;   
}
.navitemlink1, .navitemlink2, .navitemlink3, .navitemlink4, .navitemlink5, .navitemlink6, .navitemlink7, .navitemlink8, .navitemlink9, .navitemlink10 {
    display: none;
    background-color: #fef9c7;
    width: 100%;
    padding: 5px;
    border-style: dotted;
    border: #000;
    border-width: 0px, 0px, 1px, 0px;
    text-decoration: none;
}
a.nav:hover {
    text-decoration: none;
    font-weight: bold;
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    .navbarzone  {
        width: 100%;
        position: fixed;
    }}

.hamburger {
    display: none;
    cursor: pointer;
}

@media only screen and (max-width: 780px) and (orientation:portrait){
    .hamburger  {
        display: block;
    }}

/*End of Navbar */
/* Searchbox start */
#nav form {
    display: flex;
}

#nav input[type="text"] {
    padding: 5px;
}
/* Searchbox end */
/*Begin reading widget */

.readingbar{
    width: 90%;
    margin: auto;
    margin-bottom: 10px;
    background-color: #fce181;
    border-radius: 30px;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 10px;
}

@media only screen and (max-width: 780px) and (orientation:portrait){
    .readingbar  {
        width: 100%;
        display: none;
    }}

.readingcontainer {
    width: 100%;
}

.book-container {
    margin:auto;
    padding: 0px 0px;
    overflow: hidden;
}
.book-cover {
    width:100%;

}
/* End of reading widget */

/* Begin Content */
.content{
    width: 80%;
    float: right;
    min-height: 100px;
    }
@media only screen and (max-width: 780px) and (orientation:portrait){
    .content  {
        width: 100%;
    }}
.title{
    margin-bottom: 10px;
    margin-right: 10px;
}
.LBLtitle{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
.LBLcont{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
.LITtit{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;    
}
.apractit{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;   
}
.apraccont{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
.methtit{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;    
}
.methcont{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
.safetit{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;    
}
.safecont{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
.techtit{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;    
}
.techcont{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
.LITcont{
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px;
    color: black;
    line-height: 30px;
    margin-right: 10px;
}
.quiz{
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #fef9c7;
    border-radius: 25px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
    box-shadow: 0 0 10px 2px;
    margin-right: 10px;
}
.NTKtit{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;    
}
.NTK{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;    
}
.updated{
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: right;
    margin-right: 10px;
}
.usefultit{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;   
}
.useful{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
}
/*End on Content */

/* Begin Header */
.headmenu {
    position: fixed;
    width: 100%;
    /*---background-image: url("/images/banner2.png");---*/
    text-align: center;
    background-color: #026670;
    font-family: 'Mochiy Pop P One', sans-serif;
    font-size: 34px;
    color: black;
    text-shadow: 1px 1px 3px black;
    white-space: nowrap;
    overflow: hidden; 
    
}
.menuname {    
    width: 20%;
    float: left;
    height: 50px;
    text-align: left;    
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    .menuname  {
        width: 50px;
    }}
.menulinks {   
    width: 80%;
    float: right;
    height: 50px;
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    .menulinks  {
        font-size: 5vw; /* Adjust the vw value as needed */
    }}
/* End of Header */

/* Begin footer */
.footmenu {
    background-color: #fce181;
    width: 100%;
    clear:both;
}
.footname {
    background-color: #fce181;
    width: 20%;
    float: left;
    height: 20px;
}
.footlinks {
    background-color: #fce181;
    width: 80%;
    float: right;
    height: 20px;
}
/* End footer */

/* Begin adverts */
.fladvert {
    width: 100%;
}
.nadvert {
    width: 90%;
    margin: auto;
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    .nadvert  {
        display: none;
    }}
/* End of adverts */

/* image formatting */
.im10 {
    text-align: center;
    width: 10%;
}
.im20 {
    text-align: center;
    width: 20%;
}
.im30 {
    text-align: center;
    width: 30%;
}
.im40 {
    text-align: center;
    width: 40%;
}
.im50 {
    text-align: center;
    width: 50%;
}
.im60 {
    text-align: center;
    width: 60%;
}
.im70 {
    text-align: center;
    width: 70%;
}
.im80 {
    text-align: center;
    width: 80%;
}
.im90 {
    text-align: center;
    width: 90%;
}
.im100 {
    text-align: center;
    width: 100%;
}
.bookimage{
    Width: 90%;
    
}

@media only screen and (max-width: 780px) and (orientation:portrait){
    .im10, .im20, .im30, .im40, .im50, .im60, .im70, .im80, .im90, .im100  {
        text-align: center;
        width: 100%;
    }}
.imhide {
    display:none
}
/* end of image formatting */

/* formatting the curriculum maps */
table {
    width:80%;
    margin: auto;
    table-layout: fixed;
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    table  {
        width: 100%;
    }}

th {
    text-align: center;
    background-color: #9fedd7;
    font-weight: bold;
}
td {
    background-color: #edeae5;
    overflow-wrap: break-word;
    
}
table, th, td {
    border: 1px solid #000;
    border-collapse: collapse;
    padding: 15px;
}

/* end of formatting the curriculum maps */

/* buttons  */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-column-gap: 2px;
}

.grid-item {
    background-color: #9fedd7;
    text-align: center;
    font-size: 16px;
    font-family: 'Ubuntu', sans-serif;
    border-radius: 10px;
    transition-duration: 0.5s;
    height: 100%;
    align-items: center;
    justify-content: center;
    display:flex; 
    min-height: 46px; 
    margin-top: 1px;
    box-shadow: 0 0 2px 2px; 
}

.grid-item:hover {
    background-color: #edeae5;
}

/* end of buttons  */

/* Hyperlinks */
a:link {
    color: darkblue;
    text-decoration: none;
}
a:visited {
    text-decoration: underline;
}
a:hover {
    text-decoration: underline;
}
a:active {
    text-decoration: underline;
}
a.indexlink {
    text-decoration: none;
    color: silver;
    transition: 300ms;
}
a.indexlink:hover {
    color: black;
    
}
/* End of Hyperlinks */

/*  blog box format */
.image-container {
    overflow: hidden; /* Clear the float and contain the image and text */
  }
  
  .blogimage {
    float: left;
    border-radius: 25px;
    margin-right: 5px;
  }
/*  End of blog box format */
/* Lesson box format */
.lessoncontainer {
    overflow: hidden; /* Clear the float and contain the image and text */
    border-top: #000;
    border-top-style: solid;
    padding-top: 5px;
   }
   .lessoncontainer:first-child {
    border-top: none; /* Remove the border for the first child */
}  
  .lessonimage {
    float: right;
    border-radius: 5px;
    margin-left: 5px;
    padding: 20px;
  }
/* End of Lesson box format */

.cloaked{
    display: none; 
}

  /* Quiz box format */

.quizbox {
    width: 80%;
    background-color: white;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 0 10px 2px;
    display: flex;
    flex-direction: column;

}
.btn-grid{
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px;
    margin: 20px 0;
}
.question{
    border: 1px;
    width: 100%;
    border-color: black;
    background-color: #9fedd7;
    border-radius: 5px;
    padding: 5px 10px;
    margin-bottom: 10px;
    
}
.answer{
    border: 1px;
    width: 100%;
    border-color: black;
    background-color: #edeae5;
    border-radius: 5px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.answer:hover{
    background-color: #9bc1bc;
}
#next-question{
    display:block;
    background-color: #9fedd7;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

/* End of Quiz box format */

/* Book template boxes */
.wrapper{
    display:grid;
    width: 80%;
    margin: auto;
    padding: 1em;
    grid-template-columns: 2fr 1fr 1fr;
    /*grid-column-gap:1em; */
    /*grid-row-gap:1em;*/
    grid-gap:1em;
    /*grid-auto-rows: 100px;*/
    grid-auto-rows:minmax(50px, auto);
    justify-items: stretch;
}
.wrapper > div{    
    padding: 1em;
}

.box1{ /* Title of the book  */
    background: #c7c1b7;
    border-radius: 20px 0 0 0;
}
.box2{  /* Score */
    background: #c7c1b7;
    grid-column: 2;
}
.box3{  /* Date of publication */
    background: #c7c1b7;
    grid-column: 3;
    border-radius: 0 20px 0 0;
}
.box4{  /* Author's name */
    background: #c7c1b7;  
}
.box5{  /* Date read */
    background: #c7c1b7;
    grid-column: 2/4;
    grid-row:2;    
}
.box6{  /* Genres */
    background: #c7c1b7;
    grid-column: 1;
    grid-row:3;    
}
.box7{  /* book cover */
    background: #c7c1b7;     
    grid-column:2/4;
    grid-row: 3/6;
    border-radius: 0 0 20px 0; 
}

.box8{  /* Norman;s comments */
    background: #c7c1b7;
    grid-column:1;
    grid-row: 4/6;
    border-radius: 0 0 0 20px;
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    .wrapper  {
        width: 100%;
    }}

/* Author template boxes */
.awrapper{
    display:grid;
    width: 80%;
    margin: auto;
    padding: 1em;
    grid-template-columns: 2fr 1fr;
    /*grid-column-gap:1em; */
    /*grid-row-gap:1em;*/
    grid-gap:1em;
    /*grid-auto-rows: 100px;*/
    grid-auto-rows:minmax(100px, auto);
    justify-items: stretch;
}
@media only screen and (max-width: 780px) and (orientation:portrait){
    .wrapper  {
        width: 100%;
    }}

.awrapper > div{    
    padding: 1em;
}

.abox1{
    background: #c7c1b7;
    border-radius: 20px 0 0 0;
    grid-row: 1;
    grid-column: 1/2;
}
.abox2{
    background: #c7c1b7;
    border-radius: 0 20px 0 0;
}
.abox3{
    background: #c7c1b7;
    grid-column:1;
    grid-row: 2/4;
    border-radius: 0 0 0 20px;

}
.abox4{
    background: #c7c1b7; 
    grid-column:2;
    grid-row: 2/4;
    padding: 10px;
    border-radius: 0 0 20px 0; 
}
.abox5{
    background: #c7c1b7;
    border-radius: 0 0 0 20px;
}