/* Wind Rose Styles */
#windRose {
    margin-left: 15px;
    margin-top: 13px;
    margin-bottom: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #333;
    position: relative;
    background-color: #3e6cb31a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#arrow {
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 90, 0.0);
    position: absolute;
    top: 24%;
    left: 35%;
    transform-origin: center bottom;
    overflow: hidden;
}

@keyframes moveArrow {
    0% {
        transform: translateX(0px);
        opacity: 0;
    }
    1% {
        transform: translateX(0px);
        opacity: 1;
    }
    99% {
        transform: translateX(79px);
        opacity: 1;
    }
    100% {
        transform: translateX(80px);
        opacity: 1;
    }
}

#windInfo {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
}

#WindroseWindspeed {
    font-size: 24px; /* Size was 20px */
    font-weight: bold;
    display: inline-block;
}

#WindroseWindDirection {
    font-size: 21px; /* Size was 18px */
    font-weight: bold;
    margin-bottom: 5px;
}

.WindroseCardinalDirection {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    -webkit-transform: none !important;
    transform: none !important;
}

.WindroseDegreeDirection {
    position: absolute;
    font-size: 12px;
    color: #a3a3a3;
    font-weight: bold;
    text-align: center;
    -webkit-transform: none !important;
    transform: none !important;
}

.WindroseInline {
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: rgba(67, 67, 67, 0.05);
    margin-top: -2.5px;
    top: 50%;
    left: 0px;
}

.WindroseRunway {
    position: absolute;
    width: 100%;
    height: 19px;
    background-color: rgba(126, 126, 126, 0.833);
    margin-top: -9.7px;
    top: 50%;
    left: 0px;
    transform-origin: center;
    position: relative;
}

.WindroseRunway::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 11%;
    width: 75%;
    height: 2px; /* Height of the center line */
    background-image: repeating-linear-gradient(
        to right,
        white,
        white 9px,
        transparent 3px,
        transparent 15px /* Adjust this value to control spacing between stripes */
    );
    transform: translateY(-50%);
}

.RunwayNumber {
    display: inline-block;
    color: white;
    transform: rotate(90deg);
    position: absolute;
    margin-left: -73px;
    margin-top: -7.8px;
    left: 50%;
    top: 50%;
    transform-origin: center;
}
.RunwayNumberOpposite {
    display: inline-block;
    color: white;
    transform: rotate(-90deg);
    position: absolute;
    margin-left: 58px;
    margin-top: -7.1px;
    left: 50%;
    top: 50%;
    transform-origin: center;
}

.WindroseCardinalDirection.north {
    top: -17px;
    left: 47.5%;
    transform: translateX(-50%);
}

.WindroseCardinalDirection.northeast {
    top: 7px;
    left: 86%;
    transform: translateX(-50%);
}

.WindroseCardinalDirection.east {
    top: 45.75%;
    right: -12px;
    transform: translateY(-50%);
}

.WindroseCardinalDirection.southeast {
    bottom: 6px;
    right: 4%;
    transform: translateY(-50%);
}

.WindroseCardinalDirection.south {
    bottom: -17px;
    left: 47.5%;
    transform: translateX(-50%);
}

.WindroseCardinalDirection.southwest {
    bottom: 6px;
    left: 0%;
    transform: translateX(-50%);
}

.WindroseCardinalDirection.west {
    top: 46%;
    left: -17px;
    transform: translateY(-50%);
}

.WindroseCardinalDirection.northwest {
    top: 7px;
    left: 0.5%;
    transform: translateX(-50%);
}

/* Positions for Airfield */
.WindroseDegreeDirection.zerothreezero {
    top: -10px;
    left: 70%;
    transform: translateX(-50%);
}

.WindroseDegreeDirection.zerosixzero {
    top: 23px;
    left: 96%;
    transform: translateX(-50%);
}

.WindroseDegreeDirection.onetwozero {
    bottom: 24px;
    left: 96%;
    transform: translateX(-50%);
}

.WindroseDegreeDirection.onefivezero {
    bottom: -10px;
    left: 71%;
    transform: translateX(-50%);
}

.WindroseDegreeDirection.twoonezero {
    bottom: -10px;
    left: 14%;
    transform: translateX(-50%);
}

.WindroseDegreeDirection.twofourzero {
    bottom: 24px;
    left: -11%;
    transform: translateX(-50%);
}

.WindroseDegreeDirection.threezerozero {
    top: 23px;
    left: -11%;
    transform: translateX(-50%);
}

.WindroseDegreeDirection.threethreezero {
    top: -10px;
    left: 14%;
    transform: translateX(-50%);
}


/* Wind rose station offline */
.color-shift-text {
    margin-top: 3px;
    font-size: 16px;
    font-weight: bold;
    -webkit-animation: color-pulse 2s infinite;
    animation: color-pulse 2s infinite;
}

@-webkit-keyframes color-pulse {
    0%, 100% {
        color: #FF0000;
    }
    50% {
        color: #FFA500;
    }
}

@keyframes color-pulse {
    0%, 100% {
        color: #FF0000;
    }
    50% {
        color: #FFA500;
    }
}

/* WINDROSE AND STATION IMAGE BEHAVIOUR */
.windrose-image-container {
    display: flex;
    flex-direction: column; /* Desktop: stack vertical (image below windrose) */
    align-items: flex-start; /* Optional: aligns items to the left */
    gap: 16px; /* Space between windrose and image */
}

/* Center windrose in its cell */
.windrose-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.windrose-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* centers image horizontally */
    align-items: center;     /* centers image vertically if wrapper has height */
}

/* Ensure image is responsive */
.windrose-image {
    max-width: 120px;
    height: auto;
    /* border: 2px solid #3e6cb3; */
    margin-left: 10px;
}
