/*
 Theme Name:   Blocksy Child
 Theme URI:    https://yourwebsite.com/
 Description:  Blocksy Child Theme
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

.pos-abs {
  position: absolute;
}

/* Modula Gallery */
.modula-item-content:hover img {
  transform: scale(1.1);
}

/* Active Expeditions */

.expedition {
  text-align: center;
  max-width: 1600px;
  margin: auto;
}

img.mission-patch-img {
  width: 300px;
  height: auto;
  margin-bottom: 50px;
}

/* Container for crew profiles */
.expedition-crew-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.expedition h2 {
  color: #fff;
  font-size: 4em
}

.expedition-start-date {
  color: #fff;
}

.expedition-crew-title {
  color: #fff;
  font-size: 3em;
}

/* Crew profile card styling */
.crew-profile-card {
  background: white;
  padding: 60px 10px 40px 10px;
  width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.crew-profile-card p {
  margin-bottom: 0;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.space-time {
  flex-grow: 1;
  font-size: 14px;
}

/* Crew profile image */
.crew-profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  background-position: center top;
  background-size: cover;
}



/* Social icons */
.crew-social-icons {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.crew-social-icons span {
  font-size: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
  .expedition-crew-list {
    flex-direction: column;
    align-items: center;
  }
}

.launch-container {
  background: #090909;
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  margin: 20px auto;
}

.mission-patch {
  max-width: 200px;
  display: block;
  margin: 10px auto;
}

.launch-container a {
  color: #ffcc00;
  font-weight: bold;
}

/* Featured Launch */

#launches-image {
  position: absolute;
  /* 		border-radius: 50%; */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: rgba(0, 0, 0, .5);
  z-index: 999;
}
.hide-on-load {
  /* transition: opacity 0s; */
  opacity: 1;
  transition: opacity .8s ease-in-out !important;
}
body.loading-api-data .hide-on-load {
  opacity: 0 !important;
  transition: opacity 0s ease-in-out !important;
}

/* Loading Overlay */

body.loading-api-data #loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#loading-overlay {
  display: none;
  pointer-events: none;
}

/* Spinner itself */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #ffffff33;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Set hero bg image  */

#hero-image-background {
  /* position: relative;
  overflow: hidden; */
  background-color: #000 !important;
}

/* #hero-image-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  z-index: 1;
} */

/* #hero-image-background.fade-ready::after {
  opacity: 1;
} */

body.loading-api-data div#hero-image-background {
  background-image: none !important;
  background-color: #000 !important;
}

/* Launch List */


#launches-launch-list {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease-in-out;
  max-height: 265px;
  border-top: 3px solid #fd5a37;
  backdrop-filter: blur(15px);
}

#launches-launch-list.closed {
  transform: translateY(100%);
}

/* Position of the open/close button */
#launches-launch-list .pos-abs {
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  z-index: 1000;
}

#launches-launch-list .container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1rem;
  padding: 1rem;
  scroll-behavior: auto; /* explicitly auto to prevent smooth conflicts */
  scrollbar-width: none; /* Firefox hides scrollbar */
}

#launches-launch-list .container::-webkit-scrollbar {
  display: none; /* Chrome & Safari hides scrollbar */
}
/* #launches-launch-list .container::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
} */

/* Prevent flex item shrinking */
.launch-item {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 1rem;
  color: white;
  background: rgba(0, 0, 0, 0.32);
  padding: 12px 12px 18px 18px;
  cursor: pointer;
  width: 320px;
  transition: background .3s, box-shadow .1s;
  border-top: 1px solid rgba(255,255,255,.10);
  border-right: 1px solid rgba(255,255,255,.05);
  box-shadow: inset -10px 10px 50px #ffffff0b;

}
.glass-style a, #hero-card > div {
  border-style: none !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  border-right: 1px solid rgba(255,255,255,.05) !important;
  border-left: none !important;
  border-left-color: none !important;
  border-bottom: none !important;
  border-bottom-color: none !important;
  box-shadow: inset -10px 10px 50px #ffffff0b !important;
}
footer#footer {
  z-index: 9999; /* overlay launch list */
}

#launches-launch-list .open-close-button {
  position: relative;
  color: #fff;
  z-index: 999;
  display: block;
  width: 160px;
  height: 36px;
  background-color: #A20000;
  text-align: center;
  cursor: pointer;
  font-size: 19px;
  line-height: 1.9;
  border-radius: 8px 8px 0 0;
  margin: auto;
}
#launches-launch-list .launch-item.active {
  background: #ffffff7d;
  color: #090909;
  transition: background .3s;
}
#launches-launch-list .launch-item:hover {
  box-shadow: none !important;
}
#launches-launch-list .dashicons {
  margin: 0 8px 0 0;
  position: relative;
  top: 4px;
  font-size: inherit !important;
  vertical-align: baseline;
}
#launches-launch-list .launch-item p {
  margin: 0;
  color: #fff;
}
#launches-launch-list .launch-item.active p {
  color: #000;
}
#launches-launch-list .launch-title {
  color: #fff;
  font-size: 18px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#launches-launch-list .launch-item.active .launch-title {
  color: #000;
}

#launches-launch-list .launch-item * {
  font-size: inherit;
  /* Prevents external scaling */
  line-height: normal;
}

#launches-launch-list .launch-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Status Circle */
#launches-launch-list .status-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-weight: bold;
  color: white;
  font-size: 16px;
  text-transform: uppercase;
}

/* Launch Status Indicator */
#launches-status_name {
  padding: 5px 15px;
  color: #ffffffa8;
  position: relative;
  top: 27px;
}
.launch-status-go  {
  background-color: #52C41A;
}
#launches-status_name[data-launch-status="Go for Launch"] {
  background-color: #53c41a4e;
  /* box-shadow: #53c41a4e; */
  color: #fff;
}
#launches-status_name[data-launch-status="Launch Successful"] {
  background-color: #167fd04e;
  /* box-shadow: #53c41a4e; */
  color: #fff;
}
.launch-status-tbc {
  background-color: #fd5a37;
}
#launches-status_name[data-launch-status="To Be Confirmed"] {
  background-color: #fd5a374e;
  /* box-shadow: 0 0 10px #fd5a374e; */
  color: #fff;
}
.launch-status-tbd {
  background-color: #A20000;
}
#launches-status_name[data-launch-status="To Be Determined"] {
  background-color: #A200004e;
  /* box-shadow: #A200004e; */
  color: #fff;
}
/* Launch Details */
.launch-details {
  flex: 2;
  padding-left: 10px;
}

.launch-title {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.launch-date,
.launch-time {
  font-size: 16px;
}

#hero-card > div {
  background: rgba(0,0,0,.3);
  /* padding: 50px 30px; */
  backdrop-filter: blur(17px);
  border-radius: 10px;
  opacity: 0.9;
}
/* Countdown Section */
#launches-launch-list .countdown {                                                          /* !! */
  display: none;
}
#launches-launch-list .launch-item.active .countdown {
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #222;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
  position: relative;
  top: 4px
}
#launches-launch-list .time-block {
  padding: 5px 6px 5px 6px;
  font-size: 12px;
  min-width: 20px;
}
.featured-launch-countdown .time-block {
  padding: 5px 10px 5px 10px;

}
.time-unit {
  font-size: 14px;
  color: gray;
  font-weight: bold;
}

#launches-countdown {
  max-width: 100%;
}
.featured-launch-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.featured-launch-countdown .countdown {
  display: flex;
  justify-content: flex-end;
  font-size: 200%;
  gap: 10px;
}
.featured-launch-countdown .countdown-label {
	position: relative;
	top: 18px;
  text-align: center;
  color: rgba(255,255,255,.5);
}


.featured-launch-countdown .time-block {

  background: #00000038;
  color: #ffcb00d9;
  border-radius: 4px;
  text-align: center;
  font-size: .8em;
}

.featured-launch-countdown .time-unit {
  font-size: 30px;
  color: #ededed3b;
  font-weight: bold;
  display: block;
  height: 36px;
  line-height: 1;
}
#launches-updates {
	font-family: monospace;
}
.launch-item [class*="countdown-"] {
  /*     font-size: 22px; */
  font-weight: bold;
  color: #fff;
}

.api-image-container  {
  display: block;
}

.api-image {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: block;
  width: 60%;
  padding-top: 60%;
  margin: auto;
  border-radius: 50%;
}
#launches-lsp_logo.api-image {
  background-size: contain;
}
#launches-mission_patches .api-obj-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#launches-mission_patches .api-obj-item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
#launches-mission_patches img.api-obj-item-image {
	width: 200px;
}
.square {
  width: 100%;
  padding-top: 60%;
  position: relative;
}

.square-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-position: center center;
  background-size: cover;
}

:root {
  --spacer: 0.35rem;
}

.m-0  { margin: 0 !important; }
.m-1  { margin: calc(var(--spacer) * 1) !important; }
.m-2  { margin: calc(var(--spacer) * 2) !important; }
.m-3  { margin: calc(var(--spacer) * 3) !important; }
.m-4  { margin: calc(var(--spacer) * 4) !important; }
.m-5  { margin: calc(var(--spacer) * 5) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: calc(var(--spacer) * 1) !important; }
.mt-2 { margin-top: calc(var(--spacer) * 2) !important; }
.mt-3 { margin-top: calc(var(--spacer) * 3) !important; }
.mt-4 { margin-top: calc(var(--spacer) * 4) !important; }
.mt-5 { margin-top: calc(var(--spacer) * 5) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: calc(var(--spacer) * 1) !important; }
.mb-2 { margin-bottom: calc(var(--spacer) * 2) !important; }
.mb-3 { margin-bottom: calc(var(--spacer) * 3) !important; }
.mb-4 { margin-bottom: calc(var(--spacer) * 4) !important; }
.mb-5 { margin-bottom: calc(var(--spacer) * 5) !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: calc(var(--spacer) * 1) !important; }
.ml-2 { margin-left: calc(var(--spacer) * 2) !important; }
.ml-3 { margin-left: calc(var(--spacer) * 3) !important; }
.ml-4 { margin-left: calc(var(--spacer) * 4) !important; }
.ml-5 { margin-left: calc(var(--spacer) * 5) !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: calc(var(--spacer) * 1) !important; }
.mr-2 { margin-right: calc(var(--spacer) * 2) !important; }
.mr-3 { margin-right: calc(var(--spacer) * 3) !important; }
.mr-4 { margin-right: calc(var(--spacer) * 4) !important; }
.mr-5 { margin-right: calc(var(--spacer) * 5) !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: calc(var(--spacer) * 1) !important; margin-right: calc(var(--spacer) * 1) !important; }
.mx-2 { margin-left: calc(var(--spacer) * 2) !important; margin-right: calc(var(--spacer) * 2) !important; }
.mx-3 { margin-left: calc(var(--spacer) * 3) !important; margin-right: calc(var(--spacer) * 3) !important; }
.mx-4 { margin-left: calc(var(--spacer) * 4) !important; margin-right: calc(var(--spacer) * 4) !important; }
.mx-5 { margin-left: calc(var(--spacer) * 5) !important; margin-right: calc(var(--spacer) * 5) !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: calc(var(--spacer) * 1) !important; margin-bottom: calc(var(--spacer) * 1) !important; }
.my-2 { margin-top: calc(var(--spacer) * 2) !important; margin-bottom: calc(var(--spacer) * 2) !important; }
.my-3 { margin-top: calc(var(--spacer) * 3) !important; margin-bottom: calc(var(--spacer) * 3) !important; }
.my-4 { margin-top: calc(var(--spacer) * 4) !important; margin-bottom: calc(var(--spacer) * 4) !important; }
.my-5 { margin-top: calc(var(--spacer) * 5) !important; margin-bottom: calc(var(--spacer) * 5) !important; }
