*, *::before, *::after {
    box-sizing: border-box;
  }
  * {
    margin: 0;
  }
  html, body {
    height: 100%;
    width: 100%;
  }

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family:'Segoe UI', Tahoma, "Helvetica Neue", Geneva, Verdana, Arial, sans-serif;
    background-color: #b4b4b3;
    font-size: 17px;
    margin: 0;
    color: #3E3E3E;
    overflow: scroll;
    padding: 10px 25px;
}

input {
    color: #3E3E3E;
}

div#main-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 100%;
    align-items: center;
    row-gap: 5px;
    width: 100%
}

div#title {
    font-family: sans-serif;
    text-align: center;
}

h1 {
    font-size: 1.5em;
    margin: 0.3em 0;
    flex: 0;
}

div#appcontent-ctn {
    display: flex;
    flex-direction: row;
    flex: 1;
    column-gap: 30px;
    justify-content: center;
    row-gap: 4px;
    width: 100%;
}

@media screen and (max-width: 1024px) {
    div#appcontent-ctn {
        /* flex-wrap: wrap; */
        flex-direction: column;
        justify-content: start;
    }
}

div#left-ctn {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

div#right-ctn {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    row-gap: 4px;
    overflow-y: scroll;
    min-width: 380px;
    max-width: 650px;
    width: 100%;
    margin-top: 12px
    /* height: 320px; */
}

div#checkbox-rear {
    width: 100%;
}

div#checkbox-rear > div {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    align-items: center;
    min-height: 22px;
    font-family: sans-serif;
}

div#camera-selector {
    margin-top: 0.6rem;
}

div#camera-selector > select {
    height: 2.1em;
}

div#buttons-container {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    width: 100%;
    height: 40px;
    gap: 4px;
}

div#instructions-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    height: 40px;
    gap: 4px;
}

div#canvas-container {
    margin: 0;
    text-align: center;
}

canvas#myCanvas {
    border-radius: 4px;
}

#buttons-container > button {
    cursor: pointer;
    flex: 1;
}

div#instructions-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;;
}

div#instructions-container > span {
    font-weight: bold;
    margin-right: 1rem;
}

div#instructions-container > select {
    flex: 3;
    padding: 3px 8px;
    font-size: large;
}


div#loading-div {
    font-size: 28px;
    line-height: 1;
    width: 100%;
    height: 28px;
}

div#vision-text-container {
    width: 100%;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: scroll;
}

.text-msg {
    font-size: 1.6rem;
    line-height: 1.5;
    font-weight: bold;
}

@media screen and (max-width: 500px) {
    .text-msg {
        font-size: 1.1rem;
        font-weight: normal;
    }
    
}


div#vision-text-container > div {
    margin: 4px 0;
    padding-bottom: 10px;
}

@media screen and (max-width: 500px) {
    div#vision-text-container {
        max-width: 380px;
    }

    body {
        padding: 5px 10px;
    }
}

.hidden {
    display: none;
}

#error-msg {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.9rem;
}