.panel { display: inline-block; width: 50%; box-sizing: border-box; vertical-align: top; } .panel:first-of-type { padding-right: 14px; } .panel:last-of-type { padding-left: 14px; } .instructions { margin-bottom: 10px; } .input, .output { width: 100%; height: 360px; background-color: #F6F6F6; margin-bottom: 16px; box-sizing: border-box; padding: 6px; display: flex; flex-flow: column; } .role { text-transform: uppercase; font-family: Arial; color: #BBB; margin-bottom: 6px; font-size: 14px; font-weight: bold; } .input.text .role, .output.text .role { margin-left: 1px; } .submit, .clear { background-color: #F6F6F6 !important; padding: 8px !important; box-sizing: border-box; width: calc(50% - 8px); text-transform: uppercase; } .submit { margin-right: 8px; } .clear { margin-left: 8px; } .input_text, .output_text { background: transparent; resize: none; border: 0 none; width: 100%; font-size: 18px; outline: none; height: 100%; padding: 0; } .input_image, .input_audio, .input_snapshot, .input_mic, .output_class, .output_image { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; text-align: center; } .input_image, .input_audio, .input_snapshot, .input_mic { font-weight: bold; font-size: 24px; color: #BBB; cursor: pointer; } .output_class { font-weight: bold; font-size: 36px; } .input_image, .input_audio { border: dashed 8px #BBB; } .input_snapshot, .input_mic { flex-direction: column; } .input_snapshot .webcam, .input_mic .mic { height: 80px; } .output_image img { width: 100%; /* or any custom size */ height: 100%; object-fit: contain; } .confidence_intervals { font-size: 16px; } .confidence { padding: 3px; } .level, .label { display: inline-block; } .label { width: 60px; text-align: right; } .confidence_intervals .level { font-size: 12px; margin-left: 8px; margin-right: 8px; background-color: #AAA; padding: 2px 4px; text-align: right; color: white; font-weight: bold; } .confidence_intervals > * { vertical-align: bottom; }