html {
    scroll-padding-top: 3em;
    /* Adjust based on navbar height */
}

body {
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.site_intro{
    width: fit-content;
    margin: auto;
    margin-top: 1em;
    background: var(--theme-background);
    padding: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 2em;
    font-size: 1em;
}

.sliding-div-from-left {
    flex: 1 1 auto;
    min-width: 10em;
    color: var(--theme-background);
    font-size: 1.5em;
    opacity: 0;
    animation: slideInFromLeft 1s forwards;
    transform: translateX(-120%);
}

.sliding-div-from-right {
    flex: 1 1 auto;
    color: var(--theme-background);
    vertical-align: top;
    font-size: 1.5em;
    text-align: center;
    margin-left:1em;
    margin-right:1em;
}

.slider1 {
    display: inline-block;
    border: 0px solid var(--theme-foreground);
    border-radius: 1em;
    padding: .5em 0em;
    margin-top: .5em;
    font-size: clamp(1vw, 4vw, 80%);
    transform: translateX(100%);
    opacity: 0;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    cursor: pointer;
    text-align: center;
    transition: text-shadow 0.6s ease;
}

.slider1:hover {
    text-shadow: 0 0 2px var(--theme-highlight-soft), 0 0 2px var(--theme-highlight-soft), 0 0 2px var(--theme-highlight-soft), 0 0 2px var(--theme-highlight-soft);
}

.slider1::after {
    content: '';
    display: block;
    width: 0%;
    height: 1px;
    background-color: var(--theme-highlight-hard);
    position: absolute;
    bottom: 0;
    left: 50%;

    transform: translateX(-50%);
    transition: width 0.6s ease;
}

.slider1:hover::after {
    width: 90%;
}

.slide-in-fade-in {
    animation: slideInFadeIn 1s ease-in-out forwards;
}


@keyframes slideInFromLeft {
    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    to {
        transform: translateX(0%);
    }
}

@keyframes slideInFadeIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.icon1 {
    display: inline-block;
    direction: ltr;
    color: var(--theme-highlight-hard);
    font-weight: bold;
    margin-right: .5em;
    background-color: transparent;
    border: 2px solid var(--theme-highlight-hard);
    /* Circle color */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: drawCircle 2s ease-out infinite;
}

.spinbutton {
    background: none;
    border: 0;
    box-sizing: border-box;
    margin-top: .2em;
    margin-bottom: .2em;
    padding: 1em 2em;
    box-shadow: inset 0 0 0 2px var(--theme-highlight-hard);
    color: var(--theme-highlight-hard);
    font-size: inherit;
    font-weight: 700;
    position: relative;
    vertical-align: middle;
    opacity: 0;
}

.spinbutton::before,
.spinbutton::after {
    box-sizing: inherit;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

.spin {
    width: 2em;
    height: 2em;
    padding: 0;
    display: inline-block;
}

.spin.active {
    color: var(--theme-highlight-hard);
    opacity: 1;
    text-shadow: 0 0 1px var(--theme-highlight-hard), 0 0 2px var(--theme-highlight-hard), 0 0 3px var(--theme-highlight-hard), 0 0 4px var(--theme-highlight-hard);
}

.spin::before,
.spin::after {
    top: 0;
    left: 0;
}

.spin::before {
    border: 2px solid transparent;
}

.spin.active::before {
    border-top-color: var(--theme-highlight-hard);
    border-right-color: var(--theme-highlight-hard);
    border-bottom-color: var(--theme-highlight-hard);
    transition: border-top-color 0.15s linear, border-right-color 0.15s linear 0.1s, border-bottom-color 0.15s linear 0.2s;
    text-shadow: 0 0 1px var(--theme-highlight-hard), 0 0 2px var(--theme-highlight-hard), 0 0 3px var(--theme-highlight-hard), 0 0 4px var(--theme-highlight-hard);
}

.spin::after {
    border: 0 solid transparent;
}

.spin.active::after {
    border-top: 2px solid var(--theme-highlight-hard);
    border-left-width: 2px;
    border-right-width: 2px;
    transform: rotate(270deg);

    transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s;
}

.circle {
    border-radius: 100%;
    box-shadow: none;
}

.circle::before,
.circle::after {
    border-radius: 100%;
}


.circle {
    border-radius: 100%;
    box-shadow: none;
}

.circle::before,
.circle::after {
    border-radius: 100%;
}


/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Bounce animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Swing animation */
@keyframes swing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

/* Shake animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25%,
    75% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }
}


.tablet {
    position: relative;
    width: 90%;
    max-width: 20em;
    height: 19em;
    max-height: 80%;
    background-color: var(--theme-foreground);
    border-radius: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: .9em 0em;
    box-shadow: 0px 4px 10px var(--theme-foreground);
    margin: auto;
    padding-bottom: 3em;
    direction: ltr;
    min-width: 260px;
}

.screen {
    flex: 1;
    width: 90%;
    background-color: var(--theme-background);
    border-radius: .3em;
    padding: 1em;
    box-shadow: inset 0px 4px 10px var(--theme-foreground);
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.camera {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--theme-foreground);
    border-radius: 50%;
    margin-top: 0.1em;
}

.button {
    position: absolute;
    bottom: .5em;
    width: 40px;
    height: 40px;
    background-color: var(--theme-foreground-light);
    border-radius: 50%;
    margin-bottom: 0.5em;
}

.question {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: var(--theme-foreground);
}

.option {
    padding: 0.5em 1em;
    background-color: var(--theme-background-light);
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--theme-foreground);
    cursor: pointer;
    transition: background-color 0.2s;
    max-width: 14em;
}

.option:hover {
    background-color: #ffb7b7;
}

.chart-container {
    position: absolute;
    bottom: 4em;
    margin: auto;
}

.chart {
    display: flex;
    align-items: flex-end;
    height: 300px;
    gap: 20px;
}

.bar {
    width: 40px;
    border-radius: 5px 5px 0 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.bar[data-height="50"] {
    height: 3em;
    background-color: #181;
}

.bar[data-height="100"] {
    height: 6em;
    background-color: #b40000;
}

.bar[data-height="150"] {
    height: 7em;
    background-color: #15f;
}

.bar[data-height="200"] {
    height: 8em;
    background-color: #CA0;
}

#exam-id {
    font-size: larger;
}


/*    home page */
.exam_features_div {
    display: flex;
    justify-content: space-around;
    /* Space between items */
    gap: 15px;
    /* Space between boxes */
    flex-wrap: wrap;
    /* Allows wrapping when screen is small */
    margin-bottom: 0em;
}

/* Box styling */
.exam_feature_div {
    flex: 1;
    /* Makes all boxes equal width */
    min-width: 250px;
    /* Prevents boxes from getting too small */
    max-width: 30%;
    /* Ensures they fit in one row */
    padding: 0em;
    font-weight: bold;
    color: var(--theme-foreground);
    font-size: 1.2em;
    text-align: center;
    border-radius: .5em;
}

/* Responsive: Stack boxes on small screens */
@media (max-width: 768px) {
    .exam_feature_div {
        max-width: 100%;
        /* Full width */
    }
    .exam_feature_div svg{
        height:1em;
    }
}


.features_group_div {
    text-align: center;
    margin: auto;
    margin-top: 2em;
    padding: 1em;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: var(--theme-background);
    box-shadow: 0 0 10px var(--theme-foreground-light);
    width:98%;
    border-radius: 1em;
}

.features_group_top_feature_p {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--theme-highlight-hard);
    text-align: center;
    /* text-shadow: 0 0 1px #181, 0 0 1px #181, 0 0 1px #181, 0 0 1px #181; */
    width: 90%;
    max-width: 30em;
    margin: auto;
    margin-bottom: 1em;
}

.exam_feature_div {
    font-family: monospace;
    font-size: 130%;
}

.exam_feature_div img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
height: 2em;
}

.exam_feature_div img.lazy-loaded {
    opacity: .7;
}

.company_preview {
    width: 90%;
    margin: auto;
    margin-top: 2em;
    background: var(--theme-background);
    padding: 2em;
    box-shadow: 0 0 10px var(--theme-foreground);
    border-radius: 8px;
    margin-bottom: 2em;
}

h1,h2 {
    color: var(--theme-highlight-hard);
}

p {
    color: var(--theme-foreground);
    line-height: 1.6;
}


.counter-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .counter-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 360px) {
    .counter-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.counter-box {
    background: var(--theme-background-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px var(--theme-foreground-light);
    font-size: 20px;
    font-weight: bold;
}

.count {
    font-size: 30px;
    color: var(--theme-highlight-hard);
}



.social-icons i {
    font-size: 20px;
    margin: 0 8px;
}

.copyright {
    font-size: 14px;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
