body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header h1 {
    font-size: 1.5rem;
    margin-top: 1px;
    margin-bottom: 5px;
    color: #F8B144;
}

header p {
    font-size: 1rem;
    margin: 0;
}

/* intro */
.intro {
    color: #123657; /* Primary color for text */
    font-size: 1.1rem; /* Slightly larger text for readability */
    line-height: 1.6; /* Increased line spacing */
    margin: 20px 0; /* Space above and below the intro section */
    padding: 15px; /* Padding inside the intro section */
    text-align: justify; /* Justified alignment for a clean look */
    border-left: 5px solid #F8B144; /* Secondary color border for emphasis */
    background-color: #f9f9f9; /* Light background for contrast */
}

.skills-assessment-scoring {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    /* border: 3px solid #123657; Primary color */
    border-radius: 15px;
    box-shadow: 9px 8px 7px 0px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    width: auto;
    border-left: 5px solid #F8B144;    
}

.skills-assessment-scoring h3 {
    color: #123657; /* Primary color */
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700; /* Bold for emphasis */
    border-bottom: 3px solid #F8B144; /* Secondary color accent */
    padding-bottom: 0.4rem;
    display: inline-block;
}

.skills-assessment-scoring p {
    color: #123657; /* Primary color for text */
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: justify;
}

.skills-assessment-scoring ol {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
}

.skills-assessment-scoring li {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #123657;
}

.skills-assessment-scoring ul {
    margin-top: 0.4rem;
    margin-left: 1.2rem;
    padding-left: 0.8rem;
    list-style: disc;
    font-size: 0.95rem;
    color: #333;
}

.skills-assessment-scoring ul ul {
    list-style: circle;
    margin-left: 1rem;
    color: #555;
}

/* Side-by-side layout for Proficiency and Interest */
.skills-assessment-scoring .skill-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.skills-assessment-scoring .rating-box {    
    padding: 0.8rem;
    background-color: #f1faee;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
}

.skills-assessment-scoring .rating-box b {
    display: block;
    color: #123657; /* Primary color */
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.skills-assessment-scoring .rating-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #333;
}

.skills-assessment-scoring b {
    color: #F8B144; /* Secondary color for bold text */
    font-weight: 600;
}

.rating-number {
    color: #F8B144; /* Secondary color */
    font-weight: bold; /* Makes the number stand out */
    margin-right: 5px; /* Adds spacing between the number and text */
}

.skills-assessment-scoring button {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    color: #fff;
    background-color: #123657; /* Primary color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.skills-assessment-scoring button:hover {
    background-color: #F8B144; /* Secondary color for hover */
}



/* Front Page */
.front-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Instructions Section */
.instructions h2 {
    font-size: 1.8rem;
    color: #1d3557;
    margin-bottom: 20px;
}

.instructions ul {
    list-style-type: none;
    padding: 0;
}

    .instructions ul li {
        margin-bottom: 15px;
        font-size: 1.1rem;
        line-height: 1.8;
    }

        .instructions ul li span {
            font-weight: bold;
            color: #457b9d;
        }

/* Rating Scale Table */
table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 1rem; /* Default font size for larger screens */
    table-layout: fixed; /* Ensures table content doesn't overflow */
}

    table th, table td {
        border: 1px solid #ddd;
        padding: 12px 16px; /* Adjusted padding for a better look */
        text-align: left;
        font-size: 1.2rem; /* Slightly larger font for readability */
        word-wrap: break-word; /* Prevents text overflow */
    }

    table thead {
        background-color: #123657;
        color: white;
        font-size: 1.4rem; /* Slightly larger font for headers */
        text-transform: uppercase; /* Adds a professional touch */
    }

    table tbody tr:nth-child(even) {
        background-color: #f9f9f9; /* Lightened row color */
    }

    table tbody tr:hover {
        background-color: #e1e1e1; /* Hover effect for rows */
    }

    

/* Call to Action Section */
.cta {
    text-align: center;
    margin-top: 40px;
}


/* Additional Tips Section - Improved Styling */
.additional-tips {
    margin-top: 40px;
    padding: 20px;
    background-color: #f1faee;
    border-radius: 8px;
    font-size: 1rem; /* Default font size for readability */
    line-height: 1.8; /* Increased line spacing for clarity */
    color: #333; /* Neutral dark text for better contrast */
}

    .additional-tips h3 {
        font-size: 1.8rem; /* Larger and more prominent heading */
        color: #1d3557;
        margin-bottom: 15px;
        font-weight: bold;
    }

    .additional-tips p {
        font-size: 1.1rem; /* Slightly larger for easier reading */
        margin-bottom: 15px;
    }

/* Start Button - Responsive Design */
.start-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    color: white;
    background-color: #1d3557;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: auto; /* Default width for larger screens */
    max-width: 300px; /* Prevents it from being overly wide on large screens */
}

    .start-button:hover {
        background-color: #457b9d;
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    .start-button i {
        margin-right: 10px;
    }


.logo img {
    width: auto;
    height: auto;
}


/* Dialog Styles */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.dialog-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

.dialog-item {
    margin-bottom: 2rem;
}
/* Header and Footer */
header {
    background-color: #123657; /* Primary brand color */
    color: white;
    text-align: center;
    padding: 15px 0;
    position: sticky;
    width: 100%;
    top: 0;
    flex-shrink: 0;
    z-index: 1000;
}

footer {
    background-color: #123657; /* Primary brand color */
    color: white;
    text-align: center;
    padding: 3px 0;
    position: sticky;
    width: 100%;
    bottom: 0;
    flex-shrink: 0;
}


/* Main Section */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
}

 

/* Assessment Page */
.assessment-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 100%;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 10px;
}

.assessment-container {
    width: 100%;
    max-width: 360px;
    align-items: center;  
    max-height : 360px;
}

.assessment-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 7px 7px 4px 0px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-items: center;       
}

.continue-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 7px 7px 4px 0px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-items: center;       
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
    height: 10px;
    overflow: hidden;
}

.button-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    bottom: 100%; /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    color: black;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevents text from wrapping */
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.button-container:hover .tooltip-text {
    opacity: 1; /* Show tooltip on hover */
    visibility: visible;
}

.progress-bar {
    height: 100%;
    background-color: #2a9d5a; /* Green color for progress */
    border-radius: 8px;
    transition: width 0.3s ease-in-out;
}

/* Card Styling */
.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #123657; /* Primary brand color */
    margin-bottom: 5px;
}

.card-description {
    font-size: 0.9rem;
    color: #6D7984; /* Tertiary brand color */
    margin-bottom: 10px;
}

/* Slider Container */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 5px;
}

.slider {
    width: 80%;
}

.rating {
    font-size: 0.9rem;
    color: #F8B144;
}

/* Card Buttons */
.card-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    margin-top: 15px;
}

/* Success Card */
.success-icon {
    font-size: 3rem;
    color: #F8B144; /* Secondary brand color */
    margin-bottom: 15px;
}

.success-title {
    font-size: 2rem;
    font-weight: bold;
    color: #F8B144; /* Secondary brand color */
    margin-bottom: 10px;
}

.success-description {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

button {
    background-color: transparent; /* No background color */
    color: #123657; /* Icon color */
    border: none;
    font-size: 2rem; /* Larger icon size */
    padding: 15px;
    cursor: pointer;
    text-align: center;
    display: inline-flex; /* Align the icon */
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-sizing: border-box;
}

    button:hover {
        color: #F8B144; /* Icon hover color */
    }

/* Auto width for columns */
.col-description {
    width: 75%; /* Let content determine width */
}

.col-rating {
    width: 25%; /* Let content determine width */
}

/* Responsive Media Query for 480px*/
@media (max-width: 480px) {
    
    header {
        flex-direction: column; /* Stack header elements */
        text-align: center; /* Center-align text */
        padding: 0px;
    }

    header h1 {
        padding:0px;
        width:auto;
        font-size: 1.3rem;
    }

        header p {
            padding: 10px;
            width: 90%;
        }

        .logo {
            padding: 10px;
            width:88%;
        }
        
        .logo img {        
            width: 100%;
        }

    footer {
        text-align: center;
        gap: 5px;
    }


    .instructions, .additional-tips {
        padding: 10px;
        font-size: 0.8rem;
        width: 90%;
    }

    .card-buttons {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    button {
        flex: 1;
        min-width: 80px;
        padding: 10px 12px;
        font-size: 30px;
    }

    .dialog-content {
        width: 90%; /* Adjust width for small screens */
        padding: 15px; /* Reduce padding */
        max-height: 90%; /* Allow more space for content on small screens */
    }
    .assessment-card {        
        margin: 1px;
        padding: 3px; /* Adjust inner padding */
        padding-bottom:10px;
        font-size: 0.8rem; /* Scale down font size for card content */
        box-shadow: none;   
        width:97%;
    }

    
    table th, table td {
        font-size: 0.9rem; /* Smaller font size for very small screens */
        padding: 6px 8px; /* Less padding on very small screens */
    }

    table {
        font-size: 0.8rem; /* Smaller font on very small screens */
    }

    .front-page {
        padding: 0; /* Even less padding on very small screens */
        max-width: 100%; /* Full width for very small screens */
        box-shadow: none; /* Optional: remove shadow on very small screens */
    }
    footer p {
        font-size: 0.8rem;
    }
    footer {
        margin-top:10px;
    }
    .cta {
        padding: 10px;
        font-size: 0.8rem;
        width: 60%;
    }

    .assessment-page {
        padding-bottom: 10px;
        box-shadow: none;
    }
}
/* Responsive Media Query for 360px */
@media (max-width: 360px) {
    header {
        flex-direction: column; /* Stack header elements */
        text-align: center; /* Center-align text */
        padding: 10px;
        gap: 5px;
    }
        header h1 {
            padding: 0px;
            width: auto;
            font-size: 1.2rem;
        }

        header p {
            padding: 3px;
            width: 95%;
        }

    .logo {
        padding: 10px;
        width: 90%;
    }
    .assessment-page {
        box-shadow: none;        
        padding-bottom: 10px;
    }


        .logo img {
            width: 100%;
        }
        
   
    footer {
        text-align: center;
        flex-direction: column; /* Stack footer content */
        gap: 5px;
        padding: 10px; /* Adjust padding */        
    }

    footer p {
        font-size: 0.8rem;
    }


    .instructions{
        padding: 3px;
        font-size: 0.6rem;
        width: 92%;
    }
    .cta {
        padding: 3px;
        font-size: 0.6rem;
        width: 60%;
    }
    .additional-tips {
        padding: 3px;
        font-size: 0.6rem;
        width: 85%;
    }


    .assessment-card {
        margin-left:12px;
        margin-right:5px;
        margin-top:5px;
        margin-bottom: 5px;
        padding: 5px; /* Adjust inner padding */
        font-size: 0.8rem; /* Scale down font size for card content */
        box-shadow: none;
        width:96%;
    }

    .card-buttons {
        gap: 8px;
        display: flex;
        flex-direction: row;
    }
    

    button {
        width: 100%; /* Make buttons full width */
        padding: 8px 10px; /* Adjust padding */        
        font-size: 30px; /*
    }

    .slider-container {
        flex-direction: column; /* Stack slider and rating */
        align-items: center;
        gap: 5px;
    }

    .progress-container {
        margin-top: 5px;
        padding: 2px; /* Add some padding */
        padding-top:1px;
    }

    .progress-bar {
        height: 8.5px; /* Adjust height for smaller screens */
    }

    .dialog-content {
        width: 90%; /* Take almost full width of the screen */
        max-height: 80%; /* Ensure it doesn't exceed the screen height */
        padding: 10px; /* Adjust padding */
        font-size: 0.8rem; /* Scale down font size */
    }

    .dialog-item {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        gap: 5px;
        margin-bottom: 10px; /* Add space between items */
    }

    .success-title,
    .success-description {
        text-align: center;
        font-size: 1rem; /* Slightly reduce success card text size */
        margin: 10px 0;
    }

    .success-icon {
        font-size: 2rem; /* Adjust size for smaller screens */
        text-align: center;
    }

    .button-group {
        flex-direction: row; /* Stack success buttons */
        gap: 3px;
    }

   

    table th, table td {
        font-size: 0.8rem; /* Further reduced font size */
        padding: 5px 7px; /* Reduced padding for extremely narrow screens */
    }

    table {
        font-size: 0.7rem; /* Very small font on ultra-small screens */
    }

        table thead {
            font-size: 1.2rem; /* Keep header font size slightly larger */
        }

    /* Ensure no horizontal overflow */
    table, th, td {
        word-wrap: break-word;
        overflow-x: auto;
    }
    .front-page {
        width:100%;
        padding:4px,2px;
        box-shadow:none;
    }

    .start-button {
        width: 60%;
    }

   

    
}



/* Additional Tips Responsive */
@media (max-width: 768px) {
    .additional-tips {
        font-size: 1rem; /* Maintain readability on small screens */
        padding: 15px; /* Adjust padding for smaller screens */
    }

        .additional-tips h3 {
            font-size: 1.5rem; /* Slightly smaller heading for mobile devices */
        }

        .additional-tips p {
            font-size: 1rem; /* Standardized paragraph size for mobile */
        }
            table th, table td {
                font-size: 1rem; /* Smaller font size on tablets and mobile */
                padding: 10px 12px; /* Adjust padding for smaller screens */
            }

            table {
                font-size: 0.9rem; /* Slightly smaller font for mobile */
            }
        .start-button {
            width: 100%; /* Full-width button on smaller screens */
            font-size: 1rem; /* Slightly reduced font size */
            padding: 12px 20px; /* Adjusted padding for smaller devices */
        }
        .front-page {
            padding: 15px 7.5px; /* Reduced padding for smaller screens */
            max-width: 100%; /* Allow full-width on smaller devices */
        }

        /* Auto width for columns */
        .col-description {
            width: auto; /* Let content determine width */
        }

        .col-rating {
            width: auto; /* Let content determine width */
        }
    

        
}
@media (max-width: 1024px) {
    .front-page {
        padding: 30px 15px; /* Slightly reduced padding for tablets */
        max-width: 900px; /* Adjust max-width for medium screens */
    }    

   
}