/* Light theme */
:root {
  --card-shadow-color: #dbdbdb;
  --card-border-color: #e6e6e6;
  --legend-border-color: #b2b2b2;
  --legend-bookmark-shadow-color: #808080;
  --line-separator-color:#b9b9b9;
  --timeline-line: #555;
  --flag-shadow:rgba(66, 68, 90, 1);
}

/* Dark theme */
[data-theme="dark"] {
  --card-shadow-color: #000000;
  --card-border-color: #606382;
  --legend-border-color: #6c6f97;
  --legend-bookmark-shadow-color: #202020;
  --line-separator-color:#a5a9d1;
  --timeline-line: #a5a9d1;
  --flag-shadow: rgba(0, 0, 0, 1);
}

.content_container {
  position: fixed;
  top:109px;
  bottom: 84px;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% - 59px - 50px - 50px - 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  /* margin-top: 109px; */
  overflow-y: auto;
}

/* launch item starts here */
.container {
  float: left;
  overflow: hidden;
  display: grid;
  align-items: center;
  margin: 10px 0px;
  text-align: justify;
  background-color: var(--background-color);
  z-index: 1;
  grid-template-columns: 30% 70%;
  grid-template-rows: 72px 108px 72px 72px 126px;
  font-size: 20px;
  width: 94%;
  height: 450px;
  margin: 10px 0px;
  border: 1px solid var(--card-border-color);
  border-radius: 18px;
  box-shadow: var(--card-shadow-color) 0px 3px 15px -3px;
  flex-shrink: 0;
  position: relative;
}
.container.moon-bound::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    url("/static/images/moon.png"),
    url("/static/images/moon.png"),
    url("/static/images/moon.png");
  background-size: 80px 80px;
  background-position: 
    10% 15%,
    70% 50%,
    40% 80%;
  background-repeat: no-repeat;

  opacity: 0.08;          /* watermark strength */
  pointer-events: none;  /* click-through */
  z-index: 0;
}
[data-theme="dark"] .container.moon-bound::before {
  /* opacity: 0.12; */
  filter: invert(100%);
}
.container > * {
  position: relative;
  z-index: 1;
}
/* LEGEND ITEM STARTS HERE */
.container_legend {
  width: 90%;
  height: 50px;
  border: 1px dotted var(--legend-border-color);
  border-radius: 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
.status_spec, .status_plan, .status_success, .status_fail {
  width: 33%;
  height: 50px;
  border-right: 1px dotted var(--legend-border-color);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.status_conf {
  width: 33%;
  height: 50px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* legend item ends here */
.legend_bookmark {
  margin: 0px 10px;
  width: 30px;
  height: 40px;
  border-radius: 1px 1px 5px 5px;
  z-index: 1;
  /* box-shadow: 0px 5px 3px var(--legend-bookmark-shadow-color); */
  box-shadow: 0px 5px 10px -5px var(--legend-bookmark-shadow-color);
  position: absolute;
  /* transform: translateX(-50%); */
}
.legend_spec, .legend_plan, .legend_conf {
  left: 50%;
  top: -1%;
}
.launch_bookmark {
  position: absolute;
  float: right;
  width: 36px;
  height: 85px;
  border-radius: 1px 1px 5px 5px;
  z-index: 1;
  /* box-shadow: 0px 5px 3px #808080; */
  box-shadow: 0px 5px 10px -5px var(--legend-bookmark-shadow-color);
  /* background-color: red; */
  top: 0px;
  right: 20px;
}
.launch_status_0 {
  background-color: rgba(255, 255, 0, 0.75);
  border-left: 1px dotted rgb(215, 215, 27);
  border-right: 1px dotted rgb(215, 215, 27);
  border-bottom: 1px dotted rgb(215, 215, 27);
}
.launch_status_1 {
  background-color: rgba(255, 165, 0, 0.75);
  border-left: 1px dotted rgb(196, 140, 35);
  border-right: 1px dotted rgb(196, 140, 35);
  border-bottom: 1px dotted rgb(196, 140, 35);
}
.launch_status_2 {
  background-color: rgba(0, 0, 255, 0.75);
  border-left: 1px dotted rgb(34, 34, 169);
  border-right: 1px dotted rgb(34, 34, 169);
  border-bottom: 1px dotted rgb(34, 34, 169);
}
.launch_status_3 {
  background-color: rgba(172, 255, 47, 0.75);
  border-left: 1px dotted rgb(1, 221, 1);
  border-right: 1px dotted rgb(1, 221, 1);
  border-bottom: 1px dotted rgb(1, 221, 1);
}
.launch_status_4 {
  background-color: rgba(255, 0, 0, 0.75);
  border-left: 1px dotted rgb(169, 30, 30);
  border-right: 1px dotted rgb(169, 30, 30);
  border-bottom: 1px dotted rgb(169, 30, 30);
}
.launch_status_5 {
  background-color: rgba(247, 233, 37, 0.75);
  border-left: 1px dotted rgb(169, 148, 30);
  border-right: 1px dotted rgb(169, 148, 30);
  border-bottom: 1px dotted rgb(169, 148, 30);
}
.image {
  width: 100px;
  grid-column: 1 / 1;
  grid-row: 1 / 6;
}
.launch_datetime {
  grid-column: 2 / 2;
  grid-row: 1 / 1;
  width: 97%;
  height: 72px;
  border-bottom: 1px dotted var(--line-separator-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.date, .time, .rocket, .mission {
  line-height: 36px;
} 
.time_button {
  width: 150px;
  height: 28px;
  border: 1px solid var(--line-separator-color);
  border-radius: 8px;
  text-align: center;
  display: block;
  line-height: 30px;
  color: var(--text-color);
}
.launch_destination {
  grid-column: 2 / 2;
  grid-row: 2 / 2;
  width: 97%;
  height: 108px;
  border-bottom: 1px dotted var(--line-separator-color);
}
/* ################### */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline-item {
  display: flex;
  position: relative;
  padding-left: 30px;
  height: 54px;
  align-items: center;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px; /* center of top dot */
  left: 9px;
  width: 2px;
  height: calc(100%); /* adjust this to reach next dot */
  background-color: var(--timeline-line);
}

.dot {
  position: absolute;
  top: 15px;
  left: 5px;
  width: 10px;
  height: 10px;
  background-color: var(--timeline-line);
  border-radius: 50%;
}

.content {
  /* margin-bottom: 30px; */
}
.destination_description {
  font-size: 12px;
}

/* ################### */

.launchpad {
  border-bottom: 1px dotted var(--line-separator-color);
}
        
.spaceport {}
.pad {}
.launch_nation {
  grid-column: 2/2;
  grid-row: 3/3;
  position: relative;
}
.launch_patch{
  position: absolute;
  float: right;
  right: -25px;
  bottom: -30px;
  width: 200px;
  height: 200px;
  opacity: 0.6;
}
.nation_flag {
  position: absolute;
  width: 120px;
  height: 60px;
  right: 0;
  top: -30px;
    /* -webkit-box-shadow: -6px 0px 14px -6px rgba(66, 68, 90, 0.62);
-moz-box-shadow: -6px 0px 14px -6px rgba(66, 68, 90, 0.62); */
  box-shadow: -6px 0px 14px -6px var(--flag-shadow);
}
.img_flag {}
.mission {overflow-x: auto;
  white-space: nowrap;
}
.mission_title {
  display: inline-block;  
}
.mission_only_tytle {}
.mission_button {
  height: 28px;
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid var(--line-separator-color);
  border-radius: 8px;
  text-align: center;
  display: block;
  line-height: 30px;
  color: var(--text-color);
}
.launch_rocket {
  width: 97%;
  height: 72px;
  border-top: 1px dotted var(--line-separator-color);
  border-bottom: 1px dotted var(--line-separator-color);
}
.launch_payload {
  grid-column: 2 / 2;
  grid-row: 5/5;
  width: 97%;
  height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: hidden 
}
.payload_sat {}
.payload_sat_button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 15px;
  padding-right: 15px;
  border: 1px solid var(--line-separator-color);
  align-self: flex-start;
  border-radius: 8px;
  margin-top: 1px;
  margin-bottom: 1px;
}
.payload_more {
  display: flex;
  flex-direction: row;
  font-size: 16px;
  font-style: italic;
  justify-content: flex-end;
  align-items: center;
}
.payload_expand_button {
  width: 30px;
  height: 30px;
  background: url('/static/images/arrows_sprite.png');
  background-size: 200%;
  background-position: -25px -30px;
    /* border: 1px solid blue; */
}
[data-theme="dark"] .payload_expand_button {
  filter: invert(100%); /* flip colors for dark mode */
}
.payload_list_title{
  display: flex;
  flex-direction: row;
  font-size: 14px;
  border-bottom: 1px dotted var(--line-separator-color);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}
.payload_list_lenght{
  font-size: 16px;
}
.payload_wrap_button {
  width: 30px;
  height: 30px;
  background: url('/static/images/arrows_sprite.png');
  background-size: 200%;
  background-position: -28px -2px;
    /* border: 1px solid blue; */
}
[data-theme="dark"] .payload_wrap_button {
  filter: invert(100%); /* flip colors for dark mode */
}
.sat_list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
  width: 100%;
}
.sat_line {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.sat_line_number {
  font-size: 12px;
  margin-right: 20px;
}
/* launch item ends here */


/* .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
} */

/* Hide default HTML checkbox */
/* .switch input {
  opacity: 0;
  width: 0;
  height: 0;
} */








.tabbar_selector {
  position: fixed; /*Set the navbar to fixed position */
  bottom: 84px; /* Position the navbar at the top of the page */
  width: 100%; /* Full width */
  height: 50px;
  background-color: var(--background-color);
  z-index: 4;
  /* padding-left: auto;
  padding-right: auto; */
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}
.tabbar_selector_wrapper {
  width: 94%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-top: 1px solid var(--line-border-color);
  align-items: center;
}

/* #################### */


.time_switch { /*space of swither*/
  position: relative;
  display: inline-block;
  width: 70%;
  height: 40px;
  /* background-color: #222; */
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;
  /* border: 1px solid #848484; */
  /* font-family: 'Orbitron', sans-serif; */
  /* margin-left: auto;
  margin-right: auto; */
  /* -webkit-box-shadow: inset 0px 1px 6px -2px rgba(66, 68, 90, 1);
-moz-box-shadow: inset 0px 1px 6px -2px rgba(66, 68, 90, 1); */
box-shadow: inset var(--slider-box-shadow);
}

.time_switch .label-future,
.time_switch .label-past {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  text-align: center;
  font-size: 16px;
  color: var(--slider-option-color-unchecked);
  transition: color 0.3s;
  z-index: 21;
}

.time_switch .label-future {
  left: 0;
}

.time_switch .label-past {
  right: 0;
}

.time_switch .switch-handle {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 50%;
  height: 35px;
  /* background: linear-gradient(145deg, #444, #111); */
  /* border: 1px solid #dddcdc; */
  border-radius: 15px;
  transition: left 0.3s;
  z-index: 2;
  /* box-shadow: inset 0 0 5px #000, 0 0 10px #0ff; */
  /* -webkit-box-shadow: 0px 1px 10px -2px rgba(66, 68, 90, 1);
-moz-box-shadow: 0px 1px 10px -2px rgba(66, 68, 90, 1); */
box-shadow: var(--slider-box-shadow);
}

#timeSwitch:not(:checked) + .time_switch .switch-handle {
  left: 48%;
}
/* When checked, show "Future" highlighted */
#timeSwitch:checked + .time_switch .label-future {
  /* color: #0ff; */
  color: var(--text-color);
}

#timeSwitch:checked + .time_switch .label-past {
  color: var(--slider-option-color-unchecked);
}

/* When NOT checked, show "Past" highlighted */
#timeSwitch:not(:checked) + .time_switch .label-future {
  color: var(--slider-option-color-unchecked);
}

#timeSwitch:not(:checked) + .time_switch .label-past {
  /* color: #0ff; */
  color: var(--text-color);
}

#timeSwitch {
  display: none;
}

.filter_button{
  width: 45px;
  height: 45px;
  /* border: 1px solid blue; */
  background-image: url('/static/images/sort.png');
  background-size: 100%;
}
[data-theme="dark"] .filter_button{ /* flip colors for dark mode */
  filter: invert(100%); 
}
/* filter section */
.filter_background {
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--appearing-section-box-back);
  backdrop-filter: blur(2px); /* Blur intensity */
  z-index: 20;
}
.filter{
  position: fixed;
  height: 0;
  width: 100%;
  z-index: 100;
  transition: 1s;
  bottom: 0;
  left: 0;
  background-color: var(--background-color);
  font-size: 30px;
  box-shadow: var(--appearing-section-box-shadow);
}
.filter_title {
  width: 94%;
  height: 40px;
  font-size: 30px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-border-color);
}
.filters_wrappper {
  display: flex;
  flex-direction: column;
  width: 94%;
  margin-left: auto;
  margin-right: auto;
}
.filter_item {
  font-size: 25px;
  height: 45px;
  margin-top: 15px;
}
#statusFilter, #nationFilter {
  font-size: 20px;
  border-radius: 5px;
  width: 150px;
  color: var(--text-color);
  border-color: var(--line-border-color);
  background-color: var(--background-color);
}

.empty_notification{
  margin-top: 20px;
  width: 94%;
  height: 100px;
  background-color: red;
  line-height: 100px;
  text-align: center;
  border-radius: 18px;
  color: white;
  box-shadow: var(--card-shadow-color) 0px 3px 15px -3px;
}
