@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,900);

/* Main bug container */
.bug-container {
    width: 315px;
    height: 245px;
    /* Change the last value here to make it less transparent */
    background-color: rgba(49, 62, 69, 0.95);
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    /* Change this line to remove the outline */
    border: none;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    color: #fff;
    font-weight: 500;
}

/* --- Columns --- */
.data-column {
    width: 181px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    text-align: center;
}

.graphics-column {
    width: 134px;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.15);
}

/* --- Text Elements --- */
.time-temp-block {
    line-height: 1.0;
}

.time {
    font-size: 36px;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transform: scaleY(0.9);
    display: block;
    margin-bottom: -4px;
}

.temperature {
    font-size: 60px;
    color: #ffd700;
    font-weight: 900;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transform: scaleY(0.9);
    display: block;
}

/* --- Container for multiple data points --- */
#secondary-container {
    margin-top: 10px; /* Increased top margin for spacing */
    height: 124px; /* Set explicit height to contain two large items */
    overflow: hidden; /* This is crucial to hide the other items */
    position: relative;
}

/* This new scroller element will contain all items and will be animated */
#secondary-scroller {
    position: absolute;
    width: 100%;
    /* This transition creates the smooth scrolling effect */
    transition: transform 3.0s ease-in-out;
}

.secondary-item {
    margin-bottom: 6px;
}

.secondary-item .label {
    /* Font size increased for visibility */
    font-size: 22px;
    color: #ffffff;
    font-weight: 400;
    transform: scaleY(0.9);
    display: block;
    line-height: 1;
}

.secondary-item .value {
    /* Font size increased for visibility */
    font-size: 34px;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transform: scaleY(0.9);
    display: block;
    line-height: 1;
}


/* --- STYLES FOR SCROLLING NUMBER ANIMATION --- */
.value-container {
    position: relative;
    /* Set height to contain one line of text */
    height: 1em;
    overflow: hidden;
}

.value-wrapper {
    position: absolute;
    /* --- FIX: Use left/right to ensure it spans the full width for centering --- */
    left: 0;
    right: 0;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
}

.value-wrapper.value-offscreen-up {
    transform: translateY(-100%);
}

.value-wrapper.value-offscreen-down {
    transform: translateY(100%);
}


/* --- Graphics Elements --- */
.conditions-image {
    width: 134px;
    height: 134px;
}

.wind-rose-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-rose {
    width: 100px;
    height: 100px;
    background-image: url('https://klier.us/skywarn/wxstnvideo-compass.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.wind-arrow {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -40px;
    background-image: url('https://klier.us/skywarn/wxstnvideo-pointer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 1.5s ease-in-out;
}

.wind-speed {
    position: absolute;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.8);
    text-align: center;
}

.wind-speed .unit {
    font-size: 12px;
    font-weight: 400;
    display: block;
    line-height: 0.9;
}