/* Base Reset & Typography */

html {
    background-color: #6b44c1;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    font-family: "kit-rounded", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 120%;
}
.mob-only {
    display: none;
}
/* Typography */
h2, h3, h4, h5, h6, .pros, .cons {
    font-weight: 700;
    color: #4e2aa5;
    width: 100%;
}
h2, h3 {
    text-shadow: 2px 2px 0 #febc02;
}
h3, .pros, .cons {
    font-size: 140%;
}
h4 {
    font-size: 140%;
}
p {
    width: 100%;
    margin-bottom: 10px;
}
b, strong {
    font-weight: 700;
}
.centre {
    text-align: center;
}
.ghosted {
    opacity: 0.2;
}
.highlight {
    background-image: url("../img/highlight-amber.png");
    background-position: top center;
    background-repeat: no-repeat;
    font-weight: 700;
    padding: 0 5px 0 5px;
    color: #4e2aa5;
}
hr, .subsection {
    margin: 15px 0 15px 0;
    clear: both;
    width: 100%;
    border: none;
    border-bottom: 3px dotted #febc02;
}
.clear {
    clear: both;
    width: 100%;
}
.subsection {
    border-bottom: 1px dotted #febc02;
}
.space40 {
    width: 100%;
    clear: both;
    margin-top: 20px;
    margin-bottom: 20px;
}
.main-content li, .force {
    margin-left: 30px !important;
}
.main-content li::marker, .force::marker {
    color: #6b44c1 !important;
}
.force {
    list-style: disc !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Header */
header {
    background-image: url("/img/halftone-top.png");
}
footer {
    background-image: url("/img/halftone-bottom.png");
}
header, footer {
    background-size: cover;
    background-color: #6b44c1;
    color: #fff;
    padding: 1rem;
    text-align: center;
}
header h1 {
    line-height: 1em;
    font-size: 300%;
    font-weight: 800;
    padding-top: 1rem;
}
header h1 a {
    text-decoration: none;
    text-shadow: 5px 5px 0 #4e2aa5;
    color: #fff;
}
header h1 a:hover {
    color: #febc02;
}
.container h2 {
    font-size: 225%;
}
#header-home h2 {
    font-size: 350%;
}
#header-submenu h2, #header-page h2 {
    font-size: 250%;
}
#header-home h2, #header-home h3, #header-page h2, #header-submenu h2, #header-submenu h3 {
    padding-top: 2rem;
    text-shadow: 3px 3px 0 #2e1e6b;
}
#header-home h2, #header-submenu h2, #header-page h2 {
    line-height: 1em;
    color: #febc02;
}
#header-home h3, #header-submenu h3 {
    line-height: 1.2em;
    font-size: 150%;
    color: #fff;
    font-weight: 300;
}
#header-home h3 strong, #header-submenu h3 strong {
    font-weight: 700;
}
/* Content */
.main-content {
    clear: both;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px; /* Space between the boxes */
}
/* Homepage Elements */
#header-home, #header-submenu, #header-page {
    background-image: url("/img/halftone-header.png");
    background-size: cover;
    background-color: #4e2aa5;
    padding: 0;
    overflow: hidden;
}
#header-home {
    height: 500px;
}
#header-submenu {
    height: 250px;
}
#header-page {
    height: 175px;
}
#header-home .half, #header-submenu .half, #header-page .half {
    padding: 0 0 0 2rem;
    justify-content: center;
    align-items: center;
}
#header-home .half img, #header-submenu .half img {
    margin: auto;
    width: 100%;
    display: block;
}
#header-home .half img {
    max-height: 500px !important;
    max-width: 500px !important;
}
#header-submenu .half img {
    max-height: 250px !important;
    max-width: 250px !important;
}
/* On page formatting */
.container .main-content .half, .full {
    padding: 0 0 1.5rem 1rem;
    border-bottom: 3px dotted #febc02;
}
.half {
    flex: 1 1 calc(50% - 10px);
    padding-top: 0.2rem;
    box-sizing: border-box;
}
.third {
    flex: 1 1 calc(30% - 10px);
    padding-top: 0.2rem;
    box-sizing: border-box;
}
.twothird {
    flex: 1 1 calc(70% - 10px);
    padding-top: 0.2rem;
    box-sizing: border-box;
}
.quarter {
    flex: 1 1 calc(25% - 20px);
    padding-top: 0.2rem;
    box-sizing: border-box;
}
.full {
    flex: 1 1 100%;
}
.container .main-content .full:first-child, .container .main-content .half:first-child {
    border-top: none;
}
.vborder {
    border-left: 3px dotted #ddd;
}
/* Menu cards */
.card {
    flex: 1 1 calc(33% - 10px);
    padding: 1rem;
    box-sizing: border-box;
    border: 5px solid #4e2aa5;
    background-position: bottom right;
    background-repeat: no-repeat;
    border-radius: 20px;
    font-weight: 700;
    display: block;
}
.card a {
    text-decoration: none;
    color: #4e2aa5;
}
.card li::marker {
    color: #febc02;
}
.card a:hover {
    color: #febc02;
    transition: color 0.3s ease;
}
.card.quiz {
    background-image: url("../img/card-quiz.png");
}
.card.cybersecurity {
    background-image: url("../img/card-cybersecurity.png");
}
.card.hacking {
    background-image: url("../img/card-hacking.png");
}
.card.soceng {
    background-image: url("../img/card-soceng.png");
}
.card.datint {
    background-image: url("../img/card-datint.png");
}
.card.ks3 {
    background-image: url("../img/card-ks3.png");
}
.card.input-output {
    background-image: url("../img/card-input-process-output.png");
}
.card.cpu {
    background-image: url("../img/card-cpu.png");
}
.card.storage {
    background-image: url("../img/card-storage.png");
}
.card.components {
    background-image: url("../img/card-components.png");
}
/* Hamburger Button */
.menu-toggle, .search-toggle {
    width: 40px;
    height: 40px;
    overflow: hidden;
    background-color: #444;
    border: none;
    padding-top: 4px;
    font-size: 18px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    z-index: 1001;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}
.menu-toggle img, .search-toggle img {
    margin: auto;
}
.menu-toggle {
    left: 10px;
}
.search-toggle {
    right: 10px;
}
.menu-toggle:hover, .search-toggle:hover {
    background-color: #666;
}
/* Top Nav Styling */
.top-nav, .search-nav {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 1s ease;
}
.top-nav ul, .search-nav ul {
    margin-top: 100px;
    list-style: none;
    text-align: center;
}
.top-nav li, .search-nav li {
    display: block;
    padding-left: 0;
    margin: 1rem 0 2rem 0;
    font-weight: 700;
    width: 100%;
    padding: 1rem 1rem 0 1rem;
}
.top-nav a, .search-nav a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    display: block;
}
.top-nav a:hover, .search-nav a:hover {
    border-radius: 40px;
    background-color: #febc02;
}
/* When nav is visible */
.top-nav.show, .search-nav.show {
    display: flex;
    opacity: 1;
}
/* Blur effect */
.blurred {
    filter: blur(5px);
    transition: filter 0.3s ease;
}
/* Layout Container */
.container {
    background-image: url("/img/halftone-body.png");
    background-size: cover;
    background-repeat: no-repeat;
    padding: 2rem;
}
/* Images */
.main-content img {
    padding: 0 20px 20px 0;
    width: 40%;
    max-width: 250px;
}
.main-content .left {
    float: left;
    padding: 0 20px 10px 0;
}
.main-content .right {
    float: right;
    padding: 0 0 10px 20px;
}
.third h3 {
    text-align: center;
}
.scale75 {
    min-width: 75%;
    display: block;
}
img.scale75 {
    margin: auto;
    padding: 0;
}
.max100, .max175, .max250, .max500 {
    height: auto !important;
    width: auto !important;
}
.max100 {
    max-width: 100px !important;
}
.max175 {
    max-width: 175px !important;
}
.max250 {
    max-width: 250px !important;
}
.max500 {
    max-width: 500px !important;
}
.third img {
    width: 75%;
    margin: auto;
    display: flex;
}
.diagram50 {
    width: 50% !important;
    max-width: 50% !important;
}
.diagram75 {
    width: 75% !important;
    max-width: 75% !important;
}
.diagram100 {
    width: 100% !important;
    max-width: 100% !important;
}
.diagram50, .diagram75, .diagram100 {
    height: auto;
}
/* Breadcrumbs */
.breadcrumbswrapper {
    background-image: url("/img/halftone-top.png");
    background-size: cover;
    background-color: #2e1e6b;
    padding: 1rem 1rem 0.5rem 1rem;
    color: #fff;
}
.breadcrumb-nav .breadcrumb {
    display: flex; /* Make the list items appear in a row */
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
}
.breadcrumb-nav .breadcrumb-item {
    display: inline-flex; /* Make items inline blocks for spacing */
    align-items: center; /* Vertically align the text and arrow */
}
.breadcrumb-nav .breadcrumb-item:not(:last-child)::after {
    content: "→"; /* Add an arrow (you can use other symbols or images) */
    margin: 0 0.5em; /* Add some spacing around the arrow */
    color: #febc02; /* Adjust arrow color */
}
.breadcrumb-nav .breadcrumb-item a {
    text-decoration: none;
    color: #febc02;
    transition: color 0.3s ease;
}
.breadcrumb-nav .breadcrumb-item a:hover {
    color: #fff;
}
.breadcrumb-nav .breadcrumb-item.active {
    color: #fff; /* Style for the current page */
}
/* Pros and Cons */
.pros, .cons {
    height: 60px;
    padding: 0 0 0 70px;
    clear: both;
}
.pros {
    background: url("/img/thumb-up.png") left top no-repeat;
    color: #037F3D;
}
.cons {
    background: url("/img/thumb-down.png") left top no-repeat;
    color: #910002;
}
ul.prosList li::marker {
    color: #037F3D;
}
ul.consList li::marker {
    color: #910002;
}
/* Quiz */
#quiz-form {
    width: 100%;
}
.question {
    margin: 10px auto 15px auto;
    padding: 15px;
    border: 1px #4e2aa5 solid;
    border-radius: 20px;
}
.question:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}
.question-text {
    font-weight: bold;
    margin-bottom: 15px;
    color: #444;
}
.answertext {
    padding-top: 8px;
}
.options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}
.options .answers {
    padding: 10px;
    min-height: 30px;
    display: block;
    margin-bottom: 0;
    flex-basis: calc(50% - 7.5px);
    flex-grow: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #E7E7E7;
    border: 1px solid #c0c0c0;
    border-radius: 35px;
}
.options button {
    width: 40px;
    height: 40px;
    float: left;
    margin-right: 20px;
    /* Inherit button styles from previous definitions */
    text-align: left;
    border: 1px solid #c0c0c0;
    border-radius: 50%;
    cursor: pointer;
    background-color: #4e2aa5;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1em;
    color: #555;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    -webkit-tap-highlight-color: transparent;
}
.options button:hover:not(:disabled) {
    background-color: #febc02;
    border-color: #bf8d02;
}
.options button.selected {
    background-color: #febc02;
    border-color: #bf8d02;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.options button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}
.feedback {
    width: 100%;
    margin-top: 10px;
    font-weight: bold;
    text-align: right; /* Align feedback to the right */
}
.correct {
    color: #28a745; /* Green */
}
.incorrect {
    color: #dc3545; /* Red */
}
.submit-button, .revealbutton {
    margin: auto;
    background-color: #4e2aa5;
    color: white;
    border: none;
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}
.submit-button {
    padding: 15px;
    font-size: 1.2em;
    display: block;
    width: 50%;
}
.revealbutton {
    font-size: 150%;
    font-weight: 700;
    padding: 10px 12px 0 12px;
}
.submit-button:hover, .revealbutton:hover {
    background-color: #febc02;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}
#results {
    width: 100%;
    padding-top: 5px;
}
#results p {
    text-align: center;
    margin-bottom: 20px;
    color: #444;
}
#answer-details ul {
    list-style: none;
    padding: 0;
}
#answer-details li {
    border: 1px #4e2aa5 solid;
    border-radius: 20px;
    padding: 15px;
    margin: 0;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}
/* Pagination */
#paginate {
    min-height: 63px;
    padding: 0;
    margin: 0;
    width: 100%;
    background-image: url("/img/halftone-pagination.jpg");
    background-size: cover;
}
#paginate .third {
    padding: 0;
    margin: 20px 0 0 0;
}
#paginate .left {
    text-align: left;
    margin-left: 20px;
}
#paginate .middle {
    text-align: center;
}
#paginate .right {
    text-align: right;
    margin-right: 20px;
}
#paginate a {
    text-decoration: none;
    overflow: hidden;
    color: #febc02;
    padding: 5px 10px 0px 10px;
    border: 2px #febc02 solid;
    border-radius: 20px;
    transition: 0.2s ease;
}
#paginate a:hover {
    color: #4e2aa5;
    background: #febc02;
}
/* Click show */
.clickshow:hover {
    cursor: pointer;
}
.clickshow {
    display: flex;
    flex-wrap: wrap;
}
.hide {
    display: none;
}
.reveal {
    width: 100%;
}
.revealhalf {
    padding-top: 20px;
    width: 50%;
    float: left;
}
#refresh {
    margin-top: 40px;
    width: 300px;
    text-align: center;
    display: block;
}
/* Responsive */
@media (max-width: 768px) {
    .no-mob {
        display: none;
    }
    .mob-only {
        display: block;
    }
    .main-content {
        flex-direction: column;
    }
    .container .main-content .half:nth-child(even) {
        border-left: none;
        padding-left: 0;
    }
    .vborder {
        border-left: none;
    }
    .top-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .menu-toggle {
        display: block;
        margin: 10px;
        top: 10px;
    }
    .top-nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
    }
    .top-nav.show ul {
        display: flex;
    }
    header {
        font-size: 40%;
    }
    #header-home {
        min-height: auto;
    }
    #header-home h2, #header-submenu h2 {
        font-size: 210%;
    }
    #header-home h3, #header-submenu h3 {
        padding-top: 0;
        font-size: 130%;
    }
    .scale75 {
        min-width: 100%;
    }
    .diagram50 {
        width: 100% !important;
        max-width: 100% !important;
        clear: both;
        height: auto;
    }
    .revealhalf {
        width: 100%;
    }
    /* Quiz */
    .options {
        flex-direction: column; /* Stack items vertically (one per row) */
        gap: 10px; /* Adjust gap for single column layout */
    }
    /* Pagination */
    .third, .twothird {
        flex: 1 1 100%;
    }
    #paginate {
        padding: 5px 0 5px 0;
    }
    #paginate .third {
        margin: 0;
        padding: 0;
        max-height: 40px;
        overflow: hidden;
    }
    #paginate a {
        width: 90%;
        margin: auto;
        display: block;
    }
}