/*
 * Author: Michael Finkenberger
 * @since V1.4.0.0 (split version)
 * Last change in plugin version: V2.5.19.1 (some foodle-button styles)
 * Date: 04.10.2024
 * Tested with the latest plugin version
*/


/* ***************************************** */
/* Front-End Foodle & Democracy-Poll Formats */
/* ***************************************** */

/* Democracy Poll */

.democracy H3 {
  font-size: 1.2em !important;
  line-height: 1.3 !important;
}
.democracy-voting {
  border-radius:6px;
  box-shadow: 5px 5px 30px #803434 !important;
  -moz-transition: all 0.2s ease-in-out !important;
  -webkit-transition: all 0.2s ease-in-out !important;
  -ie-transition: all 0.2s ease-in-out !important;
  -ms-transition: all 0.2s ease-in-out !important;
  -o-transition: all 0.2s ease-in-out !important;
  transition: all 0.2s ease-in-out !important;
  transform: none !important;
}
.democracy-voting:hover {
  box-shadow: 5px 5px 20px #808034 !important;
  -moz-transition: all 0.2s ease-in-out !important;
  -webkit-transition: all 0.2s ease-in-out !important;
  -ie-transition: all 0.2s ease-in-out !important;
  -ms-transition: all 0.2s ease-in-out !important;
  -o-transition: all 0.2s ease-in-out !important;
  transition: all 0.2s ease-in-out !important;
  transform: translate(2px,2px);
}
.democracy-results { /* just in case */
  border-radius:6px;
  box-shadow: 5px 5px 5px #aaaaaa !important;
  -moz-transition: all 0.2s ease-in-out !important;
  -webkit-transition: all 0.2s ease-in-out !important;
  -ie-transition: all 0.2s ease-in-out !important;
  -ms-transition: all 0.2s ease-in-out !important;
  -o-transition: all 0.2s ease-in-out !important;
  transition: all 0.2s ease-in-out !important;
  transform: none !important;
}
.democracy-results.democracy-voted {
  border-radius:6px;
  box-shadow: 5px 5px 5px #808034 !important;
  -moz-transition: all 0.2s ease-in-out !important;
  -webkit-transition: all 0.2s ease-in-out !important;
  -ie-transition: all 0.2s ease-in-out !important;
  -ms-transition: all 0.2s ease-in-out !important;
  -o-transition: all 0.2s ease-in-out !important;
  transition: all 0.2s ease-in-out;
  transform: none !important;
}
.democracy-results.democracy-not-voted {
  border-radius:6px;
  box-shadow: 5px 5px 5px #803434 !important;
  -moz-transition: all 0.2s ease-in-out !important;
  -webkit-transition: all 0.2s ease-in-out !important;
  -ie-transition: all 0.2s ease-in-out !important;
  -ms-transition: all 0.2s ease-in-out !important;
  -o-transition: all 0.2s ease-in-out !important;
  transition: all 0.2s ease-in-out !important;
  transform: none !important;
}
.democracy-your-vote {
  color:DarkOliveGreen !important;
}

/* Undserneath the answers in the Foodle table */
.category-inner-div {
  display:inline-block !important;
  text-align:right !important;
  padding:0px !important;
  margin-top:0px !important;
  margin-top:0px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.inner-div-fieldname {
  font-weight:bold !important;
  font-size:1.15em !important;
  margin:4px 0px 0px 0px !important;
  padding:0px !important;
}
.inner-div-category {
  margin:0px !important;
  padding:0px !important;
}


/* Front-End Reminder Area - not yet used here * /

.foodle-reminder-email-area {
} /* */


/* Front-End Foodle AJAX Container */

#mf_foodle_comments_load,
#mf_foodle_non_voters_load,
#mf_foodle_email_load,
#mf_sw_foodle_sort_load {
	position: relative !important;
}
#mf_foodle_email_load .mf_foodle_email_overlay,
#mf_sw_foodle_sort_load .mf_sw_foodle_sort_overlay {
	position: absolute !important;
	z-index: 2 !important;
  opacity: 0.6 !important;
	background-image: url(../img/loader.svg) !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size:55px !important;
}
#mf_foodle_comments_load .mf_foodle_comments_overlay,
#mf_foodle_non_voters_load .mf_foodle_non_voters_overlay {
	position: absolute !important;
	z-index: 99999999999 !important;
  opacity: 0.6 !important;
	background-image: url(../img/loader.svg) !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size:55px !important;
}
.mf_foodle_email_content,
.mf_sw_foodle_sort_content {
	position: relative !important;
	z-index: 1 !important;
	-moz-transition: all 0.2s ease-in-out !important;
	-webkit-transition: all 0.2s ease-in-out !important;
	-ie-transition: all 0.2s ease-in-out !important;
	-ms-transition: all 0.2s ease-in-out !important;
	-o-transition: all 0.2s ease-in-out !important;
	transition: all 0.2s ease-in-out !important;
}
.mf_foodle_comments_content,
.mf_foodle_non_voters_content {
	position: relative !important;
	z-index: 1 !important;
	-moz-transition: all 0.05s ease-in-out !important;
	-webkit-transition: all 0.05s ease-in-out !important;
	-ie-transition: all 0.05s ease-in-out !important;
	-ms-transition: all 0.05s ease-in-out !important;
	-o-transition: all 0.05s ease-in-out !important;
	transition: all 0.05s ease-in-out !important;
}

/* Front-End Foodle-Button */

.foodle-button {
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: none;
  padding: 4px 14px;
  text-decoration: none;
  text-align: center;
  background: Steelblue; /* #4682B4 */
  font-size: 11pt;
  height:29px;
  line-height:23px;
  color: white;
  text-shadow: 2px 2px 4px #000000;
  box-shadow: 2px 2px 4px #000000;
  border-radius: 6px;
}
.foodle-button:hover {
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: translate(2px,2px);
  text-shadow: 0px 0px 0px #000000;
  box-shadow: 1px 1px 2px #000000;
  background: #266294;
}
.foodle-button:active {
  box-shadow: 0px 0px 0px SteelBlue;
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: translate(4px,4px);
}


/* Front-End Sort-Button and present sort state indication */

.foodle-sort-is {
  margin: 0px;
  padding: 0px;
  white-space: nowrap;
}
.foodle-sort-button {
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: none;
  text-decoration: none;
  text-align: center;
  background: #c07474;
  font-size: 7.6pt;
  color: white;
  text-shadow: 2px 2px 4px #000000;
  box-shadow: 2px 2px 4px #000000;
  border-radius: 6px;
  margin: 0px auto;
  padding: 2px 4px;
  white-space: nowrap;
}
.foodle-sort-button:hover {
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: translate(2px,2px);
  text-shadow: 0px 0px 0px #000000;
  box-shadow: 1px 1px 2px #000000;
  background: #803434;
}
.foodle-sort-button:active {
  box-shadow: 0px 0px 0px #803434;
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: translate(4px,4px);
}
.foodle-sort-button-gap {
  height: 4pt !important;
}


/* Front-End Foodle-Button */

.foodle-link-button {
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: none;
  padding: 4px 14px;
  text-decoration: none;
  text-align: center;
  background: Grey;
  font-size: 11pt;
  font-size:0.85rem;
  color: Bisque !important;
  text-shadow: 2px 2px 4px Black !important;
  box-shadow: 2px 2px 4px #000000;
  box-shadow:5px 5px 5px SteelBlue;
  border-radius: 6px;
}
.foodle-link-button:hover {
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: translate(2px,2px);
  text-shadow: 0px 0px 0px #000000;
  box-shadow: 1px 1px 2px #000000;
  background: #444444;
}
.foodle-link-button:active {
  box-shadow: 0px 0px 0px SteelBlue;
  -moz-transition: all 0.06s ease-in-out;
  -webkit-transition: all 0.06s ease-in-out;
  -ie-transition: all 0.06s ease-in-out;
  -ms-transition: all 0.06s ease-in-out;
  -o-transition: all 0.06s ease-in-out;
  transition: all 0.06s ease-in-out;
  transform: translate(4px,4px);
}


/* Front-End Download-Button */
.foodle-download-button,
.foodle-new-comments-button {
  -moz-transition: all 0.06s ease-in-out !important;
  -webkit-transition: all 0.06s ease-in-out !important;
  -ie-transition: all 0.06s ease-in-out !important;
  -ms-transition: all 0.06s ease-in-out !important;
  -o-transition: all 0.06s ease-in-out !important;
  transition: all 0.06s ease-in-out !important;
  transform: none !important;
  text-decoration: none !important;
  text-align: center !important;
  background: #eeeeee !important;
  font-size: 7.6pt !important;
  color: #444444 !important;
  text-shadow: 2px 2px 4px grey !important;
  box-shadow: 2px 2px 4px grey !important;
  border:1px solid #aaffaa!important;
  border-radius: 8px !important;
  margin: 0px !important;
  padding: 2px 8px !important;
  white-space: nowrap !important;
}
.foodle-download-button:hover,
.foodle-new-comments-button:hover {
  -moz-transition: all 0.06s ease-in-out !important;
  -webkit-transition: all 0.06s ease-in-out !important;
  -ie-transition: all 0.06s ease-in-out !important;
  -ms-transition: all 0.06s ease-in-out !important;
  -o-transition: all 0.06s ease-in-out !important;
  transition: all 0.06s ease-in-out !important;
  transform: translate(2px,2px) !important;
  text-shadow: 0px 0px 0px lightgrey !important;
  box-shadow: 1px 1px 2px lightgrey !important;
  background: lightgrey !important;
}
.foodle-download-button:active,
.foodle-new-comments-button:active {
  box-shadow: 0px 0px 0px #803434 !important;
  -moz-transition: all 0.06s ease-in-out !important;
  -webkit-transition: all 0.06s ease-in-out !important;
  -ie-transition: all 0.06s ease-in-out !important;
  -ms-transition: all 0.06s ease-in-out !important;
  -o-transition: all 0.06s ease-in-out !important;
  transition: all 0.06s ease-in-out !important;
  transform: translate(4px,4px) !important;
}
.foodle-new-comments-button {
  background: #eeffee !important;
}
.foodle-new-comments-button:hover {
  background: #ccffcc !important;
}

/* Foodle hr Format */

.foodle-line {
  background-color: #343480;
  height: 1px;
  margin-left: 2%;
  width:96%;
}


/* Remove selectability */

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Foodle Tables / Lists */

.foodle-table-hidden-top-spacing { /* Spacing above the Foodle table */
  height: 20px;
  line-height: 20px;
}
.foodle-table-hidden-spacing { /* Spacing above the Foodle table */
  height: 0px;
  line-height: 0px;
}
.foodle-table-top-spacing { /* Spacing above the Foodle table */
  height: 40px;
  line-height: 40px;
}
.foodle-table-bottom-spacing { /* Spacing below the Foodle table */
  height: 0px; /* was 60 */
  line-height: 0px; /* was 60 */
}
.foodle-info-rows {
  background-color:#fff8f8;
}
.foodle-category-cells {
  background-color:#fffcfc;
}
.foodle-category-cell-maxcount-answer,
.foodle-category-cell-maxcount-answer .category-inner-div {
  background-color:#e8ffe8;
  color:darkgreen;
  font-weight:bold;
}
.foodle-cell-is-marked {
  background-color:#ffe8e8;
}
.foodle-cell-is-in {
  background-color:#e8ffe8;
}
.foodle-cell-is-marked-in {
  background: -moz-linear-gradient(right, #e8ffe8, #ffe8e8);
  background: -webkit-linear-gradient(right, #e8ffe8, #ffe8e8);
  background: -ie-linear-gradient(right, #e8ffe8, #ffe8e8);
  background: -ms-linear-gradient(right, #e8ffe8, #ffe8e8);
  background: -o-linear-gradient(right, #e8ffe8, #ffe8e8);
  background: linear-gradient(right, #e8ffe8, #ffe8e8);
}
.foodle-tick {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.foodle-comments-complete {
  border:1px solid #ebebeb;
  margin:0px;
  padding:6px;
  background-color:#fbfbfb;
}
.foodle-table-headline {
  margin-bottom:20px;
}
.foodle-comment-table-space {
  height:0px;
  margin:0px 0px 20px 0px;
  padding:0px;
}
.foodle-poll-new-comment-title {
	font-weight:normal;
}
.foodle-poll-new-comment-text {
	width:100%;
	padding:6px;
	font-size:15px!important;
	font-weight:normal!important;
	word-break: normal !important; /* To work with themes like "McLuhan" */
}
.foodle-poll-new-comment-wrapper {
  width:100%!important;
  font-size:15px!important;
  padding:0px!important;
  margin:0px!important;
}
.foodle-table,
.foodle-comments-table,
.foodle-non-voters-table,
.foodle-unexpected-voters-table {
  width: 100% !important;
  margin: 0px !important;
  border-collapse:collapse!important;
  font-size: 0.72em!important; /* consolidated here */
  word-break: normal !important; /* To work with themes like "McLuhan" */
}
.dem-poll-shortcode .foodle-comments-table th,
.dem-poll-shortcode .foodle-comments-table td {
	font-size:1.1em;
  padding: 4px !important;
}
.foodle-table th,
.foodle-table td,
.foodle-table th:first-child,
.foodle-table td:first-child,
.foodle-comments-table th,
.foodle-comments-table td,
.foodle-comments-table th:first-child,
.foodle-comments-table td:first-child,
.foodle-non-voters-table th,
.foodle-non-voters-table td,
.foodle-non-voters-table th:first-child,
.foodle-non-voters-table td:first-child,
.foodle-unexpected-voters-table th,
.foodle-unexpected-voters-table td,
.foodle-unexpected-voters-table th:first-child,
.foodle-unexpected-voters-table td:first-child {
  padding: 4px;
}
.foodle-table th,
.foodle-comments-table th {
	color: #500404;
}
.foodle-table td,
.foodle-comments-table td {
	color: #333333;
}
.foodle-non-voters-table th,
.foodle-unexpected-voters-table th,
.foodle-non-voters-table td,
.foodle-unexpected-voters-table td {
	color: #500404;
  white-space:nowrap;
  color:DarkRed;
  font-weight:normal;
}
.foodle-table th,
.foodle-table td,
.foodle-comments-table th,
.foodle-comments-table td,
.foodle-non-voters-table th,
.foodle-non-voters-table td,
.foodle-unexpected-voters-table th,
.foodle-unexpected-voters-table td {
	text-align:center;
}
.foodle-table th,
.foodle-table td,
.foodle-comments-table th,
.foodle-comments-table td,
.foodle-non-voters-table th,
.foodle-non-voters-table td {
	border: 1px solid #cccccc;
}
.foodle-unexpected-voters-table th,
.foodle-unexpected-voters-table td {
	border: 1px dotted Red;
}
.foodle-comments-table th,
.foodle-non-voters-table th,
.foodle-unexpected-voters-table th {
  background-color:#f7f7f7;
}
.foodle-comments-table td,
.foodle-non-voters-table td,
.foodle-unexpected-voters-table td {
  background-color:#fdfdfd;
}
.foodle-comment-edited td {
  background-color: AliceBlue;
}
.foodle-vertical {
	font-size: 0.7em;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-ie-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
}


/* Bar graph to display the vote rate in percent */

.foodle-graph-wrapper {
	margin:25px 0px 25px 0px;
}
.foodle-graph-title {
  font-size:0.8em;
  margin-bottom:2px;
}
.foodle-graph-box {
  border:1px solid #a8bfa8;
  padding:2px;
}
.foodle-graph {
  position:relative;
  color:#555;
  color:rgba(0,0,0,.6);
  box-sizing:content-box;
  background-color:#FFC45A33;
  width:100%; display:table;
  height:1.4em;
  line-height:1.4em; /* because display:table; */
}
.foodle-fill {
  position:absolute;
  top:0;
  left:0;
  height:100%;
  background-color:#c8dfc8; /* #AAC60988 */
  border:1px solid #a8bfa8;
}
.foodle-votes-txt {
  position:relative;
  display:table-cell;
  width:100%;
  padding-left:0.3em;
  vertical-align:middle;
  font-size:0.8em;
}
.foodle-votes-txt-votes,
.foodle-votes-txt-percent {
  text-shadow: 1px 1px #e0f7e0;
}
.dem-poll-note .foodle-graph {
	height:1.7em;
	line-height:1.7em;
}
.dem-poll-note .foodle-votes-txt-votes,
.dem-poll-note .foodle-votes-txt-percent {
	font-size:1.1em;
}


/* Horizontally moveable table for small screens */

figure.foodle-block-table,
figure.foodle-comments-table-figure,
figure.foodle-non-voters-table-figure,
figure.foodle-unexpected-voters-table-figure {
  overflow-x:auto !important;
  overflow-y:hidden !important;
  margin: 0px 0px 0px 0px !important; /* 1.5em */
  padding: 2px !important;
}

.foodle-block-table .has-fixed-layout {
  table-layout: fixed !important;
  width:100%;
}

.foodle-block-table .has-fixed-layout td,
.foodle-block-table .has-fixed-layout th {
  word-break:break-word !important;
}

.foodle-block-table.aligncenter,
.foodle-block-table.alignleft,
.foodle-block-table.alignright {
  display:table !important;
  width:auto;
}

.foodle-block-table.aligncenter td,
.foodle-block-table.aligncenter th,
.foodle-block-table.alignleft td,
.foodle-block-table.alignleft th,
.foodle-block-table.alignright td,
.foodle-block-table.alignright th {
  word-break:break-word !important;
}

.foodle-block-table .has-subtle-light-gray-background-color {
  background-color:#f3f4f5;
}

.foodle-block-table .has-subtle-pale-green-background-color {
  background-color:#e9fbe5;
}

.foodle-block-table .has-subtle-pale-blue-background-color {
  background-color:#e7f5fe;
}

.foodle-block-table .has-subtle-pale-pink-background-color {
  background-color:#fcf0ef;
}

.foodle-block-table.is-foodle-stripes.has-subtle-light-grey-background-color tbody tr:nth-child(odd) {
  background-color:#f3f4f5;
}

.foodle-block-table.is-stfoodleyle-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd) {
  background-color:#e9fbe5;
}

.foodle-block-table.is-foodle-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd) {
  background-color:#e7f5fe;
}

.foodle-block-table.is-foodle-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd) {
  background-color:#fcf0ef;
}

.foodle-block-table.is-foodle-stripes {
  border-spacing: 0 !important;
  border-collapse: inherit !important;
  background-color: transparent;
  border-bottom:0px solid transparent !important;
}

.foodle-block-table.is-foodle-stripes tbody tr:nth-child(odd) {
  background-color:#f4f0f0;
}

.foodle-block-table.is-foodle-stripes tbody tr:nth-child(even) {
  background-color:#ece8e8;
}
