/* GLOBAL */

:root {
    --black: #333;
	--blue: rgba(10,60,150, 0.9);
	--orange: rgba(250,97,33, 0.9);
    --white: #ffffff;
}

* {
	box-sizing: border-box;
	font-family: sans-serif;
	font-size: 1em;
}

body {
	margin: 0;
	padding: 0;
}

button {
    width: 100%;
    padding: 10px;
	margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background: var(--blue);
    color: var(--white);
	font-weight: bold;
    cursor: pointer;
}

.hidden {
    display: none;
}

.hidebottom {
	transform: translateY(100%);
}

input:focus {
  outline: none;
}

#message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: red;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
	text-align: center;
}




/* UPDATE NOTIFICATION */

#update-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: red;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
	text-align: center;
}
  
#update-button {
	background-color: orange;
	color: black;
	border: none;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
}
  
#update-button:hover {
	background-color: green;
}




/* LOGIN SCREEN */

#blackout {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgb(0,0,0,.9);
}

#ios-install-prompt, #install-button {
	position: fixed;
	width: 80%;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	background-color: darkred;
	color: #fff;
	padding: 20px 40px;
	box-sizing: border-box;
}

#login-screen {
    width: 100%;
	height: 100vh;
    background: #fff url("img-login-tall.png") no-repeat fixed center;
	background-size: cover;
    padding: 20px;
}

#login-container {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background-color: rgb(0,0,0,0.6);
}

#company {
	font-family: 'Slabo 27px', serif;
	font-size: 1.7em;
	color: var(--white);
	font-weight: bold;
	// filter: drop-shadow(0 0 0.75rem rgb(255, 255, 255));
    width: 90%;
	max-width: 300px;
	margin: 40px 0 10px 0;
	letter-spacing: 1px;
}

#logo { 
    display: block;
    margin: 0 auto 20px;
    width: 90%;
	max-width: 300px;
	// filter: drop-shadow(0 0 0.75rem rgb(255, 255, 255)) brightness(1.75);
	// filter: brightness(1.75);
}

#login-form {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	padding: 10px 20px 20px 20px;
	background: rgb(255,255,255);
	background: linear-gradient(0deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.8) 58%, rgba(255,255,255,1) 100%);
	border-radius: 10px;
	/*
	background-color: rgb(255,255,255,0.9);
	padding: 160px 20px 20px 20px;
	*/
}

#icon-welders {
	height: 80px;
	position: absolute;
	top: -80px;
	left: 20px;
	// opacity: 0.9;
}

#login-text {
	font-family: 'Slabo 27px', serif;
	letter-spacing: 1px;
	text-align: left;
	font-size: 2em;
	font-weight: bold;
	color: var(--white);
	margin-bottom: 5px;
	position: absolute;
	top: -30px;
	left: 70px;
	// opacity: 0.9;
	text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

#login-form input {
    width: 100%;
    padding: 10px 30px;
    margin-bottom: 10px;
	background-color: transparent;
	border: none;
    border-bottom: 1px solid var(--blue);
    border-radius: 0;
	color: var(--black);
}

#email-valid-icon-cert, #email-valid-icon, #toggle-password {
    position: absolute;
    top: 10px;
    right: 0px;
	font-size: 1em;
    cursor: pointer;
	opacity: 0.5;
}

#icon-email, #icon-password {
    position: absolute;
    top: 10px;
	left: 0px;
	font-size: 1em;
	cursor: none;
	opacity: 0.5;
}

#login-form .toggle-password {
	
}

#login-btn {
	margin-bottom: 0;
}

#login-btn:disabled, #login-btn[disabled] {
	background-color: #333 !important;
}
	
#forgot-btn {
	margin-bottom: 0;
    background: var(--orange);
}

#forgot-btn:disabled, #forgot-btn[disabled] {
	background-color: #666 !important;
}

div.div {
	background-color: red;
	width: 45%;
	display: inline-block;
	background: transparent url("img-bg-dot-space.png") repeat-x center center;
	margin: 5px 0;
	font-size: .6em;
}

div.or {
	width: 10%;
	display: inline-block;
	margin: 5px 0;
	font-size: .6em;
}


/* CONTENT SCREEN */

#content-screen {
    width: 100%;
	height: 100vh;
    background: #fff;
    padding: 20px;
}

#content-screen #email-valid-icon-cert, #content-screen #icon-email {
	opacity: 1;
}

#title {
	font-family: 'Slabo 27px', serif;
	font-size: 1.7em;
	color: var(--orange);
	font-weight: bold;
	// filter: drop-shadow(0 0 0.75rem rgb(255, 255, 255));
    width: 90%;
	margin: 0 5% 15px 5%;
	letter-spacing: 1px;
	text-align: center;
	line-height: 1em;
}
	
#content-top {
    text-align: center;
	background-color: #cecece;
	padding: 20px 0;
	margin: -50px -20px 0 -20px;
}

b.name { 
	font-size: 1.7em;
	font-family: 'Slabo 27px', serif;
}

b.h1 {
	color: var(--blue);
	font-size: .9em;
}

#content-bottom: {
	// font-size: .9em;
}

#boilerplate {
	padding-bottom: 200px;
	// font-size: .9em;
}

#sticky-footer {
    position: fixed;
    bottom: 20px;
	left: 20px;
	right: 20px;
    background: var(--orange);
	color: var(--white);
	font-weight: bold;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

#cert-email {
    width: 100%;
    padding: 10px 30px;
    margin-bottom: 10px;
	background-color: transparent;
	border: none;
    border-bottom: 1px solid var(--blue);
    border-radius: 0;
	color: var(--white);
}

#cert-email::placeholder {
  color: var(--blue);
  opacity: 1; /* Firefox */
}

#cert-email::-ms-input-placeholder { /* Edge 12 -18 */
  color: var(--blue);
}

#send-cert-btn {
    background: var(--blue);
	margin: 0;
}

#send-cert-btn:disabled, #send-cert-btn[disabled] {
	background-color: #333 !important;
}

#logout-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    cursor: pointer;
	color: var(--white);
	width: auto;
    background-color: var(--orange);
	border-radius: 100%;
	font-size: 1.2em;
}

#logout-btn div {
	margin: -5px 5px 5px 5px;
	font-size: .4em;
	display: none;
}



/* CERT VIEWING */

#iframe-container, #iframe-content {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100vh;
}

#iframe-container {
	background-color: #fff;
	transition: .5s ease;
}

#close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    border: none;
    cursor: pointer;
	color: var(--white);
	width: auto;
    background-color: var(--orange);
	border-radius: 100%;
	font-size: 1.2em;
}

#close-btn div {
	margin-top: -5px;
	font-size: .4em;
	display: none;
}




/* FORCE PORTRAIT MODE */

/* Portrait orientation */
@media (orientation: portrait) {
	#landscape-message {
		display: none;
	}
}

/* Landscape orientation */
@media (orientation: landscape) {
	#landscape-message {
		display: block;
		position: fixed;
		padding: 80px 40px;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: #000;
		color: #fff;
		font-size: 1.5em;
		text-align: center;
		z-index: 9999;
	}
}

