
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--backgroundMain);
    color: var(--almostBlack);

    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 12px;
}

a {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
}


/****** GENERAL LAYOUT ******/

.header {
    height: 60px;
    background-color: var(--almostBlack);
    padding: 20px;
    color: var(--white);
    font-size: 0.9em;
    display: flex;
}

.logo {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    opacity: 0.8;
    text-transform: uppercase;
    color: var(--accent);
}

.logo a {
    color: var(--accent);
    text-decoration: none;
}

.logo .muted {
    font-weight: 300;
    opacity: 0.5;
    text-transform: none;
}

.content {
    padding: 20px;
}


/****** MENU ******/

.menu {
    flex: 1;
    text-align: right;
}

.menu ul {
    list-style: none;
    list-style-type: none;
}

.menu ul li {
    display: inline-block;
    margin-left: 30px;
}

.menu ul li a {
    color: var(--whiteMuted);
    transition: color 0.2s ease;
}

.menu ul li a.active {
    color: var(--accent);
}

.menu ul li a:hover {
    color: var(--accent);
}


/****** BUTTONS ******/

.button {
    display: inline-block;
    border-radius: 4px;
    padding: 8px 16px;
    color: var(--mediumGray);
    transition: color 0.2s ease;
}

.button:hover {
    color: var(--white);
}

.secondary {
    background-color: var(--semiGray);
    transition: background-color 0.2s ease;
}

.secondary:hover {
    background-color: var(--mediumGray);
}



.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.new_action {
    display: inline-block;
    float: right;
}


.test_container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: auto;
    text-align: center;
}

.test_progress {
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.8em;
    color: var(--darkGray);
}

.test_progress_bar {
    display: block;
    position: relative;
    height: 4px;
    border-radius: 2px;
    background-color: var(--whiteMuted);
    margin-bottom: 20px;
    z-index: -1;
}

.progress_bar {
    display: block;
    height: 4px;
    top: 0;
    left: 0;
    background-color: var(--accent);
    border-radius: 2px;
    z-index: 1;
}


.test_id {
    background-color: var(--whiteMuted);
    border-radius: 4px;
    opacity: 0.5;
    display: inline;
    width: 80px;
    padding: 2px 8px;
    margin: auto;
}

.test_category {
    font-style: italic;
    color: var(--mediumGray);
}

.test_image {
    width: 100%;
    max-height: 250px;
    display: block;
    margin-bottom: 20px;
}

.test_image img {
    max-height: 250px;
    max-width: 100%;
    border-radius: 4px;
}

.test_question {
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 1.2em;
}

.test_answers {
    display: flex;
    flex-direction: column;
}

.radio_container {
    position: relative;
    display: block;
    z-index: 999;
    cursor: pointer;
    width: 100%;
    margin-bottom: 24px;
    margin-top: 14px;
}

.radio_container label {
    display: block;
    cursor: pointer;
    padding-top: 4px;
}

.radio_container:hover input ~ .radio_background {
    border: 2px solid var(--mediumGray);
}

.radio_container input:checked ~ .radio_background {
    border: 3px solid var(--accent);
    background-color: var(--accentMuted);
 }

.radio_background {
    position: absolute;
    top: -10px;
    left: 0;
    height: 50px;
    width: 100%;
    border-radius: 4px;
    background-color: var(--whiteMuted);
    z-index: -1;
    cursor: pointer;

}

.test_answers > .radio_container > label > input[type=radio] {
    opacity: 0;
    cursor: pointer;
}






.test_actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.test_report a {

    margin-top: 100px;
    color: var(--mediumGray);
}

.test_report a:hover {
    color: var(--accent);
}

input[type=submit] {
    width: 100px;
    border: 0;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    background-color: var(--accent);
    color: var(--white);
    transition: background-color 0.2s ease;
}

input[type=submit]:hover {
    background-color: var(--accentHover);
}



.latest_result {
    background-color: var(--whiteMuted);
    border-radius: 4px;
    padding: 20px;
    margin: 10px 0;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.latest_result:hover {
    background-color: var(--white);
}

.latest_result a {
    display: block;
    color: var(--almostBlack);
}



/****** FORM LAYOUT ******/

.form_group {
    display: grid;
    grid-template-columns: 1fr 5fr;
    margin-bottom: 12px;
}

.login_form_group {
    display: grid;
    grid-template-columns: 1fr 3fr;
    margin-bottom: 12px;
 }

.upload_group {
    display: grid;
    grid-template-columns: 1fr 5fr;
    margin-bottom: 12px;
    background-color: var(--whiteMuted);
    padding: 20px;
    border-radius: 4px;
}

input[type=text], input[type=number], input[type=email], input[type=password] {
    padding: 8px;
    border: 0;
    border-radius: 4px;
}


select{
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 8px;
    border: 0;
    border-radius: 4px;
}

input[type=option] {
    padding: 8px;
    border: 0;
    border-radius: 4px;
}

.category_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
}

.category_item {
    background-color: var(--whiteMuted);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/*
.category_item:hover {
    background-color: var(--white);
}
*/

.category_item_selected {
    background-color: var(--accent);
    color: var(--white);
}


.login_form {
    margin: auto;
    padding: 20px;
    max-width: 100%;
    width: 800px;
    border-radius: 4px;
    background-color: var(--whiteLight);
    text-align: center;
}