:root {
    font-size: 62.5%;
    /* Vars */
    --form-width: 40vw;
    --tests-count: 5;
    /* Colors */
    --primary: #e57b00;
    --secondary: #061232;
    --light-primary: #ffffff;
    --light-secondary: #fafafa;
    --dark: #000000;
    --grey: #e2e2e2;
    --sub-text: #a9a7a9;
}

body {
    background-color: var(--light-primary);
    font-size: 1.2rem;
    font-family: "Inter", sans-serif;
    font-style: normal;
}

.hidden {
    display: none;
}

nav {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

nav > ul {
    display: flex;
    justify-content: right;
    align-items: center;
    padding-right: 2rem;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--primary);
}

nav > ul a {
    background-color: var(--dark);
    color: var(--light-primary);
    padding: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    &:hover {
        background-color: var(--light-primary);
        color: var(--dark);
        cursor: pointer;
    }
}

nav img {
    height: 5rem;
    margin: 0 auto;
}

h1 {
    font-family: "Oswald", sans-serif;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5rem;
}

/* Form styling */
.form-wrapper {
    width: var(--form-width);
    margin: 0 auto;
    overflow-x: hidden;

    button {
        position: fixed;
        top: 50%;
        border: none;
        background-color: var(--primary);
        color: var(--light-primary);
        border-radius: 50%;
        width: 5rem;
        height: 5rem;
        font-size: 2rem;
        line-height: 1rem;
        padding-left: 0.8rem;
        cursor: pointer;
        transition: scale 0.1s ease-out;

        &:hover {
            background-color: var(--secondary);
            scale: 1.2;
        }

        &#prev {
            left: calc((100vw - var(--form-width)) / 3);
            transform: scaleX(-1);
        }

        &#next {
            right: calc((100vw - var(--form-width)) / 3);
        }
    }
}

form {
    width: calc(var(--form-width) * var(--tests-count));
    display: flex;
    transition: translate 0.1s ease;

    /* Test Div */
    > div {
        width: var(--form-width);
        font-size: 1.5rem;
        margin-bottom: 5rem;

        > div.test-text > p {
            margin-bottom: 1rem;
            font-size: 1.8rem;

            &:last-child {
                margin-bottom: 4rem;
            }
        }

        > div.question {
            background-color: var(--grey);
            margin-bottom: 2rem;
            padding: 2rem 1rem;

            h2 {
                margin-bottom: 1.5rem;
                font-size: 1.5rem;
                font-weight: bold;
            }

            input {
                margin-bottom: 1rem;
            }
        }

        &:last-child {
            display: flex;
            flex-direction: column;
        }
    }

    input[type="submit"] {
        width: fit-content;
        align-self: center;
        border: none;
        background-color: var(--primary);
        color: var(--light-primary);
        padding: 1rem 5rem;
        border-radius: 1rem;
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        transition: scale 0.1s ease-out;

        &:hover {
            background-color: var(--secondary);
            scale: 1.1;
        }
    }
}
