﻿/* Div Styles*/

@media screen and (max-width: 600px) {
  .foe_table_container{
    width: 100vw; /* container has same width as viewport */
    overflow-x: scroll;
  }

  .centered_text{
    text-align: center;
  }
}

.foe_table{
  border-collapse: collapse;
  text-align: center;
  border: 1px solid grey;
  padding: 5px;
  width: fit-content;
}

.foe_table_head{
  border: 1px solid grey;
  border-collapse: collapse;
  padding: 5px;
}

.foe_table_cell{
  border: 1px solid grey;
  border-collapse: collapse;
  padding: 5px;
}

.right_align{
  text-align: end;
  padding-right: 20px;
}

.foe_breakable_line{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.foe_line_div{
  padding-bottom: 10px;
  padding-right: 10px;
  display: inline-block;
}

.input_arc_bonus{
  text-align: center;
  width: 50px;
  font-size: 14px;
}

.input_fp_invested{
  text-align: center;
  width: 50px;
  font-size: 14px;
}

#select_building{
  width: 200px;
  font-size: 14px;
}

#building_level{
  width: 40px;
  text-align: center;
  font-size: 14px;
}

#msg_format{
  width: 220px;
  font-size: 14px;
}

.msg_field{
  width: 410px;
  max-width: 90vw;
  font-size: 14px;
}

.msg_pre_postfix{
  font-size: 14px;
}

#owner_input_FP{
  width: 50px;
  font-size: 14px;
}

button{
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.no_user_selection{
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.invest_table_footer{
  padding-top: 10px;
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.check_box_group{
  border: 1px solid rgb(240, 240, 240);
  margin-top: 20px;
  margin-bottom: 10px;
}

.check_box_group_caption{
  background-color: black;
  position: absolute;
  margin-top: -10px;
  margin-left: 20px;
  padding-left: 5px;
  padding-right: 5px;
}

.custom_progress {
  height: 20px;
  width: 100%;
  background-color: lightgray;
  position: relative;
  color: black;
  border-radius: 8px;
}

.custom_progress .value {
  background-color: steelblue;
  display: inline-block;
  height: 100%;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.custom_progress .custom_progress_text {
  width: 80px;
  color: black;
  text-align: center;
  font-size: 14px;
  font-weight: bold;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 1px;
  left: 46%;
}

.progress_container{
  padding-bottom: 5px;
}

.copy_tooltip {
  position: relative;
  display: inline-block;
}

.copy_tooltip .copy_tooltip_text {
  visibility: hidden;
  width: 80px;
  background-color: rgb(220, 220, 220);
  color: #555;
  text-align: center;
  padding: 2px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -40px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}


/* Tooltip arrow */
.copy_tooltip .copy_tooltip_text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgb(220, 220, 220) transparent transparent transparent;
}