/* Global Variables */
:root {
    --primary-blue: #C4D9FF;
    --primary-purple: #C5BAFF;
    --secondary-white: #FBFBFB;
    --text-gray: #666666;
    --alert-red: #FF0000;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom, #E8F9FF, #FBFBFB);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile devices */
}

/* Layout */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column; /* Stack content vertically for smaller screens */
    padding: 2em;
}

/* Typography */
.header {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.label {
    font-size: 16px;
    color: var(--text-gray);
}

h1 {
    color: var(--primary-blue);
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 10px;
    font-size: 20px;
}

h2 {
    color: var(--primary-purple);
    margin-top: 30px;
}

p {
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 40px;
    font-size: 16px;
}

/* Cards */
.card {
    background-color: var(--secondary-white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-purple));
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    flex: 0 0 60%;

}

.btn-secondary {
    background-color: var(--secondary-white);
    color: #000000;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    flex: 0 0 20%;
}

.btn-alert {
    background-color: var(--alert-red);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.1em 1em;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* Input Fields */
.input-field {
    background-color: var(--secondary-white);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 10px;
    color: #333333;
    width: 100%;
    box-sizing: border-box;
}

.input-field::placeholder {
    color: var(--text-gray);
}

/* Icons */
.icon {
    color: var(--primary-blue);
    font-size: 24px;
}

.icon-circle {
    background-color: var(--secondary-white);
    border-radius: 50%;
    padding: 10px;
}

/* Links and Lists */
a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: var(--primary-purple);
}

li{
    padding: 10px;
}

ul {
    list-style: none;
    padding: 0;
}

.block-list{
    margin: 10px 0;
    /*padding: 10px;*/
    background-color: var(--secondary-white);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;

    li.disabled {
        opacity: 0.6;
        cursor: not-allowed !important;
        pointer-events: none;
        background-color: #cccccc !important;
        border-color: #b3b3b3 !important;
        color: white !important;
    }

}

.block-list:hover {
    transform: translateX(10px);
}


/* Button Container */
.button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Optional: Add a semi-transparent background */
}

.button-container a,
.button-container button {
    width: auto; /* Let buttons size naturally */
    max-width: 90%; /* Prevent buttons from exceeding the viewport width */
    text-align: center; /* Center text inside buttons */
    box-sizing: border-box; /* Include padding in width calculations */
    padding: 10px 20px;
    margin: 0 10px; /* Add some spacing between the buttons */
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    body {
    /*.button-container {*/
    /*    flex-direction: column;*/
    /*    !* Stack buttons vertically on smaller screens *!*/
    /*    align-items: stretch;*/
    /*    !* Make buttons take full width *!*/
        padding: 10px;
        overflow-x: hidden;
        font-size: 14px;
    }

    h1 {
        font-size: 16px; /* Further reduce font size for very small screens */
        text-align: center;
        padding: 10px;
        margin-bottom: 10px;
    }
    h2 {
        font-size: 16px; /* Adjust subheading size */
        text-align: center;
        margin-top: 20px;
    }

    ul {
        padding: 0;
        margin-top: 10px;
    }

    li {
        font-size: 14px; /* Adjust list item text size */
        margin: 5px auto; /* Center list items */
        padding: 10px;
        width: auto; /* Ensure proper width on small screens */
        box-shadow: none; /* Simplify styling for mobile */
    }

    p {
        font-size: 14px; /* Adjust paragraph text size */
        margin-top: 10px;
    }
    .button-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%; /* Ensure container spans the full viewport width */
        display: flex;
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        align-items: center; /* Center buttons horizontally */
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.8);
        gap: 10px; /* Add spacing between buttons */
        box-sizing: border-box; /* Prevent padding from causing overflow */
    }

    .button-container a,
    .button-container button {
        width: 100%; /* Make buttons take full width of container */
        margin: 5px 0; /* Add spacing between vertically stacked buttons */
        padding: 10px; /* Reduce padding for smaller screens */
        font-size: 14px;
    }

    .social-media-links {
        flex-direction: column; /* Stack social links vertically */
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .btn-primary {
        width: auto; /* Allow button to fit content naturally */
        max-width: 90%; /* Prevent button from exceeding viewport width */
        font-size: 14px; /* Adjust button text size for readability */
        text-align: center;

    }

    .nav-icon{
        padding: 0.5em 1em;
        font-size: 10px;
        /*margin: 5px 0;*/
        /* Add spacing between vertically stacked buttons */
    }


}

/* Spacing Utilities */
.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        margin: 0 auto;
    }
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
    background-color: #cccccc !important;
    border-color: #b3b3b3 !important;
    color: #666666 !important;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, 40px);
    }

    100% {
        transform: translate(0, 0);
    }

}

.answer-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.answer-button {
    padding: 12px 24px;
    font-size: 16px;
    border: 2px solid var(--primary-blue);
    background-color: var(--secondary-white);
    color: var(--text-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.answer-button:hover {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 3.5px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.answer-button:active {
    transform: translateY(1px);
    box-shadow: 0 3.5px 4px rgba(0, 0, 0, 0.1);
}

.answer-button.selected {
    color: white;
    background-color: var(--primary-purple);
    box-shadow: 0 3.5px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}


/* Styling for the boolean options answers*/
.boolean-options {
    gap: 20px;
}

.boolean-options .answer-button {
    min-width: 120px;
}

/* Styles for Submit and Skip buttons*/

.action-buttons {
    gap: 15px;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Styling for the submit button*/
#submitButton {
    font-size: 16px;
    padding: 12px 30px;
    border: 2px solid var(--primary-blue);
    background-color: var(--primary-blue);
    color: white;
    cursor: pointer;
    border-radius: 7.5px;
    transition: all 0.3s ease;
    min-width: 120px;
}

#submitButton:hover {
    color: var(--primary-blue);
    background-color: white;
    box-shadow: 0 3.5px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/*Styling for the Skip button*/
#skipButton {
    font-size: 16px;
    padding: 12px 30px;
    border: 2px solid var(--text-gray);
    background-color: transparent;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: 7.5px;
    transition: all 0.3s ease;
    min-width: 120px;

}

#skipButton:hover {
    color: var(--text-gray);
    background-color: white;
    box-shadow: 0 3.5px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);

}

#skipButton:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

#continueButton {
    display: flex;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center if needed */
    width: 100%;
}

#continueButton a {
    display: inline-block;
    margin: 0 auto; /* Center horizontally */
}



.social-media-links {
    display: flex;
    justify-content: center;
    margin-top: 2em;
    flex-direction: row;
    gap: 2em;
    padding: 2em;
    text-align: center;
}

/* Ensure images scale properly */
img {
    max-width: 100%;
    height: auto;
}

/* Make sure links and buttons are easily clickable on mobile */
a, button {
    cursor: pointer;
    min-height: 40px; /* Ensure buttons are large enough for touch */
}

.nav-icon-container {
    position: fixed;
    top: 0;
    /*right: 0.5em;*/
    display: flex;
    flex-direction: row;
    gap: 2em;
    left: 0;
    width: 100%; /* Ensure container spans the full viewport width */
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-sizing: border-box; /* Prevent padding from causing overflow */
    justify-content: end;
}

.nav-icon {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    /*background-color: var(--secondary-white);*/
    /*padding: 0.1em 1em;*/
    /*border: 1px solid var(--primary-blue);*/
    /*border-radius: 1em;*/
}

.nav-icon:hover {
    color: var(--primary-purple);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5em;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

/*test.html*/
.test-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    padding: 12px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
}
.result-pass {
    color: green;
    font-weight: bold;
}
.result-fail {
    color: red;
    font-weight: bold;
}
.testing-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}
