@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

h1,h2 {
	text-align: center;
}

.container {
	padding-left: 20px;
	padding-right: 20px;
	background-color: #5C2F46;
	border: solid 2px #A74C7D;
	border-radius: 30px;
	min-width: 0px;
	color: #fcfcfc;
}

.event
{
    display: inline-block;
	width: min-content;
}

.info-card {
	background-image: linear-gradient(#ffd700, #dd9100);
	text-shadow: none;
	color: black;
	padding: .5em;
	border-radius: 1em;
	borderbox-shadow: rgb(255, 240, 0) 2px 2px 0px 0px, rgb(255, 240, 0) 2px -2px 0px 0px, rgb(255, 240, 0) -2px 2px 0px 0px, rgb(255, 240, 0) -2px -2px 0px 0px, rgb(160, 113, 2) 2px 4.8px 0px 0px, rgb(160, 113, 2) -2px 4.8px 0px 0px, rgb(31, 22, 31) 4.8px 6.4px 0px 0px, rgb(31, 22, 31) 4.8px -4.8px 0px 0px, rgb(31, 22, 31) -4.8px 6.4px 0px 0px, rgb(31, 22, 31) -4.8px -4.8px 0px 0px;
}

.info-card.good {
	background-image: linear-gradient(cyan, lightblue);
}

.info-card.warning {
	background-image: linear-gradient(#ffa500, #dd6100);
}

.info-card.error {
	background-image: linear-gradient(red, darkred);
}

.icon-button {
	display: inline-flex;
	align-items: center;
    vertical-align: top;
    height: 3em;
}

.icon-button img {
	max-height: 2em;
}

.icon-button i {
	font-size: 2em;
}

.separated {
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0em;
    margin-right: 0em;
}

.reward-better
{
    background-color: lightgreen;
}

.reward-worse
{
    background-color: #FF7276;
}

.reward-difficulty
{
    cursor: pointer;
    font-weight: normal;
}

.reward-difficulty-reference
{
    cursor: revert;
    font-weight: bolder;
}

.reward-reference, .reward-difficulty-reference
{
    background-color: lightblue;
}

.mode_form_extra
{
    display: none;
}

.mode_form:has(> option[value="prize"]:checked) ~ .mode_form_extra_prize
{
    display: revert;
}

.mode_form:has(> option[value="score"]:checked) ~ .mode_form_extra_score
{
    display: revert;
}

.reward-quantity
{
    text-align: center;
}

.reward-info-extra
{
    font-size: .8em;
}

.reward-type
{
    width: 4em;
}

.reward-type img
{
    max-width: 3em;
}

.reward-row-expendable .reward-type
{
    cursor: pointer;
}

.reward-row-expendable .reward-type::after
{
    content: '-';
    background-color: lightgray;
    position: absolute;
}

.reward-row-expendable.reward-row-collapsed .reward-type::after
{
    content: '+';
}

.reward-row-collapsed ~ tr
{
    display: none;
}

.reward-row-expendable ~ tr .reward-type
{
    text-align: right;
}

.event-reward-table
{
    border-collapse: collapse;
	min-width: max-content;
	width: 100%;
}

.event-reward-table td,th
{
    padding-right: 0.1em;
    padding-left: 0.1em;
}

.event-reward-table td
{
    border-left: solid black 1px;
    border-right: solid black 1px;
}

.event-reward-table .reward-difficulty
{
    border: solid black 1px;
}

.event-reward-table tbody
{
    padding-right: 0.1em;
    padding-left: 0.1em;
    border: solid black 1px;
    border: solid black 1px;
}

.mode_form_container
{
    display: grid;
    grid-template-columns: auto auto auto;
	grid-column-gap: .5em;
}

.mode_form_fullline
{
	grid-column: span 3;
}

.external_link
{
	cursor: pointer;
}

.tooltip
{
  position: relative;
  display: inline-block;
}

.tooltiptext
{
  visibility: hidden;
  position: absolute;
  top: -5px;
  left: 1.5em;
}

.tooltiptext.content
{
  width: max-content;
  max-width: 50dvw;
  background-color: black;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  z-index: 1;
}

.tooltiptext_after_wrapper
{
	position: relative;
	padding: 0px;
	margin: 0px;
}

.tooltiptext_after
{
  visibility: hidden;
  max-width: 100%;
  position: absolute;
  background-color: black;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px;
  z-index: 1;
  margin: 0px;
}

.tooltiptext dl
{
	margin: 0px;
	padding: 0px;
}

.tooltiptex_after dl
{
	margin: 0px;
	padding: 0px;
}

.tooltiptext dd
{
	font-style: normal;
}

.tooltiptext_after dt
{
	font-style: italic;
}

.tooltiptext_after dd
{
	font-style: normal;
}

.tooltip .tooltiparrow_bottom
{
	visibility: hidden;
}

.tooltip .tooltiptext::after
{
  content: "";
  position: absolute;
  border-width: 5px;
  border-style: solid;
}

.tooltip .tooltiptext.right::after
{
  top: 0%;
  right: 100%;
  margin-top: 10px;
  border-color: transparent black transparent transparent;
}

.tooltip .tooltiptext.bottom::after
{
  top: 1.1em;
  left: -1em;
  margin-left: -5px;
  border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext
{
  visibility: visible;
}

.tooltip:hover ~ .tooltiptext_after_wrapper .tooltiptext_after
{
	visibility: visible;
}

.mode_form_wrapper
{
	width: min-content;
	min-width: calc(100% - 20px);
}

.mode_form_wrapper .mode_form_container
{
	width: max-content;
}

.inline_image
{
    max-height: 1.5em;
}