.*{
    margin: 0;
    padding: 0;
    border: none;
}
html,body{
    height: 100%;
}
@font-face {
    font-family: 'sinhala_mnregular';
    src: url('../fonts/sinhalamn-webfont.eot');
    src: url('../fonts/sinhalamn-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/sinhalamn-webfont.woff2') format('woff2'),
         url('../fonts/sinhalamn-webfont.woff') format('woff'),
         url('../fonts/sinhalamn-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body{ 
font-family: 'sinhala_mnregular'!important; 
font-size: 24px;
}
.displaynone{
  display: none;
}

#page-container {
   min-height:100%;
   position:relative;
   cursor: default;
  -webkit-user-select: none; /* Chrome/Safari */        
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
}
#header{
    background-color: white;
    /* padding:10px; */
}
#header img{
    max-height: 96px;
    max-width:40%;
}
#page-wrap{
    padding:10px;
    padding-bottom:186px;
}
.ribbon{
    height: 50px;
    background: linear-gradient(to right,#f39100,#be1320); /* Standard syntax */
    background: -webkit-linear-gradient(left,#f39100,#be1320); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(left,#f39100,#be1320); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(left,#f39100,#be1320); /* For Firefox 3.6 to 15 */
    color: white;
    font-size: 40px;
    text-align: center;
}
.ribbon #middle{
    width: 100%;
    line-height: 50px;
    text-transform: uppercase;
}
span#countdownbox{
    position: fixed;
    right: 16px;
    background: white;
    padding: 0px 5px;
    border: solid 2px #eee;
    border-radius: 7px;
    z-index: 2;
    font-family: arial;
    color: black;/*#27215b;*/
    font-size: 20px;
    font-weight: 400;
    margin-top: 10px;
}
#countdownbox .alerttime{
  color: #bd2325;
}
#footer {
   position:absolute;
   bottom:0;
   width:100%;
   height:187px;   /* Height of the footer */
   text-align: center;
   background:#BD2325;
}
#footer img{
    max-width: 100%;
}
#footer #advantage{
    text-align: right;
    color: white;
    font-size: 16px;
    padding-right: 80px;
}
.rewriteemail input{
    margin-top: 0px;
    vertical-align: top;
}
.boomerang{
    vertical-align: text-top;
    margin: -9px 0 0 -10px;
    position: relative;
    z-index: -1;
}
#hideshow1{
    display: none;
    height: 35px;
}
#topbottom label.field{
    min-width: 100px;
}
#prepositions label.field{
    min-width: 20px;
}
label{
    font-weight: normal;
}
label.error{
    display: none;
    color: red;
    font-style: italic;
    margin-left: 15px;
}
div.phperror{
    color: red;
    font-style: italic;
    margin-left: 15px;
}
form#talquiz h2{
    text-transform: uppercase;
    text-align: center;
    font-size: 50px;
    margin: 4%;
    margin-left: 0%;
}
form#talquiz h4{
    margin-left: 30px;
    font-weight: 700;
    font-size: 30px;
}
/**************************SORTABLE**************************/
#sortable1 { 
  list-style-type: none; 
  margin: 0; 
  padding: 0; 
  width: 100%; 
}
#sortable1 li { 
  margin: 0 5px 5px 5px; 
  padding: 5px; 
  font-size: 1.2em; /*height: 1.5em;*/
  padding: 5px 15px; 
  background-color: white;
  border-radius: 5px;
}
html>body #sortable1 li,#sortable2 { 
  line-height: 1.2em; 
}
.ui-state-highlight { 
  line-height: 1.2em; 
}
#pri1,#pri2{
  /* margin-left: 65px; */
  text-align: center;
}
#sortable2, #top3, #bottom3 { 
  list-style-type: none; 
  margin: 0; 
  float: left; 
  /*margin-right: 10px; */
  background: #eee; 
  padding: 5px; 
}
#sortable2 li, #top3 li, #bottom3 li { 
  margin: 5px; 
  padding: 5px; 
  font-size: 1em;
}
#sortable2 {
  width: 100%;
  background-color: white;
}
#sortable2 li, #top3 li, #bottom3 li{
  line-height: 1em; 
  border-radius: 5px;
  background-color: white;
}
#top3 li, #bottom3 li{
  line-height: 0.9em;
}
#top3,#bottom3{
    /*   width: 24%;
    margin-left: 1%; */
    width: 100%;
    margin-top: 10px;
    min-height: 100px;
    background-color: white;
    background-color: #ddd;
    border-radius: 5px;
    border: 1px solid #c5c5c5;
}
.ui-state-disabled{
/*  opacity: 1;*/
  text-align: center;
}
.ui-sortable-placeholder {
  border-color: #bf272f;
  height: 1.4em;
}
/**************************NAVBAR***********************************/
.alltabs{
    margin: 10px 0; 
    width: 100%;
    padding: 0;
}
#mytabs.nav.nav-tabs {
    width: 100%;
    font-size: 20px;
    text-align: center; 
}
#mytabs.nav.nav-tabs ul{
    margin: 0.5%;  
}
#mytabs.nav.nav-tabs li {
    border-bottom-color: rgba(236, 151, 31,0.2);
    border-bottom-width: medium;
    border-bottom-style: solid;
}
#mytabs.nav.nav-tabs li a {
    border-color: rgba(236, 151, 31,0.2) !important;
    border-bottom-style: solid;
    padding:0;
    min-height: 60px;
}
#mytabs.nav.nav-tabs li a:focus{
    background-color: white;
    border-bottom: solid 1px #ddd;
}
.tab-content{
    margin-bottom: 30px;
}
.tab-pane li{
    margin-left: 5%;
}
.tabtop a{
    border: solid 1px #ddd !important;
    color: black;
}
.tabtop.complete a{
    border-color: rgb(153,204,102); /*green*/
    background: rgb(153,204,102);
    color: white;
}
.tabtop.incomplete a{
    background-color: rgba(201, 48, 44, 0.9); /*red*/
    border-color: #ac2925 !important;
    color: white;
}
.tabtop.active a{
    background-color: #ec971f !important; /*orange*/
    border-color: #d58512 !important;
    color: #fff !important;
}
ul.nav.nav-tabs li.tabtop a:hover{
    background-color: white;    
    border-color: rgba(236, 151, 31,0.5) !important;
    color: #333;
}
li.tabtop:hover{
    border-bottom-color: rgba(236, 151, 31,0.5)  !important;
}

/**************************QUESTIONS/ANSWERS***********************************/
.form-group{
    list-style-type: none;
    margin:0;
    padding:0;
}
.form-group li ul {
    padding:0;
}

.form-group li ul li{
    list-style-type: none;
    margin:0;
}
ul div.QuestionAnswer,
.QuestionAnswer {
    /*margin-bottom:3%;*/
    margin-top:3%;
    padding: 1%;
    border-radius: 5px;
    border-color: rgba(51, 51, 51, 0.5);
    border-width: thin;
    border-style: solid;
    background: url('../img/question_bg.jpg') no-repeat center center;
    background-size: auto;
}
ul li.Question{
    margin-left:0;
}
div.scenario {
    color: #524f4f;
    margin-top: 3%;
    /*margin-bottom: 2%;*/
    padding: 2%;
    background-color: transparent;
    border-radius: 5px;
    border-color: rgba(201, 48, 44, 0.9);
    border-width: thin;
    border-style: solid;
}
div.scenario h4{
    color: #333;
    margin-top: 0;
    padding:0;
    text-align: center;
    text-decoration: none;
}
.optionFormatPurpose{
    margin-left: 1.75em;
    margin-bottom:3%;
}
textarea{
  width: 100%;
  height: 300px;
}
input.fibprep {
    max-width: 75px;
    height: 30px;
    text-align: center;
}
/**************************BUTTONS***********************************/
.tab-pane button,#submit{
    margin: 3%;
    min-width: 25%;
    height: 5%;
    font-size: 30px;
/*    line-height: 30px;*/
}

.btn-primary{
    background-color: #c9302c;
    border-color: #b71925;
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: rgba(190, 19, 32,0.7);
    border-color: #b71925;
}

.btn-primary:hover{
    background-color: #9d322f;
    border-color: #b71925;
}
input#submit{
  background-color: rgba(39, 33, 91, 1);
  border:solid 1px rgba(33, 78, 91, 1);
}
input#submit:hover{
  background-color: rgba(39, 33, 91, 0.8);
  border:solid 1px rgba(33, 78, 91, 0.8);
}
.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open > .dropdown-toggle.btn-primary.focus {
    background-color: #9d322f;
    border-color: transparent;
}
div.buttons{
    text-align: center;  
}
/**************************RESULTS PAGE***********************************/
#resulttitle{
  margin: 10px 0;
  text-align: left;
  text-transform: none;
}
#results{
    margin-bottom: 20px;
}
#results li{
  margin-bottom: 10px;
}
.progress{
    margin-bottom: 0;
}
#result_ul{
  padding-left: 0;
  list-style-type: none;
}

/************************MEDIA QUERIES*************************************/

@media screen and (max-width:1350px) {
    #mytabs.nav.nav-tabs li a {
        height: 63px;
        padding:0;
    }
}
@media screen and (max-width:770px) {
    #mytabs.nav.nav-tabs li {
        border-bottom:none;
    }
    ul div.QuestionAnswer{
        width:100%;
        border-color: rgba(31, 30, 30, 0.2);
        border-width: medium;
        border-style: solid;
        border-radius: 2px;
        padding: 2%;
        margin-top:2%;
        margin-bottom:2%;
    }
    div.scenario {
        margin-top: 7%;
        padding: 2%;
        background-color: transparent;
        border-radius: 5px;
        border-color: rgba(201, 48, 44, 0.9);
        border-width: medium;
        border-style: solid;
    }
}
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    #page-wrap{
        padding-bottom: 177px;
    }
    #footer{
        height: auto;
    }
    #footer img{
        max-width: 100%;
        height: 155px;
    }
    #footer #advantage{
        font-size: 16px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    #page-wrap{
        padding-bottom: 138px;
    }
    #footer{
        height: auto;
    }
    #footer img{
        max-width: 100%;
        height: 116px;
    }
    #footer #advantage{
        font-size: 16px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    #page-wrap{
        padding-bottom: 91px;
    }
    #footer{
        height: auto;
    }
    #footer img{
        max-width: 100%;
        height: 69px;
    }
    #footer #advantage{
        font-size: 12px;
    }
}

/* Extra Small Devices, Phones */ 
@media only screen and (max-width : 480px) {
    #page-wrap{
        padding-bottom: ;
    }
    #footer{
        height: auto;
    }
    #footer img{
        max-width: 100%;
        height: ;
    }
    #footer #advantage{
        font-size: 12px;
    }
}