@import url(../../defaults.css);
@import url(../../master.css);




@viewport {
  width: device-width;
  initial-scale:1.0;
}


@-ms-viewport {
  width: device-width;
}


#eproto {
	font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
	font-size: 16px;
        min-width: 320px;
        background: #f2f2f2;
        background-image: url(bg.png)
}

#header, #footer {
  background: #00a5cd;
  padding-bottom: 10px;
  font-size: 12px;
  color: #000 !important;
  border: none;
}
#container, #view { 
  border:0;
}

#lomakkeen_alkuteksti {
  padding-left: 18px;
}

/*#view:before {
  background-size: 140px 140px;
  display: inline-block;
  width: 140px; 
  height: 140px;
  margin-left:30px;
  content:"";
  
}*/
#view {         
  width:100%;
  padding-top: 25px;
  background: url(bg-header-area.png) top left repeat-x;
}

#view:before {
  background: url("SAMK_Logo.png") left center no-repeat;
  background-size: 25%;
  content: "";
  display: block;
  height: 150px;
  width: 100%;
  margin-left: 40px;
}

#lomakkeen_alkuteksti {
  padding-left:40px;
}
.yleinen #lomake #formInfo h1 {
	color: #4d4d4d;
	font-size: 24px;
        width:98%;
        margin-bottom: 10px;
}
.yleinen #lomake #formInfo h1 #lomakenimi {
        font-size: 75%;
        line-height: 75%;
        display: block;
        color: #4d4d4d;
}
.yleinen #formInfo p {
        padding: 6px;
        width: 96%;
}

.yleinen #formInfo  {
        padding-left: 40px !important;
}


.yleinen #container {
  width:100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #FFF;
  -webkit-box-shadow: -2px 2px 17px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: -2px 2px 17px 0px rgba(0,0,0,0.75);
  box-shadow: -2px 2px 17px 0px rgba(0,0,0,0.75);
}

.yleinen #view .formGroup h2 {
  font-size: 20px;
  background: #FFF;
  margin-left: 10px;
  padding-left: 32px;
  margin-right: 10px;
  padding-top:5px !important;
  padding-bottom: 5px !important;
  border-bottom: 3px solid #00a5cd;
	
}
.yleinen #view .formGroup.passive .formElement {
  color: #666;
}
.yleinen #view .formElement label a {
  color: #66bf29;
  font-weight: bold;
  font-style: italic;
}



.yleinen #view .pakollinen label:after {
  
/*  width:172px;*/
  color: #ed1212;
  font-size:18px;
  text-shadow: 1px 1px 1px rgba(30, 30, 30, 1);
  content:' *  ';
}

.yleinen #view .pakollinen label {  
  color: #000;
  font-size:16px;
  
  
}

#view .pakollinen {
  color: #000;
}

.yleinen #view .radiotable table th .pakollinen:before {
  color:#ed1212;
  font-size:18px;
  text-shadow: 1px 1px 1px rgba(30, 30, 30, 1);
  content:'*  ';
}

.yleinen #view .passive {
	background: #d6d9dd url(passive.gif);
}
.yleinen #view .formGroup.passive h2 {
	color: #555;
	background: none;
}

.yleinen #view .checkboxgroup, .yleinen #view .textfieldtable, .yleinen #view .radiotable {
        border: 1px solid #00a5cd;
        overflow: auto;
        margin:0;
}
  
  
.julkinen fieldset.checkboxgroup table,
.julkinen fieldset.textfieldtable table,
.julkinen fieldset.radiotable table {
    background: none;
}

#progressBar {
    background-color: #00a5cd;
}

label {
  float:left;
  padding-left:28px;
}

input {
  float:left;
  height:20px !important;
  font-size: 15px;
}

.yleinen #view  .checkbox {
  padding-left:25px;
}

.yleinen #view .checkbox label {
  padding-left:3px;
}

.checkboxwrapper {
  padding-left:10px;
}

textArea {
  float:left;
  min-width:230px;
}

input[type='checkbox'] {
 width:auto !important;
 margin-left: 5px;
}


#footer div {
  padding-top:15px;
  color:#fff !important;
  font-size: 10px;
}

#footer div a {
  color:rgb(249,157,28) !important;
  font-size: 10px;
}

input[type='button'] {
 margin-right: 10px;
 padding: 10px;
 width: auto !important;
 height:auto !important;
 min-width:200px !important;
 background: #00a5cd;
 font-size: 14px;
 color:#FFF;
 cursor: pointer;
 border:none;
 -webkit-border-radius: 10px;
 -moz-border-radius: 10px;
 border-radius: 10px;
}

input[type='button']:hover {
 background: #00a5cd;
 font-size: 14px;
}

input[type='radio'] {
  width:auto !important;
  margin-left: 0;
  margin-top: 1px;
}

h1, h2, h3 {
  font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif !important;
}

h2 {
	background: #00a5cd;
	color: white;
}
.textfieldtable input {
  width:auto !important;
}

.radiocheckboxwrappaava {
  overflow-x: auto !important;
  margin-left:20px !important;
  width: 95% !important;
}

.radiocheckboxwrappaava label {
  padding-left:10px;
  max-width: 90%;
}
.yleinen #view .checkboxgroup  {
  margin: 0px;
}

.yleinen #view .checkboxgroup legend {
  margin-left: 5px;
}

label {
  /*max-width:95% !important;*/
}
.radiotable label {
  width: auto !important;
}
select {
  font-size: 14px;
  padding-left:5px;
  padding-right: 5px;
  margin-left: 27px;
}

input[type='checkbox'] {
  height: 16px !important;
  width: 16px !important;
}

.checkbox label {
  width: auto !important;
  
}

input[type='text'] {
    border: 1px solid #d6d9dd !important;
    margin-left: 27px;
}

select {
    border: 1px solid #d6d9dd !important;
}
textarea {
    border: 1px solid #d6d9dd !important;
    margin-left: 27px;
}

.formElement select label {
  padding-left:10px !important;
}

.e3padding {
  padding-left: 40px !important;
}

.C1 input { 
  width: auto !important;
  height: auto !important;
  max-height: 70px;
  position: absolute;
  top: 50%;    
  left:50%;
  transform: translate(-50%, -50%);
    
 }
 
 .C1 {
   width: 33%;
   height: 100px;
   max-width: 250px;
   float:left;
   position:relative;
   margin :5px;
   border: 3px solid rgb(13,118,183);
   border-radius: 15px;
   
 }
 
 .C1_img {
   width:100%;
   height: 80px;
   float:left;
   position:relative;
   transition: .5s ease;
   backface-visibility: hidden;
   
 } 
 .C1_text {
   width: 100%;
   float:left;
   height: 20px;
   text-align:center;
   position:relative;
 }
 
 #C1_container {
   width:90%;
   max-width:800px;
   height:auto;
   float:left;
   border: 3px solid rgb(13,118,183);
   margin-left: 15px;
   margin-right: 15px;
   margin-bottom:20px;
   border-radius: 15px;
 }
 
 .C1_hover{
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  pointer-events: none;
}

.C1:hover .C1 {
  opacity: 0.3;
}

.C1:hover .C1_hover {
  opacity: 1;
}

.C1_hover_text {
  display: block !important;
  background-color: rgb(0,145,221);
  color: white;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 15px;
  pointer-events: none;
}





#view .formElement {
  padding-left:15px !important;
}

fieldset {
  padding-left:0px;
  margin-left:0px;
}

.yleinen #view .checkbox label {
  width:100%;
  max-width: 800px;
}

#view .formElement .info {
  padding-left:30px !important;
}

.fileinput-button input {
  width:100% !important;
  height:100% !important;
}

#view .formElement input[type='submit'] {
  margin-right: 10px;
  padding: 10px;
  width: auto !important;
  height:auto !important;
  min-width:200px !important;
  background: rgb(13,118,183);
  font-size: 14px;
  color:#FFF;
  cursor: pointer;
}

#view .formElement .vas-container .rangeslider .rangeslider__handle {
  background: #1199ee;
}

.yleinen #view .checkboxgroup label, .editori #view .checkboxgroup label {
    max-width: 100% !important;
    width: auto !important;
}

#view .formGroup {
    margin-left: 5px;
}
 
@media only screen and (max-width: 900px) { 
  .C1 {
   width: 30%;
   height: 100px;
   max-width: 250px;
   float:left;
   position:relative;
   margin :5px;
   border: 3px solid rgb(13,118,183);
   border-radius: 15px;
   
  }
  
  .yleinen #view .checkbox label {
      width:90%;
      max-width: 400px;
  }
  
  label {
   max-width: 90% !important;
   white-space: normal;
  }
  
  textarea {
   margin-left: 27px;
   max-width: 80%;
   }
   
   input[type='text'] {
    max-width: 60% !important;
}

}

@media screen and (max-width: 600px) {
  .singletable {
    border: 0;
    width:80%;
  }
  .singletable caption {
    font-size: 1.3em;
  }
  .singletable thead {
    border: none;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  .singletable tr {
    display: block;
    margin-bottom:15px;
    width:100% !important; 
  }
  .singletable td {    
    display: table;
    font-size: .8em;
    //text-align: left !important;
    width:280px;
    height:auto !important;
    line-height: initial;
    vertical-align: middle !important;
    margin-bottom:10px;
  }
  .singletable td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    width:150px;
    text-align:left;
    text-transform: uppercase;
    margin-left:15px;
  }
  
  .singletable td.tarkennuskentta {
    text-align:left !important;
    margin-left:15px !important;
  }
  
  .singletable td.tarkennuskentta input {
    margin-left:0px !important;
  }
  
  .singletable div.checkboxwrapper label {
    position:absolute;
    margin-left:20px;
    width:200px !important;
  }
  
  .singletable label {
    width:150px;
    text-align:left;
  }
  
  .singletable td:last-child {
    border-bottom: 0;
  }
  .singletable th {
    border-bottom: 1px solid gray;
    width:100% !important;    
  }
  .singletable th span {
    white-space: normal !important;
  }
  .singletable input[type=text] {
    width:auto !important;
    margin-left:12px;
  }
  
  .singletable input[type=radio] {
    padding:0;
    margin: 0;
  }
  
  
  .yleinen #view .checkboxgroup, .yleinen #view .textfieldtable, .yleinen #view .radiotable {
    overflow: hidden;
    padding-right: 0;
  }
  
  #view table td.radioy label {
    width:89% !important;
  }
  
  #view table td.radioy input[type=radio] {
    width:10%;
  }
  
  #view table td.radioy {
    white-space:normal;
  }
  
  textarea {
    width: 90% !important;
    margin-left: 27px;
}

input[type='text'] {
    max-width: 60% !important;
}

label {
	max-width:90% !important;
}
  
  
  
}



@media only screen and (max-width: 500px) { 
    
    
  input[type='button'] {
    padding: 10px;
    width: 95% !important;
    height:auto !important;
    background: #0c6ba7;
    font-size: 14px;
    cursor: pointer;
    margin-top:10px;
  }
  
  input[type='text'] {
    border: 1px solid #d6d9dd !important;
    width:90% !important;
    margin-left:27px;
  }
  input[type='password'] {
    border: 1px solid #d6d9dd !important;
    width: 90% !important;
    margin-left: 7%;
  }
  
  
  textarea {
    border: 1px solid #d6d9dd !important;
    width:90% !important;
    margin-left:27px;
  }
  
  
  
  .select label {
    width: auto !important;
  }
  
  .checkbox label {
    width: 90% !important;
  }
  
  .C1 {
   width: 45%;
   height: 100px;
   max-width: 250px;
   float:left;
   position:relative;
   margin :5px;
   border: 3px solid rgb(13,118,183);
   border-radius: 15px;
   
 }
 .radiocheckboxwrappaava {
  width:85% !important;
  display:block;
  //overflow-x:hidden !important;
 }
 
 label {
 max-width: 90% !important;
 }
    
}

@media only screen and (max-width: 350px) { 
  
  
  .C1 {
   width: 90%;
   height: 170px;
   max-width: 320px;
   float:left;
   position:relative;
   margin :5px;
   border: 3px solid rgb(13,118,183);
   border-radius: 15px;
   
  }
  
  .C1 input {
    width: 120px !important;
    height: auto !important;
    position: absolute;
    top: 50%;    
    left:50%;
    transform: translate(-50%, -50%);
    
  }
  
  .C1_img {
   width:100%;
   height: 140px;
   float:left;
   position:relative;
   transition: .5s ease;
   backface-visibility: hidden;
   
  } 
  .C1_text {
    width: 100%;
    float:left;
    height: 20px;
    font-size: 20px;
    text-align:center;
    position:relative;
  }
 

}

#view .radiotable th.otstaulukkoY, #floater th.otstaulukkoY {
    padding: 5px 0 5px 0;
}


#editform .textfieldtable legend, 
#view .textfieldtable legend {
	margin-left: 5px;
}

#view .formElement.labeltop select {
	margin-left: 7px;	
}

#view .formElement.text div.ldapNaytaTekstiLabel, 
#view .formElement.text label, 
#view .formElement.textarea.labeltop label, 
#view .formElement.textarea label  {
	padding-left: 27px;
}

#view .formElement.text div.ldapNaytaTeksti, 
#view .formElement.text.labeltop input, 
#view .formElement.textarea.labeltop textarea {
	margin-left: 27px;
}

