/*
Author: Abraham Mentoor
File Name: style.css
Date: 13/07/2022
*/

/*CSS Reset*/
body, header, nav, section, article, footer, img, ul, aside, figure, main, table {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    background-color: white;
}

img, .video{
    max-width: 100%;
    display: block;
    margin: 0;
}

.learner {
    border: 3px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 8px #29142c;

}



#moreText, #moreText2, #moreText3, #moreText4, #moreText5, #moreText6, #moreText7,#moreText8, #moreText9, #moreText10, #moreText11, #moreText12, #moreText13, #moreText14, #moreText15, #moreText16, #moreText17, #moreText18,#moreText19, #moreText20, #moreText21, #moreText22, #moreText23, #moreText24, #moreText25, #moreText26, #moreText27,#moreText28 {
    display: none;
  }

  #moreText p, #moreText2 p, #moreText3 p, #moreText4 p, #moreText5 p, #moreText6 p, #moreText7 p,#moreText8 p, #moreText9 p, #moreText10 p, #moreText11 p, #moreText12 p, #moreText13 p, #moreText14 p, #moreText15 p, #moreText16 p, #moreText17 p, #moreText18 p, #moreText19 p, #moreText20 p, #moreText21 p, #moreText22 p, #moreText23 p, #moreText24 p, #moreText25 p, #moreText26 p, #moreText27 p,#moreText28 p{
    text-align: left;
  }

  #readMoreBtn, #readMoreBtn2, #readMoreBtn3, #readMoreBtn4, #readMoreBtn5, #readMoreBtn6, #readMoreBtn7, #readMoreBtn8, #readMoreBtn9, #readMoreBtn10, #readMoreBtn11, #readMoreBtn12, #readMoreBtn13, #readMoreBtn14, #readMoreBtn15, #readMoreBtn16, #readMoreBtn17, #readMoreBtn18, #readMoreBtn19, #readMoreBtn20, #readMoreBtn21, #readMoreBtn22, #readMoreBtn23, #readMoreBtn24, #readMoreBtn25, #readMoreBtn26, #readMoreBtn27, #readMoreBtn28 {
    cursor: pointer;
    color: #fff;
    background-color: #2e3033;
    border-radius: 3pt;
    width: 70pt;
    margin: 0 auto;
    font-weight: bold;
    font-size: 8pt;
  }

  /*Position 1*/
  article #position1 {
    border-top: 5pt solid #3822CD;
    margin:  0pt 0px;
    border-radius: 30px;
    background-color: #f7f1e3;
}

#position1 h3 {
    background-color: #3822CD;
    border-radius: 5em;
    color: #fff;
    margin: 10px 90px;
    padding: 2px;
    font-size: 10pt;
    text-align: center;
}

article #position1 h4 {
    text-align: center;
    display: inline-flex;
    font-size: 10pt;
    padding: 0pt;
    margin-left: 5pt;
}

/*Position 2*/
#position2 {
    border-top: 5pt solid #cb7119;
    margin:  10pt 2px;
    border-radius: 30px;
    background-color: #f7f1e3;
}

#position2 h3 {
    background-color: #cb7119;
    border-radius: 5em;
    color: #fff;
    margin: 10px 90px;
    padding: 2px;
    font-size: 10pt;
}

#position2 h4 {
    text-align: center;
    display: inline-flex;
    font-size: 10pt;
    padding: 0pt;
    margin-left: 5pt;
}

/*Position 3*/
#position3 {
    border-top: 5pt solid #ff5252;
    margin:  10pt 2px;
    border-radius: 30px;
    background-color: #f7f1e3;
}

#position3 h3 {
    background-color: #ff5252;
    border-radius: 5em;
    color: #fff;
    margin: 10px 90px;
    padding: 2px;
    font-size: 10pt;
}

#position3 h4 {
    text-align: center;
    display: inline-flex;
    font-size: 10pt;
    padding: 0pt;
    margin-left: 5pt;
}

/*Position 4*/
#position4 {
    border-top: 5pt solid #33d9b2;
    margin:  10pt 2px;
    border-radius: 30px;
    background-color: #f7f1e3;
}

#position4 h3 {
    background-color: #33d9b2;
    border-radius: 5em;
    color: #fff;
    margin: 10px 90px;
    padding: 2px;
    font-size: 10pt;
}

#position4 h4 {
    text-align: center;
    display: inline-flex;
    font-size: 10pt;
    padding: 0pt;
    margin-left: 5pt;
}

/*Position 5*/
#position5 {
    border-top: 5pt solid #84817a;
    margin:  10pt 2px;
    border-radius: 30px;
    background-color: #f7f1e3;
}

#position5 h3 {
    background-color: #84817a;
    border-radius: 5em;
    color: #fff;
    margin: 10px 90px;
    padding: 2px;
    font-size: 10pt;
}

#position5 h4 {
    text-align: center;
    display: inline-flex;
    font-size: 10pt;
    padding: 0pt;
    margin-left: 5pt;
}

/*Position 6*/
#position6 {
    border-top: 5pt solid #0be881;
    margin:  10pt 2px;
    border-radius: 30px;
    background-color: #f7f1e3;
}

#position6 h3 {
    background-color: #0be881;
    border-radius: 5em;
    color: #fff;
    margin: 10px 90px;
    padding: 2px;
    font-size: 10pt;
}

#position6 h4 {
    text-align: center;
    display: inline-flex;
    font-size: 10pt;
    padding: 0pt;
    margin-left: 5pt;
}

#position1 p, #position2 p, #position3 p, #position4 p, #position5 p, #position6 p, #position7 p, #position8 p, #position9 p, #position10 p {
    padding: 7pt;
}


#position1 h5, #position2 h5, #position3 h5, #position4 h5, #position5 h5, #position6 h5, #position7 h5, #position8 h5, #position9 h5, #position10 h5 {
    padding: 0;
}

main {
    font-size: 0.8em;
}

/*Home page links*/
.grade12 a {
    text-decoration: underline;
    color: blue;
    }

.learner a {   
    text-decoration: underline;
    color: blue;
    }

.bursary a {
    text-decoration: underline;
    color: blue;
    }

    .grade12 h1 {
        color: #29142c;
        }
    
    .learner h1 {   
        color: #29142c;
        }
    
    .bursary h1 {
        color: #29142c;
        }

.hero {
    margin: auto;
}

/*NSFAS FAQ Styles*/
.box1 {
    margin: 10px 0;
}

.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

.active, .accordion:hover {
    background-color: #29142c;
    color: #f67c31;
    font-weight: bold;
}

.accordion::after {
    content: '\002B';
    color: black;
    font-weight: bold;
    float: right;
    margin-left: 6px;
}

.active::after {
    content: "\2212";
    color: #fff;
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.text {
    text-align: center;
    font-size: 1.6em;
    font-weight: bold;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/*nav {
    background-color: #29142c;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav li{
    display: block;
    font-size: 1.18em;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    border-top: 1.8px solid #29142c;
}

nav li a {
    display: block;
    color: #f67c31;
    padding: 0.5em 2em;
    text-decoration: none;
}*/

/*For humberger button*/
.wrapper {
    width: 100%;
    margin: 0 auto;
}

nav {
    background-color: #29142c;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

nav .logo {
    font-weight: 700;
}

nav ul {
    list-style-type: none;
    display: flex;

}

nav #toggle, nav label {
    display: none;
}

nav li{
    display: block;
    font-size: 1.18em;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    border-top: 1.8px solid #29142c;
}

nav li a {
    display: block;
    color: #41C9E2;
    padding: 0.5em 2em;
    text-decoration: none;
}

.inbtn {
    text-align: center;
    margin: 5px;
}

.btnk {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #29142c;
    color: #31f69a;
    border-radius: 6px;
}

#results3, #results2, #results1 {
    font-weight: bold;
    border-radius: 6em;
    color: #29142c;
    font: 1.5em;
    text-align: center;
}

@media screen and (max-width: 40.625rem) {
    nav .menu {
        width: 100%;
        height: 0;
        overflow: hidden;
        padding: 5px 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        padding: 6px;
    }

    nav label {
        display: inline-flex;
        color: #fff;
        cursor: pointer;
        padding: 5px;
    }

    nav #toggle:checked ~ .menu {
        height: 100%;
    }
}
    


/*Close*/

.other {
    background-color: #29142c;
    text-align: center;
    padding: 10px;
}

.other button {
    background-color: #29142c;
    border: none;
}

.other button {
    background-color: #29142c;
    border: none;
}

.other button a{
    text-decoration: none;
    padding: 5px;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Rubik', sans-serif;
}

.other h3 a {
    color: #f67c31;
    text-decoration: none;
    font-family: 'Rubik', sans-serif;
    font-weight: bold;
    border: solid lightskyblue 1px;
    padding: 5px;
    border-radius: 5px;
    font-size: 25px;
}

/*h2 of section para*/
.para h2 {
    font-size: 12pt;
}

.other button a:hover{
    color: #4fce4b;
    transition: -122s;
}

/*other1*/
.other1 {
    background-color: #0734ff;
    text-align: center;
    padding: 10px;
}

.other1 button {
    background-color: #0734ff;
    border: none;
}

.other1 button {
    background-color: #0734ff;
    border: none;
}

.other1 button a{
    text-decoration: none;
    padding: 5px;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Rubik', sans-serif;
}

.other1 button a:hover{
    color: #000;
    transition: -122s;
}
/*other1*/

/*other2*/
.other2 {
    background-color: #a42838;
    text-align: center;
    padding: 10px;
}

.other2 button {
    background-color: #a42838;
    border: none;
}

.other2 button {
    background-color: #a42838;
    border: none;
}

.other2 button a{
    text-decoration: none;
    padding: 5px;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Rubik', sans-serif;
}

.other2 button a:hover{
    color: #000;
    transition: -122s;
}
/*other2*/

/*other3*/
.other3 {
    background-color: #791273;
    text-align: center;
    padding: 10px;
}

.other3 button {
    background-color: #791273;
    border: none;
}

.other3 button {
    background-color: #791273;
    border: none;
}

.other3 button a{
    text-decoration: none;
    padding: 5px;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Rubik', sans-serif;
}

.other3 button a:hover{
    color: #000;
    transition: -122s;
}
/*other3*/

/*other4*/
.other4 {
    background-color: #31f69a;
    text-align: center;
    padding: 10px;
}

.other4 button {
    background-color: #31f69a;
    border: none;
}

.other4 button {
    background-color: #31f69a;
    border: none;
}

.other4 button a{
    text-decoration: none;
    padding: 5px;
    color: #f2f2f2;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Rubik', sans-serif;
}

.other4 button a:hover{
    color: #000;
    transition: -122s;
}
/*other4*/

/*K53 test sctions*/
.roadSigns {
    background: #dbdeee;
    border: solid #0734ff 1px;
    border-radius: 5px;

}


.quizb1 {
    border-bottom: solid #0734ff 2px;
    border-top: solid #0734ff 2px;
}


.roadRules {
    background: #ebced1;
    border: solid #a42838 1px;
    border-radius: 5px;

}

.quizb2 {
    border-bottom: solid #a42838 2px;
    border-top: solid #a42838 2px;
}

.controls {
    background: #dbbdda;
    border: solid #791273 1px;
    border-radius: 5px;

}

.quizb3 {
    border-bottom: solid #791273 2px;
    border-top: solid #791273 2px;
}

header {
    height: 190px;
}

header h1 {

    width: 25%;
    float: right;
    margin: 0em 5em 2em 0;
}

/*#apply ol{
    width: 800px;
    margin: auto;
}*/

section {
    clear: left;
    color: #29142c;
    background-color: white;
    padding: 5%;
    font-size: 1.1em;
    line-height: 1.6em;
    font-family: 'Rubik', sans-serif;
}

.dot {
    clear: left;
    font-size: 1em;
    margin: auto;
    padding-left: 5%;
    list-style-type:disc;
}

.atpsub li a{
    text-decoration: none;
    color: #a42838;
}



.fee{
    text-decoration: underline;
    font-weight: bold;
}


.border {
        border-top: 0.1em solid #a42838;
}

.application {
    background-color: #055361;
    border-radius: 1em;
    font-size: 1.1em;
    color: #fff;
}

.application1 {
    background-color: #f67c31;
    border-radius: 1em;
    font-size: 1.1em;
    color: #fff;
    padding: 6px;
    margin-bottom: 10px;
}

.application1 ul {
    padding: 3px 30px;
}

.application1 h4 {
    color: #4fce4b;
}

.application2 {
    background-color: hsl(0, 6%, 90%);
    border-radius: 1em;
    padding: 2%;
}

.article1 {
    background-color: hsl(0, 6%, 90%);
    padding: 1em;
    border-radius: 1em;
}

.article2 {
    background-color: hsl(0, 0%, 77%);
    padding: 1em;
    border-radius: 1em;
}

.article3 {
    background-color: hsl(0, 0%, 88%);
    padding: 1em;
    border-radius: 1em;
    box-shadow: 3px 3px 15px #f67c31;
}

#back-to-top-btn {
    display: none; /* hide the button by default */
    position: fixed; /* position the button on the page */
    bottom: 20px;
    right: 20px;
    z-index: 999; /* make sure the button is always on top */
    background-color: #555; /* add background color */
    color: #fff; /* add text color */
    border: none;
    border-radius: 50%;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out; /* add a smooth transition effect */
  }
  
  #back-to-top-btn:hover {
    opacity: 0.7; /* change opacity on hover */
  }
  

.centre {
    text-align: center;
}

.qpaper1 {
    margin: 0;
}

.qpaper1 h2 a {
    text-align: center;
    font-size: 0.5em;
}

.link20 {
    text-decoration: none;
    border: #0734ff solid 0.2em;
    border-radius: 0.5em;
    font-size: 20px;
}

.imgcentre {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

.link21 {
    text-decoration: none;
    border: #31f69a solid 0.2em;
    border-radius: 0.5em;
    font-size: 20px;
}

.main2 {
    clear: left;
    color: #29142c;
    background-color: rgb(255, 255, 255);
    padding: 4%;
    font-size: 1.15em;
    line-height: 1.6em;
    font-family: 'Ibarra Real Nova', serif;
}

.papers {
    background-color: #791273;
    font-weight: bold;
    color: #fff;
    text-align: center;
    padding: 1%;
    margin: 0em;
    border-radius: 1em;
    font-size: 1.2em;
}

.papers1 {
    background-color: #29142c;
    font-weight: bold;
    color: #fff;
    text-align: center;
    padding: 2%;
    margin: 0.1em;
    border-radius: 0.5em;
    font-family: 'Times New Roman', Times, serif;
}


section h1 h2 h3 {
    font-family: 'Libre Franklin', sans-serif;
    line-height: 1.50em;
}


#content {
    background-color: white;
    padding: 1%;
}

#corona{
    border-top: 0.2em solid #a42838;
}

#show h2 { 
    text-align: center;
    background-color: #f67c31;
    color: #29142c;
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

article p a {
    text-decoration: none;
    color: #29142c;
    font-weight: bold;
}


footer {
    text-align: center;
    font-size: 0.85em;
    background-color: #29142c;
    color: #fbad8b;
    padding: 1% 0;
}

footer a {
    color: #fbad8b;
    text-decoration: none;

}

.link {
    color: #f67c31;
    text-decoration: none;
    font-weight: bold;
    background-color: #29142c;
    width: 80%;
    padding: 1%;
    border-radius: 6px;
}

.link1 {
    color: #f67c31;
    font-weight: bold;
    text-decoration: none;
}

.link2 {
    color: #f67c31;
    text-decoration: none;
    font-weight: bold;
    background-color: #29142c;
    width: 100%;
    padding: 1%;
    border-radius: 6px;
    margin: 0 auto;
}

.link3 {
    text-decoration: none;
    width: 80%;
    margin: 0 auto;
    font-weight: bold;
    color: #f67c31;
}

.mobile1 {
    text-decoration: none;
    font-weight: bold;
    width: 80%;
    margin: 0 auto;
    color: #f67c31;
}

.exam {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.open {
    font-weight: bold;
    color: green;
}

.closed {
    font-weight: bold;
    color: red;
}

.coming-soon{
    display: flex;
    align-items: center;
    flex-direction: column;
    
}

.countdown{
   display: grid; 
   grid-template-columns: repeat(4, 1fr);
   gap: 1em;
   padding: 0.5em;
   justify-content: space-around;
   text-align: center;
   background-color: dodgerblue;
   border-radius: 5px; 
   box-shadow: 0 0 7px rgba(0, 0, 0);
   color: #fff;
   font-family: 'Playfair Display', serif;
}

.day,.hour,.minute,.second{
    font-size: 2.8rem;
    background-color: #29142c;
    border-radius: 5px;
    padding: 1.2em 0;
}

.time {
    font-size: 0.8em;
}

/*.nsc {
    background-color: #a42838;
    color: #f67c31;
    border-radius: 6px;
}*/

#nsc {
    color: rgb(224, 17, 17);
    font-weight: bold;
    font-size: 1.20em;
}

aside {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 3px 3px 8px #f67c31;
}

figure {
    border: 3px solid #29142c;
    box-shadow: 5px 5px 8px #f67c31;
    max-width: 205px;
    margin: 2% auto;
}

.figure2 {
    border: 1.5px solid;
    box-shadow: 5px 5px 8px #29142c;
    max-width: 380px;
    margin: 2% auto;
}

.grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 10px;
}

figcaption {
    padding: 2%;
    border-top: 4px solid #29142c;
    font-size: 0.9em;
}

aside {
    grid-column: 1/ span 2;
}

#myTable {
    width: 100%; /* Set the table to take up the full width of its parent container */
    border-collapse: collapse; /* Remove the default border between table cells */
    font-family: Arial, sans-serif; /* Change the font for the table */
  }

  label {
    text-align: left;
  }

  select {
    display: block;
    margin: auto;
    width: 100%;
    text-align: center;
    border: 2px solid;
    border-radius: 9px;
  }
  
  #myTable td {
    padding: 10px; /* Add some padding to the cells */
    border: 1px solid #ccc; /* Add a border around the cells */
    text-align: center; /* Center the text in the cells */
    vertical-align: middle; /* Center the content of the cells vertically */
    background-color: #f9f9f9; /* Add a light gray background color to the cells */
  }

  #aps1Total, #aps2Total, #aps3Total, #aps4Total, #aps5Total, #aps6Total, #aps7Total {
    display: none;
  }
  
  #myTable th {
    padding: 15px; /* Add some padding to the header cells */
    border: 1px solid #ccc; /* Add a border around the header cells */
    text-align: center; /* Center the text in the header cells */
    vertical-align: middle; /* Center the content of the header cells vertically */
    background-color: #29142c; /* Add a green background color to the header cells */
    color: white; /* Change the text color to white */
  }
  
  #myTable tr:hover {
    background-color: #f2f2f2; /* Change the background color of the table rows on hover */
  }

.atps {
    font-weight: bold;
    text-align: center;
}

  
  /* Make the table responsive by making it scroll horizontally on small screens */
  #myTable {
    overflow-x: auto;
  }

caption {
    font-weight: bold;
    font-size: 1.5em;
}

#selectedSubjects, #sum {
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
    background-color: #29142c;
    color: #31f69a;
    margin-bottom: 10px;
    padding: 5px;
}


/* Media Query for Tablet Viewport */
@media screen and (min-width: 620px), print {
    
    .roadSigns, .roadRules, .controls {
        margin: 0 100px;
        padding: 2px 25px;
    }
    

    main {
        font-size: 1em;
    }

    nav li {
        border-top: none;
        display: inline-block;
        font-size: 1.05em;
    }

    nav li a {
        padding: 0.5em;
    }

    .mobile {
        display: none;
    }

    .grid {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 10px;
    }

    .grid2 {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 10px;
    }
    
    aside {
        grid-column: 1/ span 3;
    }
    
    .aside2 {
        grid-column: 1/ span 2;
    }
}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 1000px), print {
    
    .roadSigns, .roadRules, .controls {
        margin: 0 220px;
        padding: 2px 25px;
    }

    main {
        font-size: 1em;
    }


    nav li {
        font-size: 1.10em;
    }

  
    
    nav li a {
        padding: 0.5em 1.5em;
    }
    
    nav li a:hover {
        color: #fbad8b;
        background-color: #29142c;
        
    }
    .nav {
        position: fixed;
        top: 0;
        width: 100%
    }
    
    .link2 {
        padding: 0.4em;
    }

    .mobile {
        display: none;
    }

    .hero {
        padding: 2.5em 0;
    }

    .grid {
        display: grid;
        grid-template-columns: auto auto auto auto;
        grid-gap: 10px;
    }
    
    aside {
        grid-column: 1/ span 4;
    }

    .grid2 {
        grid-template-columns: auto auto auto;
        grid-gap: 30px;
    }
    
    .aside2 {
        grid-column: 1/ span 3;
        font-size: 2em;
    }
}

/* Media Query for Large Desktop Viewports */
@media screen and (min-width: 1921px), print {
    body {
        background: linear-gradient(white, #fbad8b)
    }

    .roadSigns, .roadRules, .controls {
        margin: 0 280px;
        padding: 2px 25px;
    }
    
    #wrapper {
        width: 1920px;
        margin: 0 auto;
    }
    
    section {
        background-color: antiquewhite;
    }

    .grid {
        grid-template-columns: auto auto auto auto;
    }

    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }

    .grid2 {
        grid-template-columns: auto auto auto auto;
    }
    
    .aside2 {
        grid-column: 1/ span 4;
        font-size: 3em;
    }
}

@media print {
    
    body {
        background-color: #fff;
        color: #000;
    }

}

/*font-family: 'Libre Franklin', sans-serif;*/