*{
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: #e7e7e6;
}

hr {
    margin: 8px 0;
}

@media screen and (min-width: 800px) {
    .login-panel {
        margin: 0 auto;
        transform: translateY(50%);
        width: 600px;
        height: auto;
        padding: 32px;
    }

    .panel {
        margin: 0 auto 240px auto;
        width: 80%;
        height: auto;
        padding: 32px;
    }

    .panel .header, header {
        display: flex;
        justify-content: space-between;
    }
}

@media screen and (max-width: 800px) {
    .login-panel {
        transform: translateY(30%);
        margin: 0 16px;
        padding: 16px;
    }

    .panel {
        padding: 16px;
        margin: 0 16px;
    }

        .panel .header, header {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;

        }

        .panel h3, header h3 {
            flex-direction: column !important;
            margin: 8px 0 !important;
            text-align: center !important;
        }

    .button-right {
        justify-content: center !important;
        padding: 16px;
    }

    footer {
        display: none !important;
    }

    #logout {
        padding: 10px 16px;
        border-radius: 0.375rem;
        border: none;
        background-color: #01aa16 !important;
        color: white !important;
    }

    p {
        text-align: justify;
        text-justify: inter-word;
    }

    .site {
        width: 100% !important;
        padding: 8px 16px !important;
    }

    .main {
        flex-direction: column;
    }

        .main main {
            width: 100% !important;
        }

        .main aside {
            width: 100% !important;
        }

    .top-bar, .top-bar .answered, .top-bar .timer {
        flex-direction: column;
    }

    .question ul {
        padding-left: 4px !important;
    }

    .buttons {
        justify-content: center;
    }

    .image img {
        width: 100% !important;
    }

    .modal-body p {
        margin: auto 8px !important;
    }

    .end-modal {
        justify-content: center !important;
    }

    .panel h5 {
        text-align: justify !important;
        text-justify: inter-word;
    }

    .end-exam-buttons {
        display: flex;
        gap: 8px;
        flex-direction: column;
    }

    .anim .card {
        width: 100% !important;
        margin: 4px !important;
    }

    .card .card-body h5 {
        text-align: justify;
        text-justify: inter-word;
    }

    .anim h4 {
        text-align: justify;
        text-justify: inter-word;
    }
}

.anim .card {
    width: 80%;
    margin: auto;
} 

.login-panel {
    background-color: white;
    border: 1px solid grey;
    box-shadow: 0 0 4px black;
    border-top: 6px solid #01aa16;
}

    .login-panel h3 {
        text-align: center;
        margin-bottom: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bolder;
    }

    .login-panel label {
        font-weight: bolder;
        margin-bottom: 8px;
    }

    .login-panel input {
        padding: 8px;
        border-radius: 4px;
        border: 1px solid grey;
        width: 100%;
        margin-bottom: 16px;
    }

    .login-panel button {
        padding: 10px 16px;
        border-radius: 4px;
        border: none;
        background-color: #01aa16;
        color: white;
        font-weight: bolder;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .login-panel button .icon {
            background-image: url("icons/lock.svg");
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;

            width: 17px;
            height: 17px;
            margin: 0 0 0 12px;
            display: inline-block;
        }

    .login-panel .icon {
        background-image: url("icons/icon.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;

        width: 64px;
        height: 64px;
        display: inline-block;
        margin-right: 12px;
        text-align: center;
    }

    .login-panel .button-right {
        width: 100%;
        display: flex;
        justify-content: right;
    }

    .login-panel .text-center {
        text-align: center;
    }

.panel {
    transform: translateY(120px);
    background-color: white;
    border: 1px solid grey;
    box-shadow: 0 0 4px black;
    border-top: 6px solid #01aa16;
}

    .panel h3, header h3 {
        text-align: left;
        margin: 0;
        display: flex;
        justify-content: left;
        align-items: center;
        font-weight: bolder;
    }

    .panel h4 {
        font-weight: bolder;
        font-size: 150%;
        margin: 24px 0;
    }

    .panel h5 {
        text-align: center;
    }

    .panel .icon, header .icon, .sidebar .icon, .sidebar-btn .icon {
        background-image: url("icons/icon.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;

        width: 36px;
        height: 36px;
        display: inline-block;
        margin-right: 12px;
    }

    .panel button {
        padding: 10px 16px;
        border-radius: 0.375rem;
        border: none;
        background-color: #01aa16;
        color: white;
        display: inline-block;
    }

    .panel .button-right {
        width: 100%;
        display: flex;
        justify-content: right;
    }

    .panel .button-center {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .panel a, header a {
        color: #01aa16;
    }

    .panel td {
        padding: 8px;
    }

        .panel .header .manual, header .manual {
            text-decoration: none;
            margin: auto 0;
            display: flex;
            justify-items: center;
        }

            .panel .header .manual .icon, header .manual .icon {
                background-image: url("icons/question.svg");
                background-position: center;
                background-repeat: no-repeat;
                background-size: contain;
        
                width: 18px;
                height: 18px;
                margin: auto 12px auto 0;
            }

        .panel .header .student, header .student {
            text-align: right;
        }

            .panel .header .student a, header .student a {
                text-decoration: none;
            }

#manualModal .modal-dialog .modal-content .modal-footer button, #endModal .modal-dialog .modal-content .modal-footer button {
    border-radius: 4px;
    border: none;
    background-color: #01aa16;
    color: white;
    display: inline-block;
}

#endModal .modal-dialog .modal-content .modal-body p {
    margin: auto 64px;
}

header p {
    margin-bottom: 4px;
}

#logout {
    border: none;
    background-color: white;
    color: #01aa16;
}

.site {
    background-color: white;
    margin: 0 auto;
    border: 1px solid grey;
    padding: 8px 32px 32px 32px;
    box-shadow: 0 0 4px black;
    width: 80%;
    height: auto;
    border-top: 6px solid #01aa16;
}

    .site h6 {
        font-weight: bolder;
        color: brown;
        font-size: 105%;
        margin: 24px 0 32px 0;
    }

    .site .main {
        display: flex;
        gap: 16px;
    }

        .site .main main {
            width: 75%;
            display: inline-block;
            border: 1px solid lightgray;
            padding: 8px 24px;
        }

        .site .main aside {
            width: 25%;
            display: inline-block;

        }

            .site .main aside h6 {
                font-weight: bold !important;
                font-size: 105%;
                color: black;
                margin: 0 0 8px 0;
            }

            .site .main aside input {
                width: 100%;
                margin-bottom: 32px;
                padding: 6px 16px;
                border-radius: 4px;
                border: 1px solid lightgray;
                background-color: rgb(243, 243, 243);
            }

            .site .main aside h1 {
                text-align: right;
                margin-bottom: 48px;
            }

            .site .main aside .nieudzielono {
                border: 2px solid red;
                color: red;
                font-weight: bolder;
            }

aside button {
    border: 2px solid #7a375a;
    border-radius: 4px;
    background-color: white;
    color: #7a375a;
    font-weight: bold;
    padding: 4px 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    aside button .icon {
        background-image: url("icons/end.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;

        width: 18px;
        height: 18px;
        margin: 0 0 0 8px;
    }

    .disabled {
        visibility: hidden !important;
        display: none !important;
    }

.questions {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

    .questions button {
        padding: 6px 16px;
        border-radius: 4px;
        border: none;
        background-color: #01aa16;
        color: white;
        display: block;
    }

    .question .image {
        width: 100%;
        text-align: left;
    }

        .question .image img {
            max-height: 360px;
            max-width: 600px;
        }

    .questions p {
        margin: 0 0 0 20%;
    }

        .checked {
            color: green;
            font-weight: bold;
        }

        .not-checked {
            color: red;
            font-weight: bold;
        }

.site .top-bar {
    display: flex;
    justify-content: space-between;
}

    .site .top-bar .answered {
        display: flex;
        align-items: center;
    }

        .site .top-bar .answered p {
            margin-bottom: 0;
            margin-right: 8px;
        }

        .site .top-bar .answered input {
            padding: 6px 16px;
            border-radius: 4px;
            border: 1px solid lightgray;
            background-color: rgb(243, 243, 243);
        }

    .site .top-bar .timer {
        display: flex;
        align-items: center;
        }

        .site .top-bar .timer p {
            margin-bottom: 0;
            margin-right: 8px;
        }

        .site .top-bar .timer h1 {
            margin-bottom: 0;
            font-weight: bold;
        }

.question {
    padding: 16px;
    border: 1px solid lightgray;
}

    .question p {
        margin-top: 16px;
    }

    .question ul {
        list-style: none;
    }

        .question ul li {
            margin-top: 32px;
        }

            .question ul li input {
                margin-right: 8px;
            }

.buttons {
    margin-top: 32px;
    display: flex;
    gap: 8px;
}

    .buttons .accept {
        padding: 6px 16px;
        border-radius: 4px;
        border: none;
        background-color: #01aa16;
        color: white;
        display: block;
    }

        .buttons .accept .icon {
            background-image: url("icons/check.svg");
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;
    
            width: 12px;
            height: 12px;
            margin: 0 12px 0 0;
        }

    .buttons .cancel {
        padding: 6px 16px;
        border-radius: 4px;
        border: none;
        background-color: #7a375a;
        color: white;
        display: block;
    }

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 32px;
    background-color: #1e1e1e;
    color: white;
    text-align: center;
}

.text-end {
    text-align: center !important;
    display: block !important;
    margin-top: 2rem;
    margin-bottom: 8px !important;
}

.dashboard {
    width: 100%;
    min-height: 100vh;
    display: inline-flex;
}

    .dashboard .sidebar-btn {
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 100vh;
        width: 60px;
        background-color: white;
        border: 0;
        box-shadow: 0 0 8px black;
        transition: width 0.2s;
    }

        .dashboard .sidebar-btn:hover {
            width: 90px;
        }

        .dashboard .sidebar-btn .rotate {
            writing-mode: vertical-lr;
            text-orientation: mixed;
        }

    .sidebar {
        height: 100vh;
        width: 280px;
        background-color: white;
        box-shadow: 0 0 8px black;
        padding: 16px;
        display: inline-block;
    }

        .sidebar h3 {
            text-align: left;
            margin-bottom: 32px;
            display: flex;
            justify-content: left;
            align-items: center;
            font-weight: bolder;
        }

        .sidebar a {
            color: #198754;
            text-decoration: none;
        }

        .sidebar button {
            display: block;
            background-color: white;
            color: #198754;
            border: 1px solid transparent;
            border-radius: 0.375rem;
            padding: 7px 10px;
            width: 100%;
            margin-bottom: 4px;
        }

            .sidebar button:hover {
                background-color: #157347;
                border: 1px solid #146c43;
                color: white;
            }

            .sidebar .active {
                background-color: #146c43;
                border: 1px solid #13653f;
                color: white;
            }

        .sidebar .bottom {
            position: sticky;
            width: 100%;
            padding-bottom: 8px;
            bottom: 0;
            display: inline-block;
        }

@media screen and (max-width: 1366px) {
    .dashboard .main {
        width: 100% !important;
    }
}

@media screen and (min-width: 1367px) {
    .dashboard .sidebar {
        position: sticky;
        top: 0;
        left: 0;
    }
}

    .dashboard .main {
        width: calc(100vw - 280px);
        margin: 64px;
        padding: 64px;
        height: max-content;
        background-color: white;
        box-shadow: 0 0 8px black;
        border-radius: 8px;
    }

        .qualifies {
            padding: 4px;
            background-color: lightgray;
            border-radius: 8px;
            border: 1px solid gray;
            display: flex;
            margin: 8px auto;
            width: 100%;
            flex-wrap: wrap;
        }

            .qualifies .qualify {
                display: inline-flex;
                background-color: white;
                padding: 8px;
                border-radius: 8px;
                margin: 4px;
            }

                .qualifies .qualify p {
                    margin-bottom: 0;
                }

                .qualifies .qualify button {
                    border: none;
                    border-radius: 4px;
                    background: transparent;
                    display: flex;
                    align-items: center;
                    margin-left: 8px;
                }

                    .qualifies .qualify button .close {
                        background-image: url("icons/xmark.svg");
                        background-position: center;
                        background-repeat: no-repeat;
                        background-size: contain;

                        width: 16px;
                        height: 16px;
                        display: inline-block;
                    }

        .class {
            padding: 16px;
            border: 1px solid lightgray;
            border-radius: 16px;
            margin-bottom: 8px;
        }

            .class .qualifies_for_class .row .col {
                text-align: center;
            }

        .button-column {
            display: block;
            background-color: white;
            color: #198754;
            border: 1px solid transparent;
            width: 100%;
            padding: 14px 16px;
            text-align: left;
        }

            .button-column:hover {
                background-color: #157347;
                border: 1px solid #146c43;
                color: white;
            }

            .active {
                background-color: #146c43;
                color: white;
            }

        .scrollable-div {
            overflow-y: auto;
            overflow-x: auto;
            resize: vertical;
            height: 400px;
            margin-bottom: 1rem;
        }

        .results {
            border: 1px solid lightgray;
            padding: 16px;
        }

        .student-form {
            border: 1px solid lightgray;
            padding: 16px;
        }

.anim {
    animation-name: fadeInUp;
    animation-fill-mode: forwards;
    animation-duration: 1s;
    opacity: 0;
    animation-delay: 500ms;
}

.teacher_div {
    padding: 8px 16px;
    border-bottom: 1px solid lightgray;
    border-collapse: collapse;
}

    .teacher_div:nth-child(2n){
        background-color: #f2f2f2;
    }

.question_mod {

}

.question_mod ul {
    list-style: none;
    margin-top: 16px;
}

.question_mod h4 {
    font-size: 16px;
}

.question_mod img, .question_mod video {
    text-align: center;
    max-width: 400px;
    max-height: 200px;
}

.answers_img {
    max-width: 400px;
    max-height: 200px;
}

@keyframes fadeInUp {
    from{
        opacity: 0;
        transform: translateY(80%);
    }
    to {
        opacity: 1;
        transform: translateY(0%);
    }
}