/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    background-color: #3381d4;
    color: #489640;
    background-image: url('/tacansim/f4images/stormyclouds.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 20px;
}

/* Main Container */
.main-container {
    display: flex;
    flex-direction: row; /* Explizit horizontal setzen */
    gap: 20px; /* Erhöht für mehr Abstand zwischen den Sektionen */
    max-width: 1600px; /* Erhöht für mehr Platz */
    margin: 0 auto;
    min-height: 800px;
    height: auto; /* Statt fester Höhe */
}


/* HSI Section - Enhanced background */
.hsi-section {
    flex: 1;
    display: flex;
    flex-direction: column; /* Geändert zu column für vertikale Anordnung */
    background: rgba(0, 0, 0, 0.5);  /* Increased opacity from 0.3 to 0.5 */
    border: 2px solid #00ff00;  /* Added border like canvas section */
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.hsi-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

/* HSI Instrument */
.hsi-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
    margin-top: 0px; /* Add this to move HSI up */
    height: 750px;
}
html>body:nth-child(2)>div:nth-child(2)>div:nth-child(1)>div:nth-child(2) {
    height : 600px;
    max-height : 600px;
    width : 700px;
    max-width : 700px;
    }


.hsi-instrument {
    position: relative;
    width: 500px;
    height: 500px;
}

.hsi-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.compass-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    transform: translate(0px, 0px); /* Adjust as needed */
    transform-origin: 246.55px 201.6px;

    transition: transform 0.3s ease;
}

.course-arrow {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    transform-origin: 246.55px 201.6px; /* Skalierte Rotationsachse */
    transition: transform 0.3s ease;
}

.cdi-arrow {
    position: absolute;
    width: 101%;
    height: 100%;
    z-index: 2;
    transform-origin: 246.55px 201.6px; /* Skalierte Rotationsachse */
    transition: transform 0.3s ease;
}
.cdi {
    position: absolute;
    width: 101%;
    height: 100%;
    z-index: 8;
    transform-origin: 246.55px 201.6px; /* Skalierte Rotationsachse */
    transition: transform 0.3s ease;
}

.aircraft-symbol {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    transform-origin: 246.55px 201.6px; /* Skalierte Rotationsachse */
}
.heading-bug {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 6;
    margin-left : 0px;
    transform-origin: 246.55px 201.6px; /* Skalierte Rotationsachse */
}
.fix-helper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    transform-origin: 246.55px 201.6px;
    transition: transform 0.3s ease;
    display: none;  /* Standardmäßig versteckt */
}
.to-from-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    transform-origin: 246.55px 201.6px; /* Use percentage for perfect centering */
    transition: transform 0.3s ease;
    /* Position the element at the center of the HSI */
    left: 50%;
    top: 50%;
}


/* HSI Controls auf dem Instrument */
.hsi-heading-control {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
    text-align: center;
    background: rgba(155, 12, 12, 0);
    border-radius: 0px;
    padding: 0px;
    border: 0px solid #00ff00;
}

.hsi-course-control {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    text-align: center;
    background: rgba(155, 14, 14, 0);
    border-radius: 0px;
    padding: 0px;
    border: 0px solid #00ff00;
}

.hsi-control-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #00ff00;
}

.hsi-knob-container {
    background: none !important;
    border: none !important;
    padding: 0;
}

.hsi-knob-container img {
    background: none;
    border: none;
    width: 55px;
    height: 55px;
    transition: transform 0.3s ease;
    transform-origin: 27.5px 27.5px; /* Center of 55px image */
}

/* Remove the animation-based classes and keyframes, replace with transition-based rotation */
.hsi-knob-container img.rotate-clockwise-small {
    transition: transform 0.3s ease-in-out;
}

.hsi-knob-container img.rotate-counterclockwise-small {
    transition: transform 0.3s ease-in-out;
}

.hsi-knob-container img.rotate-clockwise-large {
    transition: transform 0.3s ease-in-out;
}

.hsi-knob-container img.rotate-counterclockwise-large {
    transition: transform 0.3s ease-in-out;
}


.hsi-knob-container div {
    position: absolute;
    width: 27px;
    height: 27px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    border: 1px solid transparent; /* Debug border */
}

/* Add rotation effects when clicked */
.hsi-knob-container div:active {
    transform: rotate(45deg) scale(0.9);
    transition: transform 0.1s ease;
    border-color: red; /* Debug: shows when active */
}

/* Add hover effect for better feedback */
.hsi-knob-container div:hover {
    transform: scale(1.1);
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    border-color: yellow; /* Debug: shows when hovering */
}

/* Different rotation directions for different values */
.hsi-knob-container div.spin-clockwise {
    animation: knobSpinClockwise 0.4s ease-in-out;
    border-color: green !important; /* Debug: shows clockwise */
}

.hsi-knob-container div.spin-counterclockwise {
    animation: knobSpinCounterclockwise 0.4s ease-in-out;
    border-color: blue !important; /* Debug: shows counterclockwise */
}

@keyframes knobSpinClockwise {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes knobSpinCounterclockwise {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-180deg) scale(1.2); }
    100% { transform: rotate(-360deg) scale(1); }
}

.hsi-knob-container div:nth-child(2) { top: 0; left: 0; }
.hsi-knob-container div:nth-child(3) { top: 0; right: 0; }
.hsi-knob-container div:nth-child(4) { bottom: 0; left: 0; }
.hsi-knob-container div:nth-child(5) { bottom: 0; right: 0; }


/* Course Position im HSI (unten rechts, wie DME) */
#divcourse {
    position: absolute;
    bottom: 50px;
    right: 130px;
    z-index: 1;
    background: #77757200;
    border-radius: 10px;
    padding: 1px;
    font-size: 20px;
    margin-bottom: 13px;
}

#divcourse>div:nth-child(1) {
    width: 55px;
    max-width: 55px;
}

.course-counter {
    display: flex;
    flex-direction: row;
    background-color: #777572;
    border: 1px solid #44444400;
    border-radius: 3px;
    padding: 1px;
    margin: 0px 0;
    width: fit-content;
}

.course-digit {
    width: 22px;
    height: 22px;
    background-color: #666464;
    color: #f7faf7;
    text-align: center;
    line-height: 25px;
    margin: 0 1px;
    border-radius: 0px;
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.course-digit.hundreds {
    background-color: #6d6c6c;
    border: 1px solid #444444;
}

.course-digit.tens {
    background-color: #6d6c6c;
    border: 1px solid #444444;
}


.course-digit.ones {
    background-color: #6d6c6c;
    border: 1px solid #444444;
    
}

/* HSI BRG/DIST Selector Switch */
.brg-dist-selector {
    position: relative;
    z-index: 10;
    margin-top: 20px;  /* Abstand zum TGT-Schalter */
}

.brg-dist-switch {
    position: relative;
    width: 150px;
    height: 120px;
}

.brg-dist-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.brg-dist-position {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.brg-dist-position.active {
    opacity: 1;
}

.brg-dist-click-vor-tac,
.brg-dist-click-tac,
.brg-dist-click-adf-tac,
.brg-dist-click-nav-comp {
    position: absolute;
    width: 15px;
    height: 15px;
    cursor: pointer;
    z-index: 10;
    border: 1px dashed rgba(255, 0, 0, 0.212);
}

.brg-dist-click-vor-tac {
    top: 25px;
    left: 10%;
    transform: translateX(-50%);
}

.brg-dist-click-tac {
    top: 10px;
    left: 22%;
    transform: translateX(-50%);
}

.brg-dist-click-adf-tac {
    top: 8px;
    left: 35%;
    transform: translateX(-50%);
}

.brg-dist-click-nav-comp {
    top: 25px;
    left: 48%;
    transform: translateX(-50%);
}

.brg-dist-labels {
    margin-top: 10px;
    font-size: 10px;
    color: #00ff00;
    text-align: center;
}

.brg-dist-label-vor-tac,
.brg-dist-label-tac,
.brg-dist-label-adf-tac,
.brg-dist-label-nav-comp {
    margin: 2px 0;
    text-shadow: 0 0 5px #00ff00;
}


/* Course Knob ohne Hintergrund */

.dme-display {
    background: rgba(0, 0, 0, 0.836);
    border: 2px solid #00ff00;
    border-radius: 5px;
    padding: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #00ff00;
    text-align: center;
    min-width: 80px;
}

/* BDHI Styling */
.bdhi-container {
    margin-top: 20px;
    display: flex;
    flex-direction: row;  /* Geändert von column zu row */
    align-items: flex-start;  /* Geändert von center zu flex-start */
    justify-content: center;
    gap: 20px;  /* Abstand zwischen BDHI und Schalter */
}

.bdhi-container h3 {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 10px;
    position: absolute;  /* Titel über dem Container */
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}html>body:nth-child(2)>div:nth-child(2)>div:nth-child(1)>div:nth-child(3)>h3:nth-child(1) {
    margin-top : 695px;
    }
.bdhi-instrument {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;  /* Verhindert Schrumpfen */
}

.bdhi-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bdhi-rose {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform-origin: 50% 50%;
    transition: transform 0.3s ease;
}

.bdhi-no2 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    transform-origin: 50% 50%;
    transition: transform 0.3s ease;
}

.bdhi-no1 {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    transform-origin: 50% 50%;
    transition: transform 0.3s ease;
}

.bdhi-range-display {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #e5eae5;
    padding: 25px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    
    z-index: 0;
    min-width: 60px;
    margin-bottom : 105px;
    font-size : 17px;
    margin-left : 42px;
    line-height : 25px;
}

.bdhi-digit-row {
    display: flex;
    justify-content: space-between;
    margin: 1px 0;
}

.bdhi-digit-label {
    font-size: 10px;
    color: #88888800;
}

.bdhi-digit-value {
    font-weight: bold;
    color: #dee7de;
    text-align: right;
    min-width: 15px;
}

/* BDHI Navigation Selector - neue Positionierung */
.bdhi-nav-selector {
    position: relative;  /* Geändert von absolute zu relative */
    /* right: -120px; - entfernt */
    /* top: -50px; - entfernt */
    z-index: 10;
    margin-top: 50px;  /* Vertikale Ausrichtung mit BDHI */
}

.bdhi-nav-switch {
    position: relative;
    width: 80px;
    height: 120px;
}

.bdhi-nav-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bdhi-nav-position {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bdhi-nav-position.active {
    opacity: 1;
}

.bdhi-nav-click-up,
.bdhi-nav-click-center,
.bdhi-nav-click-down {
    position: absolute;
    width: 15px;
    height: 15px;
    cursor: pointer;
    z-index: 10;
    /* Temporäre rote Umrandung zum Testen */
    border: 1px dashed rgba(255, 0, 0, 0.097);
}

.bdhi-nav-click-up {
    top: 38px;
    left: 70%;
    transform: translateX(-50%);
}

.bdhi-nav-click-center {
    top: 53px;
    left: 70%;
    transform: translateX(-50%);
}

.bdhi-nav-click-down {
    top: 68px;
    left: 70%;
    transform: translateX(-50%);
}

.bdhi-nav-click-area:hover {
    background: rgba(0, 255, 0, 0.3);
}

.bdhi-nav-labels {
    margin-top: 10px;
    font-size: 10px;
    color: #00ff00;
    text-align: center;
}

.bdhi-nav-label-up,
.bdhi-nav-label-center,
.bdhi-nav-label-down {
    margin: 2px 0;
    text-shadow: 0 0 5px #00ff00;
}
/* TGT Selector Switch */
.tgt-selector {
    position: relative;
    z-index: 10;
    margin-top: 20px;  /* Abstand zum BDHI-Schalter */
}

.tgt-switch {
    position: relative;
    width: 120px;
    height: 120px;
}

.tgt-position {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tgt-position.active {
    opacity: 1;
}

.tgt-click-off,
.tgt-click-stby,
.tgt-click-tgt1,
.tgt-click-tgt2,
.tgt-click-reset {
    position: absolute;
  
    cursor: pointer;
    z-index: 10;
    border: 1px dashed rgba(255, 0, 0, 0.292);
}

.tgt-click-off {
    top: 42px;
    width: 15px;
    height: 35px;
    left: 22%;
    transform: translateX(-50%);
}

.tgt-click-stby {
    top: 22px;
    width: 25px;
    height: 13px;
    left: 21%;
    transform: translateX(-50%);
}

.tgt-click-tgt1 {
    top: 8px;
    width: 22px;
    height: 13px;
    left: 38%;
    transform: translateX(-50%);
}

.tgt-click-tgt2 {
    top: 8px;
    width: 22px;
    height: 13px;
    left: 61%;
    transform: translateX(-50%);
}

.tgt-click-reset {
    top: 13px;
    left: 80%;
    width: 13px;
    height: 40px;
    transform: translateX(-50%);
}

.tgt-labels {
    margin-top: 10px;
    font-size: 10px;
    color: #00ff00;
    text-align: center;
}

.tgt-label-off,
.tgt-label-stby,
.tgt-label-tgt1,
.tgt-label-tgt2,
.tgt-label-reset {
    margin: 2px 0;
    text-shadow: 0 0 5px #00ff00;
}
/* Simulation Controls */
.simulation-controls {
    display: flex;  /* Changed from 'relative' to 'flex' */
    flex-direction: row;  /* Geändert zu row für horizontale Anordnung */
    justify-content: center; /* Zentriert die Buttons */
    align-items: center;  /* Center the buttons */
    gap: 15px;  /* Add space between buttons */
    margin-top: 20px;
}

.control-button {
    padding: 8px 16px;  /* Vergrößert von 4px 8px */
    border: none;
    border-radius: 4px;
    background: #00ff00;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;  /* Vergrößert von 10px */
    margin: 0;
    width: 120px;  /* Vergrößert von 80px */
}


.control-button:hover {
    background: #00cc00;
    transform: translateY(-2px);
}

.control-button.active {
    background: #ff0000;
    color: #fff;
}

/* Add rotation effect when clicked */
.control-button:active {
    transform: rotate(15deg) scale(0.95);
    transition: transform 0.1s ease;
}

/* Add a spinning animation class for longer rotation effects */
.control-button.spinning {
    animation: buttonSpin 0.5s ease-in-out;
}

@keyframes buttonSpin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg); }
}

/* Canvas Section */
.canvas-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.canvas-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.canvas-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto 20px auto;
    border: 2px solid #00ff00;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
}

#bgCanvas, #bullseyeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    border-radius: 8px;
}

#bgCanvas {
    z-index: 1;
}

#bullseyeCanvas {
    z-index: 2;
}

/* Controls Container */
.controls-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
/* Debug To/From Display */
.debug-to-from {
    background-color: rgba(0, 0, 0, 0.842);
    color: #00ff00;
    padding: 5px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #00ff00;
    font-family: 'Courier New', monospace;
    margin-top: 5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
/* DME Container */
.dme-container {
    text-align: center;
    padding: 2px;
    background: rgba(12, 12, 12, 0.4);
    border-radius: 8px;
    border: 1px solid #00ff00;
}

.dme-container label {
    display: inline-flex;
    color: #ffffff;
    font-size: 10px;
    margin-bottom: 2px;
}

.dme-display {
    font-size: 12px;
    font-weight: bold;
    color: #00ff00;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px;
    border-radius: 4px;
    border: 1px solid #00ff00;
    min-width: 60px;
    display: inline-block;
}

.bullseye-controls {
    display: flex;
    flex-direction: row;  /* Geändert von column zu row für horizontale Anordnung der Gruppen */
    gap: 10px;  /* Mehr Abstand zwischen den beiden Gruppen */
    justify-content: space-between;
}

.aircraft-group {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #00ff00;
    flex: 1;  /* Beide Gruppen nehmen gleich viel Platz ein */
    max-width: 48%;  /* Begrenzt die Breite jeder Gruppe */
}

.aircraft-group h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
    font-size: 14px;
}

.input-row {
    display: flex;
    flex-direction: column;  /* Geändert von row zu column für vertikale Anordnung */
    gap: 8px;  /* Abstand zwischen den Eingabefeldern */
}

.input-field {
    display: flex;
    flex-direction: column;
    width: 100%;  /* Volle Breite für jedes Eingabefeld */
}

.input-field label {
    color: #ffffff;
    font-size: 10px;
    margin-bottom: 3px;
    text-align: left;  /* Linksbündig für bessere Lesbarkeit */
}

.input-field input {
    width: 100%;
    padding: 5px;
    border: 1px solid #00ff00;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border-radius: 3px;
    font-size: 12px;
}
/* Breadcrumb Controls */
.breadcrumb-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid #00ff00;
}

.breadcrumb-controls button {
    padding: 6px 12px;
    border: 1px solid #00ff00;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.breadcrumb-controls button:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .canvas-container {
        width: 400px;
        height: 400px;
    }
    
    #bgCanvas, #bullseyeCanvas {
        width: 400px;
        height: 400px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* Auto-select functionality */
.autoselect:focus {
    background: rgba(0, 255, 0, 0.1);
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}


/* DME Counter Styles */
.dme-counter {
    display: flex;
    flex-direction: row;
    background-color: #00000000;
    border: 1px solid #05050500;
    border-radius: 3px;
    padding: 2px;
    margin: 5px 0;
    width: fit-content;
  }
  
  .dme-digit {
    width: 28px;
    height: 22px;
    background-color: #22222200;
    color: white;
    text-align: center;
    line-height: 25px;
    margin: 0 1px;
    border-radius: 0px;
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
  }
  
  .dme-digit.hundreds {
    background-color: #6b6a6a;
    border: 1px solid #444;
  }
  
  .dme-digit.tens {
    background-color: #6b6a6a;
    border: 1px solid #444;
  }
  
  .dme-digit.ones {
    background-color: #6b6a6a;
    border: 1px solid #444;
  }
  
  .dme-digit.tenths {
    background-color: #6b6a6a;
    font-size: 22px;
    font-weight: bolder;
    color: #ffcc00;
    border: 1px solid #444;
  }
  
  /* DME Position im HSI */
  #divdme {
    position: absolute;
    bottom: 65px;
    margin-left : 42px;
    font-size : 13px;
    margin-bottom : 13px;
    left: 86px;
    z-index: 1;
    background: #6b6a6a;
    border-radius: 5px;
    padding: 1px;
  }
  #divdme>div:nth-child(1) {
    width : 69px;
    max-width : 75px;
    }


    /* Help Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a2e;
    color: #ffffff;
    margin: 2% auto;
    padding: 30px;
    border: 2px solid #3700ff;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(55, 0, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.modal-content h2 {
    color: #3700ff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.modal-content h3 {
    color: #00ff88;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
}

.modal-content h4 {
    color: #ffaa00;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
}

.help-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(55, 0, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3700ff;
}

.help-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.help-section li {
    margin: 8px 0;
    line-height: 1.4;
}

.help-section strong {
    color: #00ff88;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #ff4444;
}

.help-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #3700ff, #00ff88);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(55, 0, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(55, 0, 255, 0.5);
}

/* Footer Styles */
.page-footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #757171;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    width: 100%;
}

.page-footer p {
    margin: 10px 0;
    line-height: 1.4;
}

.page-footer a {
    color: #00ff00;
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

.page-footer button {
    margin: 10px 5px;
    padding: 8px 15px;
    background: linear-gradient(45deg, #3700ff, #00ff88);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-footer button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(55, 0, 255, 0.3);
}

.page-footer .bullseye-button {
    background: linear-gradient(45deg, #ff3700, #ffaa00);
}

.page-footer .bullseye-button:hover {
    box-shadow: 0 4px 10px rgba(255, 55, 0, 0.3);
}
/* Bullseye Button Style */
.control-button.bullseye-button {
    background: linear-gradient(45deg, #ff3700, #ffaa00);
    color: #fff;
    border: 1px solid #ff3700;
}

.control-button.bullseye-button:hover {
    background: linear-gradient(45deg, #ff5500, #ffcc00);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 55, 0, 0.3);
}


/* Styling für die Koordinatenanzeige */
.coordinates-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    border-radius: 10px;
    color: #00ff00;
}

.coordinates-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
}

.coordinates-display h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.coordinate-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px #00ff00;
    letter-spacing: 1px;
}

.bullseye-coordinates {
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.own-coordinates {
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 10px;
    margin-bottom: 5px;
}
