.flight-board {
    background-color: #000000;
    color: white;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Roboto Mono', monospace;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    border: 4px solid #333;
    position: relative;
}


.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.board-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    padding: 5px 15px;
}

.board-time {
    font-family: 'Roboto Mono', monospace;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-size: 1.5em;
    letter-spacing: 2px;
}

.flight-board-title {
    text-align: center;
    font-size: 28px;
    padding: 10px 0;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
}

.flight-icon {
    margin-right: 10px;
}

.flight-search {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.search-input {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 12px;
    color: white;
    font-family: 'Roboto Mono', monospace;
    flex-grow: 1;
    margin-right: 10px;
    outline: none;
}

.search-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.search-button {
    background-color: #FFD700;
    color: black;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.search-button:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
}

.language-toggle {
    position: absolute;
    top: 15px;
    right: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    color: #888;
}

.language-toggle:hover {
    color: #FFD700;
}

.flight-table {
    width: 100%;
    border-collapse: collapse;
    letter-spacing: 1px;
}

.flight-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #333;
    font-weight: bold;
    color: #FFD700;
    background-color: #111;
}

.flight-table td {
    padding: 12px;
    border-bottom: 1px solid #222;
    font-family: 'Roboto Mono', monospace;
    position: relative;
    overflow: hidden;
}

/* Flipboard effect */
.flight-table td::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.flight-table td::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.4);
}

.flight-table tr:nth-child(even) {
    background-color: #0a0a0a;
}

.flight-table tr:hover {
    background-color: #1a1a1a;
    cursor: pointer;
}

.seats-available {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.seats-limited {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.seats-last {
    color: #FF5252;
    font-weight: bold;
    animation: softBlink 1.8s infinite;
    text-shadow: 0 0 8px rgba(255, 82, 82, 0.7);
}

.seats-sold-out {
    color: #8A6D3B;
    font-weight: bold;
}

.flight-sold-out {
    opacity: 0.7;
}

.flight-sold-out td {
    color: #8A6D3B;
}

.detail-sold-out {
    background-color: #8A6D3B;
    color: white;
    cursor: not-allowed;
}

.next-flight {
    background-color: rgba(255, 204, 0, 0.1) !important;
}

.past-flight td {
    text-decoration: line-through;
    opacity: 0.5;
}

@keyframes softBlink {
    0% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 82, 82, 0.7);
    }

    50% {
        opacity: 0.6;
        text-shadow: 0 0 12px rgba(255, 82, 82, 0.9);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 82, 82, 0.7);
    }
}

.flight-detail-button {
    background-color: #FFD700;
    color: black;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

.flight-detail-button:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Styly pro modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background-color: #000000;
    color: white;
    margin: 3% auto;
    padding: 5px;
    border-radius: 8px;
    width: 80%;
    max-width: 80%;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s;
    border: 3px solid #333;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.close-modal:hover {
    color: white;
}

.modal-header {
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: right;
}

.modal-body {
    margin-bottom: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.flight-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
    width: 100%;
}

.flight-info-item {
    margin-bottom: 10px;
}

.flight-info-label {
    font-weight: bold;
    color: #FFD700;
    display: block;
    margin-bottom: 5px;
    font-family: 'Roboto Mono', monospace;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.flight-info-value {
    color: white;
    font-family: 'Roboto Mono', monospace;
}

.booking-button {
    background-color: #FFD700;
    color: black;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    margin-top: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-family: 'Roboto Mono', monospace;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

.booking-button:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

/* Animation for flipping cells */
@keyframes flipCell {
    0% {
        transform: perspective(400px) rotateX(0);
    }

    50% {
        transform: perspective(400px) rotateX(90deg);
        background-color: #333;
    }

    100% {
        transform: perspective(400px) rotateX(0);
    }
}

.flipping {
    animation: flipCell 1s ease-in-out;
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* CRT flicker animation */
@keyframes flicker {
    0% {
        opacity: 1;
    }

    3% {
        opacity: 0.4;
    }

    6% {
        opacity: 1;
    }

    7% {
        opacity: 0.4;
    }

    8% {
        opacity: 1;
    }

    9% {
        opacity: 0.4;
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.flight-board.flicker {
    animation: flicker 2s linear infinite;
}

.flight-map {
    width: 100%;
    height: 200px;
    background-color: #333;
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.flight-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flight-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.weather-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #111;
    border-radius: 4px;
    font-size: 0.9em;
}

.weather-title {
    margin-bottom: 5px;
    color: #FFD700;
}

@media screen and (max-width: 768px) {
    .flight-board {
        padding: 4px;
        width: 100%;
    }

    .flight-table th,
    .flight-table td {
        padding: 8px 4px;
        font-size: 8px;
    }

    .hide-on-mobile {
        display: none;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 5% auto;
    }

    .flight-info-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .board-time {
        font-size: 1.2em;
    }
}

/* Neon refreshing indicator */
.board-refresh-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FF5252;
    box-shadow: 0 0 10px #FF5252, 0 0 20px #FF5252;
    animation: blinkIndicator 2s infinite;
}

@keyframes blinkIndicator {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Screen flicker effect */
@keyframes screenFlash {
    0% {
        opacity: 0.1;
    }

    5% {
        opacity: 0.5;
    }

    10% {
        opacity: 0.1;
    }

    100% {
        opacity: 0;
    }
}

.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 200, 255, 0.1);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

.flash-active {
    animation: screenFlash 1s linear;
}

.grecaptcha-badge {
    visibility: hidden !important;
}