:root {
	--standardTableHeaderBackground: #dedede;
	--standardTableBody: white;
	--standardTableBorder: black;
	--standardTableFont: black;
	
	--gridbackgroundcolour:#afafaf17;
}

.inputrow {
	display: flex;
	flex-wrap: wrap;
	background-color: var(--gridbackgroundcolour);
	padding: 10px 15px;    /* top/bottom and left/right */
}

/* Clear floats after the columns */
.inputrow::after {
  content: "";
  display: table;
  clear: both;
}

.inputrow label {
  display: inline-block;
  float: left;
  width: 100%;
}

.inputrow labelrightcheckbox {
  display: inline-block;
  padding: 10px 10px;   /* top/bottom and left/right */
  float: left;
  width: 100%;
}

.inputrow labelright {
  display: inline-block;
  float: left;
  width: 100%;
}

.inputrow input {
  width: 100%;
  border: 1px solid #ccc;
  padding: 10px 10px;   /* top/bottom and left/right */
  border-radius: 4px;
  resize: vertical;
}

.inputrow .checkbox {
  height: 20px;
  width: 20px;
  resize: vertical;
}

.inputrow textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}


.inputrow select{
  width: 100%;
  padding: 15px 0px;   /* top/bottom and left/right */
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.col-5 {
  float: left;
  padding: 10px 5px;   /* top/bottom and left/right */
  width: 5%;
  margin-top: 6px;
}

.col-20 {
  float: left;
  padding: 10px 5px;   /* top/bottom and left/right */
  width: 20%;
  margin-top: 6px;
}

.col-50 {
  float: left;
  width: 50%;
  margin-top: 6px;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-20, .col-50, input[type=submit] {
    width: 100%;
    margin-top: 0;
  }
}

.form  {
 padding: 5px 5px;   /* top/bottom and left/right */
margin: 0px;
}

.form  errormsg {
  color: red;
  font-weight: bold;
	cursor: pointer;
	display: inline-block;
	padding: 3px 6px;
	text-align: left;
	width: 200px;
	vertical-align: top;
	white-space: pre;
}

.form .event_image{
 /* display: block;
  margin-left: auto;
  margin-right: auto;
  width: 40%;*/
  
  	width:100%;
	max-height:300px;
	object-fit: cover; /* keep aspect ratio but clip image */
	
}

.button {
	width: 100%;
	background-color: #04AA6D; /* Green */
	border: 1px solid black;
	border-radius: 10px;
	color: white;
	padding: 16px 32px;
	font-size: 16px;
	transition-duration: 0.4s;
	cursor: pointer;
  white-space: break-spaces;
}

.button:hover {
  background-color: #6af4c1;
  color: black;
}


.add_full_Width_Thin_Button {
	width: 100%;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 5px;
	padding: 0px;
	background-color: #555555;
	color: white;
	border: 2px solid #555555;
}

.add_full_Width_Thin_Button:hover {
  background-color: white;
  color: black;
}


.add_full_Width_Button {
	width: 100%;
	text-align: center;
	margin-top: 5px;
	margin-bottom: 5px;
	background-color: #555555;
	color: white;
	border: 2px solid #555555;
}

.add_full_Width_Button:hover {
  background-color: white;
  color: black;
}

.add_full_Width_Button_inverse {
	width: 100%;
	text-align: center;
	margin-top: 5px;
	margin-bottom: 5px;
	background-color: #cce7fd; 
	color: black;
	border: 2px solid #555555;
}

.add_full_Width_Button_inverse:hover {
    background-color: #555555;
	color: white;
}


.add_full_Width_Button_inverse:hover {
    background-color: #555555;
	color: white;
}

table.StandardTable {
  background-color: var(--standardTableBody);
  border-collapse: collapse;
  border-width: 1px;
  border-style: solid;
  color: var(--standardTableFont);
  overflow: auto;
}

table.StandardTable th {
  background-color:  var(--standardTableHeaderBackground);  
  border-width: 1px;
  border-color: var(--standardTableBorder);
  border-style: solid;
}

table.StandardTable td{
text-align: left;
  border-width: 1px;
  border-color: var(--standardTableBorder);
  border-style: solid;
  max-height: 150px;
  word-wrap: break-word;
  line-height: 1.2em;
  min-width: 100px;
  /*
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
 */
}

	
#table-scroll {
  max-height:700px;
  overflow:auto;  
  margin-top:20px;
  padding: 5px 5px;   /* top/bottom and left/right */
}


	
/*
Add a bottom border to each row for separation
Add a lighter background to every second row to help readability
Add a dark border to the very last row to signify the end of the table
*/


.StandardTable tbody tr {
    border-bottom: 1px solid #dddddd;
}

.StandardTable tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.StandardTable tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}
 

@media only screen and (max-width: 600px)
 {

  table.StandardTable 
  {
    display: flow;
    max-width: 100%;
  }

  .StandardTable tbody tr:nth-of-type(even) 
  {
    background-color: white;
  }

  table.StandardTable thead 
  {
    display: none;
  }

  table.StandardTable td
  {
    display: contents;
  }

}
