@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin-ext');

html{

}

body{
  background-color: #eee;
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
}

.basecard{
  background-color: #fff;
  box-shadow: 0px 5px 8px -5px rgba(0,0,0,0.6);
  padding: 1em;
  border-radius: 4px;
  margin-top: 1em;
	min-height: calc(100vh - 4em);
  display: inline-block;
  width: 100%;	
  position: relative;

  max-width: 100%;
}

#pdfV{
	margin-top: 1em;
	width: 100%;
	min-height: calc(100vh - 8em);
	border: 0;
	box-shadow: 0;
	background-color: #eee;
}

.pdf-btns{
	height: 2em;
	display: inline-block;
}

#editor{
	width: 100%;
	min-height: calc(100vh - 8em);
}

#signature-pad{
  position: relative;
}

.empty #signature-pad{
  background-color:  rgba(255, 235, 59, 0.5);
  position: relative;
}


label{
	font-weight: bold;
	text-transform: uppercase;
  font-size: 80%;
  letter-spacing: 1px;  
}

.form-check label{
	font-weight: normal;
	text-transform: unset;	
}

#sign-data{
	width: 100%;
}

.pad-wrapper{
	width: 100%;	
	margin-bottom: 2em;
  position: relative;
  display: inline-block;  
}

.pad-wrapper-inner{
  position: relative;
  float: left;
}

.pad-wrapper-inner:after{
  content: "";
  display: inline-block;
  position: absolute;
  left: 2em;
  top: calc(200px - 4.5em); 
  z-index: 15;
  pointer-events: none;
  width: calc(650px - 4em - 6px);
  height: 1px;
  background-color: rgba(0,0,0,0.3);
}

.pad-wrapper-inner:before{
  content: "";
  display: inline-block;
  position: absolute;
  left: 2em;
  top: 2em;
  z-index: 10;
  pointer-events: none;
  width: calc(650px - 4em - 6px);
  height: calc(200px - 4em);
  border: 3px solid rgba(0,0,0,0.8);
}

#pad-clear{
  /*width: 100%;	*/
  margin-left: 15px;
  display: inline-block;
  height: calc(200px - .5rem + 8px);

}

.orient-warning{
  width: 100%;
  margin-top: 1em;
}

@media (orientation: landscape) {
  .orient-warning{
  	display: none;
  }
}

@media (orientation: portrait) {
  .orient-warning{
  	display: inline-block;
  }
}

#page {
  margin-bottom: 15px;
  max-width: 900px;
}

#successPage,
#errorPage{
  max-width: 900px;
}

.redsup{
  color: #f00;
  vertical-align: super;
  font-size: smaller;
}


.card{
  margin-top: 1em;
}

.card-header{
  text-transform: uppercase;
  letter-spacing: 2px;
}

h3{
  text-transform: uppercase;
  padding-top: 1em;
  padding-bottom: 1em;
  margin-bottom: 1em;
  color: #000;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}

h4{
  margin-top: 1em;
}

h5{
  margin-top: 1em;
}

table tr td p:last-child{
  margin-bottom: 0;
}

table tr td{

}

.form input.empty{
  background-color: rgba(255, 235, 59, 0.5);
}

.form input.empty:focus{
  background-color: unset;
}


.form textarea.empty{
  background-color: rgba(255, 235, 59, 0.5);
}

.form textarea.empty:focus{
  background-color: unset;
}

.form select.empty{
  background-color: rgba(255, 235, 59, 0.5);
}

.form select.empty:focus{
  background-color: unset;
}

.form-check-inline input,
.form-check-inline label{
 padding: 10px 5px!important;
}

.form-check-inline input{
  transform: scale(1.5);
  margin-left: 5px!important;
}

.contract-is-group.empty .form-check-inline,
.contract-as-ref-group.empty .form-check-inline{
  background-color: rgba(255, 235, 59, 0.5);
}

.contract-partner-field.empty .form-check-inline{
  background-color: rgba(255, 235, 59, 0.5);
}


.label{
  font-weight: bold;
  text-transform: uppercase;
  font-size: 80%;
  letter-spacing: 1px;
  display: inline-block;
  width: 100%;
  margin-bottom: .5rem;    
}

.material-icons{
  vertical-align: top;
}

#resetFromButton{
  position: absolute;
  right: 2em;
  top: 2em;
}

#resetFromButton .material-icons{
  line-height: 20px;
  font-size: 20px;
}

button .material-icons{
  line-height: 20px;
  font-size: 20px;
}

#successPage{
  display: none;
  text-align: center;
}

#successPage h2{
  margin-top: 200px;
}

#successPage h2 .material-icons{
  font-size: 80px;
}


#errorPage{
  display: none;
  text-align: center;
}

#errorPage h2{
  margin-top: 200px;
}

#errorPage h2 .material-icons{
  font-size: 80px;
}

.loader{
  margin: 0 0 0 1em;
  text-align: center;
  display: inline-block;
  vertical-align: top;
  display: none;
}

.loader.active{
  display: inline-block;
}


/*
  Set the color of the icon
*/
.loader svg path,
.loader svg rect{
  fill: #FF6700;
}

@media only screen and (max-width: 700px) {
  #resetFromButton {
    position: relative;
    right: unset;
    top: unset;
  } 

  #signature-pad {
    max-width: 100%;
  }  

  .pad-wrapper-inner:before {
    width: calc(100% - 4em - 6px);
    height: calc(200px - 4em);
    border: 3px solid rgba(0,0,0,0.8);
  }

  .pad-wrapper-inner:after {

    top: calc(200px - 4.5em);
    width: calc(100% - 4em - 6px);
  }

  #formSubmitButton{
    width: 100%;
  }

}

@media only screen and (max-width: 900px) {
  #pad-clear {
    width: 100%;
    margin-left: 0px;
    display: inline-block;
    height: auto;
  } 
}

.custom-file-label::after {
  content: "Megnyitás";
}

.logo-wrapper{
  max-width: 80%;
  width: 800px;
  margin: 20vh auto 0 auto;
}

.logo{
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.logo:hover{
  filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.logo img{
  max-width: 100%;
  height: auto;
}

.switch-wrapper{
  max-width: 80%;
  width: 800px;
  margin: 5vh auto 0 auto;
}

.switch-wrapper .material-icons {
    vertical-align: text-bottom;
}

a.back-link{
  display: inline-block;
  width: 2em;
  text-align: center;
  background: #eee;
  margin-right: 0.5em;
}

a.back-link .material-icons {
  vertical-align: text-bottom;
  font-size: 33px;
}

#paste-data{
  float: right;
}

#paste-data .btn-sm {
  padding: .0rem .5rem;
}