*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
@font-face {
  font-family: 'Yanone';
  src: url('fonts/YanoneKaffeesatz-Regular-webfont.eot');
  src: local('¢'), url('fonts/YanoneKaffeesatz-Regular-webfont.woff') format('woff'), url('fonts/YanoneKaffeesatz-Regular-webfont.ttf') format('truetype'), url('fonts/YanoneKaffeesatz-Regular-webfont.svg#webfontAGQ6uv7S') format('svg');
  font-weight: normal;
  font-style: normal;
}

html{
  font-family: Arial, Sans-serif;
  font-size: 14px;
  box-sizing: border-box; 
}
body {
  background-color: #f2f5f7;
  color: #000000;
  font-size: 14px;
}
a, a:hover, a:visited {
  text-decoration: none;
  color: #000000;
}
div {
  /* display: flex; */
  padding: 0px;
  font: 14px Arial, Sans-serif;
  box-sizing: border-box;
}
div > #left {
  position: fixed;
  left: 0;
  width: 300px;
  height: calc(100vh - 72px);
  min-width: 300px;
  border: 1px solid gray;
  /* background: #ff0000; */
}
div > #main {
  position: fixed;
  left: 300px;
  display: inline-block;
  width: calc(100vw - 300px);
  min-width: 350px;
  height: calc(100vh - 72px);
  border: 1px solid gray;
  /* background: #00ff00; */
}
#hdr {
  display: flex;
  padding: 0;
  margin: 0;
  height: 40px;
  width: 100vw;
  min-width: 350px;
  border: 1px solid gray;
  /* background: #0000ff; */
}
#ftr {
  position: fixed;
  height: 32px;
  width: 100vw;
  min-width: 350px;
  border: 1px solid gray;
  /* background: #ffffff; */
  top: calc(100vh - 32px);
  font: 20px 'Yanone';
  text-align: center;
}
div > #mnu {
  display: none;
}
div > #lgo {
  display: none;
}
div > #logo {
  display: block;
  height: 40px;
  width: 100vw;
  float: left;
  padding-left: 10px;
  font: 28px 'Yanone';
}
#check:checked ~ div > #left {
  left: -300px; 
  /* background:red;  */
}
#check:checked ~ div > #main {
  left: 0;
  width: 100vw;
}
#check {
  display: none;
}     
div > #btm {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
}

.datagrid-footer .datagrid-row{
    background-color: #EEF7F7;
    font-weight: 900;
  }

#photo{
  margin: 10px auto 10px;
  text-align: center;
  color: #ffffff;
}
#photo img{
  height: 80px;
  width: auto;  
}

p.Copyright {
  font: 18px 'Yanone'; 
  color: #c8c6c6;
  text-decoration: none;
}


/* ====== copied from panel style ==== */
body a {
  width : 100px; 
  padding-bottom: 2px; 
}
.divcentre {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}


.gridpanel {
  width: 100%;
  height: auto;
  margin: 10px auto;
}

.row {  
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 0px;
  padding-top: 0;
  padding-left: 0;
  max-height: auto;    
}

.lside {
  flex: 40%;  
  padding: 0px;
  padding-right: 6px;
  margin-top: auto;
  margin-bottom: auto;
  text-align: right;
  max-width: 40%;

 }

 .lside2 {
  flex: 20%;  
  padding: 0px;
  padding-right: 6px;
  margin-top: auto;
  margin-bottom: auto;
  text-align: right;
  max-width: 20%;
   
 }



 .rside {  
  flex: 60%;  
  margin-top: 0;
  padding: 0px;
  max-width: 60%;
}

.rside2 {  
  flex: 80%;  
  margin-top: 0;
  padding: 0px;
  max-width: 80%;
}

.controlgroup {
  border: 1px solid #2779AA; 
  border-radius: 10px; 
  margin: 6px 6px 12px 6px; 
  padding: 10px;
  background-color: white;
}


/* grid layout styling */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 8px;
  align-items: end;
}


.grid__col1 {
  grid-column: span 1;
}
.grid__col2 {
  grid-column: span 2;
}
.grid__col3 {
  grid-column: span 3;
}
.grid__col4 {
  grid-column: span 4;
}
.grid__col5 {
  grid-column: span 5;
}
.grid__col6 {
  grid-column: span 6;
}
.grid__col7 {
  grid-column: span 7;
}
.grid__col8 {
  grid-column: span 8;
}
.grid__col9 {
  grid-column: span 9;
}
.grid__col10 {
  grid-column: span 10;
}
.grid__col11 {
  grid-column: span 11;
}
.grid__col12 {
  grid-column: span 12;
}

.grid-container {
  display: grid;
  grid-template-columns: auto auto auto auto 150px 150px;
  grid-template-areas:
    'header header header header subtotal subtotal'
    'detail detail detail detail subtotal subtotal'
    'detail detail detail detail subtotal subtotal';
  grid-gap: 2px;
  background-color: #2196F3;
  padding: 2px;
}

.grid-container > div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px 0;
  font-size: 30px;
}

.header { 
  grid-area: header; 
  padding: 5px;
}
.detail { 
  grid-area: detail;
  padding: 5px; 
}
.subtotal { 
  grid-area: subtotal; 
  padding: 5px;
}


.wrapper {
  height: 100vh;
  /* This part is important for centering the content */
  display: flex;
  align-items: center;
  justify-content: center;
  /* End center */
  background: -webkit-linear-gradient(to right, #834d9b, #d04ed6);
  background: linear-gradient(to right, #834d9b, #d04ed6);
}

.modal {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;  
  align-items: center;
  justify-content: center;
  background: rgba(77, 77, 77, .7);
  transition: all .4s;
  z-index: 99;
}

.modal:target {
  visibility: visible;
  opacity: 1;
}

.modal__content {
  display: flex;
  flex-direction: column;
  gap:10px;
  border-radius: 4px;  
  width: 400px;
  max-width: 90%;
  background: #fff;
  padding: 1em 2em;
  margin-top: 10px;
}


.noticeboard {
top: 50%;
margin-top: 5%;
 width: 40%;
  height: 70%;
  /*background: rgb(2,0,36);
background: linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(41,99,57,1) 35%, rgba(255,255,255,1) 100%);*/
background: rgb(135,165,199);
background: linear-gradient(180deg, rgba(135,165,199,1) 0%, rgba(149,185,199,0.9248074229691877) 46%, rgba(245,245,245,1) 100%);
  padding: 50px 30px 20px 30px;
  opacity: 100%;
  border-radius: 20px;
}

div.noticeboard marquee>div:nth-of-type(even) {
  background-color: #CFECEC;
}

.noticeboard span {
  color: black;
  font-size: 14px;
}

/*.noticeboard:hover {
  opacity: 100%;
}*/

.noticeboard marquee div {
  text-align: left;
  margin: 20px auto;
  margin-bottom: 30px;
  padding: 15px 15px;
  background-color: #F0FFF0;
  color: black;
  vertical-align: middle;
  box-shadow: 5px 5px 10px;

  /*box-shadow: 0px 10px 10px -5px rgba(0,0,0,0.5);*/
}

.noticeboard marquee h2 {
  margin-bottom: 5px;
}

.noticeboard .nbheader {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /*background-color: red;*/
  padding: 5px 10px; 

  margin-top: -50px; 
  color: white;
}

.maindisplay {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  /*align-content: space-between;*/
}

.todolist {  
  width: 45%; 
  min-height: 70%;
  border: 1px solid dodgerblue;
}

.shadow1 {
   text-shadow: 0 1px 0 #ccc, 
               0 2px 0 #c9c9c9,
               0 3px 0 #bbb,
               0 4px 0 #b9b9b9,
               0 5px 0 #aaa,
               0 6px 1px rgba(0,0,0,.1),
               0 1px 3px rgba(0,0,0,.3),
               0 3px 5px rgba(0,0,0,.2),
               0 5px 10px rgba(0,0,0,.25),
               0 10px 10px rgba(0,0,0,.2),
               0 20px 20px rgba(0,0,0,.15);
               0 30px 20px rgba(0,0,0,.1); 
}

@media (min-width: 40em) {
  #main_display li {
    margin: 3rem auto;
    padding: 3rem 2rem 2rem;
  }
  
  #main_display h3 {
    font-size: 2.25rem;
    margin: 0 0 2rem;
  }
  
  #main_display h3::before {
    margin-right: 1.5rem;
  }
}


/* TABLET SIZE */
@media screen and (max-width: 991px) {
  div > #left {
    /* display: none;  */
    left: -300px;
  }
  div > #main {
    left: 0;
    display: inline-block;
    width: 100vw;
    min-width: 350px;
    height: calc(100vh - 72px);
    /* background: #00ff00;  */
  }
  div > #mnu {
    display: flex;
    width: 30px;
    height: 30px;
    float: right;
    justify-content: center;
    align-items: center;
    text-align: center;
    vertical-align: middle;
    margin: 4px 6px 2px 2px;
    border: 1px solid black;
    border-radius: 3px;
    /* background: white; */
  }
  div > #lgo {
    display: block;
    width: 40px;
    height: 40px;
    float: left;
    margin: 4px 0px 4px 4px;
  }
  div > #logo {
    padding-left: 0px;
    font: 28px 'Yanone';
    width: calc(100vw - 40px);
  }
  #check:checked ~ div > #left {
    left: 0px; 
    /* background:red;  */
  }
  #check:checked ~ div > #lgo {
    display: none;
  }
  #check:checked ~ div > #logo {
    padding-left: 10px;;
  }
  #check:checked ~ div > #main {
    left: 300px;
    width: calc(100vw - 300px);
  }
  #check {
    display: none;
  }


.row {  
    flex-direction: column;  
}

.lside {
  flex : 100%;
  text-align: left;
  max-width: 100%;
  margin-bottom: 2px;
  padding-bottom: 2px;
}

.rside { 
    flex: 100%;
    max-width: 100%;
    margin-top: 0;
    padding-top: 0;
} 

.gridpanel {
    width: 100%;
    height: auto;
    margin: 10px auto;
  }

  .grid__colmd1 {
    grid-column: span 1;
  }
  .grid__colmd2 {
    grid-column: span 2;
  }
  .grid__colmd3 {
    grid-column: span 3;
  }
  .grid__colmd4 {
    grid-column: span 4;
  }
  .grid__colmd5 {
    grid-column: span 5;
  }
  .grid__colmd6 {
    grid-column: span 6;
  }
  .grid__colmd7 {
    grid-column: span 7;
  }
  .grid__colmd8 {
    grid-column: span 8;
  }
  .grid__colmd9 {
    grid-column: span 9;
  }
  .grid__colmd10 {
    grid-column: span 10;
  }
  .grid__colmd11 {
    grid-column: span 11;
  }
  .grid__colmd12 {
    grid-column: span 12;
  }


  .grid-container {
  display: grid;
  grid-template-columns: auto auto auto auto 150px 150px;
  grid-template-areas:
    'header header header header subtotal subtotal'
    'detail detail detail detail subtotal subtotal'
    'detail detail detail detail subtotal subtotal';
  grid-gap: 2px;
  background-color: #2196F3;
  padding: 2px;
}

}







/* MOBILE SIZE */ 
@media screen and (max-width: 600px) {

.row {  
    flex-direction: column;  
}

.lside {
  flex : 100%;
  text-align: left;
  max-width: 100%;
  margin-bottom: 2px;
  padding-bottom: 2px;
  }

.rside { 
    flex: 100%;
    max-width: 100%;
    margin-top: 0;
    padding-top: 0;
  }

.gridpanel {
    width: 100%;
    height: auto;
    margin: 10px auto;
  }

.maindisplay {
  /*display: flex;*/
  flex-direction: column;
}

.todolist { 
margin-top: 10px; 
  width: 95%; 

}

/* == Grid Columns == */
  .grid__colsm1 {
    grid-column: span 1;
  }
  .grid__colsm2 {
    grid-column: span 2;
  }
  .grid__colsm3 {
    grid-column: span 3;
  }
  .grid__colsm4 {
    grid-column: span 4;
  }
  .grid__colsm5 {
    grid-column: span 5;
  }
  .grid__colsm6 {
    grid-column: span 6;
  }
  .grid__colsm7 {
    grid-column: span 7;
  }
  .grid__colsm8 {
    grid-column: span 8;
  }
  .grid__colsm9 {
    grid-column: span 9;
  }
  .grid__colsm10 {
    grid-column: span 10;
  }
  .grid__colsm11 {
    grid-column: span 11;
  }
  .grid__colsm12 {
    grid-column: span 12;
  }

  .grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'header'
    'detail'
    'subtotal';
  grid-gap: 2px;
  background-color: #2196F3;
  padding: 2px;
}

.noticeboard {
    z-index: 1;
    position: relative;
    top: 0;
   right:0;
   width: 100%;
    height: 200px;
    padding: 50px 10px 5px 10px;
    /*background-color: #a1004e;*/
    /*padding: 0px;*/
    opacity: 50%;
    border-radius: 0px;
    /*direction: left;*/
  }

.noticeboard marquee div {
    text-align: left;
    margin: 20px auto;
    margin-bottom: 0px;
    padding: 0px 0px;
    /*background-color: #a1eaff;*/
    color: black;
    vertical-align: middle;
    box-shadow: 5px 5px 10px;
    /*width: 90%;*/
  }

  .noticeboard .nbheader {
    margin-top: -50px;
  }



}