/*
 * General style for the web app. It is messy here... lot of it should go to
 * archive.css
 */

.spacious_input {
   width: 98%;
}

.spacy_div {
    padding: 1em;
}

.spacious_list li {
    padding-bottom: 15px;
}

.login {
    line-height: 12px;
    font-size: 8pt;
    margin-top: 1px;
    margin-right: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.login a:link {
	color: #999;
}

.login a:visited {
	color: #999;
}

.logout_button {
   width: 15px;
  background: none!important;
  border: none;
  padding: 0!important;
  font: inherit;
  /*input has OS specific font-family*/
  background-color: transparent;
  color: #999;
  cursor: pointer;
}

.logout_form_floatright {
   float: right;
}

.centered_content {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
}

.centered_login {
    position: fixed;
    top: 10%;
    left: 5%;
    width: 500px;
    height: 600px;
}

.slightly_off_button {
	transform: translateY(-5px);
}


table.simple_table td { padding:5px; }
table.simple_table th { padding:5px; }

/*
 * multiselect using a fixed-height CheckboxSelectMultiple
 */

div.mm_select {
  overflow: scroll;
  height: 9em;
  width: 95%;
  border: 2px solid #ddd;
  padding: 5px;
  border-radius:5px;
  background-color: #fff;
}

div.mm_select div {
   overflow: hidden;
   word-break: keep-all;
   line-height: 0.1em;
}

div.mm_select label {
   font-weight: normal;
   overflow: hidden;
   word-break: keep-all;
   margin-top: 7px;
}

/*
 * Indicators showing current status
 */

.attention_needed {
    color: #090063;

}

.content_background {
   background: url(/data/site/img/logo.svg);
   background-size: 100%;
   background-origin: content-box;
   background-clip: content-box;
  /* background-attachment: fixed; */
}

/*
 Alignment in footers
 */

.footer_value {
	text-align: right;
}

/*
 * Pure CSS overrides
 */

.pure-form-message {
	color:#888;
	font-size:.700em;
}

.pure-control-group {
    padding: 5px 0px;
}

.pure-control-group label {
}

.pure-control-group input {
  font-style: oblique;
}

/*
 * SVG inside (small) button
 */

.color-button {
  width: 30.6px;
  height: 30.6px;
}

.color-button svg {
  width: 25px;
  height: 25px;
  transform: translate(-11px, -6px);
}

/*
 * Buttons with icon which temporarily change color after click
 */

.subtle_click_icon {
  cursor: pointer;
  color: #ccc;
}

.click_icon_highlight {
	color: blue;
}

/*
 * For DataTable: adjust selected color so that it overrides other background overrides
 */

.selected td {
    background-color: #acbad4 !important;
}

/*
 * for DataTable
 */
table.url_linking_tableclass tbody tr {
  cursor: pointer;
}

td.dt-detail-control {
  cursor: pointer;
  text-align:center;
  color:  #66cc66;
}

tr.shown td.dt-detail-control {
  color:  #ff6666;
}

button::-moz-focus-inner {
  border: 0;
}

.click_field {
   cursor: pointer;
}

/*
 * Used for icons in some Datatables
 */

.click_icon {
	cursor: pointer;
	color: #777;
}

.hidden {
	display: none;
}

/*
 * These two are for two divs to show next to each other, the right one
 * filling the width
 */

div.left {
	display: table-cell;
}

div.right {
	display: table-cell;
	width: 100%;
	text-align: right;
    vertical-align: top;
}

span.right {
 float: right;

}

/*
Similar. https://stackoverflow.com/questions/6632340/
Used in default_form_dynamic_errors
*/

.d-table {
  display:table;
}

.d-table-cell {
  display:table-cell;
}

.w-100 {
  width: 100%;
}

.tar {
  text-align: right;
}


.image_button {
	cursor: pointer;
}

/*
 * For collapsible elements, see https://www.w3schools.com/howto/howto_js_collapsible.asp
 * and js/collapsible.js
 */

.collapsible {
}

.collapsible_content {
  padding: 15px;
  overflow: hidden;
  display: none;
//  transition: max-height 0.2s ease-out;
  margin:15px 0px 15px 0px;
  box-sizing: border-box;
}

.solid_collapsible_content {
  padding: 15px;
  overflow: hidden;
  display: none;
/*  transition: max-height 0.2s ease-out; */
  outline: 1px solid #ccc;
  outline-offset: -1px;
  background-color:#FFF;
  margin:15px 0px 15px 0px;
  box-sizing: border-box;
}

.collapsible::after {
  content: "\f067"; /* fontawesome "plus" sign (+) */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  display: inline-block;
  float: right;
  margin-left: 5px;
}

.active::after {
  content: "\f068"; /* font awesome "minus" sign (-) */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/*
 * drag/drop
 */

.hoverDrop {
	background-color: red;
}

/*
 * Editing/viewing flat text files
 */

.flat_textfield {
   font-size: 0.6em;
   width: 100%;
}

.low_textfield {
   font-size: 0.6em;
   width: 100%;
   height: 15em;
}

/*
 * thumbnail
 */


.photo-comment {
  font-size: 120%;
}

/*
 * charts
 */

.chart-container {
  position: relative;
  height: 100%;
  width: 100%;
}


/*
 * Sizes for pure-buttons
 */

.button-xsmall {
	font-size: 70%;
}

.button-small {
	font-size: 85%;
}

.button-large {
	font-size: 110%;
}

.button-xlarge {
	font-size: 125%;
}

.button-error {
   background: rgb(202, 60, 60);
	color: white;
   /* this is a maroon */
}

.button-warning {
	background: rgb(223, 117, 20);
	color: white;
	/* this is an orange */
}

.button-purple {
	background: #6900cc;
	color: white;
}

.button-green {
	background: green;
	color: white;
}

/*
 * Search control
 */

.searchcontrols {
        display:none;
        width:461px;
        margin:15px 0px 15px 0px;
        padding:10px;
        border:1px solid #ccc;
        background-color:#FFF;
}

/*
 * 'More information box
 * (typically also uses 'searchcontrols' which shoudl be called "hideable_box")
 */

.autosize_area {
   height: auto;
   resize: none;
}

/*
 * messages
 */

.messages {
  width: 100%;
  padding: 2px;
  margin-top: 3px;
  margin-bottom: 3px;
  color: #222222;
  border-radius: 5px;
  /* This vertically aligns the text */
  height: 22px;
  line-height: 22px;
}

.idle_message {
  display: none;
}

.inprogress {
  border:0px;
  background-color: transparent;
  display: block;
  font-size: smaller;
}
.success {
  border:2px solid #9fdf9f;
  background-color: #9fdf9f;
  display: block;
  font-size: smaller;
}

/* This one is not used anymore in messages below tables, etc
   (ab)using error_place now */
.error {
  border:2px solid #b30000;
  background-color: #ff3333;
  color: #111111;
  display: block;
}

.info {
  background-color: #a0a0ff;
  color: white;
}

/*
 * Other colors
 */

.attention_bg {
	background-color: #cce6ff;
}
.attention_icon {
	color: #004f99;
	font-size: 90px;
}

/*
 * Simple layout thingies
 */
.inline_block {
  display: inline-block;
}

/*
 * Sidebar for quick tag editing
 */

.archive-toolbox {
	color: #222;
	background-color: #EEE;
	z-index: 2;
	overflow-y: auto;
}

.tagref {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	border: 1px solid #222;
	background-color: #FFF;
	min-width: 140px;
	height: 60px;
/*	line-height: 60px; */
	padding: 1px 1px 1px 1px;
	margin: 1px 1px 1px 1px;
}

.tag_global {
    background-color: #FFF;
}

.tag_personal {
    background-color: #FFD;
	font-style: italic;
}

/*
 * Showing errors in forms
 */

.errorlist {
  list-style-type: none;
  padding: 0px;
  color: red;
  font-weight: bold;
  font-size: smaller;
}

.field_in_error {
  background-color: #F8E0E0;
  border:1px solid red;
}

.error_place {
	color: red;
	font-weight: bold;
	font-size: smaller;
}

/*
 * Recommendation to login (used in some subscription pages)
 */
.login_recommend {
	clear: both;
}

.recommendation_l {
	background-color: #eee;
	font-size: smaller;
}

.recommendation_r {
	background-color: #eee;
}

<!--
/*
 * Tooltip container
 */

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 1s;
}

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

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
-->

#tooltip {
   position: absolute;
   z-index: 3000;
   border: 1px solid #111;
   background-color: #eee;
   padding: 5px;
   opacity: 0.85;
}

#tooltip h3, #tooltip div { margin: 0; }

form p label {
   display: inline-block;
   width: 9em;
}

.ui-tooltip {
   width: 300px;
   border: 5px solid white;
   padding: 10px 20px;
}

/*
 * Modal dialog styles (Floating windows like: editing comments, tags, sharing albums, ..)
 */

.dialog_icon {
   float: left;
   margin: 12px 12px 20px 0;
}

.modaldialog_frame {
   margin:15px 15px 15px 15px;
}

.modaldialog_outlinebox {
	margin:15px 0px 15px 0px;
	padding:5px 5px 5px 5px;
	border:2px solid #777777;
}

/*
 * jquery ui 'extension'
 */

.highlighted {
	background: #fefb08;
}

.very_highlighted {
	background: #b4fe70;
}

/* --------------------------
 * Footer Module Styles
 * --------------------------
*/

.footer {
	font-size: 87.5%;
    border-top: 1px solid #eee;
   /* margin-top: 3.4286em; */
    padding: 1.1429em;
    background: rgb(250, 250, 250);
}

.legal {
    line-height: 1.6;
    text-align: center;
    margin: 0 auto;
}

    .legal-license {
        margin-top: 0;
    }
    .legal-links {
        list-style: none;
        padding: 0;
        margin-bottom: 0;
    }
    .legal-copyright {
        margin-top: 0;
        margin-bottom: 0;
    }
@media screen and (min-width: 35.5em) {

    .legal-license {
        text-align: left;
        margin: 0;
    }
    .legal-copyright,
    .legal-links,
    .legal-links li {
        text-align: right;
        margin: 0;
    }

}

/*
 * Used for the logo/title/subtitle combo in the archive pages
 */

  .my_titlediv {
	padding: 5px;
	display: inline-block;
  }

  .my_headingbox {
    text-align:center;
  }

  .my_titlesbox {
    margin-top:auto;
    margin-bottom:auto;
    text-align:center;
  }

/*
 * doDialog()
 */

.dodialog {
   border: 0px;
   width: 100%;
   height: 100%;
}

/*
 *   For use in datatable rows
 */

.line_with_error {
	color: red;
}

/*
 * Force the datepicker to be on top
 */

.ui-datepicker { z-index: 9999 !important;}
.calculator-popup { z-index: 9999 !important;}

body {
   font-size: 13px;
}

@media (min-width: 48em) {

    body {
        font-size: 16px;
    }
}

/* vim: set nowrap sw=3 sts=3 et fdm=marker : */
