/* ====== Yleiset tyylit ====== */
body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* ====== Header & video ====== */
header {
    position: relative; /* timestamp sijoittuu suhteessa headeriin */
}

#live {
    position: relative;
}

/* Videon tyylit */
#myVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Videon aikaleima */
#timestamp {
    position: absolute;
    bottom: 12px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(0, 91, 187, 0.9);
    color: #FFD700;
    font-size: 11px;
    font-weight: 400;
    border-radius: 5px;
    z-index: 10;
    letter-spacing: 0.2px;
    text-shadow: 
        0 0 2px #FFD700,
        0 0 4px #FFD700,
        0 0 6px #FFD700,
        0 0 10px rgba(255,215,0,0.5);
}


/* ====== Tekijämerkintä ====== */
.credits {
    font-size: 0.62rem;
    color: #666;
    margin-top: 10px;
    text-align: left;
}


/* Otsikko */
#main-title {
    margin-top: 5px;
    margin-bottom: 4px;
    font-size: 1.8rem;
}
/* Lämpötilalukema */
.temp-value {
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 0;
    display: block;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Kaaviot */
.chart-container {
    width: 100%;
    height: 400px;
    margin-bottom: 50px;
}

/* Auringonnousu / -lasku osio */
#sunTimes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 0;
}

#sunTimes div {
    text-align: center;
    line-height: 1.2;
}

#sunTimes span {
    font-size: 0.95rem;
}

#sunTimes span b {
    font-weight: bold;
}

#sunTimes img {
    display: block;
    margin: 0 auto 3px;
    height: 16px;
}

/* Live video sisällön rajoitus */
#live video {
    width: 100%;
    max-height: 400px;
    background: black;
}

/* ====== Responsiivisuus ====== */
@media (max-width: 768px) and (orientation: portrait) {
    #myVideo {
        width: 100vw;
        height: 83vw;
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    header {
        height: 40px;
    }

    #myVideo {
        width: 100vw;
        height: calc(100dvh - 40px);
        object-fit: cover;
        object-position: center center;
    }
}









