


#mech-quest-adventure-game {
    position:absolute;
    left:0px;
    top:0px;
    width: 98vw;
    height: 98vh;
	
    
}

.fullscreen-section {
    width: 100%;
    height: 100%;
    overflow-x:hidden;
    justify-content: center;
	
    
}



.float-box-section-image {
  position:relative;
  float:left;
  width:100%;
  max-width:640px;
  border:1px solid red;
  margin:10px;
  overflow:hidden;

}


.float-box-section-text {
  position:relative;
  float:left;
  width:90%;
  max-width:500px;
  border:1px solid red;
  border-radius:60px 0px 0px 0px;
  padding:10px 10px 10px 30px;
  margin:10px;
  background-color:#000000;
  background-image:url('../images/cyber-background.jpg');
  color:#ffffff;
  font-size:small;
  clip-path: polygon(60% 5%, 65% 0, 100% 0, 100% 85%, 90% 100%, 48% 100%, 0 100%, 0 5%);

}

.float-box-section-mech {
  position:relative;
  float:left;
  width:90%;
  max-width:500px;
  border:1px solid red;
  border-radius:80px 0px 0px 0px;
  margin:10px;
  padding:10px;
  background-color:#000000;
  background-image:url('../images/mech-background.jpg');
  color:#85e085;
  font-size:small;
  clip-path: polygon(60% 5%, 65% 0, 100% 0, 100% 85%, 90% 100%, 48% 100%, 0 100%, 0 5%);

}


.character-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.character-wrapper {
    position: absolute;
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-wrapper.active {
    z-index: 3;
    transform: scale(1);
    opacity: 1;
}




.character-wrapper.active img {
    border: 2px solid #007bff; /* Highlight active image */
}


.character-wrapper.left, .character-wrapper.right {
    z-index: 2;
    transform: scale(0.7);
    opacity: 0.7;
}

.character-wrapper.left { left: 10%; }
.character-wrapper.right { right: 10%; }


.character-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#confirm-character {
    display: none;
    margin-top: 20px;
    width:60%;
    max-width:300px;
    font-size:20pt;
    padding:4px 20px;
    cursor:pointer;
    box-shadow:
    inset 0 0 14px #ff0000;
    border-radius: 50px 0px 50px 0px;
}

@media (max-width: 768px) {
    .character-wrapper.left, .character-wrapper.right {
        display: none;
    }
}








.login-container {
    background-image: url('../images/mech-quest-adventure1.jpeg');
    background-size: cover;
    background-position: center;
    height: 94vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#login-form {
    background-color: rgba(255, 0, 0, 0.3);
    padding: 14px 50px 14px 50px;

    border-radius: 50px 0px 50px 0px;
    text-align: center;
    border: 1px solid red;



    box-shadow: inset 0 0 14px #ff0000;  


}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="email"],
input[type="submit"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}







/* =======[ COOL BUTTON ]======== */



.button {
  --black-700: hsla(0 0% 12% / 1);
  --border_radius: 9999px;
  --transtion: 0.3s ease-in-out;
  --offset: 2px;

  cursor: pointer;
  position: relative;

  display: flex;
  align-items: center;
  gap: 0.5rem;

  transform-origin: center;

  padding: 1rem 2rem;
  background-color: transparent;

  border: none;
  border-radius: var(--border_radius);
  transform: scale(calc(0.85 + (var(--active, 0) * 0.04)));

  transition: transform var(--transtion);
}

.button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  height: 100%;
  background-color: var(--black-700);

  border-radius: var(--border_radius);
  

  transition: all var(--transtion);
  z-index: 0;
}



.button:is(:hover, :focus-visible) {
  --active: 1;
}

.button:active {
  transform: scale(1);
}

.button .dots_border {
  --size_border: calc(100% + 2px);

  overflow: hidden;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: var(--size_border);
  height: var(--size_border);
  background-color: transparent;

  border-radius: var(--border_radius);
  z-index: -10;
}

.button .dots_border::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: left;
  transform: rotate(0deg);

  width: 100%;
  height: 2rem;
  background-color: white;

  mask: linear-gradient(transparent 0%, white 120%);
  animation: rotate 2s linear infinite;
}

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

.button .sparkle {
  position: relative;
  z-index: 10;

  width: 1.75rem;
}

.button .sparkle .path {
  fill: currentColor;
  stroke: currentColor;

  transform-origin: center;

  color: hsl(0, 0%, 100%);
}

.button:is(:hover, :focus) .sparkle .path {
  animation: path 1.5s linear 0.5s infinite;
}

.button .sparkle .path:nth-child(1) {
  --scale_path_1: 1.2;
}
.button .sparkle .path:nth-child(2) {
  --scale_path_2: 1.2;
}
.button .sparkle .path:nth-child(3) {
  --scale_path_3: 1.2;
}

@keyframes path {
  0%,
  34%,
  71%,
  100% {
    transform: scale(1);
  }
  17% {
    transform: scale(var(--scale_path_1, 1));
  }
  49% {
    transform: scale(var(--scale_path_2, 1));
  }
  83% {
    transform: scale(var(--scale_path_3, 1));
  }
}

.button .text_button {
  position: relative;
  z-index: 10;

  font-size: 1rem;
  color: white;
}



/* =======[ END COOL BUTTON ]======== */





#mech-quest-main-menu {
    display: none;
    text-align: center;
	background-image:url("../images/bakgrunn-meny_a1.jpg");
	background-size:100% 100%;
	background-repeat:no-repeat;
    background-position: center bottom;
	background-color:black;
}


.main-menu-container {
	position:relative;
	float:left;
	display: flex;
	flex-direction: column;
	align-items: bottom;
	justify-content: left;
	width:440px;
	height: 280px;
	margin:40px;
	

}


.mech-menu-button {
	position:relative;
	top:-28px;
	width:220px;
	height:40px;
	background-color: rgba(255, 0, 0, 0.7);
    border:none;		
    opacity: 0.85;
	text-align:left;
	padding-left:4px;
	z-index:4;
	transition-duration: 5s;
	box-shadow: inset 0 0 14px #ff0000;
	color:white;
}






.main-menu-image-div {
  display: flex;
  flex-direction: column;
  align-items: bottom;
  justify-content: left;
  float:left;
  width:440px;
  height: 300px;
  text-align:center;

  background-position:right center;
  background-repeat: no-repeat;
  background-size: cover;
  clip-path: polygon(90% 0, 100% 20%, 100% 100%, 50% 100%, 45% 90%, 0 90%, 0 0);
  border-radius: 50px 0px 0px 0px;
  border-right:6px solid red;
  z-index:6;
  box-shadow: inset 1px 1px 1px #ff0000;

}




.mech-item {
    float:left;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 2px 2px 2px lightblue;
    width:360px;
    height:380px;
    margin:10px;

}

.mech-thumbnail {
    max-width: 200px;
    max-height: 200px;
    margin-right: 10px;
    float: left;
}




/* =================[ TRAINING GROUND ]================= */



#mech-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#mech-container img {
    max-width: 100px;
    max-height: 100px;
}


#training-arena {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#trainingCanvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}








.float-box-section-mech {
    position: relative;
    float: left;
    width: 90%;
    max-width: 500px;
    border: 1px solid red;
    border-radius: 80px 0px 0px 0px;
    margin: 10px;
    padding: 10px;
    background-color: #000000;
    background-image: url('../images/mech-background.jpg');
    color: #85e085;
    font-size: small;
    clip-path: polygon(60% 5%, 65% 0, 100% 0, 100% 85%, 90% 100%, 48% 100%, 0 100%, 0 5%);
    min-height: 280px;
}

.mech-image-container {
    float: left;
    width: 220px;
    margin-right: 15px;
}

.mech-image-container img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.mech-info-container {
    float: left;
    width: calc(100% - 240px);
    padding-top: 50px;
}

.mech-info-container p {
    margin: 8px 0;
    line-height: 1.4;
}



/* Button container for side-by-side layout */
.mech-button-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.sell-mech-btn {
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
    border: 1px solid #ff0000;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    box-shadow: inset 0 0 10px #ff0000;
    transition: all 0.3s;
    flex: 1; /* Takes available space */
}

.sell-mech-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
    box-shadow: inset 0 0 15px #ff0000;
}










/* =================[ BAR INTERFACE - MECHWARRIOR STYLE ]================= */

.bar-interface {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}




/* Bar Main Menu (Initial Screen) */
.bar-main-menu {
    background: rgba(0, 0, 0, 0.75);
    padding: 25px 40px;
    border: 2px solid #ff0000;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 15px rgba(255, 0, 0, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
}



.bar-flavor-text {
    color: #ccc;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.player-credits {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.3);
    color: #fff;
    font-size: 1em;
}

.player-credits strong {
    color: #85e085;
    font-size: 1.2em;
    text-shadow: 0 0 5px #85e085;
}

/* Bar Menu Buttons */
.bar-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-menu-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.3);
    text-align: left;
    position: relative;
}

.bar-menu-btn:hover:not(:disabled) {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: inset 0 0 12px rgba(255, 0, 0, 0.5), 0 0 12px rgba(255, 0, 0, 0.3);
    transform: translateX(8px);
}

.bar-menu-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #666;
    box-shadow: none;
}

.bar-menu-btn .btn-number {
    color: #ff3333;
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 0 0 5px #ff0000;
}

.bar-menu-btn .btn-subtitle {
    display: block;
    font-size: 0.65em;
    color: #aaa;
    margin-top: 3px;
    font-style: italic;
}






/* Crew Hiring Interface (One-at-a-time presentation) */
#crew-hiring-interface {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

.crew-presentation {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5), inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.crew-display-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

/* Crew Portrait */
.crew-portrait {
    width: 300px;
    height: 400px;
    border: 3px solid #ff0000;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), inset 0 0 15px rgba(255, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crew-portrait img {
    width: auto !important;
    height: 100% !important;
    min-width: 100% !important;
    object-fit: cover !important;
    object-position: center;
}


/* Crew Details */
.crew-details {
    color: #fff;
}

.crew-details h3 {
    color: #ff3333;
    font-size: 2.2em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px #ff0000;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 10px;
}

.crew-rank-specialty {
    color: #ccc;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Skill Bars */
.crew-skills-display {
    margin: 20px 0;
}

.skill-bar {
    margin-bottom: 15px;
}

.skill-bar label {
    color: #ff3333;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.skill-meter {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ff0000;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000 0%, #85e085 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(133, 224, 133, 0.5);
}

.skill-number {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    z-index: 10;
}

/* Crew Bio */
.crew-bio {
    color: #ddd;
    font-style: italic;
    line-height: 1.6;
    margin: 20px 0;
    font-size: 1.05em;
}

.crew-hiring-fee {
    color: #ffd700;
    font-size: 1.4em;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    margin-top: 20px;
}

/* Decision Buttons */
.crew-decision-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.crew-decision-btn {
    padding: 18px 30px;
    font-size: 1.5em;
    font-weight: bold;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px;
}

.hire-btn {
    background: rgba(0, 128, 0, 0.3);
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.hire-btn:hover:not(:disabled) {
    background: rgba(0, 255, 0, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.4), 0 0 20px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

.hire-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(64, 64, 64, 0.3);
    border-color: #666;
    color: #666;
}

.reject-btn {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    color: #ff3333;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.2);
}

.reject-btn:hover {
    background: rgba(255, 0, 0, 0.5);
    box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Status Message */
.status-message {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    min-height: 30px;
    padding: 10px;
}

/* Back Button */
#back-to-bar-menu {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
    display: block;
    padding: 14px;
    background-color: rgba(96, 96, 96, 0.6);
    color: white;
    border: 1px solid #666;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

#back-to-bar-menu:hover {
    background-color: rgba(128, 128, 128, 0.7);
    border-color: #999;
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.2);
}

/* Modal for Mech Assignment (keep from before) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #0a0a0a;
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 2px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5), inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.modal-content h3 {
    color: #ff3333;
    margin-top: 0;
    text-align: center;
    font-size: 2em;
    text-shadow: 0 0 10px #ff0000;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 15px;
}

.mech-assignment-list {
    margin: 25px 0;
}

.mech-assignment-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid #ff0000;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
    box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.2);
}

.mech-assignment-item:hover {
    background: rgba(255, 0, 0, 0.15);
    box-shadow: inset 0 0 12px rgba(255, 0, 0, 0.4);
    transform: translateX(5px);
}

.mech-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ff0000;
    padding: 5px;
}

.mech-assignment-info h4 {
    color: #ff3333;
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.mech-assignment-info p {
    color: #ccc;
    margin: 0;
    font-size: 0.95em;
}

.confirm-assign-btn {
    padding: 10px 24px;
    background-color: rgba(0, 128, 0, 0.6);
    color: white;
    border: 1px solid #00ff00;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: inset 0 0 8px rgba(0, 255, 0, 0.3);
}

.confirm-assign-btn:hover {
    background-color: rgba(0, 255, 0, 0.4);
    box-shadow: inset 0 0 14px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

.close-modal-btn {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 0, 0, 0.6);
    color: white;
    border: 1px solid #ff0000;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.3);
}

.close-modal-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
    box-shadow: inset 0 0 14px #ff0000;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .crew-display-card {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .crew-portrait {
        width: 250px;
        height: 350px;
    }
    
    .crew-decision-buttons {
        grid-template-columns: 1fr;
    }
    
    .bar-main-menu {
        padding: 30px 20px;
    }
    
    .bar-main-menu h2 {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .crew-portrait {
        width: 200px;
        height: 300px;
    }
    
    .crew-details h3 {
        font-size: 1.6em;
    }
    
    .bar-menu-btn {
        font-size: 1.1em;
        padding: 15px 20px;
    }
}

/* =================[ END BAR INTERFACE ]================= */








/* =================[ PILOT ASSIGNMENT IN CHARACTER SCREEN ]================= */

.pilot-assignment-container {
    position: absolute;
    top: 35px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.pilot-portrait-small {
    width: 80px;
    height: 100px;
    border: 2px solid #ff0000;
    border-radius: 5px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.pilot-portrait-small .current-pilot-image {
    width: auto !important;
    height: 200% !important;
    min-width: 200% !important;
    object-fit: cover !important;
    object-position: center 15% !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.no-pilot-assigned {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
    font-size: 0.7em;
    text-align: center;
}

.pilot-info-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ff0000;
    max-width: 100px;
}

.cycle-pilot-btn {
    background: rgba(255, 0, 0, 0.3);
    border: 1px solid #ff0000;
    color: #ff3333;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.2s;
    box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.2);
    line-height: 1;
}

.cycle-pilot-btn:hover {
    background: rgba(255, 0, 0, 0.5);
    box-shadow: inset 0 0 8px rgba(255, 0, 0, 0.4);
    transform: scale(1.15);
}

.pilot-name-display {
    color: #85e085;
    font-size: 0.7em;
    font-weight: bold;
    max-width: 65px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.save-pilot-assignment {
    background: rgba(0, 128, 0, 0.4);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: inset 0 0 6px rgba(0, 255, 0, 0.2);
    flex: 1; /* Takes available space */
}

.save-pilot-assignment:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.4);
    transform: scale(1.02);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pilot-assignment-container {
        top: 30px;
        right: 5px;
    }
    
    .pilot-portrait-small {
        width: 60px;
        height: 80px;
    }
    
    .pilot-name-display {
        font-size: 0.65em;
        max-width: 50px;
    }
}

/* =================[ END PILOT ASSIGNMENT ]================= */






/* =================[ PILOT IMAGE LIGHTBOX MODAL ]================= */

.pilot-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pilot-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ff0000;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    transition: all 0.3s;
    line-height: 1;
    user-select: none;
}

.pilot-modal-close:hover {
    color: #ff3333;
    text-shadow: 0 0 20px rgba(255, 0, 0, 1);
    transform: scale(1.2);
}

.pilot-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { 
        transform: scale(0.7);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.pilot-modal-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    border: 3px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.6);
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pilot-modal-close {
        font-size: 40px;
        top: 10px;
        right: 15px;
    }
    
    .pilot-modal-content img {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* =================[ END PILOT IMAGE LIGHTBOX ]================= */
