
@font-face {
    font-family: Akkurat-Regular;
    src: url(../fonts/lineto-akkurat-pro-regular.eot);
    src: url(../fonts/lineto-akkurat-pro-regular.eot?#iefix) format('embedded-opentype'),
        url(../fonts/lineto-akkurat-pro-regular.woff2) format('woff2'), url(../fonts/lineto-akkurat-pro-regular.woff) format('woff');
}


body {
    font-family: Akkurat-Regular, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: inherit;
    margin: 0;
    background-color: #e6e6e6;

    /* Styling for the footer placement */
    min-height: 100vh;
    display: flex; 
    flex-direction: column; 
}

footer {
    background-color: #3b3b3b;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Styling for the footer placement */
    margin-top: auto
}

footer > .footer-items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: fit-content;
    padding: 1rem 2rem;
}

footer > .footer-items > * {
    height: fit-content;
    color: #ffffff;
    padding: .5rem 1rem;
    display: block;
    text-decoration: none;
    background-color: transparent;
    font-family: Akkurat-Bold,sans-serif;
}

.footer-items > a:hover {
    background-color: #639a00;
    color: #ffffff;
    text-decoration: none;
  }

a {
    color: #639a00;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #324e00;
    text-decoration: underline;
}

h1 {
    margin-bottom: .25em;
    font-size: 1.75rem;
    color: #639a00;
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    margin-top: 0;
    font-family: Akkurat-Bold, sans-serif;
    font-weight: 400;
    font-size: 1.4375rem;
    font-style: normal;
    line-height: 1.2;
}

button {
    font-family: Akkurat-Regular, sans-serif;
    letter-spacing: .03125rem;
    user-select: none;
    border: 1px solid #639a00;
    padding: 0.5em 1em;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    margin: 1ex 2ex 1ex 0;
    color: white;
    background: linear-gradient(270deg, #639a00 50%, #4a7400 0) 100% 100%;
    background-size: 200% 100%;
    box-shadow: #426700 0.3125rem 0 0 0 inset;
}

button:hover {
    color: #fff;
    text-decoration: none;
    background-color: #4a7400;
    border-color: #426700;
    transition: all .3s ease;
    background-position: 0 100%
}

.login-form label {
    font-weight: normal;
    text-align: left;
    display: block;
    padding-top: 0.5rem;
}

.login-form p {
    margin: 0px;
}

.login-form input {
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
    color: #495057;
    width: 250px;
    margin: 0.25em 0;
}

.login-form input:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ca7406;
    outline: none;
    box-shadow: 0 0 0 2px #ca7406;
    z-index: 3;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 10px;
}

td {
    padding: 5px 10px 5px 10px;
}

td > label {
    display: flex;
    height: 50px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

tr:nth-child(even) {
    background-color: #eeeeee;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

input[type="radio"] {
    min-width: 16px;
    min-height: 16px;
    margin-top: -1px;
}

label {
    cursor: pointer;
}

img {
    vertical-align: middle;
    max-width: max-content;
    width: 100%;
}

article {
    padding: 15px 15px 15px 15px;
}

.container {
    max-width: 1000px;
    width: 90%;
    
    padding: 15px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

video {
    width: 100%;
}

.whitebox {
    background-color: #ffffff;
}

.errorbox {
    background-color: #f2dede;
    color: #a94442;
    font-size: 16px;
    border: 1px solid #cc0000;
    padding: 0px 10px 0px 10px;
    margin-top: 15px;
}

.missingQuestion {
    background: #f2dede !important;
}

.disabledButton {
    opacity: 65%;
}

.disabledButton:hover {
    color: #fff;
    text-decoration: none;
    background: #639a00;
    border-color: #426700;
    transition: none;
    background-position: 0 100%
}

#startView > .saveAndLoad {
    margin-top: 24px;
    margin-bottom: 24px; 
}

@media(max-width: 740px) {
    article {
        padding: 15px 0px
    }

    table, tbody, tr, td {
        display: block;
    }

    /* Question Text */
    td:nth-child(1) {
        font-weight: bold;
    }

    tr:not([data-subcategory], [data-itemid]) {
        display: none;
    }

    td > label {
        display: flex;
        justify-content: flex-start;
        height: auto;
    }

    tr {
        margin-bottom: 5px;
        padding: 1rem;
    }

    label::after {
        content: attr(data-label);
        padding-left: 0.2rem;
    }

    .logo {
        display: flex;
        margin-bottom: 15px;
    }

    #header {
        display: initial !important;
    }

    #headerContainer {
        padding-bottom: 0px;
    }

    footer > .footer-items {
        flex-direction: column;
    }
    
    footer > .footer-items > *{
        text-align: center;
    }
}

#navbar > button {
    height: fit-content;
}

#header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbarRestricted {
    display: none;
    background-color: #f44336;
}

#navbarRestricted > p {
    color: white;
    padding-left: 10px;
}

#progressbar {
    color: white;
   background-color: #639A00;
   height: 100%;
   width: 0%;
   font-size: 14px;
   text-align: center;
   line-height: 20px;
}

#inputHint {
    display: none;
    color: #cc0000;
}

[data-type="singleChoiceQuestion"] > label {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
}

[data-type="singleChoiceQuestion"] > label > input{
    align-self: center;
    margin-right: 10px;
}
