html,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
}

:target {
    padding-top: 43px;
    margin-top: -43px;
    display: inline-block;
}

.w3-sidebar {
    z-index: 3;
    width: 250px;
    top: 43px;
    bottom: 0;
    height: inherit;
}

.wrapper {
    position: relative;
    max-width: 833px;
    max-height: 833px;
    width: 100%;
    min-width: 150px;
    height: 833px;
    margin: 5px;
}

.wrapper2 {
    position: relative;
    width: 300px;
    height: 300px;
}

.wrapper .canvas_large {
    position: absolute;
    top: 0;
    left: 0;
    /* border: 1px solid black; */
}

.wrapper .canvas_small {
    position: absolute;
    top: 0;
    right: 0;
    /* border: 1px solid black; */
}

/* CONTACT FORM */
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

.container {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}

table,
th,
td {
    padding: 5px;
}

table {
    border-collapse: collapse;
}

ul {
    text-align: left;
}

/* collapsibles */
.c_collapsible {
    background-color: rgb(203, 252, 213);
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.c_active,
.c_collapsible:hover {
    background-color: rgb(187, 236, 212);
    display: block;
}

.c_content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
    overflow-x: auto;
}

.collapsible_similar {
    background-color: rgb(203, 252, 213);
    color: white;
    /* cursor: pointer; */
    padding: 18px;
    width: 100%;
    border: 1px solid;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.content_similar {
    padding: 0 18px;
    /* display: none; */
    overflow: hidden;
    background-color: #f1f1f1;
    overflow-x: auto;
}

/* additions */
body {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

#footer {
    position: relative;
    width: 100%;
    z-index: 4;
}

.full-height-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#error {
    z-index: 999999;
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    padding: 10px;
    background-color: #f1f1f1;
    text-align: center;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#visualisations {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.visu-example {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
    padding: 0 5px;
    border-radius: 10px;
    width: min(510px, 100%);
}

.visu-example img {
    width: min(100%, 500px);
    height: auto;
}

.visu-example.correct {
    background-color: rgba(203, 252, 213, 0.7);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.visu-example.incorrect {
    background-color: rgba(252, 213, 213, 0.7);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}

.visu-example.correct ul {
    list-style-type: "✔️";
}

.visu-example.incorrect ul {
    list-style-type: "❌";
}

.collapsible_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.collapsible_wrapper div,
.collapsible_wrapper button {
    width: min(100%, 420px);
    border: 0;
}

.collapsible_wrapper div:last-child {
    padding: 0;
    border-top: 1px solid #d4d4d4;
}

#canvas_back,
#canvas_back_2,
#canvas_back_m,
#canvas_back_m_2,
#canvas_user,
#canvas_user_2,
#canvas_user_m,
#canvas_user_m_2 {
    width: 100%;
    max-width: 833px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.2);
}

#canvas_user_m,
#canvas_user {
    touch-action: none;
}

.supawrappah {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    /* flex-wrap: wrap; */
    width: 100vw;
    max-width: 865px;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    max-height: 870px;
    margin: 0 -16px;
    padding: 5px;
    position: relative;
    min-height: 325px;
}

.supawrappah::after {
    content: "Click to open editor";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: black;
    z-index: 5;
}

.supawrappah.locked::after {
    content: "Preparatory task completed";
    cursor: not-allowed;
}

.supawrappah .x {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px;
    color: black;
    font-weight: bold;
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    background-color: tomato;
    cursor: pointer;
    border-radius: 0 0 50% 0;
}

.supawrappah .submit {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    color: black;
    font-weight: bold;
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    background-color: forestgreen;
    cursor: pointer;
    border-radius: 0 0 0 50%;
}

.supawrappah .popup {
    position: fixed;
    bottom: 20px;
    color: #000;
    padding: 10px;
    border-radius: 5px;
    margin: 0 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 2px solid white;
    box-shadow: 0 0 10px white;
    /* opacity: 0; */
    transform: translateY(200px);
    z-index: -1;
    transition: transform 0.3s ease-out;
}

.supawrappah .popup.show {
    /* opacity: 1; */
    transform: translateY(0);
    z-index: 1;
}

.supawrappah .popup.show.green {
    background-color: lightgreen;
}

.supawrappah .popup.show.blue {
    background-color: cornflowerblue;
}

.supawrappah.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100vw;
    padding: 0;
    margin: 0;
    z-index: 100;
    background-color: white;
    min-width: 260px;
    max-width: unset;
    max-height: unset;
    justify-content: center;
}

.supawrappah.active::after {
    display: none;
}

.supawrappah.active .x {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.supawrappah.active .submit {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

body.noscroll {
    overflow: hidden;
}

.introjs-helperLayer {
    z-index: 200 !important;
}

#control-row {
    margin-bottom: 40px;
}

.mobile-only {
    display: none;
}

.wrapper.mobile-only::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../res/watermark.png");
    opacity: 0.15;
    background-size: contain;
    cursor: not-allowed;
}

.zoomTitle {
    right: 0;
    margin: 0;
    padding: 0 3px;
    position: absolute;
    top: 0;
    z-index: 4;
    color: white;
    text-shadow: 0 0 3px black;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 0 10px;
}

#canvas_user,
#canvas_user_m {
    cursor: crosshair;
}

@media screen and (max-width: 640px) {
    .mobile-only {
        display: inline-block;
    }

    .w3-bar.hidden {
        display: none;
    }

    #pg_2_2,
    #pg_2_3 {
        padding-top: 0 !important;
    }

    #canvas_controls,
    #canvas_controls_m {
        transform: scale(0.7);
        transform-origin: top right;
    }

    .w3-bar .w3-bar-item {
        padding: 5px 7px !important;
    }

    .supawrappah {
        /* width: min(calc(200vh - 70px), calc(100vw - 70px)); */
        justify-content: center;
        min-height: unset;
        max-width: unset;
        max-height: unset;
    }

    .wrapper {
        /* width: min(calc(50vh - 0px), calc(50vw - 0px)); */
    }
}

@media screen and (max-height: 640px) and (orientation: landscape) {
    .mobile-only {
        display: inline-block;
    }

    .w3-bar.hidden {
        display: none;
    }

    #pg_2_2,
    #pg_2_3 {
        padding-top: 0 !important;
    }

    #canvas_controls,
    #canvas_controls_m {
        transform: scale(0.7);
        transform-origin: top right;
    }

    .wrapper {
        height: 100vh;
        width: calc(50% - 10px);
        margin: 0 5px;
    }

    .supawrappah {
        flex-direction: row-reverse;
        justify-content: center;
        min-height: unset;
        max-width: unset;
        max-height: unset;
        /* width: min(calc(200vh - 60px), calc(100vw - 60px)); */
    }
}
