*{
	margin: 0;
	padding: 0;
}
input, textarea{
	padding: 8px;
	width: calc(100% - 16px);
}

body, input, select{
	font-family: sans-serif;
	font-size: 14px;
}

img{
	max-width: 100%;
	display: block;
}
h1{
	font-size: 40px;
	margin-bottom: 12px;
}
.lead{
	font-size: 20px;
	margin-bottom: 1rem;
}

main{
	display: flex;
	flex-direction: row;
/*	align-content: stretch;*/
/*	overflow: auto;*/
	min-height: 100vh;
	background: #212121;
}
button{
	padding: 12px 12px;
	cursor: pointer;
	border: none;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0px 5px 12px -4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}
button i{
	opacity: 0.8;
	margin-right: 4px;
}
button small{
	display: block;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
}
#submitBtn{
	background: blue;
    color: white;
}
#submitBtn[disabled]{
	opacity: 0.6;
	cursor: default;
	pointer-events: none;
	background: grey;
    color: white;
    box-shadow: 0px -5px 12px -4px rgba(0, 0, 0, 0.5) inset;
}
#downloadBtn{
    background: #008000;
    color: white;
}

#screenshotForm{
	position: relative;
	background: #ededed;
	width: 460px;
	min-width: 460px;
	max-width: 460px;
}
#screenshotForm .sticky{
	display: flex;
	padding: 12px;
	gap: 24px;
	flex-direction: column;
	align-items: flex-start;
	position: sticky;
	top: 0;
}
.CodeMirror,
#screenshotForm textarea{ 
	--inputHeight: calc((100vh / 3) - 120px) ;
	height: var(--inputHeight) !important;
    max-height: var(--inputHeight) !important;
    overflow-y: auto; /* Allows scrolling */
	white-space: pre;
  	overflow-wrap: normal;
  	overflow-x: auto;
}
#screenshotForm .field p{
	background: #666;
	border: 1px solid #666;
	color: #eee;
	padding: 8px;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	width: calc(100% - 16px);
}
#screenshotForm .field:nth-child(1) p{
	background: #000;
	border: 1px solid #000;
}
#screenshotForm .field p i{
	opacity: 0.6;
	font-size: 18px;
}
#welcome{
	font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    width: calc(100% - 80px);
    height: calc(100% - 80px);
    margin: auto;
    background: #eee;
    color: #000;
    padding: 40px;
}
#welcome .container{
	max-widtH: 600px;
}
#welcome ul, #welcome ol{
	margin-left: 24px;
}
#welcome ul, #welcome ol, #welcome p{
	margin-bottom: 24px;
}
#welcome li{
	margin-bottom: 12px;
}

#screenshotForm .actions{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
	text-align: center;
	/*background: #fff;
    padding: 12px;
    border-radius: 12px;
    width: calc(100% - 24px);*/
    width: calc(100% - 0px);
}
#screenshotForm .actions button{
	flex: 1;
}
#screenshotResults{
	color: #ededed;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 24px;
    flex:1;
}
#screenshotResults h3{
	margin-bottom: 12px;
}
#screenshotResults .url-path a{
/*	text-decoration: none;*/
	color: #fff;
}
#screenshotResults .device{
	line-height: 1;
}
#screenshotResults .device a{
	display: block;
}
#screenshotResults .device small{
	font-size: 12px;
	opacity: 0.7;
	display: block;
	margin-bottom: 8px;
}

#screenshotResults .screenshots{
	display: flex;
    max-width: 100%;
    gap: 24px;
}
#messageDiv{
	font-size: 12px;
}
.CodeMirror,
.CodeMirror-scroll{
	width: 100%;
	max-width: 100%;
}
#screenshotForm .sticky .field{
	position: relative;
	width: 100%;
}
