html {
  scrollbar-face-color: #99b;
  scrollbar-arrow-color: #fff;
  scrollbar-highlight-color: #fff;
  scrollbar-shadow-color: #99c;
  scrollbar-3dlight-color: #000;
}

body {
  margin: 0;
  padding: 0;
  max-height:900px;
  /*background: #f0f0ff url(/resources/kendo-kanji.gif);*/
  background: #888;
  color: #000;
  font: 12px "Lucida Grande", Garuda, "Lucida Sans Unicode", sans-serif;
  color: #333;
  text-align: center;
}

#popupbody {
    background-color:white;
    position: relative;
    min-height: 100%;
    top: 0px;"
    font: 12px "Lucida Grande", Garuda, "Lucida Sans Unicode", sans-serif;
}

/*
 * Main Structure, wrap the whole layout in a div to keep it narrow and centered
 */

#wrapper {
  position: relative;
  width: 960px;
  min-height: 600px;
  margin: 0 auto;
  background: #888;
  text-align: left;
  z-index: 10;
}


#widewrapper {
  position: relative;
  width: 1300px;
  min-height: 600px;
  margin: 0 auto;
  background: #000;
  text-align: left;
  z-index: 10;
}

#header {
  clear: both;
  position: relative;
  background: #ffffff url(resources/JKF_memtext.jpg) no-repeat center;
}

#fan {
    margin:20px 20px 20px 50px;
}

#logo {
  margin: 0px 0px 0px 20px;
}

#popupwrapper {
  position: relative;
  margin: 0 auto;
  background: #fFFFFF;
  text-align: left;
  z-index: 1;
}

h1.sitetitle {
  font-size: 32px;
  margin: 8px 0 15px;
}

h1 a, h1 a:link, h1 a:visited, h1 a:hover {
  color: #fff;
  text-decoration: none;
}

/* Navigation*/

.sidebar {
    margin: 0;
    padding: 0;
    min-width: 200px;
    font-size: 18px;
    background-color: #f1f1f1;
    overflow: auto;
    position: relative;
}
.sidebar .icon {
    display:none;
}

/* Sie bar links */
.sidebar a {
    display: block;
    color: #000000;
    padding: 16px;
    text-decoration: none;
}

/* active/current link*/
.sidebar a.active {
    background-color: #404080;
    color: white;
}

/* mouse over */
.sidebar a:hover:not(.active) {
    background-color: #555;
    color: white;
}

/* Page cntent Margin left must match sidebar width */
div.content {
    margin-left: 20px;
    margin-bottom: 40px;
    padding: 1px 16px;
    height: 100%;
    background: #fff;
/*   overflow: auto;  */
}


#main {
  clear: both;
  width: 100%;
  height:100%;
  min-height:700px;
  /*border-top: 1px solid #fff*/
  margin-left: 0px;
  margin-top: 5px;
  background-color: #fff;
  float:left;
  display: flex;
  flex-direction: row;
}

#popupmain {
  clear: both;
  width: 100%;
  height:100%;
  /*border-top: 1px solid #fff*/
  margin-left: 0px;
  margin-top: 0px;
  background-color: #fff;
  float:left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Content area */

#content {
  float: left;
  width: 800px;
  height: auto;
  padding: 0px 33px 50px 140px;
  background: #fff;
  color: #000;
  line-height: 1.;
  text-align: justify;
  font-family: Verdana, San-serif;
  font-size: 14px;
}

@media only screen and (max-width: 480px) {

}

#footer {
  clear: both;
  background: #f1f1f1;
  padding: 0px;
  width: 100%;
  height: auto;
  overflow: auto;
}

#footercontent {
  float: left;
  width: auto;
  height: auto;
  padding: 10px 20px;
  background: #f1f1f1;
  color: #000;
  line-height: 1.;
  font: 14px "Lucida Grande", Garuda, "Lucida Sans Unicode", sans-serif;
}

a img {
  border: none;
}
div.display {
        display:flex;
        flex-direction: row;
}
.centered {
  text-align: center;
}

.right {
  float: right;
}

.form_button {
    color: #000;
    background-color: #FFF;
    padding: 6px 10px;
    margin-top: 10px;
    border-radius: 6px;
    width: 150px;
    font-size: 12px;
}

.form_button:hover {
    background-color: #C0C0C0;
}

.form_button:disabled {
    opacity:0.6;
    cursor: not-allowed;
}
.form_button:active {
    background-color: #C0C0C0;
}

.small_button {
    color: #000;
    background-color: #FFF;
    padding: 0px 0px;
    margin: 5px 10px 5px 10px;
    border-radius: 6px;
    width: 60px;
    font-size: 12px;
}

.small_button:hover {
    background-color: #C0C0C0;
}

.small_button:disabled {
    opacity:0.6;
    cursor: not-allowed;
}
.form_button_red {
    color: #f1f1f1;
    background-color: #a71919;
	font-weight: bold;
    padding: 6px 10px;
    margin-top: 10px;
    width: 150px;
    font-size: 12px;
}

.form_button_red:hover {
    background-color: #FF0000;
}

.form_button_red:disabled {
    opacity:0.6;
    cursor: not-allowed;
}
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext {
    visibility: hidden;
    font-size: 12px;
    width: 180px;
    background-color: #C8C8C8;
    color: #000;
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 90%;
    left: 80%;
    margin-left: -100px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #c8c8c8 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

input, select, textarea {
    font: 13px "Lucida Grande", Garuda, "Lucida Sans Unicode", sans-serif;
    width: 200px;
}

input.small, select.small, textarea.small {
    font: 11px "Lucida Grande", Garuda, "Lucida Sans Unicode", sans-serif;
    margin: 0px;
    width: 200px;
}

input.narrow, select.narrow, textarea.narrow {
    font: 13px "Lucida Grande", Garuda, "Lucida Sans Unicode", sans-serif;
    width: 100px;
}



input.popup, select.popup, textarea.popup {
    font: 12px "Lucida Grande", Garuda, "Lucida Sans Unicode", sans-serif;
    width: 200px;
}

input[type=checkbox] {
    width:20px;
}
input[type=radio] {
    width:20px;
}

.errormsg {
    color: #E34234;
    font-size: 100%;
}

.message {
    width: 50%;
}

.tabledata {
    font-size : 13px;
    width:100%;
}
.tabledata td {
    padding: 0px 15px 0px 0px;
}
.tabledata th {
    padding: 0px 15px 0px 0px;
    font-size : 14px;
}

.smalltabledata {
    font-size : 12px;
}
.smalltabledata td {
    padding: 0px 8px 0px 0px;
    vertical-align : top;
}
.smalltabledata th {
    padding: 0px 8px 0px 0px;
    vertical-align : top;
}
.smallselecttabledata {
    font-size : 12px;
 }
.smallselecttabledata th,.smallselecttabledata td {
    padding: 0px 8px 0px 0px;
    vertical-align : top;
}
.smallselecttabledata tr {
}
.smallselecttabledata tr:hover {
    background: lightgray;
}

.carttabledata {
    font-size : 12px;
    width: 100%;
    background-color: lightgray;
}
.carttabledata td {
    padding: 0px 15px 0px 0px;
    vertical-align : top;
}

.box {
    border-style: solid;
    border-width: 1px;
    padding: 0px 20px 10px 20px;
}

h1 {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
	color: #a71919;
}
h2 {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 18px;
	font-weight: bold;
	text-decoration: none;
	color: #000000;
}
h3 {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 18px;
	font-weight: bold;
	text-decoration: none;
	color: #a71919;
}

h4 {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
    margin: 5px 0px 5px 0px;
	color: #a71919;
}
h5 {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
    margin: 5px 0px 5px 0px;
	color: #000000;
}
h6 {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
    font-weight: normal;
	font-size: 12px;
	text-decoration: none;
    margin: 0px 0px 0px 0px;
	color: #000000;
}

.blurb {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 11px;
	font-weight: normal;
	text-decoration: none;
    margin: 5px 0px 5px 0px;
	color: #000000;
}

button {
    color: #000;
    background-color: #FFF;
    padding: 6px 10px;
    margin-top: 10px;
    width: 100%;
    font-size: 12px;
    text-decoration: none;
}

button:hover {
    background-color: #C8C8C8;
}
button:active {
    background-color: #C8C8C8;
}

    /* Style the tab */
div.tab {
        xoverflow: auto;
        xborder: 1px solid #ccc;
        background-color: #f1f1f1;
    }
    /* Style the buttons inside the tab */
    .tab button {
        background-color: inherit;
        float: left;
        width: unset;
        xborder: none;
        outline: none;
        margin: unset;
        cursor: pointer;
        xpadding: 14px 16px;
        transition: 0.3s;
        font-size:17px;
    }
    /* change backround colour on hover*/
    .tab button:hover {
        background-color: #ddd;
    }
    /* Create active tablink class */
    .tab button.active {
        background-color: #ccc;
    }
    /* style for tab content */
    .tabcontent {
        display: none;
        padding: 6px 0px;
        border-top: none;
        clear: left;
    }
    #output_image {
        max-width:200px;
    }

       div.centre {
        height: 100%;
        overflow: auto;
    }
    div.sidepane {
        float: right;
        margin-left:10px;
        margin-bottom:40px;
        padding: 0px 15px 0px 0px;
        height: 100%;
        max-width:320px;
        font-size:11px;
        overflow: auto;
    }
    div.info {
        border: 2px solid;
        border-color: lightgray;
        margin:10px 60px 10px 0px;
        padding:5px;
    }
    div.event {
        border: 2px solid;
        border-color: lightgray;
        display: flex;
        flex-direction: row;
        margin:2px 0px 2px 0px;
    }
    div.frame {
        border: 1px solid;
        border-color: lightgray;
        margin:4px 0px 4px 0px;
        width:600px;
    }
    div.warning {
        border: 2px solid;
        border-color: red;
        margin:2px 0px 2px 0px;
        padding:0px 10px 10px 10px;
    }
    img.event {
        float: left;
        margin: 0px 5px 0px 0px;
    }
    div.eventdata {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width:100%;
    }
    .eventbox {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    select.event, input.event {
        font-size: 12px;
        width: 300px;
        margin: 2px 0px 2px 0px;
    }
    select.event {
        width: 308px;
    }

    .scrolllist {
        border: 1px solid;
        border-color: lightgray;
        margin: 4px, 4px;
        padding:4px;
        height: 160px;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .widelist {
        margin: 4px, 4px;
        padding:4px;
        width: 100%;
        overflow-y: hidden;
        overflow-x: auto;
    }
    #memberdata {
        width:600px;
    }

#certificatebody {
    background-color:white;
    color: #000;
    position: absolute;
    width:210mm;
    height:296mm;
    padding:15mm;
}

#hcertificate {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 40px;
	font-weight: bolder;
	text-decoration: none;
	color: #000000;
    float:right;
    margin:40px 20px 40px auto;
}

#watermark {
    opacity: 0.3;
    position:absolute;
    top:350px;
    left:50px;
    z-index:-1;
}
img.certificate {
    display:block;
    margin-left: auto;
    margin-right:auto;
}

h1.certificate {
    margin-top:5px;
    margin-bottom:5px;
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
	color: #a71919;
}
h2.certificate {
    margin-top:5px;
    margin-bottom:5px;
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
	color: #000000;
}
h3.certificate {
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 18px;
	font-weight: bold;
	text-decoration: none;
	color: #a71919;
}
p.certificate {
    margin-top: 6px;
    margin-bottom: 10px;
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 16px;
	color: #000000;
    text-align:justify;
}
p.certificate12 {
    margin-top: 6px;
    margin-bottom: 6px;
	font-family: Trebuchet MS,sans-serif;
	font-style: normal;
	font-size: 12px;
	color: #000000;
    text-align:left;
}
table.certificate {
	font-family: Trebuchet MS,sans-serif;
	font-size: 16px;
	color: #000000;
    margin-left:auto;
    margin-right:auto;
}

@media screen and (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .sidebar a {float: left;}
    div.content {margin-left: 0;}
    #main { flex-direction: column;}
    #header {
      width: auto;
      padding-bottom: 2px;
    }
}

@media only screen and (max-width: 480px) {
  #wrapper {
    width: 480px;
  }
  #main {
/*    width: 480px;  */
    margin: 0;
  }
  #header {
    min-height :100px;
    padding-bottom: 2px;
    background: #ffffff url(resources/JKF_memtext-small.jpg) no-repeat center;
  }
  #logo {
    margin:  0px 0px 0px 0px;
  }
  #fan {
    margin-left:5px;
    margin-top:20px;
  }
  #content {
    float: none;
/*    width: 480px;    */
    margin: 0;
    padding: 0px 30px 20px 20px;
  }
  div.frame {
      width:96%;
  }
  .sidebar {
    position:fixed;
    bottom:0;
    overflow:hidden;
    z-index:99;
  }
  .sidebar a {
    text-align: center;
    float: none;
  }
  .sidebar a:not(:first-child) { display: none;}
  .sidebar a.icon{
    float:right;
    display:block;
  }
  .sidebar.responsive a.icon {
      position: absolute;
      right: 0;
      bottom:0;
  }
  .sidebar.responsive a {
    float:none;
    display: block;
  }
  div.display {
        display:flex;
        flex-direction: column;
  }
  div.warning {
        width:350px;
        border: 2px solid;
        border-color: red;
        margin:2px 0px 2px 0px;
        padding:0px 10px 10px 10px;
  }
  select.event, input.event {
        font-size: 12px;
        width: 200px;
        margin: 2px 0px 2px 0px;
  }
  select.event {
        width: 208px;
  }
    .form_button {
        color: #000;
        background-color: #CCC;
        padding: 6px 10px;
        margin-top: 10px;
        border-radius: 6px;
        width: 150px;
        font-size: 12px;
    }
    .form_button:hover {
    background-color: #C0C0C0;
    }
    .form_button:disabled {
        opacity:0.6;
        cursor: not-allowed;
    }

}






