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

/* Fonts */
@font-face {
  font-family: "Montserrat Regular";
  src: url(./fonts/Montserrat-Regular.ttf);
  font-weight: normal;
}

@font-face {
  font-family: "Montserrat Bold";
  src: url(./fonts/Montserrat-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: "Montserrat Light";
  src: url(./fonts/Montserrat-Light.ttf);
  font-weight: light;
}

/* Colors

ORANSSI #ee7203
TUMMAN HARMAA #575756
VAALEA (tausta) #f7f7f7
*/

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

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

#eproto {
	font-family: "Montserrat Light", Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
	font-size: 16px;
        min-width: 320px;
        background: #f7f7f7 url(./assets/OP4_2633.jpg) no-repeat fixed left;
	color: #575756 !important;
}

#header, #footer {
  /*background: rgb(13,118,183);*/
  padding-bottom: 10px;
  font-size: 12px;
  color: ##575756 !important;
  border: none;
}

#container, #view { 
  border:0;
}

#lomakkeen_alkuteksti {
  padding-left: 18px;
}

#view:before {
    background-image: url(./assets/eduix_logo_400x154_orange.png);
    background-size: 100%;
    display: block;
    width: 250px;
    height: 189px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    content: "";
    background-repeat: no-repeat;
}

#view {         
  width:100%;
  padding-top: 25px;
  /*margin-top: 1rem;
  margin-bottom: 1rem;*/
}

#lomakkeen_alkuteksti {
  padding-left:40px;
}

.yleinen #lomake #formInfo h1 {
	color: #ee7203;
	font-size: 2rem;
        width:98%;
	margin-top: 0.75em;
    	margin-bottom: 0.75em;
}

.yleinen #lomake #formInfo h1 #lomakenimi {
        font-size: 75%;
        line-height: 75%;
        display: block;
        color: #575756;
	font-family: "Montserrat Light", Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
}

.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;*/
  font-size: 1.5rem;
  background: #FFF;
  margin-left: 10px;
  padding-left: 32px;
  margin-right: 10px;
  padding-top:5px !important;
  padding-bottom: 5px !important;
  border-bottom: 3px solid #575756;
  color: #ee7203;	
}

.yleinen #view .formGroup.passive .formElement {
  color: #666;
}

.yleinen #view .formElement label a {
  /*color: #66bf29;*/
  color: #ee7203;
  font-weight: bold;
  font-style: italic;
}

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

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

#view .pakollinen {
  /*color: #000;*/
  color: #575756;
}

.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;*/
        color: #ee7203;
	background: none;
}

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

#progressBar {
   /* background-color: rgb(0,130,198);*/
   background-color: #ee7203;
}

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;
}

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

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

#footer div a {
  color: #ee7203 !important;
  font-size: 10px;
}

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

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

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

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

h2 {
	/*background: #2F6394;
	color: white;*/
	color: #ee7203;
}

.textfieldtable input {
  width:auto !important;
}

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

.radiocheckboxwrappaava label {
  padding-left:11px;
  max-width: 90%;
}

.yleinen #view .checkboxgroup  {
  margin: 0px;
}

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

.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: 3px solid #ee7203;
   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);*/
   border: 3px solid #ee7203;
   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);*/
  backgound-color: #ee7203;
  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);*/
  background: #ee7203;
  font-size: 14px;
  color:#FFF;
  cursor: pointer;
}

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

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

#view .formGroup {
    margin-left: 5px;
    margin-top: 2rem;
}

fieldset.formGroup h2:last-of-type {
  margin-bottom: 1rem;
} 

@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: 3px solid #ee7203;
   border-radius: 15px;
  }
  
  .yleinen #view .checkbox label {
      width:90%;
      max-width: 400px;
  }
  
  label {
   max-width: 90% !important;
   white-space: normal;
  }
   
  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;
    min-width: 240px;
  }
  
  #view table td.radioy label {
    width:89% !important;
  }
  
  #view table td.radioy input[type=radio] {
    width:10%;
  }
  
  #view table td.radioy {
    white-space:normal;
  }
  
  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;
  }
  
  .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: 3px solid #ee7203;
   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;
  }
  
  textarea {
  	max-width:243px;
  }

}

#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, #view .formElement.text text {
	margin-left: 11px;	
}

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

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